/* CREDIT Cup: a playable cockpit, built on the opt-in game UI vocabulary. */
body[data-ui=cup]{background:radial-gradient(ellipse at 12% 20%,#0d53645e,transparent 50%),radial-gradient(ellipse at 90% 0,#38476842,transparent 45%),#061d2b;color:var(--game-white)}
body[data-ui=cup] main{max-width:1520px;padding:18px 36px 50px}
body[data-ui=cup] .heading{padding:0;margin:0 0 18px;display:flex;align-items:center;justify-content:space-between;gap:20px}
body[data-ui=cup] .heading .eyebrow{font-size:10px;letter-spacing:.2em;color:var(--game-cyan);margin:0 0 9px;font-weight:700}
body[data-ui=cup] .heading h1{font-size:clamp(40px,4vw,56px);font-weight:900;font-style:italic;font-stretch:115%;line-height:1;letter-spacing:-.06em;margin:0;text-shadow:0 4px 0 #123846}
body[data-ui=cup] .heading h1 span{color:var(--game-cyan)}
body[data-ui=cup] .heading>div>p:last-child{margin:10px 0 0;font-size:13px;max-width:none;color:#b6d2d9}
body[data-ui=cup] .balance{display:none}
body[data-ui=cup] .race-help{display:flex;align-items:center;gap:8px;border:1px solid #467989;border-radius:24px;background:#143a4b;color:#e6faff;padding:10px 15px;font:700 12px var(--font-body,Archivo,Arial,sans-serif);min-height:42px;cursor:pointer;flex-shrink:0}
body[data-ui=cup] .race-help span{display:grid;place-items:center;border:1px solid #9cdce4;border-radius:50%;width:18px;height:18px}
body[data-ui=cup] .race-help:hover{background:#205164;border-color:var(--game-cyan)}
body[data-ui=cup] .race-layout{display:block}
body[data-ui=cup] .arena{position:relative;display:block;overflow:hidden;border-radius:22px;border:1px solid #568190;background:#092e3e;box-shadow:0 24px 70px #0005,0 0 80px #42dfe408}
body[data-ui=cup] .arena-top{pointer-events:auto;position:static;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:13px 22px;background:linear-gradient(115deg,#164554,#102b3d 65%);border:0;border-bottom:1px solid #4e899d66;min-height:72px;box-sizing:border-box}
body[data-ui=cup] .arena-top>div:not(.pot):not(.course-picker){display:none}
body[data-ui=cup] .course-picker{display:flex;align-items:center;gap:14px;flex:1;min-width:0}
body[data-ui=cup] .course-picker .course-label{margin:0;font:750 10px/1.3 var(--sans,Arial,sans-serif);letter-spacing:.12em;text-transform:uppercase;color:#92bfcb;max-width:65px}
body[data-ui=cup] #course{width:auto;max-width:230px;margin:0;border:1px solid #54808d;background:#071f30;border-radius:9px;font-size:16px;font-weight:750;padding:10px 40px 10px 12px;color:#eafffa;cursor:pointer;appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='m3 5 4 4 4-4' fill='none' stroke='%23eafffa' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:14px 14px}
body[data-ui=cup] #course-detail,body[data-ui=cup] #pot-source{display:none}
body[data-ui=cup] .pot{position:relative;display:grid;grid-template-columns:40px auto;column-gap:12px;align-items:center;text-align:left;padding:0 0 0 28px;border-left:1px solid #659ba25e}
body[data-ui=cup] .pot>.game-icon{grid-row:1/3;color:var(--game-gold);width:36px;height:36px;filter:drop-shadow(0 0 10px #ffd36640)}
body[data-ui=cup] .pot>span{display:flex;align-items:center;gap:9px;font-size:10px;line-height:1.2;letter-spacing:.1em;font-weight:800;color:#ffdf9b;margin:0 0 4px}
body[data-ui=cup] .pot span small{display:inline;margin:0;border:1px solid #9e90634d;border-radius:4px;padding:2px 4px;font-size:8px;color:#cbd4be;letter-spacing:.08em}
body[data-ui=cup] .pot strong{font-size:26px;line-height:1.1;font-weight:850;color:var(--game-gold);white-space:nowrap;letter-spacing:-.035em}
body[data-ui=cup] .race-room{display:grid;grid-template-columns:minmax(0,1fr) 426px;align-items:stretch;min-height:590px}
body[data-ui=cup] .race-view{min-width:0;position:relative;display:flex;flex-direction:column;background:#073342}
body[data-ui=cup] .water-stage{height:480px;min-height:440px;flex:1;overflow:hidden;background:#084253}
body[data-ui=cup] .water-stage::after{content:'';pointer-events:none;position:absolute;inset:0;box-shadow:inset 0 -45px 50px -40px #031c2c,inset 0 65px 60px -50px #032536}
body[data-ui=cup] .grid-sign{position:absolute;z-index:2;top:25px;left:28px;pointer-events:none;text-shadow:0 3px 20px #032b38}
body[data-ui=cup] .grid-sign>span{display:inline-block;padding:6px 9px;background:#08283bd9;border:1px solid #53b6cb8c;border-radius:5px;color:#91f0f5;font:750 9px var(--sans,Arial,sans-serif);letter-spacing:.15em}
body[data-ui=cup] .grid-sign strong{display:block;margin-top:14px;font:900 italic clamp(30px,3.5vw,49px)/.94 var(--font-body,Archivo,Arial,sans-serif);letter-spacing:-.02em;word-spacing:.12em;color:#f0fffa}
body[data-ui=cup] .grid-sign p{font-size:12px;line-height:1.5;color:#d3e9e9;margin:10px 0 0}
body[data-ui=cup]:not([data-race-state=entry]) .grid-sign{display:none}
body[data-ui=cup] .race-ticket,body[data-ui=cup].racing .race-ticket{width:auto;box-sizing:border-box;min-width:0;padding:19px;border-radius:0;border:0;border-left:1px solid #5182987a;align-self:stretch;display:flex;flex-direction:column;background:radial-gradient(ellipse at 100% 0,#19516255,transparent 70%),#0c2b3c}
body[data-ui=cup] #choices{display:block;padding:0;border:0;margin:0}
body[data-ui=cup] .race-ticket legend{font:800 10px/1.2 var(--sans,Arial,sans-serif);letter-spacing:.1em;color:#d3eef3;margin:0;padding:0 0 10px}
body[data-ui=cup] #choices legend b{color:var(--game-cyan);margin-right:7px}
body[data-ui=cup] #fish-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
body[data-ui=cup] #fish-choices button{position:relative;display:flex;flex-direction:column;gap:1px;min-width:0;min-height:100px;text-align:center;align-items:center;padding:4px 5px 9px;background:linear-gradient(160deg,#1d4b5e,#0b2539);color:#e5faff;border:1px solid #466e85;border-radius:12px;cursor:pointer;transition:transform .18s,border-color .18s,background .18s;overflow:hidden}
body[data-ui=cup] #fish-choices button::before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 50% 10%,var(--racer-color),transparent 75%);opacity:.13;pointer-events:none}
body[data-ui=cup] #fish-choices button::after{content:'✓';position:absolute;right:6px;top:5px;background:var(--game-lime);color:#062e37;display:grid;place-items:center;width:17px;height:17px;border-radius:50%;font-size:11px;font-weight:900;opacity:0}
body[data-ui=cup] #fish-choices button:not(:disabled):hover{transform:translateY(-3px);border-color:var(--racer-color);background:#20485d}
body[data-ui=cup] #fish-choices button[aria-pressed=true]{border:2px solid var(--racer-color);background:linear-gradient(135deg,#244d66,#0e3548);box-shadow:0 0 16px #48e3ff15;padding:3px 4px 8px}
body[data-ui=cup] #fish-choices button[aria-pressed=true]::after{opacity:1}
body[data-ui=cup] #fish-choices .racer-art{width:88px;height:51px;transition:transform .25s}
body[data-ui=cup] #fish-choices button:hover .racer-art{transform:rotate(-6deg) scale(1.08)}
body[data-ui=cup] #fish-choices strong{font-size:15px;font-weight:850;line-height:1.1;color:#f3fbff}
body[data-ui=cup] #fish-choices small{display:block;font-size:8px;letter-spacing:.11em;color:var(--racer-color);line-height:1.2;margin-top:5px;font-weight:700}
body[data-ui=cup] #fish-detail{font-size:11px;line-height:1.4;color:#b9d5df;margin:7px 0 12px;min-height:15px}
body[data-ui=cup] .entry-total{display:none}
body[data-ui=cup] .race-coach{padding:0;background:none;border:0;scroll-margin-top:20px}
body[data-ui=cup] .race-coach h2{font-size:21px;line-height:1.1;letter-spacing:-.02em;font-weight:850;margin:0 0 6px;color:#ecfbff}
body[data-ui=cup] .coach-description{font-size:12px;line-height:1.45;color:#b9d5df;margin:0 0 10px}
body[data-ui=cup][data-race-state=entry] .race-coach h2,body[data-ui=cup][data-race-state=entry] .coach-description{display:none}
body[data-ui=cup] .coach-energy{display:flex;align-items:center;gap:3px;padding:7px 9px;border:1px solid #4f78863d;border-radius:7px;background:#072331;margin:0 0 13px;min-height:29px;font-size:12px;color:#cce3e7;box-sizing:border-box}
body[data-ui=cup] .coach-energy>span{margin-right:7px}
body[data-ui=cup] .coach-energy>strong{margin-left:auto;color:var(--game-gold);font-size:12px;font-weight:650}
body[data-ui=cup] .coach-energy i{width:20px;height:22px;display:block;position:relative;color:#3a6373}
body[data-ui=cup] .coach-energy .game-icon{width:20px;height:22px;fill:currentColor;stroke-width:1}
body[data-ui=cup] .coach-energy i[data-full=true]{color:#c6fb76;filter:drop-shadow(0 0 4px #a9fa7233)}
body[data-ui=cup] .coach-energy i[data-spend=true]{color:#ffd16d}
body[data-ui=cup] .coach-routes,body[data-ui=cup] .coach-paces{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:0;border:0;margin:0 0 13px}
body[data-ui=cup] .coach-routes legend small{display:inline;float:none;max-width:none;min-height:0;margin:0;font:400 10px var(--sans,Arial,sans-serif);letter-spacing:0;color:#a7c8d3;padding-left:15px}
body[data-ui=cup] :is(.coach-routes,.coach-paces) label{position:relative;display:flex;flex-direction:column;align-items:center;min-width:0;border:1px solid #416c81;border-radius:10px;background:linear-gradient(160deg,#163d51,#0c293b);padding:9px 6px;gap:7px;cursor:pointer;transition:background .16s,transform .16s,border-color .16s;text-align:center;box-sizing:border-box}
body[data-ui=cup] :is(.coach-routes,.coach-paces) label:hover:not(:has(:disabled)){border-color:#83dfe9;transform:translateY(-2px);background:#1c4d63}
body[data-ui=cup] :is(.coach-routes,.coach-paces) input{position:absolute;inset:0;width:100%;height:100%;opacity:0;margin:0;cursor:pointer}
body[data-ui=cup] :is(.coach-routes,.coach-paces) label:has(:checked){border-color:var(--game-cyan);background:linear-gradient(150deg,#1d596c,#103c50);box-shadow:inset 0 0 0 1px #5aedf369,0 0 14px #5aedf30b}
body[data-ui=cup] :is(.coach-routes,.coach-paces) label:has(:checked)::after{content:'';position:absolute;bottom:-1px;left:25%;width:50%;height:3px;border-radius:3px;background:var(--game-cyan);box-shadow:0 0 8px #59edf340}
body[data-ui=cup] .coach-routes label>.game-icon{width:32px;height:23px;color:#79b9cb;stroke-width:1.6}
body[data-ui=cup] .coach-routes label:has(:checked)>.game-icon{color:#70f4f4}
body[data-ui=cup] .coach-routes label>span{display:block;flex:none;min-width:0;line-height:1.2}
body[data-ui=cup] .coach-routes strong{display:block;font-size:13px;font-weight:750;color:#e6f6f7;white-space:nowrap}
body[data-ui=cup] .coach-routes small{display:block;font-size:13px;font-weight:450;line-height:1.25;margin:5px 0 0;color:#d0e8ee;max-width:14ch;min-height:28px}
body[data-ui=cup] .coach-routes b{font-size:12px;line-height:1.2;color:#b4cfda;background:#061e2bb0;border-radius:5px;padding:4px 6px;width:100%;box-sizing:border-box;font-weight:750;font-variant-numeric:tabular-nums}
body[data-ui=cup] .coach-routes b.quickest{color:#c3fa72;background:#284d3c}
body[data-ui=cup] .coach-paces label{display:flex;flex-direction:row;justify-content:center;gap:6px;padding:10px 6px;min-height:51px;color:#dff5fb}
body[data-ui=cup] .coach-paces label>span{font-size:12px;font-weight:750;line-height:1.2}
body[data-ui=cup] .coach-paces small{display:block;font-size:12px;color:#d0e8ee;font-weight:450;margin-top:4px}
body[data-ui=cup] .coach-paces label>.game-icon{width:23px;height:23px;color:#68d7ed}
body[data-ui=cup] .coach-paces label[data-pace="2"]>.game-icon{color:#ff927d}
body[data-ui=cup] .coach-paces label[data-pace="0"]>.game-icon{color:#a8d5a3}
body[data-ui=cup] .coach-paces label[data-pace="2"]:has(:checked){border-color:#ff927d;background:#563d45;box-shadow:inset 0 0 0 1px #ff927d70}
body[data-ui=cup] .coach-paces label[data-pace="2"]:has(:checked)::after{background:#ff927d}
body[data-ui=cup] .coach-paces label:has(:disabled){opacity:.42;cursor:default}
body[data-ui=cup] .coach-paces input:disabled{cursor:default}
body[data-ui=cup] .coach-tip{font-size:12px;line-height:1.45;margin:0 0 10px;color:#d3e5ec;min-height:0}
body[data-ui=cup] #enter,body[data-ui=cup] #coach-confirm,body[data-ui=cup] #rematch{width:100%;margin:2px 0 5px;border-radius:11px;border:1px solid #d9ffa7;background:linear-gradient(110deg,#d2ff91,#a9ed63);color:#082a31;box-shadow:0 4px 0 #4c8938,0 8px 24px #0003;font-size:17px;font-weight:850;line-height:1.2;min-height:53px;padding:13px 14px}
body[data-ui=cup] #enter::after{content:'➜';margin-left:12px}
body[data-ui=cup] #status{color:var(--game-gold);font-size:11px;line-height:1.5;min-height:0;margin:8px 0 0}
body[data-ui=cup] #status:empty{display:none}
body[data-ui=cup] .risk-note{font-size:9px;line-height:1.4;color:#9bbcc9;margin:9px 0 0;text-align:center}
body[data-ui=cup] .allocation-note{font-size:11px;color:#ffd18b;margin:4px 0}
body[data-ui=cup] .coach-outlook{margin:9px 0 0;border:0;padding:0!important}
body[data-ui=cup] .coach-outlook summary{padding:5px 0;font-size:10px;color:#aecdd5;min-height:0}
body[data-ui=cup] .coach-forecast{grid-template-columns:1fr;gap:5px;margin:7px 0}
body[data-ui=cup] .coach-forecast>div{padding:8px;font-size:11px}
body[data-ui=cup] .coach-forecast span{font-size:10px}
body[data-ui=cup] #race-progress{position:relative;display:flex;list-style:none;margin:0;padding:19px 20px;gap:15px;justify-content:space-between;background:#082939;border:0;font:650 11px var(--sans,Arial,sans-serif);color:#88b3c4;counter-reset:leg}
body[data-ui=cup] #race-progress::before{content:'';position:absolute;top:0;left:0;width:var(--progress,0%);height:4px;background:var(--game-cyan);box-shadow:0 0 10px #59edf350;transition:width .08s linear}
body[data-ui=cup] #race-progress li{flex:1;display:flex;align-items:center;gap:7px;line-height:1.2}
body[data-ui=cup] #race-progress li::before{counter-increment:leg;content:counter(leg);display:grid;place-items:center;border:1px solid #547f8f;border-radius:50%;width:22px;height:22px;flex:0 0 22px;color:#b5d7df;font-size:10px}
body[data-ui=cup] #race-progress li[data-state=current]{color:#d7fcff}
body[data-ui=cup] #race-progress li[data-state=current]::before{color:#092c3c;background:var(--game-cyan);border-color:var(--game-cyan);box-shadow:0 0 14px #59edf33a}
body[data-ui=cup] #race-progress li[data-state=done]::before{content:'✓';color:var(--game-lime);border-color:#82c86c}
body[data-ui=cup] #standings{display:flex;gap:10px;padding:0 16px 15px;background:#082939;border:0;font-size:10px;min-height:0}
body[data-ui=cup] #standings li{flex:1;min-width:0;display:grid;grid-template-columns:18px 38px 1fr;gap:0 6px;align-items:center;position:relative;padding:8px 10px;border:1px solid #52718455;border-radius:9px;background:#0d3346;overflow:hidden}
body[data-ui=cup] #standings li>b{grid-row:1/3;font-size:19px;font-weight:900;font-style:italic;color:#7cacc0}
body[data-ui=cup] #standings .racer-art{grid-row:1/3;width:38px;height:30px}
body[data-ui=cup] #standings strong{font-size:12px;margin:0;line-height:1.2;color:#e3f9fa}
body[data-ui=cup] #standings span:not(.racer-art){font-size:8px;letter-spacing:.08em;margin-top:2px;white-space:nowrap;color:#8db9c6}
body[data-ui=cup] #standings li[data-yours=true]{border-color:#b6e6786b;background:#254637}
body[data-ui=cup] #standings li[data-yours=true]>b,body[data-ui=cup] #standings li[data-yours=true] span:not(.racer-art){color:var(--game-lime)}
body[data-ui=cup] #standings li::after{content:'';position:absolute;left:0;bottom:0;width:var(--distance,0%);height:2px;background:#5498b5}
body[data-ui=cup] #standings li[data-yours=true]::after{background:var(--game-lime)}
body[data-ui=cup] .stage-caption{z-index:3;inset:auto 15px 15px;background:#062335e6;border:1px solid #75c2d05c;border-left:3px solid #60e9ed;padding:10px 13px;border-radius:10px;font-size:12px;backdrop-filter:blur(8px)}
body[data-ui=cup] .stage-caption span{max-width:none}
body[data-ui=cup] #section-label{font-weight:750;color:#e6fcfa}
body[data-ui=cup] #tactic-cue{font-size:11px;color:#b0d0dc}
body[data-ui=cup] #skip{font-size:10px;min-height:34px;padding:6px 9px;white-space:nowrap;border:1px solid #5d8194;background:#082437}
body[data-ui=cup] .race-name{pointer-events:auto;cursor:pointer;font-family:var(--font-body,Archivo,Arial,sans-serif);border:1px solid #b4e3ee80;border-radius:6px;background:#062537e6;color:#dceef6;font-size:11px;font-weight:750;line-height:1.2;min-height:30px;padding:6px 10px;box-shadow:0 4px 14px #0004}
body[data-ui=cup] .race-name.yours{color:#173138;background:var(--game-lime);border-color:#d9ffb5;box-shadow:0 0 0 3px #b4ec7440,0 4px 14px #0004}
body[data-ui=cup] .race-name:disabled{opacity:1;cursor:default}
body[data-ui=cup] .race-fish-target{position:absolute;display:block;pointer-events:auto;border-radius:50%;background:transparent;transition:background .15s,box-shadow .15s}
body[data-ui=cup] .race-fish-target[hidden]{display:none}
body[data-ui=cup] .race-name:not(:disabled):is(:hover,:focus-visible){border-color:#d1fffa;box-shadow:0 0 0 3px #94f5e74d,0 4px 14px #0004}
body[data-ui=cup] .race-name:not(:disabled):is(:hover,:focus-visible) .race-fish-target{background:radial-gradient(ellipse,#a7ffe814,transparent 70%);box-shadow:0 0 18px #87ffdf40,inset 0 0 12px #b2ffe536}
body[data-ui=cup] .race-name[data-rank]:not([data-rank=""])::before{content:attr(data-rank);display:inline-grid;place-items:center;width:16px;height:16px;border-radius:50%;background:#d7e6da26;font-size:10px;margin-right:5px}
body[data-ui=cup] .race-name.yours::before{background:#082c3630!important}
body[data-ui=cup] .course-markers{position:absolute;inset:0;pointer-events:none;overflow:hidden}
body[data-ui=cup] .course-markers span{position:absolute;left:0;top:0;color:#b0fbfc;border:1px solid #70e3ed80;background:#063748df;border-radius:5px;padding:5px 8px;font:850 9px var(--sans,Arial,sans-serif);letter-spacing:.13em;white-space:nowrap}
body[data-ui=cup] .course-markers span:last-child{color:#ffe7a1;border-color:#f1d596;background:#3d4027df}
body[data-ui=cup] #countdown{z-index:4;inset:20% 0 auto;font-size:92px;font-weight:950;font-style:italic;color:#d2ff86;text-shadow:0 5px 0 #084256,0 0 60px #65f2ec66;line-height:1.1}
body[data-ui=cup] .race-broadcast{position:absolute;left:22px;top:21px;z-index:2;pointer-events:none;display:flex;flex-direction:column;color:#f0fffd;text-shadow:0 2px 18px #022431}
body[data-ui=cup] .race-broadcast>span{font-size:10px;font-weight:800;letter-spacing:.15em;color:var(--game-cyan)}
body[data-ui=cup] .race-broadcast>strong{font-size:57px;font-weight:900;font-style:italic;line-height:1;margin:5px 0;letter-spacing:-.025em;word-spacing:.12em}
body[data-ui=cup] .race-broadcast>small{font-size:11px;color:#d0e8eb}
body[data-ui=cup] .race-broadcast[data-rank="1"] strong{color:var(--game-lime)}
body[data-ui=cup][data-race-state=entry] :is(#standings,.race-broadcast){display:none}
body[data-ui=cup]:not([data-race-state=entry]) #choices,body[data-ui=cup]:not([data-race-state=entry]) #enter,body[data-ui=cup]:not([data-race-state=entry]) .risk-note{display:none}
body[data-ui=cup][data-race-state=swimming] .race-ticket{justify-content:center}
body[data-ui=cup][data-race-state=swimming] .race-coach h2{font-size:35px;font-style:italic;font-weight:900;color:var(--racer-color);letter-spacing:-.04em}
body[data-ui=cup][data-race-state=swimming] .coach-description{font-size:13px;margin:12px 0 20px}
body[data-ui=cup] .coach-effect{position:relative;padding:16px 18px 18px;border:1px solid #4281946e;border-radius:15px;background:radial-gradient(ellipse at 50% 30%,#27648280,transparent 70%),#082737;font-size:13px;line-height:1.6;color:#c5dfe7;margin:18px 0}
body[data-ui=cup] .coach-effect>.game-icon{position:absolute;top:15px;right:15px;color:var(--game-cyan);width:32px;height:32px}
body[data-ui=cup] .coach-effect[data-pace="2"]{border-color:#e2836866}
body[data-ui=cup] .coach-effect[data-pace="2"]>.game-icon{color:var(--game-coral)}
body[data-ui=cup] .coach-racer{width:90%;height:160px;margin:auto;animation:cup-racer 1.1s ease-in-out infinite alternate}
body[data-ui=cup] .coach-rivals{font-size:11px;color:#a9d2dc;line-height:1.5;margin:12px 0 0}
body[data-ui=cup][data-race-state=decision] .race-ticket{justify-content:center;border-top:3px solid var(--game-cyan)}
body[data-ui=cup][data-race-state=decision] .race-coach h2{color:var(--game-cyan);font-size:26px;line-height:1.15}
body[data-ui=cup][data-race-state=finished] .race-ticket{justify-content:center}
body[data-ui=cup] #finish{padding:0;display:block;background:none;border:0}
body[data-ui=cup] .finish-medal{width:112px;height:100px;display:grid;place-items:center;margin:-10px 0 12px;filter:drop-shadow(0 5px 12px #001a2680)}
body[data-ui=cup] .cup-finish-art{width:100%;height:100%;object-fit:contain}
body[data-ui=cup] #finish-label{font-size:10px;line-height:1.4;color:var(--game-gold);letter-spacing:.13em}
body[data-ui=cup] #finish h2{font-size:36px;font-weight:900;font-style:italic;line-height:1.02;margin:12px 0;letter-spacing:-.02em;word-spacing:.15em;color:#ecfbf6}
body[data-ui=cup] .finish-reward{display:block;font-size:14px;color:var(--game-cyan);font-weight:750}
body[data-ui=cup] .arena[data-outcome=win] .finish-reward{font-size:34px;color:var(--game-lime);font-weight:900;letter-spacing:-.04em}
body[data-ui=cup] #finish-detail{font-size:12px;line-height:1.6;margin:16px 0;color:#b6d0dc}
body[data-ui=cup] #finish-accounting{padding:13px 15px;background:#061f2e;border:1px solid #4c798466;border-radius:10px}
body[data-ui=cup] #finish-accounting dl{display:grid;grid-template-columns:1fr auto;gap:8px;margin:0;font-size:12px;line-height:1.3}
body[data-ui=cup] #finish-accounting dd{text-align:right;margin:0;font-weight:750;color:#eaf9f2}
body[data-ui=cup] .finish-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:20px}
body[data-ui=cup] #rematch{grid-column:1/-1}
body[data-ui=cup] .finish-actions :is(button,a):not(#rematch){padding:10px 8px;font-size:11px;border:1px solid #4c7687;border-radius:8px;color:#cee9ee;min-height:40px}
body[data-ui=cup] #race-options{padding:0;margin:20px 0;border:1px solid #47748166;border-radius:12px;background:#092735}
body[data-ui=cup] #race-options>summary{padding:18px 20px;font-size:12px;color:#a9cbd4;cursor:pointer}
body[data-ui=cup] #race-options>:not(summary){margin:0 20px 20px;width:auto}
body[data-ui=cup] #race-options .loop{max-width:none}
body[data-ui=cup] .entry-assistance{padding:10px 15px;border:1px solid #375e6a;border-radius:9px;font-size:12px}
body[data-ui=cup] .entry-assistance summary{padding:10px 0;cursor:pointer;color:#c2dde3;font-size:12px;min-height:0}
@keyframes cup-racer{to{transform:translate(5px,-3px) rotate(-2deg)}}
@media(min-width:761px) and (max-height:850px){body[data-ui=cup] main{padding-top:16px}body[data-ui=cup] .heading h1{font-size:46px}body[data-ui=cup] .heading{margin-bottom:16px}body[data-ui=cup] .heading .eyebrow{display:none}}
@media(min-width:761px) and (max-width:1100px){body[data-ui=cup] main{padding-inline:20px}body[data-ui=cup] .race-room{grid-template-columns:minmax(0,1fr) 370px}body[data-ui=cup] .race-ticket,body[data-ui=cup].racing .race-ticket{padding:15px}body[data-ui=cup] .coach-routes strong{font-size:11px}body[data-ui=cup] #standings .racer-art{display:none}body[data-ui=cup] #standings li{grid-template-columns:18px 1fr}body[data-ui=cup] .grid-sign strong{font-size:36px}}
@media(max-width:760px){
 body[data-ui=cup]>header{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:9px 14px;gap:6px;min-height:0}
 body[data-ui=cup]>header>a{grid-column:1/3;grid-row:1;justify-self:start}
 body[data-ui=cup]>header>a img{width:70px;height:auto}
 body[data-ui=cup]>header nav[aria-label="Main"]{display:contents}
 body[data-ui=cup]>header nav[aria-label="Main"]>a:not(.credit-nav){grid-row:2;display:block;justify-self:center;padding:4px 6px;font-size:11px;min-height:28px}
 body[data-ui=cup]>header nav[aria-label="Main"]>a:nth-child(1){grid-column:1}body[data-ui=cup]>header nav[aria-label="Main"]>a:nth-child(2){grid-column:2}body[data-ui=cup]>header nav[aria-label="Main"]>a:nth-child(3){grid-column:3}body[data-ui=cup]>header nav[aria-label="Main"]>a:nth-child(4){grid-column:4;white-space:nowrap}
 body[data-ui=cup]>header nav[aria-label="Main"] :is(a,button).credit-nav{grid-column:2/6;grid-row:1;justify-self:end;margin:0;font-size:12px;min-height:44px;padding:6px 7px 6px 10px}
 body[data-ui=cup]>header nav[aria-label="Main"] #sound{position:static;grid-column:5;grid-row:2;padding:4px 0;white-space:nowrap;justify-self:end;font-size:10px;min-height:28px}
 body[data-ui=cup] main{padding:12px 10px 25px}
 body[data-ui=cup] .heading{margin-bottom:9px;gap:9px;flex-wrap:nowrap}
 body[data-ui=cup] .heading>div{flex:1;min-width:0}
 body[data-ui=cup] .heading .eyebrow{display:none}
 body[data-ui=cup] .heading h1{font-size:34px;letter-spacing:-.055em}
 body[data-ui=cup] .heading>div>p:last-child{display:none}
 body[data-ui=cup] .race-help{padding:8px 9px;min-height:35px;gap:5px;font-size:10px}
 body[data-ui=cup] .race-help span{width:15px;height:15px}
 body[data-ui=cup] .arena{border-radius:15px}
 body[data-ui=cup] .arena-top{padding:9px 10px;min-height:58px;gap:8px}
 body[data-ui=cup] .course-picker .course-label{display:none}
 body[data-ui=cup] #course{max-width:165px;font-size:12px;min-height:36px;padding:7px 32px 7px 8px;background-position:right 10px center}
 body[data-ui=cup] .pot{grid-template-columns:24px auto;column-gap:6px;padding-left:8px;border:0}
 body[data-ui=cup] .pot>.game-icon{width:24px;height:24px}
 body[data-ui=cup] .pot>span{font-size:8px;letter-spacing:.03em;gap:4px;margin-bottom:3px}
 body[data-ui=cup] .pot span small{font-size:6px;padding:1px 2px}
 body[data-ui=cup] .pot strong{font-size:19px}
 body[data-ui=cup] .race-room{display:flex;flex-direction:column;min-height:0}
 body[data-ui=cup] .race-view{width:100%}
 body[data-ui=cup] .water-stage,body[data-ui=cup].has-race .water-stage{height:180px;min-height:180px;flex:none}
 body[data-ui=cup] .grid-sign{top:10px;left:10px}
 body[data-ui=cup] .grid-sign>span{font-size:7px;padding:4px 6px;letter-spacing:.09em}
 body[data-ui=cup] .grid-sign strong,body[data-ui=cup] .grid-sign p{display:none}
 body[data-ui=cup] .race-ticket,body[data-ui=cup].racing .race-ticket{padding:11px;order:0;width:100%;border-left:0;border-top:1px solid #54788d66}
 body[data-ui=cup] .race-ticket legend{font-size:10px;padding:0 0 5px}
 body[data-ui=cup] #fish-choices{gap:6px}
 body[data-ui=cup] #fish-choices button{min-height:88px;padding:0 4px 7px;border-radius:9px}
 body[data-ui=cup] #fish-choices button[aria-pressed=true]{padding:0 3px 6px}
 body[data-ui=cup] #fish-choices .racer-art{width:78px;height:46px}
 body[data-ui=cup] #fish-choices strong{font-size:13px}
 body[data-ui=cup] #fish-choices small{font-size:9px;letter-spacing:.06em;margin-top:4px}
 body[data-ui=cup] #fish-detail{font-size:10px;margin:6px 0 9px;min-height:0}
 body[data-ui=cup] .coach-energy{padding:4px 8px;font-size:12px;margin-bottom:10px;min-height:27px}
 body[data-ui=cup] .coach-energy i,body[data-ui=cup] .coach-energy .game-icon{height:18px;width:17px}
 body[data-ui=cup] .coach-energy>strong{font-size:11px}
 body[data-ui=cup] .coach-routes,body[data-ui=cup] .coach-paces{gap:6px;margin:0 0 8px}
 body[data-ui=cup] .coach-routes legend small{font-size:9px;padding-left:10px}
 body[data-ui=cup] .coach-routes label{padding:6px 4px;gap:4px}
 body[data-ui=cup] .coach-routes label>.game-icon{height:17px;width:24px}
 body[data-ui=cup] .coach-routes strong{font-size:12px}
 body[data-ui=cup] .coach-routes small{font-size:12px;min-height:30px;line-height:1.25;margin-top:2px}
 body[data-ui=cup] .coach-routes b{font-size:12px;padding:3px 4px}
 body[data-ui=cup] .coach-paces label{padding:7px 4px;min-height:46px;gap:5px}
 body[data-ui=cup] .coach-paces label>.game-icon{width:19px;height:19px}
 body[data-ui=cup] .coach-paces label>span{font-size:12px}
 body[data-ui=cup] .coach-paces small{font-size:12px;margin-top:2px}
 body[data-ui=cup] .coach-tip{font-size:12px;margin:0 0 6px;line-height:1.4}
 body[data-ui=cup] #enter,body[data-ui=cup] #coach-confirm,body[data-ui=cup] #rematch{min-height:47px;font-size:15px;padding:11px;margin-top:0}
 body[data-ui=cup] .risk-note{font-size:8px;margin-top:7px}
 body[data-ui=cup] #race-progress{padding:11px 10px;gap:7px;font-size:8px}
 body[data-ui=cup] #race-progress li{gap:5px}
 body[data-ui=cup] #race-progress li::before{height:17px;width:17px;flex-basis:17px;font-size:8px}
 body[data-ui=cup] .stage-caption{inset:auto 7px 7px;padding:7px 8px;font-size:10px;gap:7px}
 body[data-ui=cup] #tactic-cue{font-size:9px}
 body[data-ui=cup] #skip{font-size:8px;min-height:29px;padding:4px 6px}
 body[data-ui=cup][data-race-state=entry] .stage-caption{inset:8px 8px auto auto;padding:0;border:0;background:none;backdrop-filter:none}
 body[data-ui=cup][data-race-state=entry] .stage-caption .caption-lines{display:none}
 body[data-ui=cup] .race-name{font-size:8px;min-height:24px;padding:4px 6px}
 body[data-ui=cup] .race-name[data-rank]:not([data-rank=""])::before{width:13px;height:13px;font-size:8px;margin-right:3px}
 body[data-ui=cup] .course-markers span{font-size:8px;padding:4px 5px}
 body[data-ui=cup]:not([data-race-state=entry]) .water-stage{height:290px;min-height:290px}
 body[data-ui=cup] .race-broadcast{top:12px;left:13px}
 body[data-ui=cup] .race-broadcast>span{font-size:8px}
 body[data-ui=cup] .race-broadcast>strong{font-size:40px;margin:4px 0}
 body[data-ui=cup] .race-broadcast>small{font-size:9px}
 body[data-ui=cup] #countdown{font-size:66px}
 body[data-ui=cup] #standings{padding:0 8px 10px;gap:5px}
 body[data-ui=cup] #standings li{padding:6px;grid-template-columns:13px 23px 1fr;gap:0 4px;border-radius:6px}
 body[data-ui=cup] #standings li>b{font-size:15px}
 body[data-ui=cup] #standings .racer-art{width:23px;height:24px}
 body[data-ui=cup] #standings strong{font-size:10px}
 body[data-ui=cup] #standings span:not(.racer-art){font-size:6px}
 body[data-ui=cup] .race-coach h2,body[data-ui=cup][data-race-state=decision] .race-coach h2{font-size:22px}
 body[data-ui=cup] .coach-description{font-size:11px;margin-bottom:10px}
 body[data-ui=cup][data-race-state=swimming] .race-coach h2{font-size:24px}
 body[data-ui=cup][data-race-state=swimming] .coach-description{font-size:11px;margin:7px 0 10px}
 body[data-ui=cup] .coach-effect{font-size:11px;padding:10px 12px;margin:10px 0;min-height:65px}
 body[data-ui=cup] .coach-racer{float:left;width:90px;height:60px;margin:0 12px 0 0}
 body[data-ui=cup] .coach-effect>.game-icon{display:none}
 body[data-ui=cup] .coach-rivals{font-size:10px;margin-top:7px}
 body[data-ui=cup] .finish-medal{float:right;width:74px;height:68px;margin:-5px -4px 8px 8px}
 body[data-ui=cup] #finish h2{font-size:28px;margin:9px 0}
 body[data-ui=cup] .arena[data-outcome=win] .finish-reward{font-size:27px}
 body[data-ui=cup] #finish-detail{font-size:11px;margin:12px 0}
 body[data-ui=cup] .finish-actions{margin-top:14px}
 body[data-ui=cup] #race-options{margin-top:14px}
}
body[data-ui=cup] #race-guide{box-sizing:border-box;width:min(640px,calc(100% - 28px));max-height:calc(100dvh - 28px);padding:32px;border:1px solid #95bcb175;border-radius:20px;background:radial-gradient(ellipse at 100% 0,#23657166,transparent 60%),#0b2d39;color:#e9eddc;overflow:auto}
body[data-ui=cup] #race-guide::backdrop{background:#02141bd9;backdrop-filter:blur(7px)}
body[data-ui=cup] .guide-close{position:absolute;right:15px;top:12px;width:40px;height:40px;border:0;background:none;color:#d0e6da;font:28px var(--font-body,Archivo,Arial,sans-serif);cursor:pointer}
body[data-ui=cup] #race-guide>.eyebrow{font-size:10px;color:#e8c78a;letter-spacing:.16em;margin:0 0 12px}
body[data-ui=cup] #guide-title{font:750 43px/.98 var(--font-body,Archivo,Arial,sans-serif);letter-spacing:-.045em;margin:0 0 16px}
body[data-ui=cup] .guide-intro{font-size:14px;line-height:1.55;color:#c3d7ce;margin:0 0 24px;max-width:48ch}
body[data-ui=cup] .guide-steps{list-style:none;margin:0;padding:0;display:grid;gap:20px}
body[data-ui=cup] .guide-steps li{display:grid;grid-template-columns:88px 1fr;gap:20px;align-items:center}
body[data-ui=cup] .guide-steps span{color:#dfc68f;font:700 9px var(--font-body,Archivo,Arial,sans-serif);letter-spacing:.1em}
body[data-ui=cup] .guide-steps h3{margin:6px 0;font:700 19px/1.1 var(--font-body,Archivo,Arial,sans-serif);letter-spacing:-.025em}
body[data-ui=cup] .guide-steps p{font:13px/1.5 var(--font-body,Archivo,Arial,sans-serif);color:#bed4cd;margin:0}
body[data-ui=cup] .guide-art{height:80px;position:relative;display:flex;gap:7px;align-items:center;justify-content:center;border-radius:12px;background:linear-gradient(150deg,#2f696555,#061f2c);overflow:hidden}
body[data-ui=cup] .guide-note{font-size:11px;line-height:1.5;color:#abc5bd;border-top:1px solid #83b5aa40;margin:24px 0 16px;padding-top:16px}
body[data-ui=cup] .guide-ready{width:100%;min-height:44px;background:#ead299;color:#12303a;border:0;border-radius:9px;font-weight:700;cursor:pointer}
body[data-ui=cup] #race-guide{background:radial-gradient(ellipse at 100% 0,#23657166,transparent 60%),#0b2d39;border-color:#75c8d0}
body[data-ui=cup] #guide-title{font-weight:900;font-style:italic;color:#d9ffbd}
body[data-ui=cup] .guide-ready{background:var(--game-lime);font-weight:850}
@media(max-width:760px){body[data-ui=cup] #race-guide{padding:25px 20px}body[data-ui=cup] #guide-title{font-size:35px}body[data-ui=cup] .guide-steps li{grid-template-columns:62px 1fr;gap:12px}body[data-ui=cup] .guide-art{height:72px;gap:4px}body[data-ui=cup] .guide-steps h3{font-size:16px}body[data-ui=cup] .guide-steps p{font-size:12px}}

body[data-ui=cup] .coach-routes legend{width:100%}
@media(max-width:760px){
 body[data-ui=cup] #fish-choices button{min-height:84px}
 body[data-ui=cup] .heading>div>p:last-child{max-width:none}
}
body[data-ui=cup][data-race-state=decision] .race-ticket{animation:cup-checkpoint .45s ease-out}
body[data-ui=cup][data-race-state=swimming] .water-stage::before{content:'';position:absolute;inset:0;z-index:1;pointer-events:none;opacity:.18;background:linear-gradient(100deg,transparent 45%,#73eaf100 46%,#73eaf15e 47%,transparent 48%);background-size:230% 100%;animation:cup-wake 1.6s linear infinite}
@keyframes cup-checkpoint{from{box-shadow:inset 0 0 50px #6aeeed55}to{box-shadow:inset 0 0 0 transparent}}
@keyframes cup-wake{from{background-position:100% 0}to{background-position:-100% 0}}

body[data-ui=cup] #race{filter:brightness(1.14) saturate(1.13)}
body[data-ui=cup] :is(.coach-routes,.coach-paces) label:has(:checked)::before{content:'✓ Selected';position:absolute;right:5px;top:-6px;z-index:1;border-radius:4px;padding:2px 4px;background:#83f1f3;color:#073143;font:800 8px/1 var(--font-body,Archivo,Arial,sans-serif);pointer-events:none}
body[data-ui=cup] .coach-paces label[data-pace="2"]:has(:checked)::before{background:#ffad97}
body[data-ui=cup] .race-labels[data-presentation="finish"] .race-name[data-rank="1"]{background:#ffe38a;color:#16343c;border-color:#fff2bc;box-shadow:0 0 0 4px #ffe38a3d,0 0 25px #ffe38a80}
body[data-ui=cup][data-race-state=finished] .race-broadcast strong{color:var(--game-gold)}

body[data-ui=cup] .race-connectors{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
body[data-ui=cup] .race-connectors line{stroke-width:1.5;stroke-dasharray:2 2;opacity:.8}

body[data-ui=cup] .race-labels .race-name.yours::before,body[data-ui=cup] .race-labels[data-presentation="finish"] .race-name[data-rank="1"]::before{color:#16343c;border-color:#16343c55}

/* Entry and restored races wait for an explicit player action. */
body[data-ui=cup] .stage-help{pointer-events:auto;flex-shrink:0;min-height:44px;padding:8px 12px;border:1px solid #75d9df;border-radius:8px;background:#174b60;color:#edfffa;font:750 12px var(--font-body,Archivo,Arial,sans-serif);cursor:pointer;white-space:nowrap}
body[data-ui=cup] .stage-help span{margin-left:5px;color:var(--game-lime)}
body[data-ui=cup] .stage-help:disabled{display:none}
body[data-ui=cup] .race-help{min-height:44px;font-size:12px;border-color:#72c8d2;color:#c9ff94}
body[data-ui=cup] #saved-race h2{font-size:20px;font-weight:850;color:#ceff91;margin:12px 0}
body[data-ui=cup] #saved-race p{font-size:14px;line-height:1.5;color:#c0dde4}
body[data-ui=cup] #resume-race{width:100%;min-height:50px;margin-top:16px}
body[data-ui=cup][data-race-state=entry] .stage-caption .caption-lines{min-width:0}
@media(max-width:760px){body[data-ui=cup] .stage-help{padding:7px 9px;font-size:11px}body[data-ui=cup] #tactic-cue{font-size:10px;line-height:1.3}body[data-ui=cup] .grid-sign>span{font-size:8px}body[data-ui=cup] .race-broadcast>strong{font-size:35px}}

/* Painted scenery and the same racers used on the course. */
body[data-ui=cup] .cup-route-art{pointer-events:none;background-size:cover;background-position:center;overflow:hidden}
body[data-ui=cup] .cup-route-art[data-route="0"],body[data-ui=cup] .guide-grid{background-image:url('./art/reef-edge-v1.webp')}
body[data-ui=cup] .cup-route-art[data-route="1"],body[data-ui=cup] .guide-energy{background-image:url('./art/open-water-v1.webp')}
body[data-ui=cup] .cup-route-art[data-route="2"],body[data-ui=cup] .guide-gates{background-image:url('./art/current-channel-v1.webp')}
body[data-ui=cup] .coach-routes label{padding-top:0;gap:6px}
body[data-ui=cup] .coach-routes label>.cup-route-art{height:49px;width:calc(100% + 12px);max-width:none;border-radius:9px 9px 0 0;box-shadow:inset 0 -12px 12px -12px #011c2c;filter:saturate(.9);transition:filter .18s}
body[data-ui=cup] .coach-routes label:has(:checked)>.cup-route-art{filter:saturate(1.2) brightness(1.12)}
body[data-ui=cup] :is(.coach-routes,.coach-paces) label>input{z-index:2}
body[data-ui=cup] .coach-paces label{gap:3px;padding-left:3px;padding-right:3px;overflow:visible}
body[data-ui=cup] .coach-paces label>.cup-pace-art{display:block;position:relative;isolation:isolate;flex:0 0 42px;height:31px;pointer-events:none}
body[data-ui=cup] .cup-pace-art .racer-art{width:43px;height:31px;position:absolute;right:0;top:0;z-index:1}
body[data-ui=cup] .cup-pace-art .pace-wake{position:absolute;left:-3px;right:9px;top:5px;height:21px;background:radial-gradient(ellipse at right,#6dd5df66,transparent 75%);border-radius:50%;transform:rotate(-7deg)}
body[data-ui=cup] .cup-pace-art[data-pace="1"] .pace-wake{background:repeating-linear-gradient(0deg,transparent 0 5px,#8eeaf0aa 6px 7px,transparent 8px 10px);mask-image:linear-gradient(90deg,transparent,#000);width:28px}
body[data-ui=cup] .cup-pace-art[data-pace="2"] .pace-wake{background:repeating-linear-gradient(-12deg,transparent 0 4px,#ffd592 5px 6px,transparent 7px 9px);mask-image:linear-gradient(90deg,transparent,#000);width:34px;filter:drop-shadow(0 0 4px #ffb257)}
body[data-ui=cup] .cup-pace-art[data-pace="2"] .racer-art{transform:rotate(-12deg);filter:drop-shadow(-3px 2px 3px #ee9e4760)}
body[data-ui=cup] .guide-steps li{grid-template-columns:112px 1fr;gap:18px}
body[data-ui=cup] .guide-art{height:108px;border:1px solid #74c8c85e;background-size:cover;background-position:center;box-shadow:inset 0 0 18px #001d2a66,0 5px 15px #0002;isolation:isolate}
body[data-ui=cup] .guide-art::before{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#04273466,transparent);z-index:-1}
body[data-ui=cup] .guide-grid{display:block}
body[data-ui=cup] .guide-grid .racer-art{position:absolute;width:65px;height:35px;left:8px;top:8px}
body[data-ui=cup] .guide-grid .racer-art:nth-child(2){left:40px;top:38px;width:59px}
body[data-ui=cup] .guide-grid .racer-art:nth-child(3){left:9px;top:69px;width:78px}
body[data-ui=cup] .guide-energy{gap:5px;align-items:center}
body[data-ui=cup] .guide-energy i{display:grid;place-items:center;width:26px;height:38px;border-radius:13px;background:linear-gradient(130deg,#fff4b8,#d3a747 45%,#97651f 48%,#f2d572);border:2px solid #ffedac;box-shadow:0 4px 0 #715521,0 7px 12px #021c3299;transform:rotate(-9deg);color:#fff8c3}
body[data-ui=cup] .guide-energy i:nth-child(2){transform:translateY(-12px)}
body[data-ui=cup] .guide-energy i:nth-child(3){transform:rotate(9deg)}
body[data-ui=cup] .guide-energy .game-icon{width:20px;height:25px;fill:#fff3ad;stroke:#795724;stroke-width:1.1;filter:drop-shadow(0 1px 1px #604b27)}
body[data-ui=cup] .guide-gates svg{width:100%;height:100%;filter:drop-shadow(0 2px 3px #001822)}
@media(max-width:760px){
 body[data-ui=cup] .coach-routes label{padding-top:0;gap:4px}
 body[data-ui=cup] .coach-routes label>.cup-route-art{height:34px;width:calc(100% + 8px)}
 body[data-ui=cup] .coach-paces label>.cup-pace-art{flex-basis:34px;height:28px}
 body[data-ui=cup] .cup-pace-art .racer-art{width:36px;height:28px}
 body[data-ui=cup] .coach-paces label>span:not(.cup-pace-art){font-size:12px}
 body[data-ui=cup] .guide-steps li{grid-template-columns:88px 1fr;gap:12px;align-items:start}
 body[data-ui=cup] .guide-art{height:101px}
 body[data-ui=cup] .guide-grid .racer-art{left:1px;width:61px}
 body[data-ui=cup] .guide-grid .racer-art:nth-child(2){left:26px;width:57px}
 body[data-ui=cup] .guide-grid .racer-art:nth-child(3){left:1px;width:76px;top:65px}
 body[data-ui=cup] .guide-energy{gap:3px}
 body[data-ui=cup] .guide-energy i{width:21px;height:33px}
}
@media(max-width:360px){
 body[data-ui=cup] .coach-paces label>.cup-pace-art{flex-basis:25px}
 body[data-ui=cup] .cup-pace-art .racer-art{width:30px}
 body[data-ui=cup] .coach-routes strong{font-size:11px}
 body[data-ui=cup] .coach-routes small{font-size:11px}
}

@media(forced-colors:active){body[data-ui=cup] #course{appearance:auto;-webkit-appearance:auto;background-image:none}}

/* Show the cost of speed alongside the route, before a move is locked. */
.coach-routes .route-tradeoff { color: #f2d997; font-weight: 750; font-size: 12px; margin-top: 7px; }
.coach-energy { flex-wrap: wrap; }
.coach-energy .coach-fatigue { margin-left: auto; padding: 6px 10px; border-radius: 8px; background: #071f2b; color: #f2d997; font-size: 12px; }
@media(max-width: 520px) {
 .coach-routes .route-tradeoff { font-size: 10px; }
}

/* One stationary control surface for setup, gate choices, and results. */
body[data-ui=cup] .arena{overflow-anchor:none}
body[data-ui=cup] .race-ticket,
body[data-ui=cup]:is([data-race-state=entry],[data-race-state=swimming],[data-race-state=decision],[data-race-state=finished]) .race-ticket{justify-content:flex-start;border-top:0}
body[data-ui=cup] .ticket-content{display:grid;align-items:start}
body[data-ui=cup] .ticket-content>.ticket-play,body[data-ui=cup] .ticket-content>#finish{grid-area:1/1;min-width:0}
body[data-ui=cup] .coach-heading{box-sizing:border-box;min-height:var(--picker-height,150px);padding-top:8px}
body[data-ui=cup][data-race-state=entry] .coach-heading{display:none}
body[data-ui=cup] .ticket-actions{display:grid;margin-top:10px;min-height:60px;align-items:start}
body[data-ui=cup] .ticket-actions>button{grid-area:1/1}
body[data-ui=cup] .ticket-footer{min-height:78px}
body[data-ui=cup] .ticket-footer .finish-actions{margin-top:8px}
body[data-ui=cup] #standings{box-sizing:border-box;height:64px;flex:none}
body[data-ui=cup][data-race-state=entry] #standings{display:flex;visibility:hidden}
body[data-ui=cup] .coach-routes label>span:not(.cup-route-art){min-height:98px}
body[data-ui=cup] .coach-tip{min-height:53px}
@media(max-width:760px){
 body[data-ui=cup] .race-ticket,
 body[data-ui=cup]:is([data-race-state=entry],[data-race-state=swimming],[data-race-state=decision],[data-race-state=finished]) .race-ticket{border-top:1px solid #54788d66}
 body[data-ui=cup] .water-stage,
 body[data-ui=cup].has-race .water-stage,
 body[data-ui=cup]:not([data-race-state=entry]) .water-stage{height:240px;min-height:240px;flex:none}
 body[data-ui=cup] #standings{height:48px}
 body[data-ui=cup] .coach-routes label>span:not(.cup-route-art){min-height:102px}
 body[data-ui=cup] .coach-tip{min-height:51px}
 body[data-ui=cup] .ticket-actions{min-height:54px}
 body[data-ui=cup] .ticket-footer{min-height:80px}
}

body[data-ui=cup] .coach-routes label small{color:#d5e9ed}body[data-ui=cup] .coach-routes .route-tradeoff{color:#f2d997}
