:root{--app-bg:#08172b;--app-paper:#101f34;--app-line:#29445f;--app-sky:#8de1ff;--app-copy:#bbcee4;--app-white:#f3f7fe;--app-blue:#244c7e;--app-safe:env(safe-area-inset-bottom,0px)}
body.tios-app{background:radial-gradient(ellipse 100% 28% at 50% 0,#164275,#08172b 72%);color:var(--app-white)}
.tios-app .shell{width:min(calc(100% - 28px),560px);margin-inline:auto}.tios-app .top{background:#08172bf2;border-color:#314c6d88;padding-top:env(safe-area-inset-top,0px)}.tios-app .top-inner{height:55px}.tios-app .brand img{width:136px}.app-info{min-width:44px;height:44px;display:grid;place-items:center;border:1px solid #405d7c;background:#152d4a;color:#dcf6ff;border-radius:12px}.app-info svg{width:20px;height:20px}
.tios-app main{padding-bottom:calc(76px + var(--app-safe));min-height:calc(100dvh - 55px)}.tios-app main>footer{padding:12px 0 0;margin:0}.tios-app .view{padding-top:14px;animation:app-enter .24s ease both}
.app-dash,.app-score-head,.app-sectionhead{display:flex;justify-content:space-between;align-items:center;gap:9px}.app-dash{margin:0 0 10px}.app-eyebrow,.app-tag{font-size:10px;font-weight:820;letter-spacing:.125em;color:#a5dcfc;line-height:1.45}.app-dash h1,.tios-app .viewintro h1{font:900 clamp(33px,9vw,46px)/.99 system-ui,sans-serif;letter-spacing:-.061em;margin:2px 0 4px}.app-context,.tios-app .viewintro p:not(.kicker){color:var(--app-copy);font-size:14px;line-height:1.35}
.season-token{display:flex;align-items:center;justify-content:center;gap:6px;padding:7px 10px;background:#203a5d;border:1px solid #527da6;border-radius:16px;color:#e5f3ff;font-size:12px;font-weight:750;letter-spacing:.04em;flex-shrink:0}.season-token i{width:6px;height:6px;border-radius:50%;background:var(--app-sky);box-shadow:0 0 9px #50d5ff80}
.app-score{padding:12px;border:1px solid #4c78a2;border-radius:15px;background:radial-gradient(ellipse at 100% 0,#326698,#1b3c6b 42%,#142c53 85%);box-shadow:0 9px 25px #040b174d}.app-score h2{font-size:20px;line-height:1.06;letter-spacing:-.045em;margin:2px 0}.app-link{padding:4px 6px;color:var(--app-sky);min-height:44px;font-size:13px;font-weight:830;text-decoration:underline;text-underline-offset:4px;text-decoration-color:#78abc0;flex-shrink:0}.app-link:active{opacity:.8}
.tios-app .app-score .score{margin:7px 0 0;gap:5px}.tios-app .app-score .score button{border-radius:9px;min-height:57px;background:#0b203eb3;border-color:#6382a67a;padding:6px 7px}.tios-app .app-score .score b{font-size:clamp(25px,8vw,37px);line-height:1;font-weight:880;color:#f8fbff;margin:0}.tios-app .app-score .score small{margin-top:4px;font-size:11px;color:#c3d7ef}
.app-modules{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0 12px}.app-modules button{display:grid;grid-template-columns:30px minmax(0,1fr);align-items:center;text-align:left;gap:7px;padding:8px 6px;min-height:61px;border-radius:11px;border:1px solid #385575;background:#152744}.app-modules button:active,.app-stat-row:active{background:#224364}.module-icon{height:30px;width:30px;display:grid;place-items:center;border-radius:9px;background:#264c72;color:#a2e7ff}.module-icon.gold{background:#4b4338;color:#ffdc98}.module-icon svg{width:16px;height:16px}.app-modules strong,.app-modules small{display:block}.app-modules strong{font-size:13px;font-weight:800;line-height:1.08}.app-modules small{font-size:11px;color:#bacce2;line-height:1.14;margin-top:4px}
.app-leaders{display:grid;gap:6px;padding:0}.app-sectionhead h2,.app-team h2{font-size:24px;font-weight:880;letter-spacing:-.051em;line-height:1.01}.tios-app .app-leader-tabs{margin:0;width:auto;padding:2px;gap:4px}.tios-app .app-leader-tabs button{font-size:12px;min-height:44px;padding:3px 8px}.app-stat-set{position:relative;border-bottom:1px solid #284662;padding:5px 0;color:#f6fbff}.app-stat-label{display:block;padding:2px 0 0 3px;color:#a9c7e3;font-size:11px;font-weight:780}.app-stat-row{width:100%;display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:7px;min-height:45px;padding:3px 5px;border-radius:7px;text-align:left}.app-stat-avatar{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;color:#b3e7ff;font-size:10px;font-weight:860;background:#1b385d}.app-stat-row strong{font-size:14px;font-weight:740}.app-stat-row b{font-size:20px;font-weight:900;color:#aee7ff;letter-spacing:-.04em;font-variant-numeric:tabular-nums}.app-stat-tie{position:absolute;right:5px;top:7px;color:#ffdf9e;font-size:10px;font-weight:800}
.app-team{margin-top:12px;display:grid;grid-template-columns:77px minmax(0,1fr);gap:7px;align-items:center;min-height:93px;border:1px solid #3a5f84;border-radius:13px;background:radial-gradient(ellipse at 0 50%,#2c5788,#142945 70%);padding:5px 9px;overflow:hidden}.app-mascot{width:77px;height:77px;object-fit:contain;filter:drop-shadow(0 4px 8px #061328b0)}.app-team .app-link{min-height:38px;text-align:left;padding-left:0}
.tios-app .dock{width:100%;left:0;right:0;transform:none;max-width:none;border-radius:0;padding:4px 12px calc(4px + var(--app-safe));background:#0d213bfa;border:0;border-top:1px solid #365777}.tios-app .dock>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;max-width:560px;width:100%;margin-inline:auto}.tios-app .dock button{border-radius:9px;min-height:49px;font-size:11px;font-weight:780;padding-inline:0;transition:background .18s,color .18s}.tios-app .dock button[aria-current=page]{background:#234d7b;color:#b1eaff}.tios-app .dock svg{width:20px;height:20px}
.tios-app .viewintro{margin:0 0 9px}.tios-app .switch{background:#102640;border-color:#2b496a}.tios-app .switch button[aria-pressed=true]{background:#284e7b;color:#e4f3ff;border-color:#4c7798}.tios-app .chips{max-width:100%;display:flex;white-space:nowrap;overflow:auto;scrollbar-width:thin;overscroll-behavior-inline:contain}.tios-app .chips button{flex:0 0 auto}.tios-app .search,.tios-app .ranks,.tios-app .person,.tios-app .card{background:#122740;border-color:#355270}.tios-app .search input,.tios-app select{font-size:16px}.tios-app .awards-intro{padding:13px 12px 12px;border-radius:13px;background:linear-gradient(118deg,#223c5c,#1c2a40);border-color:#665b4e}.tios-app .awards-intro h1{margin:5px 0 7px;font-size:clamp(31px,8vw,41px);max-width:82%}.tios-app .awards-orbit{opacity:.42}.tios-app .sheet{background:#132842;border-color:#355a7c}.tios-app .app-info-sheet>img{margin-top:8px;width:100%;height:auto;max-height:234px;object-fit:cover;object-position:center 33%;border-radius:11px}.app-info-sheet>p:not(.kicker){color:#d4e5fa;line-height:1.48;margin:9px 0;font-size:15px}.app-info-sheet .run{margin-top:2px}.tios-app [hidden]{display:none!important}
@keyframes app-enter{from{opacity:.64;transform:translateY(5px)}to{opacity:1;transform:none}}
@media(min-width:740px){body.tios-app{background:radial-gradient(ellipse 58% 32% at 50% 0,#214e82,#08172b 67%)}.tios-app .app-modules button{padding:8px 13px}.tios-app .app-dash{margin-bottom:14px}.tios-app .app-score{padding:15px}}
@media(prefers-reduced-motion:reduce){.tios-app .view{animation:none!important}.tios-app button{transition:none!important}}
.tios-app .player-export .wa{color:#f3fff9}

.tios-app .player-export{display:flex;align-items:center;gap:10px;margin:12px 0 8px}
.tios-app .player-export img{display:block;width:48px;height:59px;object-fit:contain;border:1px solid #6190b4;border-radius:6px;background:#0c1a30}
.tios-app .player-export .run{flex:1;width:auto;min-height:48px;margin:0;font-size:15px;color:#08172b;background:#8de1ff;border-color:#acdeee;box-shadow:none}
.tios-app .player-export .run:disabled{opacity:.55;cursor:wait}

.tios-app .bori-credit{display:flex;align-items:baseline;flex-wrap:wrap;gap:0 .35em;margin-top:8px;color:#bed3eb;font-size:14px;line-height:1.45}
.tios-app .bori-credit a{display:inline-flex;align-items:center;gap:6px;min-height:44px;color:#a7e9ff;text-decoration:underline;text-underline-offset:3px;font-weight:750}
.bori-youtube{font-size:11px;font-weight:750;color:#ffc2be;background:#462d3d;padding:2px 6px;border-radius:6px}
.tios-app .bori-credit-card{margin:0 0 4px}
.tios-app .bori-feature{display:grid;grid-template-columns:56px minmax(0,1fr);align-items:center;gap:12px;min-height:80px;margin:14px 0 0;padding:10px 12px;background:linear-gradient(115deg,#1d4566,#112640 72%);border:1px solid #47759a;border-radius:13px;color:#f3f7fe;text-decoration:none}
.bori-logo{display:block;width:56px;height:56px;object-fit:cover;border-radius:50%;box-shadow:0 0 0 1px #7f9bb9}
.bori-feature small,.bori-feature strong,.bori-feature-note{display:block}.bori-feature small{color:#aee6ff;font-size:11px;letter-spacing:.07em;font-weight:800}.bori-feature strong{font-size:18px;line-height:1.25}.bori-feature-note{color:#c8dcef;font-size:13px;margin-top:2px}
.bori-feature:focus-visible,.bori-credit a:focus-visible{outline:2px solid #8de1ff;outline-offset:3px}

.bori-feature-note{color:#a7e9ff;font-weight:750;text-decoration:underline;text-underline-offset:3px}

/* Same v17 app-blue visual language; current sections match it. */
.tios-app .brand img{width:105px;height:49px;object-fit:contain;background:transparent}
.tios-app .app-score .score b{white-space:nowrap;font-variant-numeric:tabular-nums}
.tios-app .dock>div{grid-template-columns:repeat(6,minmax(0,1fr));gap:2px}
.tios-app .dock button{padding-inline:0}
.tios-app .dock button span{white-space:nowrap}
@media(max-width:420px){.tios-app .dock{padding-inline:6px}.tios-app .dock button span{font-size:.63rem}}
.tios-app .compare-entry{margin:-2px 0 6px;padding-inline:0;color:#a7e9ff;text-decoration:underline;text-underline-offset:4px}
.tios-app .compare-note{font-size:.79rem!important;margin-top:.45rem}
.video-list,.sponsor-grid{display:grid;gap:8px}
.match-video{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:9px;align-items:center;min-height:68px;padding:9px 10px;background:#152744;color:#f4fbff;border:1px solid #385575;border-radius:12px;text-decoration:none}
.match-video:hover,.match-video:active{background:#214568;border-color:#6993b5}
.match-play{width:38px;height:38px;border-radius:9px;background:#294e79;color:#c0edff;display:grid;place-items:center}
.match-copy{min-width:0}.match-copy strong,.match-copy small{display:block}.match-copy strong{font-size:.95rem;line-height:1.22}.match-copy small{margin-top:4px;font-size:.76rem;color:#c6dbef}
.match-time{white-space:nowrap;color:#d7e7f7;font-size:.72rem;font-variant-numeric:tabular-nums}
.video-credit{display:flex;gap:10px;align-items:center;margin:13px 0 3px;padding:10px 11px;border:1px solid #345471;border-radius:12px;background:#132741;color:#e8f3ff;font-size:.87rem}
.video-credit img{border-radius:50%;flex:none}.video-credit a{color:#a7e9ff;display:inline-flex;min-height:44px;align-items:center}
.sponsor-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sponsor-card{display:grid;min-height:130px;border:1px solid #385575;border-radius:13px;background:#142944;color:#f3f8ff;padding:10px;text-align:center}
.sponsor-card a{display:grid;align-content:center;justify-items:center;gap:8px;color:inherit;text-decoration:none}.sponsor-card a:hover h2{text-decoration:underline}
.sponsor-card img{width:100%;height:76px;object-fit:contain;border-radius:7px}.sponsor-card h2{margin:0;font-size:.91rem}.creator-credit{display:flex;justify-content:center;gap:4px;color:#c8d8ea;border-top:1px solid #395975;padding-top:12px;margin-top:16px;font-size:.86rem}
#sponsor-recarro img{height:65px;background:#000;padding:3px}
#sponsor-grullon img{width:81px;height:76px;object-fit:fill;clip-path:ellipse(49.5% 49.5%)}
#sponsor-credi img,#sponsor-playado img{width:77px;height:77px}
#sponsor-credi img{clip-path:circle(49.5%)}
@media(min-width:561px){.sponsor-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
.tios-app :focus-visible{outline:2px solid #99dcff;outline-offset:3px}
@keyframes stat-settle{from{opacity:.5;transform:translateY(5px)}to{opacity:1;transform:none}}
@keyframes sponsor-arrive{from{opacity:.42;transform:translateY(10px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:no-preference){
 .tios-app .app-score .score button b,.tios-app .app-stat-row{animation:stat-settle .3s cubic-bezier(.22,.76,.38,1) both}
 .tios-app .sponsor-card{animation:sponsor-arrive .38s ease-out both}
 .tios-app .sponsor-card:nth-child(2){animation-delay:40ms}
 .tios-app .sponsor-card:nth-child(3){animation-delay:80ms}
 .tios-app .sponsor-card:nth-child(4){animation-delay:120ms}
}
.season-source{min-height:44px;text-decoration:none;color:#e7f6ff}.season-source small{display:block;font-size:.66rem;font-weight:600;letter-spacing:0;color:#cce3f9;margin-top:2px}.tios-app .app-score .score small{white-space:nowrap}
.context-cut{margin:-.25rem 0 .7rem;color:#c4d6e9;font-size:.79rem}
.metric-strip{display:flex;align-items:flex-start;gap:4px}.metric-strip .chips{flex:1;min-width:0;max-width:100%}
#metric-next{min-width:44px;min-height:44px;border:1px solid #6e97c0;border-radius:9px;background:#214568;color:#e7f7ff;font-size:1.35rem}
.tios-app .player-export{display:flex;align-items:center;gap:8px}.tios-app .export-actions{min-width:0;flex:1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
.tios-app .export-actions .run,.tios-app .export-actions .ghost{min-width:0;width:100%;min-height:46px;padding:5px;margin:0;line-height:1.16;font-size:.78rem}
.tios-app .export-actions .ghost{border-color:#5c82a9}.tios-app .export-actions .ghost:disabled{opacity:.55}

/* A single red play cue; the approved palette is unchanged elsewhere. */
.tios-app .match-play{background:#421924;color:#ff727b;border:1px solid #88424c}
/* Celebrate entering the trophy room with a smooth, pausable turn. */
.tios-app .awards-orbit{perspective:220px}
.tios-app .awards-orbit svg{animation:none;transform-origin:center}
@keyframes trophy-turn{from{transform:rotateY(0deg)}to{transform:rotateY(360deg)}}
@media(prefers-reduced-motion:no-preference){
 #view-trofeos:not([hidden]) .awards-orbit svg{animation:trophy-turn 6s linear infinite}
}
@media(prefers-reduced-motion:reduce){#view-trofeos .awards-orbit svg{animation:none!important;transform:none!important}}

.trophy-motion{min-height:44px;padding:5px 0;text-decoration:underline;text-underline-offset:4px;font-size:.78rem;color:#ffdf9e;font-weight:750}
#view-trofeos.trophy-paused .awards-orbit svg{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){.trophy-motion{display:none}}
