/* Shared viewport, script and media corrections; actual drill DOM and game handlers stay intact. */
html[lang=ar]{--body:'Noto Sans Arabic',Tahoma,Arial,sans-serif;--disp:'Noto Sans Arabic',Tahoma,Arial,sans-serif}
html[lang=hi]{--body:'Noto Sans Devanagari',system-ui,sans-serif;--disp:'Noto Sans Devanagari',system-ui,sans-serif}
html[lang=zh]{--body:'PingFang SC','Microsoft YaHei',system-ui,sans-serif;--disp:'PingFang SC','Microsoft YaHei',system-ui,sans-serif}
html[lang=ar] h1,html[lang=ar] h2,html[lang=ar] .disp,html[lang=hi] .disp,html[lang=zh] .disp{line-height:1.3;letter-spacing:0!important;overflow-wrap:anywhere}
.locale-status{position:relative;margin:12px auto;padding:10px 16px;max-width:1180px;background:#161e2a;color:#c3cfdb;border:1px solid #35475b;border-radius:10px;font:12px/1.6 var(--body,system-ui);text-align:start}
html[data-game=hub] .trailer-card{align-items:center}
html[data-game=hub] .trailer-card video{height:auto!important;min-height:0!important;max-height:none;aspect-ratio:16/9;object-fit:contain!important;background:#030608}
html[data-game=hub] .fan,html[data-game=hub] .pc,html[data-game=hub] .scene{direction:ltr;unicode-bidi:isolate}
html[dir=rtl][data-game=hub] .topact{margin-left:0;margin-inline-start:auto}
html[dir=rtl][data-game=hub] .game .scene{right:auto;left:0;transform:scaleX(-1)}
html[dir=rtl][data-game=hub] .game .game-head,html[dir=rtl][data-game=hub] .game .foot-row{position:relative;z-index:1}
html[dir=rtl][data-game=hub] .game .desc{max-width:62%;margin-inline-end:auto}
html[dir=rtl][data-game=hub] .game h3{max-width:70%;overflow-wrap:anywhere;line-height:1.35}
html[dir=rtl][data-game=hub] .game .features{position:relative;z-index:1}
html[dir=rtl][data-game=hub] .pc .nm,html[dir=rtl][data-game=hub] .pc .sub{direction:rtl;unicode-bidi:plaintext;text-align:right}
html[dir=rtl][data-game=hub] .pc .ovr,html[dir=rtl][data-game=hub] .pc .pos{align-self:flex-start}
html[dir=rtl] .lc-map,html[dir=rtl] .lc-tactics,html[dir=rtl] .lc-figure,html[dir=rtl] .tn-meter,html[dir=rtl] .es-timing,html[dir=rtl] .cs-aim,html[dir=rtl] .f1-lights,html[dir=rtl] .f1-lane,html[dir=rtl] .tn-drill-field{direction:ltr;unicode-bidi:isolate}
html[dir=rtl] .tn-drill-field p,html[dir=rtl] .tn-drill-field button{direction:rtl}
html[dir=rtl] .fc-name,html[dir=rtl] .fc-ids,html[dir=rtl] .rank-row,html[dir=rtl] .history-row{unicode-bidi:plaintext}
body.legend-training-active{overflow:hidden!important}
body .legend-training{position:fixed!important;inset:0!important;z-index:1000!important;width:100%!important;max-width:none!important;height:100dvh!important;min-height:100svh;margin:0!important;border:0!important;border-radius:0!important;background:radial-gradient(ellipse at 50% 10%,#203047,#080e17 75%)!important;padding:max(24px,env(safe-area-inset-top)) max(24px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left))!important;overflow:auto!important;overscroll-behavior:contain;display:flex!important;flex-direction:column;align-items:stretch;box-sizing:border-box;isolation:isolate}
body .legend-training>*{width:min(100%,1100px);margin-inline:auto;flex-shrink:0}
body .legend-training h1,body .legend-training h2{margin-block:12px;margin-inline:auto;font-size:clamp(26px,4vw,54px)}
body .legend-training .tn-drill-field{flex:1;min-height:180px;max-height:none;display:flex;flex-direction:column;justify-content:center;padding:clamp(16px,3vh,40px)}
body .legend-training .cs-aim{height:clamp(230px,48dvh,600px);min-height:230px;width:100%;max-width:none}
body .legend-training .es-timing{margin-block:auto;min-height:96px;flex-shrink:0}
body .legend-training .go{margin-block-start:20px;padding-block:8px;position:relative;bottom:auto}
body .legend-training .es-scenario,body .legend-training .ufc-drill-choices{margin-block:auto;padding-block:20px}
body .legend-training :is(.btn,.opt){min-height:48px;touch-action:manipulation}
body.legend-training-active .locale-status{display:none}
.route-intro{margin:48px auto 24px;max-width:1180px;width:calc(100% - 32px);padding:20px 22px 24px;line-height:1.65;font-size:15px;color:#b9c6d2;background:#0d1720;border:1px solid #22344a;border-radius:14px}.route-intro h2{margin:0 0 8px;font-size:20px;color:#eaf1f3}.route-intro h3{margin:18px 0 6px;font-size:15px;color:#dbe5ec}.route-intro p{margin:6px 0}.route-intro ul{margin:6px 0;padding-inline-start:20px}.route-intro figure{margin:14px 0}.route-intro img{display:block;width:100%;max-width:640px;height:auto;border-radius:10px;border:1px solid #22344a}
.route-intro a{color:#f2c14e}.route-intro nav{display:flex;flex-wrap:wrap;gap:6px 14px}.legend-training-active .route-intro{display:none}@media(max-width:760px){.route-intro{margin-bottom:96px;font-size:14px;padding:16px}}
@media(max-width:600px){body .legend-training{padding:16px!important;padding-top:max(16px,env(safe-area-inset-top))!important;padding-bottom:max(16px,env(safe-area-inset-bottom))!important}body .legend-training .tn-drill-field{padding:14px;min-height:160px}body .legend-training .cs-aim{height:40dvh;min-height:200px}body .legend-training .go{margin-top:12px}body .legend-training p{font-size:14px}html[dir=rtl][data-game=hub] .game .desc{max-width:100%}html[dir=rtl][data-game=hub] .game .scene{opacity:.25}html[dir=rtl][data-game=hub] .game h3{max-width:100%}}
@media(prefers-reduced-motion:reduce){.legend-training *{scroll-behavior:auto!important}}

html[lang=ar][data-game=hub] .game h3,html[lang=hi][data-game=hub] .game h3,html[lang=zh][data-game=hub] .game h3{font-family:var(--body);font-size:clamp(26px,3vw,42px);line-height:1.4;letter-spacing:0;text-transform:none}
html[lang=ar][data-game=hub] .game.feat h3,html[lang=hi][data-game=hub] .game.feat h3,html[lang=zh][data-game=hub] .game.feat h3{font-size:clamp(28px,4vw,48px)}
html[lang=ar][data-game=hub] .hero h1,html[lang=hi][data-game=hub] .hero h1,html[lang=zh][data-game=hub] .hero h1{font-size:clamp(40px,7vw,76px)}
html[lang=ar][data-game=hub] .sw,html[lang=hi][data-game=hub] .sw,html[lang=zh][data-game=hub] .sw{line-height:1.5;font-size:clamp(24px,4vw,42px)}
html[lang=ar][data-game=hub] .pc .nm,html[lang=hi][data-game=hub] .pc .nm,html[lang=zh][data-game=hub] .pc .nm{font-size:25px;line-height:1.3}
/* RTL cards reserve an actual illustration column instead of placing text over SVG. */
html[dir=rtl][data-game=hub] .game{display:grid;grid-template-columns:minmax(0,1fr) minmax(100px,.6fr);column-gap:16px;align-items:start}
html[dir=rtl][data-game=hub] .game>*{grid-column:1;min-width:0}
html[dir=rtl][data-game=hub] .game .scene{position:relative;inset:auto;grid-column:2;grid-row:1/4;width:100%;height:170px;z-index:0;mask:none;-webkit-mask:none;opacity:1;align-self:center;transform:scaleX(-1)}
html[dir=rtl][data-game=hub] .game .scene svg{inset:0;width:100%;height:100%;object-fit:contain}
html[dir=rtl][data-game=hub] .game h3,html[dir=rtl][data-game=hub] .game .d{max-width:100%;width:100%}
html[dir=rtl][data-game=hub] .game .chips,html[dir=rtl][data-game=hub] .game .foot-row{grid-column:1/-1}
@media(max-width:600px){html[dir=rtl][data-game=hub] .game{grid-template-columns:minmax(0,1fr);gap:12px}html[dir=rtl][data-game=hub] .game .scene{grid-column:1;grid-row:auto;width:min(100%,240px);height:145px;justify-self:center}html[dir=rtl][data-game=hub] .game .sport{grid-row:1}html[dir=rtl][data-game=hub] .game h3{font-size:30px}html[dir=rtl][data-game=hub] .game.feat h3{font-size:34px}}

.locale-offer a{color:#ffd76a;font-weight:700;text-decoration:none}.locale-offer a:hover{text-decoration:underline}
body .legend-training :is(p,h1,h2,.muted,.small){unicode-bidi:plaintext}
/* Language names in menus must not pull the Arabic/Devanagari webfonts (~280 KB) into other locales. */
html:not([lang=ar]) [lang=ar],html:not([lang=hi]) [lang=hi]{font-family:system-ui,-apple-system,'Segoe UI',Roboto,Tahoma,sans-serif}
/* promo shelf (core/promo-runtime.js); names avoid words generic filter lists hide */
.lg-shelf{position:relative;box-sizing:border-box;max-width:1180px;width:calc(100% - 32px);margin:32px auto 0;padding:8px 40px 6px 12px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#0d1720;border:1px solid #22344a;border-radius:14px;contain:layout paint}
.lg-shelf-body{display:flex;flex-direction:column;align-items:center;gap:4px;width:100%;min-width:0}
.lg-shelf-note{order:2;margin:0;font-size:10px;line-height:1.3;color:#8597a8}
.lg-shelf-frame{display:block;max-width:100%;border:0;overflow:hidden}
.lg-shelf-x{position:absolute;top:6px;inset-inline-end:8px;width:26px;height:26px;border-radius:50%;border:1px solid #2c4058;background:#0b141d;color:#9fb0c0;font:16px/1 system-ui;cursor:pointer}
.lg-shelf-card{display:flex;align-items:center;gap:12px;width:100%;max-width:728px;min-width:0;padding:8px 12px;box-sizing:border-box;text-decoration:none;color:#eaf1f3;border:1px solid #22344a;border-radius:10px;background:linear-gradient(90deg,rgba(42,171,238,.12),rgba(42,171,238,.02))}
a.lg-shelf-card:hover{border-color:#2AABEE}
.lg-shelf-ic svg{width:36px;height:36px;display:block}
.lg-shelf-t{display:grid;flex:1;min-width:0}.lg-shelf-t b{font-size:17px}.lg-shelf-t span{font-size:13px;color:#9fb0c0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lg-shelf-go{padding:8px 12px;border-radius:8px;background:#2AABEE;color:#04121c;font-weight:700;font-size:12px;white-space:nowrap}
.lg-shelf-series{flex-wrap:wrap;background:none}.lg-shelf-series b{font-size:14px}.lg-shelf-links{display:flex;flex-wrap:wrap;gap:6px 14px}.lg-shelf-links a{color:#f2c14e;font-size:14px}
.lg-shelf-preview{display:flex;align-items:center;justify-content:center;max-width:100%;border:1px dashed #3b5671;border-radius:8px;color:#8597a8;font:12px system-ui}
.legend-training-active .lg-shelf{display:none}
@media(max-width:760px){.lg-shelf{width:calc(100% - 16px);margin-top:20px;padding:6px 34px 4px 8px}.lg-shelf-t span{display:none}.lg-shelf-ic svg{width:28px;height:28px}}
.lg-shelf-pitch{order:3;font-size:12px;color:#9fb0c0;text-decoration:none;text-align:center}.lg-shelf-pitch b{color:#f2c14e;font-weight:600}.lg-shelf-pitch:hover b{text-decoration:underline}
.lg-over{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(4,10,16,.72);animation:lg-over-in .2s ease-out}
@keyframes lg-over-in{from{opacity:0}to{opacity:1}}
.lg-shelf.lg-shelf-over{width:min(780px,100%);margin:0;padding:34px 16px 14px;gap:10px;box-shadow:0 20px 60px rgba(0,0,0,.5)}
.lg-shelf-over .lg-shelf-card{max-width:728px}
.lg-over-go{order:9;padding:9px 18px;border-radius:9px;border:1px solid #2c4058;background:#13202d;color:#eaf1f3;font:600 14px system-ui;cursor:pointer}
.lg-over-go:hover{border-color:#f2c14e}
.legend-training-active .lg-over{display:none}
@media(max-width:760px){.lg-shelf.lg-shelf-over{padding:32px 10px 12px}}
.route-faq{margin:0}.route-faq dt{color:#eaf1f3;font-weight:600;margin-top:10px}.route-faq dd{margin:2px 0 0}
.legend-first-goal{display:grid;gap:7px;padding:16px 18px;margin:16px 0;border:1px solid rgba(216,178,91,.55);border-radius:14px;background:linear-gradient(125deg,rgba(216,178,91,.14),rgba(16,27,35,.92));color:#eaf1f3}
.legend-first-goal .legend-first-kicker{color:#e6c779;font:700 11px/1.3 var(--mono,monospace);letter-spacing:.1em}
.legend-first-goal strong{font-size:clamp(18px,3vw,24px)}
.legend-first-goal small{color:#a9b8bf}
.legend-first-goal button{justify-self:start;margin-top:4px}
