
/* Fantasy IFL */
.fantasy-page{padding-top:2rem;padding-bottom:4rem}
.fantasy-hero{position:relative;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(260px,.8fr);min-height:300px;overflow:hidden;padding:clamp(1.5rem,4vw,3.5rem);color:#fff;background:#12161d;border-radius:22px;isolation:isolate}
.fantasy-hero:before{position:absolute;inset:0;z-index:-1;content:"";background:radial-gradient(ellipse at 75% 30%,rgba(237,74,40,.25),transparent 42%),linear-gradient(120deg,transparent 40%,rgba(255,255,255,.035))}
.fantasy-hero__copy{max-width:590px;align-self:center}
.fantasy-hero .section-kicker{color:#f58a73}
.fantasy-eyebrow{margin:.7rem 0 .2rem;color:#f58a73;font-size:.82rem;font-weight:800;letter-spacing:.18em}
.fantasy-hero h1{margin:.2rem 0 1rem;font-size:clamp(2.6rem,5.6vw,4.5rem);line-height:.98;letter-spacing:-.035em}
.fantasy-hero h1 span{color:#f06445}
.fantasy-hero .section-intro{max-width:470px;color:#c8cbd1;font-size:1.1rem}
.fantasy-primary-link{display:inline-flex;align-items:center;gap:.8rem;margin-top:1rem;padding:.85rem 1.25rem;color:#17202a;background:#fff;border-radius:999px;font-weight:800;text-decoration:none}
.fantasy-primary-link:hover{background:#fce7e2}
.fantasy-hero__visual{position:relative;display:grid;place-items:center;min-height:220px}
.fantasy-hero-ball{display:grid;place-items:center;width:min(220px,80%);aspect-ratio:1;background:linear-gradient(135deg,#f06445,#c83a1e);border-radius:50%;box-shadow:0 25px 70px rgba(237,74,40,.24);transform:rotate(-12deg)}
.fantasy-hero-ball svg{width:66%;fill:none;stroke:#fff;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.fantasy-hero-tag{position:absolute;right:0;bottom:14%;padding:.65rem .9rem;color:#fff;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);border-radius:999px;font-size:.75rem;font-weight:800;letter-spacing:.12em;backdrop-filter:blur(8px)}
.fantasy-hero-line{position:absolute;top:8%;right:8%;width:1px;height:80%;background:rgba(255,255,255,.12);transform:rotate(30deg)}
.fantasy-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin:1.25rem 0 3rem}
.fantasy-summary-card{position:relative;display:grid;grid-template-columns:auto 1fr;column-gap:.85rem;align-content:start;padding:1.25rem;background:#fff;border:1px solid #e7e9ec;border-radius:16px}
.fantasy-summary-icon{grid-row:span 3;display:grid;place-items:center;width:42px;height:42px;color:#ed4a28;background:#fff0ec;border-radius:12px}
.fantasy-summary-icon svg,.fantasy-empty-roster__icon svg,.fantasy-footer-note__icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.fantasy-summary-label{color:#69717c;font-size:.85rem;font-weight:700}
.fantasy-summary-card strong{margin:.2rem 0;font-size:1.25rem}
.fantasy-summary-card small{color:#77808b;line-height:1.35}
.fantasy-section{margin-top:3rem}
.fantasy-section-heading{display:flex;align-items:end;justify-content:space-between;gap:1rem;margin-bottom:1.25rem}
.fantasy-section-heading .section-kicker,.fantasy-pitch-heading .section-kicker,.fantasy-rules-panel .section-kicker{color:#ed4a28;font-size:.75rem;font-weight:800;letter-spacing:.12em}
.fantasy-section-heading h2{margin:.25rem 0 .4rem;font-size:clamp(1.7rem,3vw,2.3rem);letter-spacing:-.02em}
.fantasy-section-heading p{max-width:760px;margin:0;color:#66707c;font-size:1rem;line-height:1.5}
.fantasy-count{display:flex;align-items:baseline;gap:.4rem;flex-shrink:0;padding:.55rem .85rem;background:#fff;border:1px solid #e7e9ec;border-radius:12px}
.fantasy-count strong{font-size:1.3rem}.fantasy-count span{color:#66707c;font-size:.8rem}
.fantasy-formation-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.85rem}
.fantasy-formation-option{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:.4rem;min-height:150px;padding:1.1rem 1.15rem;color:#17202a;background:#fff;border:1px solid #e1e4e8;border-radius:16px;text-align:left;font:inherit;cursor:pointer;transition:border-color .18s,box-shadow .18s,transform .18s}
.fantasy-formation-option:hover{border-color:#f0a18f;transform:translateY(-2px)}
.fantasy-formation-option.is-selected{border:2px solid #ed4a28;padding:calc(1.1rem - 1px) calc(1.15rem - 1px);box-shadow:0 8px 25px rgba(237,74,40,.08)}
.fantasy-formation-number{color:#ed4a28;font-size:2rem;font-weight:800;letter-spacing:-.04em;line-height:1}
.fantasy-formation-option strong{font-size:1.05rem}
.fantasy-formation-option small{max-width:230px;color:#68717c;font-size:.86rem;line-height:1.4}
.fantasy-option-check{position:absolute;top:.85rem;right:.9rem;display:grid;place-items:center;width:25px;height:25px;color:#fff;background:#ed4a28;border-radius:50%;font-weight:800;opacity:0}
.fantasy-formation-option.is-selected .fantasy-option-check{opacity:1}
.fantasy-formation-option:focus-visible{outline:3px solid rgba(237,74,40,.25);outline-offset:3px}
.fantasy-tactics-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(280px,.7fr);gap:1rem;margin-top:1rem}
.fantasy-pitch-panel,.fantasy-rules-panel{padding:1.25rem;background:#fff;border:1px solid #e7e9ec;border-radius:18px}
.fantasy-pitch-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem}
.fantasy-pitch-heading h3,.fantasy-rules-panel h3{margin:.3rem 0 0;font-size:1.35rem}
.fantasy-pitch-badge{padding:.4rem .65rem;color:#287447;background:#e9f6ee;border-radius:999px;font-size:.75rem;font-weight:800}
.fantasy-pitch{position:relative;display:flex;flex-direction:column;justify-content:space-between;gap:2rem;min-height:390px;overflow:hidden;padding:2rem 1rem;color:#fff;background:#247447;border-radius:12px;isolation:isolate}
.fantasy-pitch:before{position:absolute;inset:0;z-index:-1;content:"";background:repeating-linear-gradient(0deg,rgba(255,255,255,.025) 0,rgba(255,255,255,.025) 44px,rgba(0,0,0,.035) 44px,rgba(0,0,0,.035) 88px)}
.fantasy-pitch__markings{position:absolute;inset:0;z-index:-1;pointer-events:none}
.pitch-halfway{position:absolute;top:50%;right:0;left:0;border-top:1px solid rgba(255,255,255,.3)}
.pitch-circle{position:absolute;top:50%;left:50%;width:100px;height:100px;border:1px solid rgba(255,255,255,.3);border-radius:50%;transform:translate(-50%,-50%)}
.pitch-box{position:absolute;left:50%;width:42%;height:42px;border:1px solid rgba(255,255,255,.3);transform:translateX(-50%)}
.pitch-box--top{top:0;border-top:0}.pitch-box--bottom{bottom:0;border-bottom:0}
.fantasy-pitch__line{position:relative;display:flex;align-items:center;justify-content:space-evenly;gap:.6rem}
.fantasy-pitch__line--attack{order:1}.fantasy-pitch__line--base{order:2}
.fantasy-position-token{display:flex;flex:1;max-width:150px;flex-direction:column;align-items:center;gap:.25rem;text-align:center}
.fantasy-position-token svg{width:43px;height:43px;padding:9px;color:#fff;background:#ed4a28;border:2px solid rgba(255,255,255,.8);border-radius:50%;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;box-shadow:0 4px 10px rgba(0,0,0,.16)}
.fantasy-position-token b{font-size:.72rem;letter-spacing:.04em}.fantasy-position-token small{max-width:130px;color:rgba(255,255,255,.83);font-size:.7rem;line-height:1.2}
.fantasy-pitch[data-formation="3-1"]{gap:1.5rem}.fantasy-pitch[data-formation="3-1"] .fantasy-pitch__line--attack{order:1}.fantasy-pitch[data-formation="3-1"] .fantasy-pitch__line--base{order:2}
.fantasy-pitch[data-formation="1-1-1-1"]{gap:1rem}.fantasy-pitch[data-formation="1-1-1-1"] .fantasy-pitch__line{justify-content:center}
.fantasy-pitch-caption{margin:1rem 0 0;color:#69717c;font-size:.9rem;line-height:1.5}
.fantasy-rules-panel{align-self:stretch}
.fantasy-rules-list{display:grid;gap:1.2rem;margin:1.25rem 0 0;padding:0;list-style:none}
.fantasy-rules-list li{display:flex;align-items:flex-start;gap:.7rem}
.fantasy-rule-check{display:grid;place-items:center;flex:0 0 24px;height:24px;color:#287447;background:#e9f6ee;border-radius:50%;font-weight:800}
.fantasy-rules-list strong,.fantasy-rules-list small{display:block}.fantasy-rules-list strong{margin-bottom:.2rem;font-size:.95rem}.fantasy-rules-list small{color:#6e7782;font-size:.85rem;line-height:1.45}
.fantasy-roster-section{margin-top:3.5rem}
.fantasy-empty-roster{display:flex;flex-direction:column;align-items:center;padding:3rem 1.5rem;text-align:center;background:#fff;border:1px dashed #d5d9df;border-radius:18px}
.fantasy-empty-roster__icon{display:grid;place-items:center;width:60px;height:60px;color:#ed4a28;background:#fff0ec;border-radius:18px}
.fantasy-empty-roster h3{margin:1rem 0 .35rem;font-size:1.3rem}.fantasy-empty-roster p{max-width:560px;margin:0;color:#6e7782;line-height:1.55}
.fantasy-status-note{display:inline-flex;align-items:center;gap:.5rem;margin-top:1rem;padding:.5rem .75rem;color:#6e7782;background:#f4f5f7;border-radius:999px;font-size:.78rem;font-weight:700}
.fantasy-status-note span{width:7px;height:7px;background:#ed8a28;border-radius:50%}
.fantasy-footer-note{display:flex;align-items:flex-start;gap:.85rem;margin-top:1.25rem;padding:1rem 1.1rem;background:#fff;border:1px solid #e7e9ec;border-radius:14px}
.fantasy-footer-note__icon{display:grid;place-items:center;flex:0 0 38px;height:38px;color:#ed4a28;background:#fff0ec;border-radius:10px}
.fantasy-footer-note p{margin:0;color:#66707c;line-height:1.5}.fantasy-footer-note strong{color:#17202a}
@media(max-width:850px){.fantasy-hero{grid-template-columns:1fr .65fr}.fantasy-hero__visual{min-height:190px}.fantasy-tactics-layout{grid-template-columns:1fr}.fantasy-pitch{min-height:350px}}
@media(max-width:620px){.fantasy-page{padding-top:1rem}.fantasy-hero{grid-template-columns:1fr;min-height:auto;padding:1.5rem;border-radius:16px}.fantasy-hero__visual{position:absolute;right:-3rem;bottom:-2rem;width:170px;min-height:170px;opacity:.38}.fantasy-hero-ball{width:130px}.fantasy-hero-tag,.fantasy-hero-line{display:none}.fantasy-hero__copy{position:relative;z-index:1}.fantasy-hero h1{font-size:2.8rem}.fantasy-summary-grid{grid-template-columns:1fr;gap:.65rem;margin-bottom:2.25rem}.fantasy-summary-card{padding:1rem}.fantasy-section-heading{align-items:flex-start}.fantasy-formation-options{grid-template-columns:1fr;gap:.65rem}.fantasy-formation-option{min-height:0;padding:.9rem 1rem;display:grid;grid-template-columns:75px 1fr;column-gap:.8rem;align-items:center}.fantasy-formation-number{grid-row:span 2;font-size:1.8rem}.fantasy-formation-option strong{align-self:end}.fantasy-formation-option small{align-self:start}.fantasy-option-check{top:50%;transform:translateY(-50%)}.fantasy-pitch-panel,.fantasy-rules-panel{padding:1rem}.fantasy-pitch{min-height:320px;padding:1.5rem .6rem}.fantasy-position-token svg{width:37px;height:37px}.fantasy-position-token b{font-size:.65rem}.fantasy-position-token small{font-size:.62rem}.fantasy-count{padding:.4rem .6rem}.fantasy-count span{display:none}}

.desktop-menu > .nav-link[href="fantasy.html"]{order:7}.desktop-menu > .profile-menu{order:8}.mobile-menu-panel > .nav-link[href="fantasy.html"]{order:7}


/* Fantasy immersive entry and dedicated navigation */
.fantasy-nav{display:none;position:sticky;top:0;z-index:30;align-items:center;justify-content:space-between;gap:1.25rem;width:100%;min-height:78px;padding:12px clamp(16px,4vw,54px);color:#fff;background:rgba(13,17,24,.97);border-bottom:1px solid rgba(255,255,255,.1);box-shadow:0 12px 30px rgba(8,12,18,.18)}
.fantasy-nav__brand{display:flex;align-items:center;gap:10px;min-width:max-content;color:#fff;text-decoration:none;font-size:.86rem;font-weight:700;letter-spacing:.08em}
.fantasy-nav__brand img{width:53px;height:48px;object-fit:contain}
.fantasy-nav__brand strong{display:block;color:#ff7455;font-size:1rem;letter-spacing:.15em}
.fantasy-nav__links{display:flex;align-items:center;justify-content:center;gap:clamp(10px,2.4vw,32px)}
.fantasy-nav__links a{padding:10px 3px;color:#c9ced6;text-decoration:none;font-size:.9rem;font-weight:700;transition:color .18s}
.fantasy-nav__links a:hover,.fantasy-nav__links a:focus-visible{color:#fff}
.fantasy-nav__exit{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:104px;padding:11px 17px;color:#fff;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.22);border-radius:999px;text-decoration:none;font-weight:800;transition:background .18s,border-color .18s,transform .18s}
.fantasy-nav__exit svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.fantasy-nav__exit:hover{background:#ed4a28;border-color:#ed4a28;transform:translateY(-1px)}
body.fantasy-mode .site-header,body.fantasy-mode .site-footer{display:none!important}
body.fantasy-mode .fantasy-nav{display:flex}
body.fantasy-mode{background:#f4f5f7}
body.fantasy-mode .site-shell{min-height:100vh}
.fantasy-intro{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;overflow:hidden;color:#fff;background:#0b0e14;opacity:0;visibility:hidden;pointer-events:none}
.fantasy-intro__glow{position:absolute;inset:-20%;background:radial-gradient(ellipse at 50% 46%,rgba(237,74,40,.3),transparent 27%),radial-gradient(ellipse at 50% 50%,rgba(29,65,88,.36),transparent 55%);opacity:0}
.fantasy-intro__stadium-lines{position:absolute;inset:-25%;background:repeating-conic-gradient(from 0deg at 50% 50%,transparent 0deg,transparent 7deg,rgba(255,255,255,.035) 7.15deg,transparent 7.5deg);mask-image:radial-gradient(ellipse at center,#000 0%,transparent 67%);opacity:0}
.fantasy-intro__content{position:relative;display:flex;flex-direction:column;align-items:center;width:min(92vw,900px);text-align:center}
.fantasy-intro__logo{display:grid;place-items:center;width:clamp(105px,17vw,175px);height:clamp(105px,17vw,175px);margin-bottom:clamp(16px,3vh,30px);opacity:0;transform:scale(.1) rotate(-18deg);filter:drop-shadow(0 0 35px rgba(237,74,40,.38))}
.fantasy-intro__logo img{display:block;width:100%;height:100%;object-fit:contain}
.fantasy-intro__word{display:flex;justify-content:center;gap:clamp(1px,.7vw,9px);font-family:"Barlow Semi Condensed",sans-serif;font-size:clamp(2.7rem,10vw,7.8rem);font-weight:800;line-height:.95;letter-spacing:.04em}
.fantasy-intro__word span{display:inline-block;opacity:0;transform:translate3d(var(--fly-x,0),var(--fly-y,0),0) rotate(var(--fly-rotate,0deg)) scale(1.7);filter:blur(9px);color:#fff;text-shadow:0 0 30px rgba(237,74,40,.18)}
.fantasy-intro__word span:nth-child(1){--fly-x:-110vw;--fly-y:-50vh;--fly-rotate:-65deg}
.fantasy-intro__word span:nth-child(2){--fly-x:-90vw;--fly-y:45vh;--fly-rotate:42deg}
.fantasy-intro__word span:nth-child(3){--fly-x:-55vw;--fly-y:-70vh;--fly-rotate:-28deg}
.fantasy-intro__word span:nth-child(4){--fly-x:0;--fly-y:90vh;--fly-rotate:75deg}
.fantasy-intro__word span:nth-child(5){--fly-x:60vw;--fly-y:-65vh;--fly-rotate:-44deg}
.fantasy-intro__word span:nth-child(6){--fly-x:100vw;--fly-y:38vh;--fly-rotate:35deg}
.fantasy-intro__word span:nth-child(7){--fly-x:115vw;--fly-y:-45vh;--fly-rotate:60deg}
.fantasy-intro__tagline{margin:22px 0 0;color:#c6cbd3;font-size:clamp(.65rem,1.6vw,.85rem);font-weight:800;letter-spacing:.3em;opacity:0;transform:translateY(12px)}
.fantasy-intro__edition{position:absolute;right:clamp(18px,4vw,48px);bottom:clamp(18px,4vh,40px);color:rgba(255,255,255,.42);font-size:.72rem;font-weight:800;letter-spacing:.2em;opacity:0}
body.fantasy-mode.fantasy-intro-active .fantasy-intro{opacity:1;visibility:visible;pointer-events:auto}
body.fantasy-mode.fantasy-intro-active .fantasy-intro__glow{animation:fantasy-glow-in 3.1s ease both}
body.fantasy-mode.fantasy-intro-active .fantasy-intro__stadium-lines{animation:fantasy-stadium-in 3.1s ease both}
body.fantasy-mode.fantasy-intro-active .fantasy-intro__logo{animation:fantasy-logo-arrive .95s cubic-bezier(.15,.82,.24,1.2) .25s both}
body.fantasy-mode.fantasy-intro-active .fantasy-intro__word span{animation:fantasy-letter-arrive .8s cubic-bezier(.16,.9,.2,1.1) both}
body.fantasy-mode.fantasy-intro-active .fantasy-intro__word span:nth-child(1){animation-delay:.68s}
body.fantasy-mode.fantasy-intro-active .fantasy-intro__word span:nth-child(2){animation-delay:.77s}
body.fantasy-mode.fantasy-intro-active .fantasy-intro__word span:nth-child(3){animation-delay:.86s}
body.fantasy-mode.fantasy-intro-active .fantasy-intro__word span:nth-child(4){animation-delay:.95s}
body.fantasy-mode.fantasy-intro-active .fantasy-intro__word span:nth-child(5){animation-delay:1.04s}
body.fantasy-mode.fantasy-intro-active .fantasy-intro__word span:nth-child(6){animation-delay:1.13s}
body.fantasy-mode.fantasy-intro-active .fantasy-intro__word span:nth-child(7){animation-delay:1.22s}
body.fantasy-mode.fantasy-intro-active .fantasy-intro__tagline{animation:fantasy-tagline-in .55s ease 1.8s both}
body.fantasy-mode.fantasy-intro-active .fantasy-intro__edition{animation:fantasy-tagline-in .5s ease 1.6s both}
body.fantasy-mode.fantasy-intro-done .fantasy-intro{opacity:0;visibility:hidden;transition:opacity .55s ease,visibility .55s}
@keyframes fantasy-glow-in{0%{opacity:0;transform:scale(.75)}35%{opacity:1;transform:scale(1.1)}100%{opacity:.55;transform:scale(1)}}
@keyframes fantasy-stadium-in{0%{opacity:0;transform:scale(1.7) rotate(-12deg)}40%{opacity:.9}100%{opacity:.45;transform:scale(1) rotate(0)}}
@keyframes fantasy-logo-arrive{0%{opacity:0;transform:scale(.1) rotate(-18deg);filter:blur(15px) drop-shadow(0 0 0 rgba(237,74,40,0))}75%{opacity:1;transform:scale(1.08) rotate(2deg);filter:blur(0) drop-shadow(0 0 45px rgba(237,74,40,.65))}100%{opacity:1;transform:scale(1) rotate(0);filter:blur(0) drop-shadow(0 0 28px rgba(237,74,40,.35)}}
@keyframes fantasy-letter-arrive{0%{opacity:0;transform:translate3d(var(--fly-x),var(--fly-y),0) rotate(var(--fly-rotate)) scale(1.8);filter:blur(12px)}70%{opacity:1;transform:translate3d(0,0,0) rotate(3deg) scale(1.08);filter:blur(0)}100%{opacity:1;transform:translate3d(0,0,0) rotate(0) scale(1);filter:blur(0);color:#ff7455;text-shadow:0 0 35px rgba(237,74,40,.25)}}
@keyframes fantasy-tagline-in{to{opacity:1;transform:translateY(0)}}
.fantasy-menu-option{cursor:pointer!important;text-decoration:none;display:block}
.fantasy-menu-option:hover{background:rgba(237,74,40,.08);color:#c83a1e}
@media(max-width:700px){.fantasy-nav{min-height:70px;gap:10px;padding:10px 13px}.fantasy-nav__brand{gap:5px;font-size:.72rem}.fantasy-nav__brand img{width:38px;height:39px}.fantasy-nav__brand strong{font-size:.78rem}.fantasy-nav__links{gap:10px}.fantasy-nav__links a{font-size:.76rem}.fantasy-nav__exit{min-width:0;padding:10px 12px}.fantasy-nav__exit svg{width:16px;height:16px}.fantasy-nav__exit span{font-size:.8rem}}
@media(max-width:430px){.fantasy-nav{flex-wrap:wrap;justify-content:space-between}.fantasy-nav__links{order:3;width:100%;justify-content:center;padding-top:6px;border-top:1px solid rgba(255,255,255,.09)}.fantasy-nav__links a{padding:5px 2px}.fantasy-intro__word{gap:0;font-size:clamp(2.35rem,11vw,3.4rem)}.fantasy-intro__tagline{letter-spacing:.16em}}
@media(prefers-reduced-motion:reduce){body.fantasy-mode.fantasy-intro-active .fantasy-intro__glow,body.fantasy-mode.fantasy-intro-active .fantasy-intro__stadium-lines,body.fantasy-mode.fantasy-intro-active .fantasy-intro__logo,body.fantasy-mode.fantasy-intro-active .fantasy-intro__word span,body.fantasy-mode.fantasy-intro-active .fantasy-intro__tagline,body.fantasy-mode.fantasy-intro-active .fantasy-intro__edition{animation-duration:.01ms!important;animation-delay:0ms!important}}


/* Fantasy market: distinct transfer hub */
.fantasy-market-section{scroll-margin-top:100px}
.fantasy-market-hero{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;padding:clamp(1.3rem,3vw,2rem);color:#fff;background:linear-gradient(115deg,#111720 0%,#202a37 68%,#3a201e 100%);border:1px solid #313b49;border-radius:20px;overflow:hidden;position:relative}
.fantasy-market-hero:after{content:"";position:absolute;width:260px;height:260px;right:18%;top:-190px;border:1px solid rgba(255,255,255,.1);border-radius:50%;box-shadow:0 0 0 28px rgba(255,255,255,.025),0 0 0 58px rgba(255,255,255,.02);pointer-events:none}
.fantasy-market-hero__copy{position:relative;z-index:1}
.fantasy-market-hero .section-kicker{color:#ff9278;font-size:.72rem;font-weight:800;letter-spacing:.16em}
.fantasy-market-hero h2{margin:.35rem 0 .5rem;font-size:clamp(1.8rem,3vw,2.5rem);letter-spacing:-.03em}
.fantasy-market-hero p{max-width:620px;margin:0;color:#c4cbd5;line-height:1.55}
.fantasy-market-wallet{position:relative;z-index:1;flex:0 0 230px;padding:1rem 1.1rem;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.13);border-radius:14px;backdrop-filter:blur(8px)}
.fantasy-market-wallet span,.fantasy-market-wallet strong,.fantasy-market-wallet small{display:block}
.fantasy-market-wallet__label{color:#b9c1cc;font-size:.78rem;font-weight:700}
.fantasy-market-wallet strong{margin:.35rem 0;font-size:1.45rem}
.fantasy-market-wallet small{color:#aab3bf;line-height:1.4}
.fantasy-market-toolbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:1rem 0}
.fantasy-market-tabs{display:flex;flex-wrap:wrap;gap:.35rem;padding:.3rem;background:#e9ebef;border-radius:12px}
.fantasy-market-tab{padding:.7rem .9rem;color:#5d6672;background:transparent;border:0;border-radius:9px;font:inherit;font-size:.85rem;font-weight:800;cursor:pointer;transition:background .18s,color .18s,box-shadow .18s}
.fantasy-market-tab.is-active{color:#fff;background:#ed4a28;box-shadow:0 4px 10px rgba(237,74,40,.18)}
.fantasy-market-tab:focus-visible,.fantasy-market-search:focus-within{outline:3px solid rgba(237,74,40,.24);outline-offset:2px}
.fantasy-market-search{display:flex;align-items:center;gap:.6rem;min-width:min(100%,280px);padding:.72rem .85rem;background:#fff;border:1px solid #dfe3e8;border-radius:12px}
.fantasy-market-search svg{width:19px;height:19px;flex:0 0 auto;fill:none;stroke:#818a96;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.fantasy-market-search input{width:100%;min-width:0;color:#17202a;background:transparent;border:0;outline:0;font:inherit;font-size:.9rem}
.fantasy-market-empty{display:flex;flex-direction:column;align-items:center;padding:clamp(2rem,5vw,3.5rem) 1.25rem;text-align:center;background:linear-gradient(180deg,#fff,#fafbfc);border:1px solid #e4e7eb;border-radius:18px}
.fantasy-market-empty__icon{display:grid;place-items:center;width:62px;height:62px;margin-bottom:1.2rem;color:#ed4a28;background:#fff0ec;border:1px solid #ffddd4;border-radius:18px}
.fantasy-market-empty__icon svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.fantasy-market-empty .section-kicker{color:#ed4a28;font-size:.72rem;font-weight:800;letter-spacing:.14em}
.fantasy-market-empty h3{margin:.5rem 0;font-size:clamp(1.35rem,2.5vw,1.8rem);letter-spacing:-.025em}
.fantasy-market-empty p{max-width:690px;margin:0;color:#68717d;line-height:1.65}
.fantasy-market-features{display:flex;flex-wrap:wrap;justify-content:center;gap:.65rem;margin-top:1.5rem}
.fantasy-market-features span{display:inline-flex;align-items:center;gap:.45rem;padding:.65rem .8rem;color:#3f4854;background:#f1f3f6;border:1px solid #e5e8ed;border-radius:999px;font-size:.8rem;font-weight:750}
.fantasy-market-features svg{width:17px;height:17px;fill:none;stroke:#ed4a28;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.fantasy-market-footnote{margin:.8rem 0 0;color:#7a838e;font-size:.8rem;line-height:1.5}
@media(max-width:680px){.fantasy-market-hero{align-items:stretch;flex-direction:column}.fantasy-market-wallet{flex-basis:auto}.fantasy-market-toolbar{align-items:stretch;flex-direction:column}.fantasy-market-tabs{display:grid;grid-template-columns:1fr 1fr 1fr}.fantasy-market-tab{padding:.65rem .25rem;font-size:.75rem}.fantasy-market-search{min-width:0}.fantasy-market-features{align-items:stretch;flex-direction:column;width:100%}.fantasy-market-features span{justify-content:center}}

/* Cinematic intro: explicit visible end-state and a stronger letter flight */
.fantasy-intro{background:radial-gradient(ellipse at 50% 55%,#202936 0%,#10151d 42%,#07090e 100%)}
.fantasy-intro:before{position:absolute;inset:0;content:"";pointer-events:none;background:linear-gradient(transparent 49.8%,rgba(255,255,255,.035) 50%,transparent 50.2%),repeating-linear-gradient(0deg,transparent 0,transparent 5px,rgba(255,255,255,.012) 6px);opacity:.6}
.fantasy-intro__content{z-index:1;gap:0}
.fantasy-intro__logo{margin-bottom:clamp(12px,2vh,24px)}
.fantasy-intro__word{position:relative;min-height:1em;align-items:center;gap:clamp(2px,.85vw,12px);font-size:clamp(3rem,11.2vw,8.8rem);letter-spacing:.025em;white-space:nowrap;text-shadow:0 10px 38px rgba(0,0,0,.35)}
.fantasy-intro__word:after{position:absolute;right:0;bottom:-.2em;left:0;height:3px;content:"";background:linear-gradient(90deg,transparent,#ed4a28 18%,#ffb09b 50%,#ed4a28 82%,transparent);transform:scaleX(0);transform-origin:center;box-shadow:0 0 24px rgba(237,74,40,.6)}
.fantasy-intro__word span{opacity:1;transform:none;filter:none;color:#fff}
.fantasy-intro__tagline{margin-top:clamp(24px,4vh,38px);font-size:clamp(.65rem,1.6vw,.9rem);letter-spacing:clamp(.12em,.5vw,.32em)}
body.fantasy-mode.fantasy-intro-active .fantasy-intro__word span{animation:fantasy-letter-flight 1.12s cubic-bezier(.12,.82,.18,1) both}
body.fantasy-mode.fantasy-intro-active .fantasy-intro__word:after{animation:fantasy-word-underline .65s ease 1.65s both}
body.fantasy-mode.fantasy-intro-active .fantasy-intro__logo{animation:fantasy-logo-cinematic 1.2s cubic-bezier(.12,.82,.18,1) .18s both}
body.fantasy-mode.fantasy-intro-active .fantasy-intro__glow{animation:fantasy-glow-cinematic 3.2s ease both}
body.fantasy-mode.fantasy-intro-active .fantasy-intro__stadium-lines{animation:fantasy-stadium-cinematic 3.2s ease both}
body.fantasy-mode.fantasy-intro-active .fantasy-intro__word span:nth-child(1){animation-delay:.58s}
body.fantasy-mode.fantasy-intro-active .fantasy-intro__word span:nth-child(2){animation-delay:.68s}
body.fantasy-mode.fantasy-intro-active .fantasy-intro__word span:nth-child(3){animation-delay:.78s}
body.fantasy-mode.fantasy-intro-active .fantasy-intro__word span:nth-child(4){animation-delay:.88s}
body.fantasy-mode.fantasy-intro-active .fantasy-intro__word span:nth-child(5){animation-delay:.98s}
body.fantasy-mode.fantasy-intro-active .fantasy-intro__word span:nth-child(6){animation-delay:1.08s}
body.fantasy-mode.fantasy-intro-active .fantasy-intro__word span:nth-child(7){animation-delay:1.18s}
@keyframes fantasy-letter-flight{0%{opacity:0;transform:translate3d(var(--fly-x),var(--fly-y),0) rotate(var(--fly-rotate)) scale(1.9);filter:blur(16px);color:#ed4a28;text-shadow:0 0 55px rgba(237,74,40,.95)}55%{opacity:1;filter:blur(0);color:#fff}78%{transform:translate3d(0,0,0) rotate(-3deg) scale(1.08);text-shadow:0 0 32px rgba(237,74,40,.65)}100%{opacity:1;transform:translate3d(0,0,0) rotate(0) scale(1);filter:blur(0);color:#ff7455;text-shadow:0 0 28px rgba(237,74,40,.3)}}
@keyframes fantasy-logo-cinematic{0%{opacity:0;transform:translateY(-45px) scale(.25) rotate(-22deg);filter:blur(18px) drop-shadow(0 0 0 rgba(237,74,40,0))}62%{opacity:1;transform:translateY(6px) scale(1.1) rotate(3deg);filter:blur(0) drop-shadow(0 0 55px rgba(237,74,40,.72))}82%{transform:translateY(-3px) scale(.98) rotate(-1deg)}100%{opacity:1;transform:translateY(0) scale(1) rotate(0);filter:blur(0) drop-shadow(0 0 30px rgba(237,74,40,.4)}}
@keyframes fantasy-glow-cinematic{0%{opacity:0;transform:scale(.65)}28%{opacity:1;transform:scale(1.15)}100%{opacity:.7;transform:scale(1)}}
@keyframes fantasy-stadium-cinematic{0%{opacity:0;transform:scale(1.8) rotate(-18deg)}35%{opacity:.8}100%{opacity:.4;transform:scale(1) rotate(0)}}
@keyframes fantasy-word-underline{to{transform:scaleX(1)}}
@media(max-width:430px){.fantasy-intro__word{font-size:clamp(2.5rem,11.5vw,3.7rem);gap:1px}.fantasy-intro__tagline{max-width:90vw;line-height:1.8;letter-spacing:.1em}}
@media(prefers-reduced-motion:reduce){body.fantasy-mode.fantasy-intro-active .fantasy-intro__word span,body.fantasy-mode.fantasy-intro-active .fantasy-intro__word:after,body.fantasy-mode.fantasy-intro-active .fantasy-intro__logo,body.fantasy-mode.fantasy-intro-active .fantasy-intro__glow,body.fantasy-mode.fantasy-intro-active .fantasy-intro__stadium-lines{animation-duration:.01ms!important;animation-delay:0ms!important}.fantasy-intro__word span{opacity:1;transform:none;filter:none}}


/* Stable cinematic intro: readable by default, animation is enhancement only */
.fantasy-intro{z-index:99999;isolation:isolate}
.fantasy-intro__content{width:min(94vw,1000px);padding:24px;gap:0}
.fantasy-intro__logo{width:clamp(88px,13vw,142px);height:clamp(88px,13vw,142px);flex:0 0 auto}
.fantasy-intro__logo img{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important}
.fantasy-intro__word{display:flex!important;align-items:center;justify-content:center;width:100%;min-height:1.1em;overflow:visible;font-family:"Barlow Semi Condensed",sans-serif;font-size:clamp(3rem,12vw,8.6rem);font-weight:800;line-height:1.05;letter-spacing:.04em;white-space:nowrap}
.fantasy-intro__word span{display:inline-block!important;flex:0 0 auto;opacity:1;visibility:visible;color:#ff795a;text-shadow:0 0 24px rgba(237,74,40,.28);filter:none}
body.fantasy-mode.fantasy-intro-active .fantasy-intro__word span{animation:ifl-fantasy-letter-enter .9s cubic-bezier(.15,.85,.2,1) both}
body.fantasy-mode.fantasy-intro-active .fantasy-intro__word span:nth-child(1){animation-delay:.3s}
body.fantasy-mode.fantasy-intro-active .fantasy-intro__word span:nth-child(2){animation-delay:.4s}
body.fantasy-mode.fantasy-intro-active .fantasy-intro__word span:nth-child(3){animation-delay:.5s}
body.fantasy-mode.fantasy-intro-active .fantasy-intro__word span:nth-child(4){animation-delay:.6s}
body.fantasy-mode.fantasy-intro-active .fantasy-intro__word span:nth-child(5){animation-delay:.7s}
body.fantasy-mode.fantasy-intro-active .fantasy-intro__word span:nth-child(6){animation-delay:.8s}
body.fantasy-mode.fantasy-intro-active .fantasy-intro__word span:nth-child(7){animation-delay:.9s}
@keyframes ifl-fantasy-letter-enter{0%{opacity:0;transform:translate3d(var(--fly-x,0),var(--fly-y,0),0) rotate(var(--fly-rotate,0deg)) scale(1.55);filter:blur(8px)}65%{opacity:1;transform:translate3d(0,0,0) rotate(3deg) scale(1.08);filter:blur(0)}100%{opacity:1;transform:translate3d(0,0,0) rotate(0) scale(1);filter:blur(0)}}
.fantasy-intro__tagline{opacity:1;transform:none;line-height:1.7}
body.fantasy-mode.fantasy-intro-active .fantasy-intro__tagline{animation:ifl-fantasy-tagline .5s ease 1.45s both}
@keyframes ifl-fantasy-tagline{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
.fantasy-intro__edition{color:rgba(255,255,255,.65)}
/* Fantasy football visual language: deep navy, pitch green and coral accents */
body.fantasy-mode{background:#f2f4f7;color:#17202a}
body.fantasy-mode .fantasy-nav{background:#101827;border-bottom:3px solid #ed4a28;box-shadow:0 8px 28px rgba(12,22,38,.22)}
body.fantasy-mode .fantasy-nav__brand img{display:block;width:44px!important;height:44px!important;max-width:44px!important;max-height:44px!important;object-fit:contain!important;flex:0 0 44px}
body.fantasy-mode .fantasy-nav__brand{font-size:.78rem;line-height:1.05;gap:9px}
body.fantasy-mode .fantasy-nav__brand strong{font-size:1rem}
body.fantasy-mode .fantasy-page{max-width:1240px;padding-top:1.5rem}
body.fantasy-mode .fantasy-hero{background:linear-gradient(115deg,#101827 0%,#19283a 70%,#253e3d 100%);border-radius:18px;box-shadow:0 14px 38px rgba(17,31,48,.12)}
body.fantasy-mode .fantasy-hero:after{position:absolute;right:15%;bottom:-150px;width:360px;height:360px;content:"";border:1px solid rgba(255,255,255,.13);border-radius:50%;box-shadow:0 0 0 28px rgba(255,255,255,.025),0 0 0 58px rgba(255,255,255,.02);pointer-events:none}
body.fantasy-mode .fantasy-summary-card,body.fantasy-mode .fantasy-pitch-panel,body.fantasy-mode .fantasy-rules-panel,body.fantasy-mode .fantasy-formation-option,body.fantasy-mode .fantasy-empty-roster{box-shadow:0 4px 16px rgba(17,31,48,.045)}
body.fantasy-mode .fantasy-formation-option{border-radius:12px}
body.fantasy-mode .fantasy-pitch{background:#17633f;border:5px solid #f1f5f2;border-radius:14px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.22)}
body.fantasy-mode .fantasy-pitch:before{background:repeating-linear-gradient(0deg,rgba(255,255,255,.035) 0,rgba(255,255,255,.035) 38px,rgba(0,0,0,.04) 38px,rgba(0,0,0,.04) 76px)}
body.fantasy-mode .fantasy-position-token svg{width:38px;height:38px;padding:8px;background:#ed4a28;border:2px solid #fff;box-shadow:0 3px 8px rgba(0,0,0,.25)}
body.fantasy-mode .fantasy-market-section{padding:0 0 .5rem}
body.fantasy-mode .fantasy-market-hero{min-height:180px;padding:clamp(1.3rem,3vw,2.2rem);border-radius:16px;background:linear-gradient(110deg,#111b2b 0%,#182a3c 64%,#244a40 100%);box-shadow:0 12px 28px rgba(17,31,48,.1)}
body.fantasy-mode .fantasy-market-hero h2{font-size:clamp(2rem,4vw,2.8rem);font-weight:800;line-height:1.05}
body.fantasy-mode .fantasy-market-wallet{flex:0 0 220px;max-width:100%;background:rgba(5,12,22,.28);border:1px solid rgba(255,255,255,.2)}
body.fantasy-mode .fantasy-market-toolbar{align-items:center;padding:12px;background:#fff;border:1px solid #e1e6ec;border-radius:14px;box-shadow:0 4px 16px rgba(17,31,48,.04)}
body.fantasy-mode .fantasy-market-tabs{gap:4px;background:#eef1f5;border-radius:10px}
body.fantasy-mode .fantasy-market-tab{min-height:40px;padding:.65rem .9rem;border-radius:8px}
body.fantasy-mode .fantasy-market-tab.is-active{background:#ed4a28;color:#fff;box-shadow:0 4px 10px rgba(237,74,40,.2)}
body.fantasy-mode .fantasy-market-search{min-height:42px;border-radius:9px}
body.fantasy-mode .fantasy-market-results{min-width:0}
body.fantasy-mode .fantasy-market-empty{position:relative;min-height:280px;justify-content:center;overflow:hidden;padding:clamp(2rem,5vw,3.5rem);border:1px solid #dfe5eb;border-radius:16px;background:linear-gradient(145deg,#fff 0%,#f8fafc 68%,#eef5f1 100%);box-shadow:0 8px 24px rgba(17,31,48,.045)}
body.fantasy-mode .fantasy-market-empty:before{position:absolute;right:-60px;top:-110px;width:260px;height:260px;content:"";border:1px solid rgba(23,99,63,.12);border-radius:50%;box-shadow:0 0 0 25px rgba(23,99,63,.025),0 0 0 55px rgba(23,99,63,.02);pointer-events:none}
body.fantasy-mode .fantasy-market-empty>*{position:relative;z-index:1}
body.fantasy-mode .fantasy-market-empty__icon{display:grid!important;place-items:center!important;flex:0 0 56px!important;width:56px!important;height:56px!important;min-width:56px!important;min-height:56px!important;margin:0 0 1rem!important;padding:14px!important;overflow:hidden!important;border:1px solid #ffded5!important;border-radius:15px!important;background:#fff0ec!important;color:#ed4a28!important}
body.fantasy-mode .fantasy-market-empty__icon svg{display:block!important;width:28px!important;height:28px!important;max-width:28px!important;max-height:28px!important;min-width:28px!important;min-height:28px!important;flex:0 0 28px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;overflow:visible!important}
body.fantasy-mode .fantasy-market-empty h3{font-size:clamp(1.45rem,2.7vw,2rem);line-height:1.15;letter-spacing:-.025em}
body.fantasy-mode .fantasy-market-empty p{font-size:1rem;line-height:1.65}
body.fantasy-mode .fantasy-market-features{gap:.65rem}
body.fantasy-mode .fantasy-market-features span{display:inline-flex!important;align-items:center!important;justify-content:center;gap:.5rem;min-height:42px;padding:.65rem .9rem;background:#fff;border:1px solid #dfe5eb;border-radius:10px;color:#344050;font-size:.82rem;box-shadow:0 3px 8px rgba(17,31,48,.035)}
body.fantasy-mode .fantasy-market-features svg{display:block!important;width:18px!important;height:18px!important;max-width:18px!important;max-height:18px!important;min-width:18px!important;min-height:18px!important;flex:0 0 18px!important;fill:none!important;stroke:#ed4a28!important;stroke-width:1.8!important}
body.fantasy-mode .fantasy-market-footnote{max-width:900px;margin:.9rem auto 0;text-align:center}
body.fantasy-mode .fantasy-footer-note{border-radius:12px}
@media(max-width:700px){
 body.fantasy-mode .fantasy-nav{gap:8px;padding:10px 12px}
 body.fantasy-mode .fantasy-nav__brand img{width:34px!important;height:34px!important;max-width:34px!important;max-height:34px!important;flex-basis:34px}
 body.fantasy-mode .fantasy-nav__brand strong{font-size:.8rem}
 body.fantasy-mode .fantasy-market-hero{align-items:stretch;flex-direction:column}
 body.fantasy-mode .fantasy-market-wallet{flex-basis:auto;width:100%}
 body.fantasy-mode .fantasy-market-toolbar{align-items:stretch;flex-direction:column}
 body.fantasy-mode .fantasy-market-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
 body.fantasy-mode .fantasy-market-tab{padding:.6rem .2rem;font-size:.75rem}
}
@media(max-width:430px){
 body.fantasy-mode .fantasy-intro__word{font-size:clamp(2.5rem,11vw,3.2rem);gap:0}
 body.fantasy-mode .fantasy-intro__tagline{max-width:90vw;letter-spacing:.1em}
}
@media(prefers-reduced-motion:reduce){
 body.fantasy-mode.fantasy-intro-active .fantasy-intro__word span{animation:none!important;opacity:1!important;transform:none!important;filter:none!important}
}


/* IFL Fantasy: overrides finales para evitar conflictos con los estilos globales. */
body.fantasy-mode .fantasy-intro__word,
body.fantasy-mode .fantasy-intro__word span{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  visibility:visible!important;
  color:#ff795a!important;
  font-family:"Barlow Semi Condensed",sans-serif!important;
  font-size:clamp(3rem,12vw,8.6rem)!important;
  font-weight:800!important;
  line-height:1.05!important;
  opacity:1!important;
}
body.fantasy-mode .fantasy-intro__word{width:100%;white-space:nowrap;overflow:visible}
body.fantasy-mode .fantasy-market-section,
body.fantasy-mode .fantasy-market-results{min-width:0;max-width:100%}
body.fantasy-mode .fantasy-market-toolbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}
body.fantasy-mode .fantasy-market-tabs{display:flex;gap:.45rem;flex-wrap:wrap}
body.fantasy-mode .fantasy-market-tab{min-height:42px;padding:.7rem 1rem;border:1px solid #dce2e8;border-radius:10px;background:#fff;color:#354052;font-size:.9rem;font-weight:750;cursor:pointer}
body.fantasy-mode .fantasy-market-tab.is-active{background:#183d2e;color:#fff;border-color:#183d2e}
body.fantasy-mode .fantasy-market-search{display:flex;align-items:center;gap:.6rem;min-height:44px;min-width:min(100%,280px);padding:0 .9rem;border:1px solid #dce2e8;border-radius:10px;background:#fff}
body.fantasy-mode .fantasy-market-search svg{display:block!important;width:19px!important;height:19px!important;max-width:19px!important;max-height:19px!important;flex:0 0 19px!important}
body.fantasy-mode .fantasy-market-search input{min-width:0;width:100%;border:0;outline:0;background:transparent;font:inherit;font-size:.92rem}
body.fantasy-mode .fantasy-market-empty{display:flex!important;align-items:center!important;text-align:center!important;gap:.35rem!important}
body.fantasy-mode .fantasy-market-empty__icon{width:56px!important;height:56px!important;min-width:56px!important;min-height:56px!important;flex:0 0 56px!important;padding:14px!important}
body.fantasy-mode .fantasy-market-empty__icon svg{width:28px!important;height:28px!important;min-width:28px!important;min-height:28px!important;max-width:28px!important;max-height:28px!important;flex:0 0 28px!important}
body.fantasy-mode .fantasy-market-empty h3{margin:.45rem 0 .6rem;font-size:clamp(1.5rem,3vw,2.1rem)!important;font-weight:800}
body.fantasy-mode .fantasy-market-empty p{max-width:720px;font-size:1rem!important;line-height:1.7}
body.fantasy-mode .fantasy-market-features{display:flex;justify-content:center;gap:.65rem;flex-wrap:wrap;margin-top:1rem}
body.fantasy-mode .fantasy-market-features svg{width:18px!important;height:18px!important;min-width:18px!important;min-height:18px!important;max-width:18px!important;max-height:18px!important;flex:0 0 18px!important}
@media(max-width:620px){
 body.fantasy-mode .fantasy-intro__word,
 body.fantasy-mode .fantasy-intro__word span{font-size:clamp(2.5rem,11vw,3.2rem)!important}
 body.fantasy-mode .fantasy-market-search{width:100%;min-width:0}
 body.fantasy-mode .fantasy-market-tabs{display:grid;width:100%;grid-template-columns:repeat(3,minmax(0,1fr))}
 body.fantasy-mode .fantasy-market-tab{padding:.65rem .25rem;font-size:.78rem}
}


/* Fixes específicos tras comprobar la estructura real de Fantasy */
body.fantasy-mode.fantasy-intro-active .fantasy-intro{
  display:grid!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;
}
body.fantasy-mode.fantasy-intro-active .fantasy-intro__word{
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:100%!important;min-height:1.1em!important;visibility:visible!important;overflow:visible!important;
}
body.fantasy-mode.fantasy-intro-active .fantasy-intro__word span{
  display:inline-block!important;visibility:visible!important;opacity:1!important;
  color:#ff795a!important;-webkit-text-fill-color:#ff795a!important;
}
body.fantasy-mode.fantasy-intro-active .fantasy-market-empty{
  display:flex!important;flex-direction:column!important;align-items:center!important;
  justify-content:center!important;width:100%!important;box-sizing:border-box!important;
  text-align:center!important;gap:.35rem!important;
}
body.fantasy-mode .fantasy-market-empty>*{max-width:100%;box-sizing:border-box}
body.fantasy-mode .fantasy-market-empty h3{display:block!important;width:100%;text-align:center!important}
body.fantasy-mode .fantasy-market-empty p{display:block!important;width:min(100%,720px)!important;text-align:center!important}
body.fantasy-mode .fantasy-market-features{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;flex-wrap:wrap!important;width:100%!important}
body.fantasy-mode .fantasy-market-features span{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:.5rem!important}
@media(max-width:620px){
 body.fantasy-mode .fantasy-market-features{flex-direction:column!important;align-items:stretch!important}
 body.fantasy-mode .fantasy-market-features span{width:100%!important}
}


/* Corrección definitiva de visibilidad y estructura: IFL Fantasy */
body.fantasy-mode.fantasy-intro-active #fantasy-intro{
  display:grid!important; position:fixed!important; inset:0!important; z-index:2147483000!important;
  opacity:1!important; visibility:visible!important; pointer-events:auto!important;
}
body.fantasy-mode.fantasy-intro-active #fantasy-intro .fantasy-intro__content{
  display:flex!important; flex-direction:column!important; align-items:center!important;
  justify-content:center!important; width:min(94vw,900px)!important; opacity:1!important; visibility:visible!important;
}
body.fantasy-mode.fantasy-intro-active #fantasy-intro .fantasy-intro__logo{
  display:grid!important; opacity:1!important; visibility:visible!important; transform:none!important; filter:none!important;
  animation:none!important;
}
body.fantasy-mode.fantasy-intro-active #fantasy-intro .fantasy-intro__word{
  display:flex!important; flex-direction:row!important; align-items:center!important; justify-content:center!important;
  gap:clamp(1px,.7vw,9px)!important; width:100%!important; min-height:1.1em!important;
  opacity:1!important; visibility:visible!important; overflow:visible!important;
  font-size:clamp(2.6rem,11vw,8rem)!important; line-height:1.1!important;
}
body.fantasy-mode.fantasy-intro-active #fantasy-intro .fantasy-intro__word span{
  display:inline-block!important; opacity:1!important; visibility:visible!important;
  color:#ff795a!important; -webkit-text-fill-color:#ff795a!important;
  transform:none!important; filter:none!important;
  animation:fantasy-letter-flight 1.12s cubic-bezier(.12,.82,.18,1) both!important;
}
body.fantasy-mode.fantasy-intro-active #fantasy-intro .fantasy-intro__word span:nth-child(1){animation-delay:.68s!important}
body.fantasy-mode.fantasy-intro-active #fantasy-intro .fantasy-intro__word span:nth-child(2){animation-delay:.77s!important}
body.fantasy-mode.fantasy-intro-active #fantasy-intro .fantasy-intro__word span:nth-child(3){animation-delay:.86s!important}
body.fantasy-mode.fantasy-intro-active #fantasy-intro .fantasy-intro__word span:nth-child(4){animation-delay:.95s!important}
body.fantasy-mode.fantasy-intro-active #fantasy-intro .fantasy-intro__word span:nth-child(5){animation-delay:1.04s!important}
body.fantasy-mode.fantasy-intro-active #fantasy-intro .fantasy-intro__word span:nth-child(6){animation-delay:1.13s!important}
body.fantasy-mode.fantasy-intro-active #fantasy-intro .fantasy-intro__word span:nth-child(7){animation-delay:1.22s!important}
body.fantasy-mode.fantasy-intro-active #fantasy-intro .fantasy-intro__tagline,
body.fantasy-mode.fantasy-intro-active #fantasy-intro .fantasy-intro__edition{
  opacity:1!important; visibility:visible!important; transform:none!important; animation:none!important;
}
body.fantasy-mode .fantasy-market-results{display:block!important;width:100%!important;min-width:0!important;box-sizing:border-box!important}
body.fantasy-mode .fantasy-market-empty{
  display:flex!important; flex-direction:column!important; align-items:center!important; justify-content:center!important;
  gap:.6rem!important; width:100%!important; min-width:0!important; min-height:280px!important;
  box-sizing:border-box!important; padding:clamp(1.25rem,4vw,3rem)!important; text-align:center!important;
  overflow:hidden!important;
}
body.fantasy-mode .fantasy-market-empty__icon{display:grid!important;place-items:center!important;flex:none!important;margin:0 auto .5rem!important}
body.fantasy-mode .fantasy-market-empty .section-kicker,
body.fantasy-mode .fantasy-market-empty h3,
body.fantasy-mode .fantasy-market-empty p{display:block!important;width:100%!important;max-width:720px!important;min-width:0!important;text-align:center!important;white-space:normal!important;overflow-wrap:anywhere!important}
body.fantasy-mode .fantasy-market-empty h3{margin:.35rem 0!important;line-height:1.2!important}
body.fantasy-mode .fantasy-market-empty p{margin:0 auto!important;line-height:1.65!important}
body.fantasy-mode .fantasy-market-features{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:.65rem!important;flex-wrap:wrap!important;width:100%!important}
body.fantasy-mode .fantasy-market-features span{display:inline-flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;max-width:100%!important;white-space:normal!important}
@media(max-width:620px){
 body.fantasy-mode.fantasy-intro-active #fantasy-intro .fantasy-intro__word{font-size:clamp(2.2rem,10.5vw,3.2rem)!important;gap:0!important}
 body.fantasy-mode .fantasy-market-features{flex-direction:column!important;align-items:stretch!important}
 body.fantasy-mode .fantasy-market-features span{width:100%!important;box-sizing:border-box!important}
}


/* Safety net: completed intro must never cover the Fantasy page. */
body.fantasy-mode.fantasy-intro-done #fantasy-intro{display:none!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important;transition:none!important}


/* Fantasy market polish: compact crests, clearer hierarchy, premium transfer-room styling. */
body.fantasy-mode #fantasy-market{
  position:relative;
  isolation:isolate;
  margin-top:clamp(2.5rem,5vw,4.5rem);
  padding:clamp(1rem,2.8vw,2rem);
  overflow:hidden;
  border:1px solid #e0e5eb;
  border-radius:24px;
  background:
    radial-gradient(ellipse at 100% 0%,rgba(237,74,40,.07),transparent 32%),
    linear-gradient(180deg,#fff 0%,#f7f8fa 100%);
  box-shadow:0 18px 50px rgba(16,24,40,.06);
}
body.fantasy-mode #fantasy-market:before{
  content:"";
  position:absolute;inset:0 0 auto;height:4px;
  background:linear-gradient(90deg,#ed4a28 0%,#ff9a7f 42%,#202a37 100%);
  pointer-events:none;
}
body.fantasy-mode #fantasy-market .fantasy-market-hero{
  min-height:190px;
  padding:clamp(1.4rem,3vw,2.5rem);
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  background:
    radial-gradient(ellipse at 82% 20%,rgba(237,74,40,.2),transparent 28%),
    linear-gradient(120deg,#101720 0%,#202b38 62%,#252a32 100%);
  box-shadow:0 14px 34px rgba(10,15,22,.13);
}
body.fantasy-mode #fantasy-market .fantasy-market-hero h2{
  font-size:clamp(2rem,3.8vw,3rem);
  line-height:1.02;
}
body.fantasy-mode #fantasy-market .fantasy-market-hero p{max-width:600px;font-size:1rem}
body.fantasy-mode #fantasy-market .fantasy-market-wallet{
  flex:0 1 245px;
  min-width:190px;
  background:rgba(255,255,255,.08);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
}
body.fantasy-mode #fantasy-market .fantasy-market-toolbar{
  gap:1rem;
  margin:1.25rem 0;
  padding:.85rem;
  background:#eef1f5;
  border:1px solid #e1e5eb;
  border-radius:15px;
}
body.fantasy-mode #fantasy-market .fantasy-market-tabs{
  gap:.3rem;
  padding:.28rem;
  background:#e1e5eb;
  border-radius:11px;
}
body.fantasy-mode #fantasy-market .fantasy-market-tab{
  min-height:42px;
  padding:.7rem 1rem;
  border-radius:8px;
  transition:background .18s ease,color .18s ease,transform .18s ease;
}
body.fantasy-mode #fantasy-market .fantasy-market-tab:hover{transform:translateY(-1px)}
body.fantasy-mode #fantasy-market .fantasy-market-tab.is-active{
  background:#17212d;
  color:#fff;
  box-shadow:0 5px 12px rgba(23,33,45,.18);
}
body.fantasy-mode #fantasy-market .fantasy-market-search{
  min-height:44px;
  background:#fff;
  border-color:#dce2e9;
  box-shadow:0 2px 5px rgba(16,24,40,.025);
}
body.fantasy-mode #fantasy-market .fantasy-market-results{
  position:relative;
  padding:0;
  border-radius:18px;
}
/* Never allow club crests/player portraits to expand to their source image dimensions. */
body.fantasy-mode #fantasy-market .fantasy-market-results img,
body.fantasy-mode #fantasy-market .fantasy-market-player img,
body.fantasy-mode #fantasy-market .fantasy-market-card img,
body.fantasy-mode #fantasy-market [class*="crest"] img,
body.fantasy-mode #fantasy-market [class*="logo"] img{
  display:block;
  width:48px!important;
  height:48px!important;
  min-width:48px!important;
  min-height:48px!important;
  max-width:48px!important;
  max-height:48px!important;
  flex:0 0 48px!important;
  object-fit:contain!important;
}
body.fantasy-mode #fantasy-market .fantasy-market-empty{
  position:relative;
  min-height:300px!important;
  padding:clamp(1.75rem,5vw,3.5rem)!important;
  overflow:hidden;
  border:1px solid #e0e5eb;
  border-radius:18px;
  background:
    radial-gradient(ellipse at 50% 0%,rgba(237,74,40,.055),transparent 45%),
    linear-gradient(180deg,#fff,#f9fafb);
}
body.fantasy-mode #fantasy-market .fantasy-market-empty:before{
  content:"";
  position:absolute;inset:14px;
  border:1px dashed #e0e5eb;
  border-radius:12px;
  pointer-events:none;
}
body.fantasy-mode #fantasy-market .fantasy-market-empty__icon{
  position:relative;
  width:64px!important;height:64px!important;
  min-width:64px!important;min-height:64px!important;
  border-radius:19px;
  color:#fff;
  background:linear-gradient(145deg,#f36b4b,#cf3f22);
  border:0;
  box-shadow:0 10px 24px rgba(237,74,40,.22);
}
body.fantasy-mode #fantasy-market .fantasy-market-empty__icon svg{
  width:29px!important;height:29px!important;
  max-width:29px!important;max-height:29px!important;
  stroke:#fff!important;
}
body.fantasy-mode #fantasy-market .fantasy-market-empty .section-kicker,
body.fantasy-mode #fantasy-market .fantasy-market-empty h3,
body.fantasy-mode #fantasy-market .fantasy-market-empty p,
body.fantasy-mode #fantasy-market .fantasy-market-features{position:relative;z-index:1}
body.fantasy-mode #fantasy-market .fantasy-market-empty h3{
  max-width:620px!important;
  margin:.35rem 0 .25rem!important;
  color:#17202a;
  font-size:clamp(1.55rem,3vw,2.15rem)!important;
  letter-spacing:-.035em;
}
body.fantasy-mode #fantasy-market .fantasy-market-empty p{
  max-width:680px!important;
  color:#657080;
  font-size:.98rem!important;
  line-height:1.75!important;
}
body.fantasy-mode #fantasy-market .fantasy-market-features{
  gap:.6rem!important;
  margin-top:1.35rem!important;
}
body.fantasy-mode #fantasy-market .fantasy-market-features span{
  padding:.65rem .85rem;
  color:#364252;
  background:#fff;
  border:1px solid #e1e6ec;
  border-radius:10px;
  box-shadow:0 3px 8px rgba(16,24,40,.035);
  font-size:.82rem;
}
body.fantasy-mode #fantasy-market .fantasy-market-features svg{
  width:17px!important;height:17px!important;
  max-width:17px!important;max-height:17px!important;
  color:#ed4a28;
}
body.fantasy-mode #fantasy-market .fantasy-market-footnote{
  margin:.9rem auto 0;
  padding:0 .5rem;
  color:#7b8490;
  font-size:.82rem;
  line-height:1.6;
}
@media(max-width:700px){
  body.fantasy-mode #fantasy-market{padding:.8rem;border-radius:18px}
  body.fantasy-mode #fantasy-market .fantasy-market-hero{gap:1rem;padding:1.25rem}
  body.fantasy-mode #fantasy-market .fantasy-market-wallet{min-width:0}
  body.fantasy-mode #fantasy-market .fantasy-market-toolbar{padding:.65rem}
  body.fantasy-mode #fantasy-market .fantasy-market-tabs{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
  body.fantasy-mode #fantasy-market .fantasy-market-tab{padding:.65rem .2rem;font-size:.74rem}
  body.fantasy-mode #fantasy-market .fantasy-market-empty{padding:2rem 1rem!important}
  body.fantasy-mode #fantasy-market .fantasy-market-features{display:grid!important;grid-template-columns:1fr;width:100%}
  body.fantasy-mode #fantasy-market .fantasy-market-features span{width:100%;box-sizing:border-box}
}


/* Fantasy market: target the actual results container (it has an ID, not a class). */
body.fantasy-mode #fantasy-market{
  scroll-margin-top:100px;
  min-width:0;
}
body.fantasy-mode #fantasy-market-results{
  display:block;
  width:100%;
  min-width:0;
  margin:0;
  overflow:hidden;
  border-radius:18px;
}
body.fantasy-mode #fantasy-market-results img,
body.fantasy-mode #fantasy-market-results img[class*="logo"],
body.fantasy-mode #fantasy-market-results img[class*="crest"],
body.fantasy-mode #fantasy-market-results img[class*="club"],
body.fantasy-mode #fantasy-market-results img[class*="team"]{
  display:block!important;
  width:48px!important;
  height:48px!important;
  min-width:48px!important;
  min-height:48px!important;
  max-width:48px!important;
  max-height:48px!important;
  flex:0 0 48px!important;
  object-fit:contain!important;
  object-position:center!important;
  margin:0!important;
}
body.fantasy-mode #fantasy-market-results [class*="logo"],
body.fantasy-mode #fantasy-market-results [class*="crest"]{
  max-width:100%;
  min-width:0;
}
body.fantasy-mode #fantasy-market .fantasy-market-empty{
  box-sizing:border-box;
  position:relative;
  gap:.7rem;
  min-height:310px;
  justify-content:center;
  padding:clamp(2rem,5vw,3.5rem) clamp(1rem,3vw,2rem);
  border:1px solid #e1e6ed;
  border-radius:18px;
  background:
    radial-gradient(ellipse at 50% 0%,rgba(237,74,40,.07),transparent 48%),
    linear-gradient(180deg,#fff 0%,#f8fafc 100%);
  box-shadow:0 12px 34px rgba(18,29,43,.045);
}
body.fantasy-mode #fantasy-market .fantasy-market-empty__icon{
  display:grid!important;
  place-items:center!important;
  box-sizing:border-box;
  width:58px!important;
  height:58px!important;
  min-width:58px!important;
  min-height:58px!important;
  max-width:58px!important;
  max-height:58px!important;
  flex:0 0 58px!important;
  margin:0 0 .55rem!important;
  padding:14px!important;
  color:#fff!important;
  background:linear-gradient(145deg,#f36a4a,#d64023)!important;
  border:0!important;
  border-radius:17px!important;
  box-shadow:0 10px 24px rgba(237,74,40,.2);
}
body.fantasy-mode #fantasy-market .fantasy-market-empty__icon svg{
  display:block!important;
  width:28px!important;
  height:28px!important;
  min-width:28px!important;
  min-height:28px!important;
  max-width:28px!important;
  max-height:28px!important;
  fill:none!important;
  stroke:#fff!important;
}
body.fantasy-mode #fantasy-market .fantasy-market-empty h3{
  max-width:680px;
  margin:.15rem 0 .25rem;
  color:#17202a;
  font-size:clamp(1.45rem,2.8vw,2rem);
  line-height:1.15;
  letter-spacing:-.035em;
}
body.fantasy-mode #fantasy-market .fantasy-market-empty p{
  max-width:700px;
  margin:0;
  color:#667180;
  font-size:.96rem;
  line-height:1.7;
}
body.fantasy-mode #fantasy-market .fantasy-market-features{
  gap:.55rem;
  margin-top:1rem;
}
body.fantasy-mode #fantasy-market .fantasy-market-features span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.45rem;
  padding:.65rem .85rem;
  color:#344050;
  background:#fff;
  border:1px solid #e1e6ed;
  border-radius:11px;
  box-shadow:0 3px 8px rgba(18,29,43,.035);
  font-size:.82rem;
  font-weight:750;
}
body.fantasy-mode #fantasy-market .fantasy-market-features svg{
  width:17px!important;
  height:17px!important;
  min-width:17px!important;
  min-height:17px!important;
  max-width:17px!important;
  max-height:17px!important;
  color:#ed4a28;
}
body.fantasy-mode #fantasy-market .fantasy-market-footnote{
  max-width:900px;
  margin:.85rem auto 0;
  color:#7a8491;
  font-size:.8rem;
  line-height:1.6;
}
@media(max-width:680px){
  body.fantasy-mode #fantasy-market-results img,
  body.fantasy-mode #fantasy-market-results img[class*="logo"],
  body.fantasy-mode #fantasy-market-results img[class*="crest"],
  body.fantasy-mode #fantasy-market-results img[class*="club"],
  body.fantasy-mode #fantasy-market-results img[class*="team"]{
    width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;
    max-width:42px!important;max-height:42px!important;flex-basis:42px!important;
  }
  body.fantasy-mode #fantasy-market .fantasy-market-empty{min-height:270px;padding:2rem 1rem}
  body.fantasy-mode #fantasy-market .fantasy-market-features{display:flex;flex-direction:column;width:100%;max-width:330px}
  body.fantasy-mode #fantasy-market .fantasy-market-features span{width:100%;box-sizing:border-box}
}


/* Final sizing pass: Fantasy market typography and controls */
body.fantasy-mode #fantasy-market .fantasy-market-hero{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(190px,245px)!important;
  align-items:center!important;
  gap:clamp(1rem,2.5vw,2rem)!important;
  min-height:0!important;
  padding:clamp(1.25rem,2.5vw,2rem)!important;
}
body.fantasy-mode #fantasy-market .fantasy-market-hero__copy{min-width:0!important;max-width:680px!important}
body.fantasy-mode #fantasy-market .fantasy-market-hero .section-kicker{
  display:block!important;margin:0 0 .6rem!important;font-size:.7rem!important;line-height:1.3!important;letter-spacing:.14em!important;
}
body.fantasy-mode #fantasy-market .fantasy-market-hero h2{
  margin:0 0 .7rem!important;font-size:clamp(1.65rem,3vw,2.35rem)!important;line-height:1.08!important;letter-spacing:-.035em!important;
}
body.fantasy-mode #fantasy-market .fantasy-market-hero p{
  margin:0!important;max-width:620px!important;font-size:clamp(.9rem,1.2vw,1rem)!important;line-height:1.55!important;
}
body.fantasy-mode #fantasy-market .fantasy-market-wallet{
  box-sizing:border-box!important;min-width:0!important;width:100%!important;max-width:245px!important;
  padding:1rem 1.1rem!important;border-radius:13px!important;
}
body.fantasy-mode #fantasy-market .fantasy-market-wallet__label{
  display:block!important;margin:0 0 .4rem!important;font-size:.72rem!important;line-height:1.35!important;letter-spacing:.07em!important;
}
body.fantasy-mode #fantasy-market .fantasy-market-wallet strong{
  display:block!important;margin:0 0 .35rem!important;font-size:clamp(1.25rem,2vw,1.65rem)!important;line-height:1.15!important;
}
body.fantasy-mode #fantasy-market .fantasy-market-wallet small{
  display:block!important;font-size:.78rem!important;line-height:1.45!important;
}
body.fantasy-mode #fantasy-market .fantasy-market-toolbar{
  display:flex!important;align-items:center!important;justify-content:space-between!important;flex-wrap:wrap!important;
  gap:.75rem!important;margin:1rem 0!important;padding:.7rem!important;
}
body.fantasy-mode #fantasy-market .fantasy-market-tabs{
  display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:.25rem!important;
  width:auto!important;max-width:100%!important;padding:.25rem!important;
}
body.fantasy-mode #fantasy-market .fantasy-market-tab{
  box-sizing:border-box!important;min-height:38px!important;padding:.55rem .85rem!important;
  font-size:.82rem!important;line-height:1.2!important;font-weight:750!important;white-space:nowrap!important;
}
body.fantasy-mode #fantasy-market .fantasy-market-search{
  box-sizing:border-box!important;flex:0 1 280px!important;width:min(100%,280px)!important;min-width:200px!important;
  min-height:40px!important;padding:0 .75rem!important;border-radius:9px!important;
}
body.fantasy-mode #fantasy-market .fantasy-market-search input{
  min-width:0!important;font-size:.85rem!important;line-height:1.3!important;
}
body.fantasy-mode #fantasy-market .fantasy-market-results{min-width:0!important}
body.fantasy-mode #fantasy-market .fantasy-market-empty{
  box-sizing:border-box!important;min-height:0!important;padding:clamp(1.5rem,3.5vw,2.5rem) 1.25rem!important;gap:.55rem!important;
}
body.fantasy-mode #fantasy-market .fantasy-market-empty__icon{
  width:52px!important;height:52px!important;min-width:52px!important;min-height:52px!important;
  max-width:52px!important;max-height:52px!important;flex-basis:52px!important;padding:12px!important;margin:0 0 .3rem!important;
}
body.fantasy-mode #fantasy-market .fantasy-market-empty__icon svg{
  width:26px!important;height:26px!important;min-width:26px!important;min-height:26px!important;
  max-width:26px!important;max-height:26px!important;
}
body.fantasy-mode #fantasy-market .fantasy-market-empty .section-kicker{
  margin:0!important;font-size:.68rem!important;line-height:1.35!important;letter-spacing:.13em!important;
}
body.fantasy-mode #fantasy-market .fantasy-market-empty h3{
  margin:.25rem 0!important;font-size:clamp(1.25rem,2.4vw,1.8rem)!important;line-height:1.18!important;letter-spacing:-.025em!important;
}
body.fantasy-mode #fantasy-market .fantasy-market-empty p{
  max-width:650px!important;font-size:.9rem!important;line-height:1.6!important;
}
body.fantasy-mode #fantasy-market .fantasy-market-features{
  display:flex!important;align-items:center!important;justify-content:center!important;flex-wrap:wrap!important;
  gap:.5rem!important;margin-top:.7rem!important;
}
body.fantasy-mode #fantasy-market .fantasy-market-features span{
  gap:.4rem!important;padding:.5rem .7rem!important;border-radius:9px!important;font-size:.75rem!important;line-height:1.25!important;
}
body.fantasy-mode #fantasy-market .fantasy-market-features svg{
  width:15px!important;height:15px!important;min-width:15px!important;min-height:15px!important;
  max-width:15px!important;max-height:15px!important;flex:0 0 15px!important;
}
body.fantasy-mode #fantasy-market .fantasy-market-footnote{
  max-width:850px!important;margin:.7rem auto 0!important;font-size:.75rem!important;line-height:1.5!important;
}
@media(max-width:680px){
  body.fantasy-mode #fantasy-market .fantasy-market-hero{grid-template-columns:minmax(0,1fr)!important;gap:1rem!important}
  body.fantasy-mode #fantasy-market .fantasy-market-wallet{max-width:none!important}
  body.fantasy-mode #fantasy-market .fantasy-market-toolbar{align-items:stretch!important}
  body.fantasy-mode #fantasy-market .fantasy-market-tabs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;width:100%!important}
  body.fantasy-mode #fantasy-market .fantasy-market-tab{min-width:0!important;padding:.55rem .15rem!important;font-size:clamp(.65rem,2.8vw,.78rem)!important;white-space:normal!important}
  body.fantasy-mode #fantasy-market .fantasy-market-search{flex:1 1 100%!important;width:100%!important;min-width:0!important}
  body.fantasy-mode #fantasy-market .fantasy-market-empty{padding:1.5rem .85rem!important}
  body.fantasy-mode #fantasy-market .fantasy-market-features{display:grid!important;grid-template-columns:1fr!important;width:100%!important;max-width:300px!important}
  body.fantasy-mode #fantasy-market .fantasy-market-features span{width:100%!important;box-sizing:border-box!important}
}


/* HARD OVERRIDE: keep every market crest/logo wrapper and image small, even if earlier styles or inline dimensions enlarge it. */
body.fantasy-mode #fantasy-market #fantasy-market-results img,
body.fantasy-mode #fantasy-market #fantasy-market-results picture,
body.fantasy-mode #fantasy-market #fantasy-market-results picture img,
body.fantasy-mode #fantasy-market #fantasy-market-results [class*="logo"],
body.fantasy-mode #fantasy-market #fantasy-market-results [class*="crest"],
body.fantasy-mode #fantasy-market #fantasy-market-results [class*="badge"],
body.fantasy-mode #fantasy-market #fantasy-market-results [class*="emblem"]{
  box-sizing:border-box!important;
  width:40px!important;
  height:40px!important;
  min-width:0!important;
  min-height:0!important;
  max-width:40px!important;
  max-height:40px!important;
  flex:0 0 40px!important;
  object-fit:contain!important;
  object-position:center!important;
  background-size:contain!important;
}
body.fantasy-mode #fantasy-market #fantasy-market-results img{
  display:block!important;
}
body.fantasy-mode #fantasy-market #fantasy-market-results svg{
  max-width:20px!important;
  max-height:20px!important;
}
@media(max-width:680px){
  body.fantasy-mode #fantasy-market #fantasy-market-results img,
  body.fantasy-mode #fantasy-market #fantasy-market-results picture,
  body.fantasy-mode #fantasy-market #fantasy-market-results picture img,
  body.fantasy-mode #fantasy-market #fantasy-market-results [class*="logo"],
  body.fantasy-mode #fantasy-market #fantasy-market-results [class*="crest"],
  body.fantasy-mode #fantasy-market #fantasy-market-results [class*="badge"],
  body.fantasy-mode #fantasy-market #fantasy-market-results [class*="emblem"]{
    width:34px!important;height:34px!important;max-width:34px!important;max-height:34px!important;flex-basis:34px!important;
  }
}


/* Market logo safety net: constrain crests wherever market cards place them, not only inside results. */
body.fantasy-mode #fantasy-market img,
body.fantasy-mode #fantasy-market picture,
body.fantasy-mode #fantasy-market picture img,
body.fantasy-mode #fantasy-market [class*="logo"],
body.fantasy-mode #fantasy-market [class*="crest"],
body.fantasy-mode #fantasy-market [class*="badge"],
body.fantasy-mode #fantasy-market [class*="emblem"],
body.fantasy-mode #fantasy-market [data-logo],
body.fantasy-mode #fantasy-market [data-crest] {
  box-sizing: border-box !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 40px !important;
  max-height: 40px !important;
  flex: 0 0 40px !important;
  object-fit: contain !important;
  object-position: center !important;
  background-size: contain !important;
}
body.fantasy-mode #fantasy-market img { display: block !important; }
@media (max-width: 680px) {
  body.fantasy-mode #fantasy-market img,
  body.fantasy-mode #fantasy-market picture,
  body.fantasy-mode #fantasy-market picture img,
  body.fantasy-mode #fantasy-market [class*="logo"],
  body.fantasy-mode #fantasy-market [class*="crest"],
  body.fantasy-mode #fantasy-market [class*="badge"],
  body.fantasy-mode #fantasy-market [class*="emblem"],
  body.fantasy-mode #fantasy-market [data-logo],
  body.fantasy-mode #fantasy-market [data-crest] {
    width: 34px !important;
    height: 34px !important;
    max-width: 34px !important;
    max-height: 34px !important;
    flex-basis: 34px !important;
  }
}


/* Final market correction: this section must stay compact even when fantasy-mode
   is toggled late by authentication JS or card styles are loaded elsewhere. */
#fantasy-market .fantasy-market-hero {
  align-items: flex-start !important;
  gap: 1.25rem !important;
  padding: clamp(1.15rem, 2.4vw, 1.7rem) !important;
  border-radius: 16px !important;
}
#fantasy-market .fantasy-market-hero__copy { min-width: 0 !important; }
#fantasy-market .fantasy-market-hero .section-kicker {
  font-size: .68rem !important;
  letter-spacing: .13em !important;
}
#fantasy-market .fantasy-market-hero h2 {
  margin: .25rem 0 .45rem !important;
  font-size: clamp(1.55rem, 2.6vw, 2.15rem) !important;
  line-height: 1.12 !important;
}
#fantasy-market .fantasy-market-hero p {
  max-width: 600px !important;
  font-size: .91rem !important;
  line-height: 1.5 !important;
}
#fantasy-market .fantasy-market-wallet {
  flex: 0 1 220px !important;
  min-width: 0 !important;
  padding: .85rem 1rem !important;
}
#fantasy-market .fantasy-market-wallet strong { font-size: 1.25rem !important; }
#fantasy-market .fantasy-market-toolbar {
  margin: .8rem 0 !important;
  padding: .65rem !important;
}
#fantasy-market .fantasy-market-tab {
  min-height: 38px !important;
  padding: .58rem .8rem !important;
  font-size: .8rem !important;
}
#fantasy-market img,
#fantasy-market picture img,
#fantasy-market-results img {
  display: block !important;
  box-sizing: border-box !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  flex: 0 0 36px !important;
  object-fit: contain !important;
  object-position: center !important;
}
#fantasy-market .fantasy-market-empty {
  min-height: 0 !important;
  gap: .55rem !important;
  padding: clamp(1.5rem, 3.5vw, 2.5rem) 1.1rem !important;
  border-radius: 15px !important;
}
#fantasy-market .fantasy-market-empty__icon {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  min-height: 46px !important;
  max-width: 46px !important;
  max-height: 46px !important;
  flex-basis: 46px !important;
  padding: 10px !important;
  margin-bottom: .35rem !important;
  border-radius: 13px !important;
}
#fantasy-market .fantasy-market-empty__icon svg {
  width: 23px !important;
  height: 23px !important;
  min-width: 23px !important;
  min-height: 23px !important;
  max-width: 23px !important;
  max-height: 23px !important;
}
#fantasy-market .fantasy-market-empty h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.7rem) !important;
}
#fantasy-market .fantasy-market-empty p {
  max-width: 620px !important;
  font-size: .9rem !important;
  line-height: 1.55 !important;
}
#fantasy-market .fantasy-market-features {
  gap: .45rem !important;
  margin-top: .7rem !important;
}
#fantasy-market .fantasy-market-features span {
  padding: .48rem .65rem !important;
  font-size: .75rem !important;
}
#fantasy-market .fantasy-market-features svg {
  width: 15px !important;
  height: 15px !important;
  max-width: 15px !important;
  max-height: 15px !important;
}
#fantasy-market .fantasy-market-footnote {
  margin-top: .65rem !important;
  font-size: .75rem !important;
}
@media (max-width: 680px) {
  #fantasy-market .fantasy-market-hero { flex-direction: column !important; }
  #fantasy-market .fantasy-market-wallet { flex: 1 1 auto !important; width: 100% !important; }
  #fantasy-market img,
  #fantasy-market picture img,
  #fantasy-market-results img {
    width: 30px !important; height: 30px !important;
    min-width: 30px !important; min-height: 30px !important;
    max-width: 30px !important; max-height: 30px !important;
    flex-basis: 30px !important;
  }
  #fantasy-market .fantasy-market-tab { padding: .55rem .12rem !important; font-size: .7rem !important; }
  #fantasy-market .fantasy-market-empty { padding: 1.4rem .8rem !important; }
}


/* IFL Fantasy page-level logo guard: the sticky site header sits outside
   #fantasy-market, so market-only image rules cannot constrain that logo. */
body.ifl-fantasy-page .site-header .brand-logo {
  width: 76px !important;
  height: 48px !important;
  max-width: 76px !important;
  max-height: 48px !important;
  object-fit: contain !important;
}
body.ifl-fantasy-page .fantasy-nav__brand img {
  display: block !important;
  width: 30px !important;
  height: 30px !important;
  max-width: 30px !important;
  max-height: 30px !important;
  object-fit: contain !important;
}
body.ifl-fantasy-page .site-footer__brand img {
  width: 32px !important;
  height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  object-fit: contain !important;
}
body.ifl-fantasy-page #fantasy-market img,
body.ifl-fantasy-page #fantasy-market picture,
body.ifl-fantasy-page #fantasy-market picture img {
  box-sizing: border-box !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 32px !important;
  max-height: 32px !important;
  flex: 0 0 32px !important;
  object-fit: contain !important;
}
body.ifl-fantasy-page #fantasy-market svg {
  max-width: 28px !important;
  max-height: 28px !important;
}
@media (max-width: 680px) {
  body.ifl-fantasy-page .site-header .brand-logo {
    width: 58px !important;
    height: 40px !important;
    max-width: 58px !important;
    max-height: 40px !important;
  }
  body.ifl-fantasy-page #fantasy-market img,
  body.ifl-fantasy-page #fantasy-market picture,
  body.ifl-fantasy-page #fantasy-market picture img {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    flex-basis: 28px !important;
  }
}


/* Fix: prevent global SVG rules from stretching the empty-market icon */
#fantasy-market-results .fantasy-market-empty__icon {
  display: grid !important;
  place-items: center !important;
  flex: 0 0 62px !important;
  width: 62px !important;
  min-width: 62px !important;
  max-width: 62px !important;
  height: 62px !important;
  min-height: 62px !important;
  max-height: 62px !important;
  margin: 0 0 1.2rem !important;
  overflow: hidden !important;
}
#fantasy-market-results .fantasy-market-empty__icon svg {
  display: block !important;
  width: 28px !important;
  min-width: 28px !important;
  max-width: 28px !important;
  height: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  flex: 0 0 28px !important;
  overflow: hidden !important;
}
#fantasy-market-results .fantasy-market-empty__icon svg path {
  vector-effect: none;
}

/* Definitive market empty-state SVG sizing override.
   Earlier broad page rules set every child to width:100%, overriding the icon. */
body.fantasy-mode #fantasy-market-results .fantasy-market-empty {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}
body.fantasy-mode #fantasy-market-results .fantasy-market-empty > .fantasy-market-empty__icon {
  display: grid !important;
  box-sizing: border-box !important;
  align-self: center !important;
  flex: 0 0 56px !important;
  width: 56px !important;
  min-width: 56px !important;
  max-width: 56px !important;
  height: 56px !important;
  min-height: 56px !important;
  max-height: 56px !important;
  padding: 0 !important;
  margin: 0 auto .75rem !important;
  overflow: hidden !important;
}
body.fantasy-mode #fantasy-market-results .fantasy-market-empty > .fantasy-market-empty__icon > svg {
  display: block !important;
  box-sizing: border-box !important;
  flex: 0 0 24px !important;
  width: 24px !important;
  min-width: 24px !important;
  max-width: 24px !important;
  height: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}


/* Correct selector: fantasy.html uses body.ifl-fantasy-page, not body.fantasy-mode. */
body.ifl-fantasy-page #fantasy-market-results .fantasy-market-empty {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}
body.ifl-fantasy-page #fantasy-market-results .fantasy-market-empty > .fantasy-market-empty__icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  flex: 0 0 56px !important;
  width: 56px !important;
  min-width: 56px !important;
  max-width: 56px !important;
  height: 56px !important;
  min-height: 56px !important;
  max-height: 56px !important;
  margin: 0 auto 12px !important;
  padding: 0 !important;
  overflow: hidden !important;
  line-height: 1 !important;
}
body.ifl-fantasy-page #fantasy-market-results .fantasy-market-empty > .fantasy-market-empty__icon > svg {
  display: block !important;
  box-sizing: border-box !important;
  flex: 0 0 24px !important;
  width: 24px !important;
  min-width: 24px !important;
  max-width: 24px !important;
  height: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  margin: 0 !important;
  padding: 0 !important;
}


/* IFL Fantasy v1.4 — nueva identidad visual: sin los dos SVG problemáticos */
body.ifl-fantasy-page .fantasy-hero__visual{
  position:relative!important;display:grid!important;place-items:center!important;min-height:260px!important;
  isolation:isolate!important;
}
body.ifl-fantasy-page .fantasy-hero__visual::before{
  content:"";position:absolute;width:230px;height:230px;border-radius:50%;
  background:radial-gradient(circle at 35% 28%,#ff9a45 0,#f05a2a 38%,#a82d20 72%,#401d27 100%);
  box-shadow:0 0 0 10px rgba(255,103,45,.09),0 0 0 24px rgba(255,103,45,.045),0 22px 70px rgba(0,0,0,.28);
  z-index:-1;
}
body.ifl-fantasy-page .fantasy-hero__visual::after{
  content:"";position:absolute;width:270px;height:270px;border:1px solid rgba(255,126,67,.55);
  border-radius:50%;transform:rotate(-25deg);box-shadow:inset 0 0 35px rgba(255,111,53,.08);
  z-index:-1;
}
body.ifl-fantasy-page .fantasy-hero-emblem{
  width:180px;height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;
  box-sizing:border-box;border:2px solid rgba(255,255,255,.82);border-radius:50%;
  background:linear-gradient(145deg,#182b40,#0a1422);color:#fff;
  box-shadow:inset 0 0 0 7px rgba(255,106,48,.95),0 12px 38px rgba(0,0,0,.3);
  transform:rotate(-8deg);letter-spacing:.16em;
}
body.ifl-fantasy-page .fantasy-hero-emblem span{font-size:.7rem;font-weight:800;color:#ff8a48}
body.ifl-fantasy-page .fantasy-hero-emblem strong{font-size:5rem;line-height:.95;font-weight:800;letter-spacing:-.08em;text-shadow:3px 4px 0 #a93224}
body.ifl-fantasy-page .fantasy-hero-emblem small{font-size:.56rem;font-weight:800;letter-spacing:.3em;margin-top:.35rem}
body.ifl-fantasy-page .fantasy-market-section{
  position:relative;overflow:hidden;border:1px solid rgba(255,111,53,.22);border-radius:22px;
  padding:clamp(1rem,2.4vw,2rem)!important;
  background:radial-gradient(ellipse at 85% 0%,rgba(241,83,42,.13),transparent 38%),linear-gradient(135deg,#111f30,#0a1421 70%)!important;
}
body.ifl-fantasy-page .fantasy-market-section::before,
body.ifl-fantasy-page .fantasy-market-section::after{
  content:"";position:absolute;pointer-events:none;border-radius:999px;transform:rotate(-38deg);
}
body.ifl-fantasy-page .fantasy-market-section::before{right:-70px;top:20px;width:240px;height:12px;background:linear-gradient(90deg,transparent,#ff6b35,transparent);opacity:.65}
body.ifl-fantasy-page .fantasy-market-section::after{left:-80px;bottom:25px;width:210px;height:8px;background:linear-gradient(90deg,transparent,#ff6b35,transparent);opacity:.35}
body.ifl-fantasy-page .fantasy-market-section .fantasy-market-hero,
body.ifl-fantasy-page .fantasy-market-section .fantasy-market-toolbar,
body.ifl-fantasy-page .fantasy-market-section .fantasy-market-results,
body.ifl-fantasy-page .fantasy-market-section .fantasy-market-footnote{position:relative;z-index:1}
body.ifl-fantasy-page .fantasy-market-section .fantasy-market-hero{background:transparent!important;border:0!important;padding:0!important}
body.ifl-fantasy-page .fantasy-market-section .fantasy-market-hero h2,
body.ifl-fantasy-page .fantasy-market-section .fantasy-market-hero p{color:#f4f7fb!important}
body.ifl-fantasy-page .fantasy-market-section .fantasy-market-wallet{background:rgba(255,255,255,.055)!important;border:1px solid rgba(255,255,255,.12)!important;color:#fff!important}
body.ifl-fantasy-page .fantasy-market-section .fantasy-market-toolbar{background:rgba(255,255,255,.045)!important;border:1px solid rgba(255,255,255,.08)!important;border-radius:14px!important}
body.ifl-fantasy-page .fantasy-market-section .fantasy-market-empty{
  background:linear-gradient(135deg,rgba(20,37,55,.95),rgba(10,20,33,.98))!important;
  border:1px solid rgba(255,255,255,.11)!important;border-radius:18px!important;color:#f4f7fb!important;
}
body.ifl-fantasy-page .fantasy-market-section .fantasy-market-empty h3{color:#fff!important}
body.ifl-fantasy-page .fantasy-market-section .fantasy-market-empty p{color:#b8c8d9!important}
body.ifl-fantasy-page .fantasy-market-empty__mark{
  display:flex;align-items:center;justify-content:center;gap:.35rem;width:64px;height:64px;margin:0 auto .6rem;
  border:2px solid #ff7138;border-radius:18px;transform:rotate(-6deg);
  background:linear-gradient(145deg,#1a3046,#0a1421);box-shadow:0 0 0 6px rgba(255,113,56,.1),0 8px 28px rgba(0,0,0,.25);
}
body.ifl-fantasy-page .fantasy-market-empty__mark span{font-size:.65rem;font-weight:800;color:#ff8a48;writing-mode:vertical-rl}
body.ifl-fantasy-page .fantasy-market-empty__mark b{font-size:2.4rem;line-height:1;color:#fff}
body.ifl-fantasy-page .fantasy-market-section .fantasy-market-features span{background:rgba(255,255,255,.055)!important;border:1px solid rgba(255,113,56,.25)!important;color:#e8eef5!important}
body.ifl-fantasy-page .fantasy-market-section .fantasy-market-footnote{color:#9eafc2!important}
@media(max-width:680px){
 body.ifl-fantasy-page .fantasy-hero__visual{min-height:220px!important}
 body.ifl-fantasy-page .fantasy-hero__visual::before{width:175px;height:175px}
 body.ifl-fantasy-page .fantasy-hero__visual::after{width:210px;height:210px}
 body.ifl-fantasy-page .fantasy-hero-emblem{width:140px;height:140px}
 body.ifl-fantasy-page .fantasy-hero-emblem strong{font-size:4rem}
}


/* IFL Fantasy v1.5 — polished page styling and official IFL logo */
body.ifl-fantasy-page .fantasy-hero{
  position:relative;isolation:isolate;overflow:hidden;
  padding:clamp(2rem,5vw,4.5rem)!important;border:1px solid rgba(255,111,53,.16);
  border-radius:28px;background:
    radial-gradient(ellipse at 78% 22%,rgba(240,83,39,.16),transparent 36%),
    linear-gradient(125deg,#101f30 0%,#081421 72%,#111b29 100%)!important;
  box-shadow:0 22px 70px rgba(0,0,0,.18);
}
body.ifl-fantasy-page .fantasy-hero::before{
 content:"";position:absolute;inset:0;pointer-events:none;z-index:-1;opacity:.22;
 background:repeating-linear-gradient(135deg,transparent 0 70px,rgba(255,255,255,.035) 71px 73px,transparent 74px 140px);
}
body.ifl-fantasy-page .fantasy-hero__copy .section-intro{max-width:620px;line-height:1.75}
body.ifl-fantasy-page .fantasy-hero__copy h1{letter-spacing:-.045em}
body.ifl-fantasy-page .fantasy-hero__copy h1 span{color:#ff7138}
body.ifl-fantasy-page .fantasy-primary-link{
 display:inline-flex;align-items:center;gap:.8rem;padding:.85rem 1.2rem;border-radius:999px;
 background:linear-gradient(135deg,#ff7138,#d94324)!important;color:#fff!important;
 box-shadow:0 8px 26px rgba(240,83,39,.24);font-weight:800;text-decoration:none;
}
body.ifl-fantasy-page .fantasy-hero__visual{min-height:260px!important}
body.ifl-fantasy-page .fantasy-hero__visual::before{width:180px;height:180px}
body.ifl-fantasy-page .fantasy-hero__visual::after{width:218px;height:218px}
body.ifl-fantasy-page .fantasy-hero-emblem{
 width:148px!important;height:148px!important;padding:17px!important;gap:7px!important;
 transform:none!important;border:2px solid rgba(255,255,255,.85)!important;
 background:linear-gradient(145deg,#162b40,#081421)!important;
 box-shadow:inset 0 0 0 5px #f06435,0 12px 35px rgba(0,0,0,.35)!important;
}
body.ifl-fantasy-page .fantasy-hero-emblem img{
 display:block!important;width:90px!important;height:76px!important;max-width:90px!important;max-height:76px!important;
 object-fit:contain!important;background:transparent!important;
}
body.ifl-fantasy-page .fantasy-hero-emblem small{font-size:.58rem!important;letter-spacing:.22em!important;color:#ff986b!important}
body.ifl-fantasy-page .fantasy-summary-card{
 border:1px solid rgba(255,111,53,.15)!important;border-radius:18px!important;
 background:linear-gradient(145deg,rgba(19,37,55,.95),rgba(9,20,33,.98))!important;
 box-shadow:0 12px 34px rgba(0,0,0,.12);transition:transform .2s ease,border-color .2s ease;
}
body.ifl-fantasy-page .fantasy-summary-card:hover{transform:translateY(-3px);border-color:rgba(255,111,53,.45)!important}
body.ifl-fantasy-page .fantasy-summary-icon{color:#ff7138!important}
body.ifl-fantasy-page .fantasy-section{position:relative}
body.ifl-fantasy-page .fantasy-market-section{margin-top:clamp(2rem,4vw,4rem)!important}
body.ifl-fantasy-page .fantasy-market-section .fantasy-market-hero h2{font-size:clamp(1.8rem,3vw,2.6rem)!important;letter-spacing:-.035em}
body.ifl-fantasy-page .fantasy-market-section .fantasy-market-wallet{border-radius:16px!important}
body.ifl-fantasy-page .fantasy-market-section .fantasy-market-toolbar{padding:.8rem!important}
body.ifl-fantasy-page .fantasy-market-empty__mark{
 width:76px!important;height:76px!important;border-radius:20px!important;transform:none!important;
 display:grid!important;place-items:center!important;overflow:hidden!important;
 background:linear-gradient(145deg,#182c40,#071421)!important;
 box-shadow:0 0 0 7px rgba(255,113,56,.08),0 12px 30px rgba(0,0,0,.28)!important;
}
body.ifl-fantasy-page .fantasy-market-empty__mark img{
 display:block!important;width:58px!important;height:58px!important;max-width:58px!important;max-height:58px!important;
 object-fit:contain!important;
}
body.ifl-fantasy-page .fantasy-market-section .fantasy-market-features span{
 padding:.65rem .85rem!important;border-radius:999px!important;
}
body.ifl-fantasy-page .fantasy-formation-option{
 border-radius:18px!important;transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}
body.ifl-fantasy-page .fantasy-formation-option:hover{transform:translateY(-3px);box-shadow:0 12px 30px rgba(0,0,0,.12)}
body.ifl-fantasy-page .fantasy-formation-option.is-selected{border-color:#f06435!important;box-shadow:0 0 0 2px rgba(240,100,53,.12)}
body.ifl-fantasy-page .fantasy-pitch-panel{
 border-radius:22px!important;overflow:hidden;border:1px solid rgba(255,111,53,.18)!important;
}
body.ifl-fantasy-page .fantasy-nav{
 backdrop-filter:blur(16px);border-color:rgba(255,111,53,.13)!important;
}
@media(max-width:680px){
 body.ifl-fantasy-page .fantasy-hero{padding:1.3rem!important;border-radius:20px}
 body.ifl-fantasy-page .fantasy-hero__visual{min-height:215px!important}
 body.ifl-fantasy-page .fantasy-hero__visual::before{width:155px;height:155px}
 body.ifl-fantasy-page .fantasy-hero__visual::after{width:190px;height:190px}
 body.ifl-fantasy-page .fantasy-hero-emblem{width:126px!important;height:126px!important}
 body.ifl-fantasy-page .fantasy-hero-emblem img{width:75px!important;height:62px!important}
 body.ifl-fantasy-page .fantasy-market-empty__mark{width:66px!important;height:66px!important}
 body.ifl-fantasy-page .fantasy-market-empty__mark img{width:50px!important;height:50px!important}
}


/* IFL Fantasy v1.6 — estructura y navegación coherentes con Mercado y Clasificación */
body.ifl-fantasy-page .fantasy-page{width:min(100% - 2rem,var(--content-width));margin-inline:auto}
body.ifl-fantasy-page .fantasy-hero{color:var(--color-ink)!important;background:linear-gradient(115deg,#fff 0%,#fff7f4 70%,#fff 100%)!important;border:1px solid var(--color-line)!important;border-top:4px solid var(--color-brand)!important;border-radius:18px!important;box-shadow:0 12px 32px rgba(23,32,42,.06)!important}
body.ifl-fantasy-page .fantasy-hero__copy h1{color:var(--color-ink)!important}
body.ifl-fantasy-page .fantasy-hero__copy .section-intro{color:var(--color-muted)!important}
body.ifl-fantasy-page .fantasy-hero__copy h1 span{color:var(--color-brand)!important}
body.ifl-fantasy-page .fantasy-hero__visual::before{width:148px!important;height:148px!important;box-shadow:0 0 0 8px rgba(237,74,40,.08)!important}
body.ifl-fantasy-page .fantasy-hero__visual::after{width:178px!important;height:178px!important;border-color:rgba(237,74,40,.22)!important}
body.ifl-fantasy-page .fantasy-hero-emblem{width:116px!important;height:116px!important;border-radius:50%!important;background:#fff!important;box-shadow:0 8px 25px rgba(23,32,42,.12)!important;border-color:#fff!important}
body.ifl-fantasy-page .fantasy-hero-emblem img{width:82px!important;height:70px!important;object-fit:contain!important}
body.ifl-fantasy-page .fantasy-hero-emblem small{color:var(--color-brand)!important}
body.ifl-fantasy-page .fantasy-summary-card{background:#fff!important;color:var(--color-ink)!important;border:1px solid var(--color-line)!important;border-radius:14px!important;box-shadow:0 8px 24px rgba(23,32,42,.045)!important}
body.ifl-fantasy-page .fantasy-summary-card strong{color:var(--color-ink)!important}body.ifl-fantasy-page .fantasy-summary-card small{color:var(--color-muted)!important}
body.ifl-fantasy-page .fantasy-dashboard{margin:2rem 0 3rem}
body.ifl-fantasy-page .fantasy-dashboard__heading{display:flex;align-items:end;justify-content:space-between;gap:1rem;margin-bottom:1.2rem}
body.ifl-fantasy-page .fantasy-dashboard__heading h2{margin:.2rem 0 .4rem;font-size:clamp(1.8rem,3vw,2.5rem);letter-spacing:-.035em;color:var(--color-ink)}
body.ifl-fantasy-page .fantasy-dashboard__heading p{margin:0;color:var(--color-muted)}
body.ifl-fantasy-page .fantasy-dashboard__season{padding:.55rem .8rem;border:1px solid rgba(237,74,40,.2);border-radius:999px;color:var(--color-brand);font-size:.78rem;font-weight:800;letter-spacing:.1em;white-space:nowrap}
body.ifl-fantasy-page .fantasy-dashboard__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
body.ifl-fantasy-page .fantasy-dashboard-card{display:flex;align-items:center;gap:1rem;min-height:106px;padding:1.2rem;background:#fff;border:1px solid var(--color-line);border-radius:15px;text-decoration:none;box-shadow:0 8px 24px rgba(23,32,42,.045);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
body.ifl-fantasy-page .fantasy-dashboard-card:hover,body.ifl-fantasy-page .fantasy-dashboard-card:focus-visible{transform:translateY(-2px);border-color:rgba(237,74,40,.55);box-shadow:0 12px 28px rgba(23,32,42,.09);outline:none}
body.ifl-fantasy-page .fantasy-dashboard-card__icon{display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;border-radius:13px;background:#fff0eb;color:var(--color-brand);font-size:1.65rem;font-weight:800}
body.ifl-fantasy-page .fantasy-dashboard-card__text{display:grid;gap:.25rem;min-width:0;flex:1}
body.ifl-fantasy-page .fantasy-dashboard-card__text strong{color:var(--color-ink);font-size:1.15rem}
body.ifl-fantasy-page .fantasy-dashboard-card__text small{color:var(--color-muted);font-size:.92rem;line-height:1.35}
body.ifl-fantasy-page .fantasy-dashboard-card__arrow{color:var(--color-brand);font-size:1.5rem;font-weight:700}
body.ifl-fantasy-page .fantasy-market-section{background:#fff!important;border:1px solid var(--color-line)!important;border-top:3px solid var(--color-brand)!important;border-radius:16px!important;box-shadow:0 10px 28px rgba(23,32,42,.045)!important}
body.ifl-fantasy-page .fantasy-market-section .fantasy-market-hero h2,body.ifl-fantasy-page .fantasy-market-section .fantasy-market-hero p{color:var(--color-ink)!important}
body.ifl-fantasy-page .fantasy-market-section .fantasy-market-wallet{background:#fff7f4!important;border:1px solid #f4d8ce!important;color:var(--color-ink)!important;border-radius:12px!important}
body.ifl-fantasy-page .fantasy-market-section .fantasy-market-wallet small{color:var(--color-muted)!important}
body.ifl-fantasy-page .fantasy-market-section .fantasy-market-toolbar{background:#f7f8fa!important;border:1px solid var(--color-line)!important}
body.ifl-fantasy-page .fantasy-market-section .fantasy-market-empty{background:#fff!important;color:var(--color-ink)!important;border:1px solid var(--color-line)!important}
body.ifl-fantasy-page .fantasy-market-section .fantasy-market-empty h3{color:var(--color-ink)!important}
body.ifl-fantasy-page .fantasy-market-section .fantasy-market-empty p{color:var(--color-muted)!important}
body.ifl-fantasy-page .fantasy-market-section .fantasy-market-features span{background:#fff7f4!important;color:var(--color-ink)!important;border:1px solid #f4d8ce!important}
body.ifl-fantasy-page .fantasy-market-section .fantasy-market-footnote{color:var(--color-muted)!important}
body.ifl-fantasy-page .fantasy-formation-option{background:#fff!important;border:1px solid var(--color-line)!important;color:var(--color-ink)!important}
body.ifl-fantasy-page .fantasy-formation-option strong{color:var(--color-ink)!important}body.ifl-fantasy-page .fantasy-formation-option small{color:var(--color-muted)!important}
body.ifl-fantasy-page .fantasy-formation-option.is-selected{background:#fff7f4!important;border-color:var(--color-brand)!important}
body.ifl-fantasy-page .fantasy-pitch-panel,body.ifl-fantasy-page .fantasy-rules-panel,body.ifl-fantasy-page .fantasy-empty-roster{background:#fff!important;border:1px solid var(--color-line)!important;border-radius:16px!important;box-shadow:0 8px 24px rgba(23,32,42,.04)!important}
body.ifl-fantasy-page .fantasy-pitch-heading h3,body.ifl-fantasy-page .fantasy-rules-panel h3,body.ifl-fantasy-page .fantasy-empty-roster h3{color:var(--color-ink)!important}
body.ifl-fantasy-page .fantasy-pitch-caption,body.ifl-fantasy-page .fantasy-rules-list small,body.ifl-fantasy-page .fantasy-empty-roster p{color:var(--color-muted)!important}
body.ifl-fantasy-page .fantasy-footer-note{border-radius:14px!important;background:#fff7f4!important;border:1px solid #f4d8ce!important}
@media(max-width:700px){body.ifl-fantasy-page .fantasy-dashboard__heading{align-items:start;flex-direction:column}body.ifl-fantasy-page .fantasy-dashboard__grid{grid-template-columns:1fr}body.ifl-fantasy-page .fantasy-dashboard-card{min-height:88px;padding:1rem}}


/* IFL Fantasy v1.7 — clean pill buttons, controlled logo sizing, branded loading screen */
body.ifl-fantasy-page .fantasy-dashboard__grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
body.ifl-fantasy-page .fantasy-dashboard-card{
 min-width:0;min-height:145px;padding:20px 14px;display:flex;flex-direction:column;align-items:center;justify-content:center;
 gap:12px;text-align:center;background:#fff;border:1px solid #e4e7ec;border-radius:20px;
 box-shadow:0 4px 16px rgba(20,31,46,.045);text-decoration:none;overflow:hidden;
}
body.ifl-fantasy-page .fantasy-dashboard-card:hover,
body.ifl-fantasy-page .fantasy-dashboard-card:focus-visible{
 transform:translateY(-3px);background:#fff;border-color:#ed4a28;box-shadow:0 10px 24px rgba(237,74,40,.10);outline:none
}
body.ifl-fantasy-page .fantasy-dashboard-card__icon{
 display:grid;place-items:center;flex:0 0 54px;width:54px;height:54px;max-width:54px;max-height:54px;
 border-radius:16px;background:#fff1ec;color:#ed4a28;font-size:1.5rem;line-height:1;font-weight:700;overflow:hidden
}
body.ifl-fantasy-page .fantasy-dashboard-card__text{display:grid;gap:5px;justify-items:center;width:100%;min-width:0}
body.ifl-fantasy-page .fantasy-dashboard-card__text strong{font-family:"Barlow Semi Condensed",sans-serif;font-size:1.2rem;line-height:1.15;font-weight:800;color:#17202a}
body.ifl-fantasy-page .fantasy-dashboard-card__text small{font-family:inherit;font-size:.82rem;line-height:1.4;color:#667085;max-width:22ch}
body.ifl-fantasy-page .fantasy-dashboard-card__arrow{font-size:1rem;line-height:1;color:#ed4a28;margin-top:1px}
body.ifl-fantasy-page .fantasy-dashboard__heading h2{font-family:"Barlow Semi Condensed",sans-serif;font-weight:800}
body.ifl-fantasy-page .fantasy-dashboard__heading p{font-size:.98rem;line-height:1.55}
body.ifl-fantasy-page .fantasy-hero__visual{min-height:210px!important}
body.ifl-fantasy-page .fantasy-hero__visual::before{width:118px!important;height:118px!important}
body.ifl-fantasy-page .fantasy-hero__visual::after{width:150px!important;height:150px!important}
body.ifl-fantasy-page .fantasy-hero-emblem{width:96px!important;height:96px!important;padding:10px!important;gap:3px!important}
body.ifl-fantasy-page .fantasy-hero-emblem img{width:66px!important;height:58px!important;max-width:66px!important;max-height:58px!important;object-fit:contain!important}
body.ifl-fantasy-page .fantasy-hero-emblem small{font-size:.48rem!important;line-height:1!important}
body.ifl-fantasy-page .fantasy-market-empty__mark{width:58px!important;height:58px!important;flex:0 0 58px!important;border-radius:15px!important}
body.ifl-fantasy-page .fantasy-market-empty__mark img{width:43px!important;height:43px!important;max-width:43px!important;max-height:43px!important;object-fit:contain!important}
body.ifl-fantasy-page .fantasy-market-empty{padding:clamp(1.25rem,3vw,2.5rem)!important;gap:.8rem!important}
body.ifl-fantasy-page .fantasy-market-empty h3{font-family:"Barlow Semi Condensed",sans-serif;font-size:clamp(1.45rem,2vw,1.9rem)!important;line-height:1.15!important;font-weight:800!important}
body.ifl-fantasy-page .fantasy-market-empty p{max-width:66ch;margin-inline:auto;line-height:1.65!important;font-size:.96rem!important}
body.ifl-fantasy-page .fantasy-market-features{display:flex;flex-wrap:wrap;justify-content:center;gap:8px!important}
body.ifl-fantasy-page .fantasy-market-section .fantasy-market-features span{font-size:.82rem!important;font-weight:700;padding:.55rem .8rem!important}
body.ifl-fantasy-page .fantasy-intro{background:#0c1725!important}
body.ifl-fantasy-page .fantasy-intro__content{gap:1.2rem!important}
body.ifl-fantasy-page .fantasy-intro__logo{width:clamp(86px,12vw,132px)!important;height:clamp(86px,12vw,132px)!important;display:grid;place-items:center}
body.ifl-fantasy-page .fantasy-intro__logo img{display:block;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important}
body.ifl-fantasy-page .fantasy-intro__word{
 display:flex!important;flex-wrap:wrap;justify-content:center;align-items:baseline;gap:.025em!important;
 max-width:min(94vw,900px);font-family:"Barlow Semi Condensed",sans-serif!important;
 font-size:clamp(2rem,7vw,5.8rem)!important;font-weight:800!important;line-height:.95!important;letter-spacing:.035em!important;
 color:#fff!important;text-shadow:0 5px 24px rgba(237,74,40,.2)
}
body.ifl-fantasy-page .fantasy-intro__word span{font-size:inherit!important;color:#fff!important;line-height:1!important}
body.ifl-fantasy-page .fantasy-intro__word span:nth-child(1),
body.ifl-fantasy-page .fantasy-intro__word span:nth-child(2),
body.ifl-fantasy-page .fantasy-intro__word span:nth-child(3){color:#ff7549!important}
body.ifl-fantasy-page .fantasy-intro__word i{display:block;flex-basis:.25em;width:.25em}
body.ifl-fantasy-page .fantasy-intro__tagline{font-size:.76rem!important;letter-spacing:.22em!important;font-weight:700!important;color:#c8d2df!important;text-align:center}
body.ifl-fantasy-page .fantasy-intro__edition{font-size:.72rem!important;font-weight:800!important;letter-spacing:.24em!important;color:#ff7549!important}
@media(max-width:900px){body.ifl-fantasy-page .fantasy-dashboard__grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){
 body.ifl-fantasy-page .fantasy-dashboard__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 body.ifl-fantasy-page .fantasy-dashboard-card{min-height:132px;padding:15px 9px;border-radius:17px;gap:9px}
 body.ifl-fantasy-page .fantasy-dashboard-card__text strong{font-size:1.08rem}
 body.ifl-fantasy-page .fantasy-dashboard-card__text small{font-size:.76rem}
 body.ifl-fantasy-page .fantasy-hero__visual{min-height:170px!important}
 body.ifl-fantasy-page .fantasy-hero__visual::before{width:100px!important;height:100px!important}
 body.ifl-fantasy-page .fantasy-hero__visual::after{width:128px!important;height:128px!important}
 body.ifl-fantasy-page .fantasy-hero-emblem{width:82px!important;height:82px!important}
 body.ifl-fantasy-page .fantasy-hero-emblem img{width:56px!important;height:48px!important}
}


/* IFL Fantasy refresh — estilos aislados de la experiencia Fantasy. */
.ifl-fantasy-page {
  --fantasy-ink: #10151c;
  --fantasy-panel: #171f28;
  --fantasy-panel-2: #1d2832;
  --fantasy-line: rgba(255,255,255,.10);
  --fantasy-lime: #c8f169;
  --fantasy-orange: #ff795a;
  background: #0c1117;
  color: #f5f7f8;
}
.ifl-fantasy-page .site-shell { background: #0c1117; color: #f5f7f8; }
.ifl-fantasy-page .site-header {
  background: rgba(12,17,23,.92);
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 35px rgba(0,0,0,.18);
  backdrop-filter: blur(18px);
}
.ifl-fantasy-page .nav-link { color: #aeb8c2; }
.ifl-fantasy-page .nav-link:hover,
.ifl-fantasy-page .nav-link.is-active { color: var(--fantasy-lime); }
.ifl-fantasy-page .fantasy-page { padding-top: 1.4rem; }
.ifl-fantasy-page .fantasy-hero {
  min-height: 390px;
  border: 1px solid rgba(200,241,105,.2);
  border-radius: 28px;
  background:
    radial-gradient(ellipse at 78% 42%, rgba(200,241,105,.18), transparent 34%),
    radial-gradient(ellipse at 95% 110%, rgba(255,121,90,.15), transparent 38%),
    linear-gradient(125deg,#151e27 0%,#10161d 55%,#19232b 100%);
  box-shadow: 0 28px 90px rgba(0,0,0,.24);
}
.ifl-fantasy-page .fantasy-hero:before {
  background: repeating-linear-gradient(135deg,transparent 0 38px,rgba(255,255,255,.025) 39px 40px);
}
.ifl-fantasy-page .fantasy-hero .section-kicker,
.ifl-fantasy-page .fantasy-eyebrow { color: var(--fantasy-lime); }
.ifl-fantasy-page .fantasy-hero h1 { max-width: 680px; font-size: clamp(3rem,6.5vw,5.7rem); letter-spacing:-.055em; }
.ifl-fantasy-page .fantasy-hero h1 span { color: var(--fantasy-lime); }
.ifl-fantasy-page .fantasy-hero .section-intro { color:#b7c1ca; }
.ifl-fantasy-page .fantasy-primary-link {
  color:#10151c; background:var(--fantasy-lime); border-radius:12px;
  box-shadow:0 8px 28px rgba(200,241,105,.16); transition:transform .2s, box-shadow .2s;
}
.ifl-fantasy-page .fantasy-primary-link:hover { background:#d9ff8a; transform:translateY(-2px); box-shadow:0 14px 34px rgba(200,241,105,.2); }
.ifl-fantasy-page .fantasy-hero-ball {
  width:min(245px,82%); color:#10151c;
  background:linear-gradient(145deg,#e0ff9b,#a5d74a);
  box-shadow:0 0 0 18px rgba(200,241,105,.05),0 0 80px rgba(200,241,105,.19);
}
.ifl-fantasy-page .fantasy-hero-ball svg { stroke:#152019; }
.ifl-fantasy-page .fantasy-hero-tag { border-color:rgba(200,241,105,.3); background:rgba(200,241,105,.1); color:var(--fantasy-lime); }
.ifl-fantasy-page .fantasy-summary-grid { gap:.9rem; margin-bottom:2.5rem; }
.ifl-fantasy-page .fantasy-summary-card,
.ifl-fantasy-page .fantasy-dashboard-card,
.ifl-fantasy-page .fantasy-pitch-panel,
.ifl-fantasy-page .fantasy-rules-panel,
.ifl-fantasy-page .fantasy-formation-option,
.ifl-fantasy-page .fantasy-market-wallet,
.ifl-fantasy-page .fantasy-market-toolbar,
.ifl-fantasy-page .fantasy-empty-roster,
.ifl-fantasy-page .fantasy-footer-note {
  color:#f5f7f8; background:linear-gradient(145deg,#18212a,#131a22);
  border-color:rgba(255,255,255,.09); box-shadow:0 16px 42px rgba(0,0,0,.12);
}
.ifl-fantasy-page .fantasy-summary-card { border-radius:18px; }
.ifl-fantasy-page .fantasy-summary-icon { color:var(--fantasy-lime); background:rgba(200,241,105,.1); }
.ifl-fantasy-page .fantasy-summary-label,
.ifl-fantasy-page .fantasy-summary-card small,
.ifl-fantasy-page .fantasy-section-heading p,
.ifl-fantasy-page .fantasy-hero .section-intro,
.ifl-fantasy-page .fantasy-formation-option small,
.ifl-fantasy-page .fantasy-pitch-caption,
.ifl-fantasy-page .fantasy-rules-list small,
.ifl-fantasy-page .fantasy-market-footnote,
.ifl-fantasy-page .fantasy-footer-note p { color:#aab5bf; }
.ifl-fantasy-page .fantasy-section-heading .section-kicker,
.ifl-fantasy-page .fantasy-pitch-heading .section-kicker,
.ifl-fantasy-page .fantasy-rules-panel .section-kicker { color:var(--fantasy-lime); }
.ifl-fantasy-page .fantasy-section-heading h2,
.ifl-fantasy-page .fantasy-pitch-heading h3,
.ifl-fantasy-page .fantasy-rules-panel h3 { color:#f7f9fa; }
.ifl-fantasy-page .fantasy-formation-option { border-radius:18px; }
.ifl-fantasy-page .fantasy-formation-number { color:var(--fantasy-lime); }
.ifl-fantasy-page .fantasy-formation-option.is-selected {
  border:1px solid var(--fantasy-lime);
  padding:1.1rem 1.15rem;
  box-shadow:inset 0 0 0 1px var(--fantasy-lime),0 12px 32px rgba(200,241,105,.08);
}
.ifl-fantasy-page .fantasy-option-check { color:#11170e; background:var(--fantasy-lime); }
.ifl-fantasy-page .fantasy-count { color:#f5f7f8; background:#18212a; border-color:var(--fantasy-line); }
.ifl-fantasy-page .fantasy-count span { color:#aab5bf; }
.ifl-fantasy-page .fantasy-pitch { background:#214d39; border:1px solid rgba(200,241,105,.2); }
.ifl-fantasy-page .fantasy-pitch-badge { color:#d7ff9c; background:rgba(200,241,105,.13); }
.ifl-fantasy-page .fantasy-market-hero {
  border:1px solid rgba(200,241,105,.15); border-radius:24px;
  background:radial-gradient(ellipse at 85% 15%,rgba(200,241,105,.12),transparent 32%),linear-gradient(125deg,#18212a,#11171e);
}
.ifl-fantasy-page .fantasy-market-hero__copy .section-kicker { color:var(--fantasy-lime); }
.ifl-fantasy-page .fantasy-market-wallet { border-radius:16px; }
.ifl-fantasy-page .fantasy-market-toolbar { border-radius:16px; }
.ifl-fantasy-page .fantasy-market-tab { color:#bac4cd; border-color:rgba(255,255,255,.1); }
.ifl-fantasy-page .fantasy-market-tab.is-active { color:#10151c; background:var(--fantasy-lime); border-color:var(--fantasy-lime); }
.ifl-fantasy-page .fantasy-market-search input { color:#f5f7f8; background:#10161d; border-color:rgba(255,255,255,.12); }
.ifl-fantasy-page .fantasy-market-empty { background:linear-gradient(145deg,#18212a,#11171e); border-color:rgba(255,255,255,.1); }
.ifl-fantasy-page .fantasy-market-empty h3 { color:#f5f7f8; }
.ifl-fantasy-page .fantasy-market-empty p { color:#aab5bf; }
.ifl-fantasy-page .fantasy-market-features span { color:#dce3e8; background:rgba(255,255,255,.04); border-color:rgba(255,255,255,.08); }
.ifl-fantasy-page .fantasy-empty-roster__icon,
.ifl-fantasy-page .fantasy-footer-note__icon { color:var(--fantasy-lime); background:rgba(200,241,105,.1); }
.ifl-fantasy-page .fantasy-status-note { color:#d7ff9c; background:rgba(200,241,105,.09); }
.ifl-fantasy-page .site-footer { margin-top:3rem; color:#aab5bf; background:#080c11; border-top:1px solid rgba(255,255,255,.08); }
.ifl-fantasy-page .site-footer__brand,
.ifl-fantasy-page .site-footer__links a { color:#e3e8ec; }

/* Acceso Fantasy: pantalla propia, sin alterar el login del resto de IFL 2.0. */
.ifl-fantasy-page .fantasy-auth-screen {
  background:
    radial-gradient(ellipse at 50% 25%,rgba(200,241,105,.13),transparent 35%),
    radial-gradient(ellipse at 80% 80%,rgba(255,121,90,.12),transparent 28%),
    #080d12;
}
.ifl-fantasy-page .fantasy-auth-screen:before,
.ifl-fantasy-page .fantasy-auth-screen .auth-screen__stadium {
  background-image:
    linear-gradient(rgba(8,13,18,.52),rgba(8,13,18,.88)),
    repeating-linear-gradient(115deg,transparent 0 54px,rgba(200,241,105,.055) 55px 56px);
}
.ifl-fantasy-page .fantasy-auth-screen .auth-screen__mark { opacity:.2; filter:drop-shadow(0 0 35px rgba(200,241,105,.25)); }
.ifl-fantasy-page .fantasy-auth-screen .auth-screen__card {
  width:min(100% - 2rem,520px); padding:clamp(2rem,5vw,3.5rem);
  color:#f5f7f8; text-align:left; border:1px solid rgba(200,241,105,.22);
  border-radius:28px; background:linear-gradient(145deg,rgba(25,35,44,.96),rgba(12,18,25,.97));
  box-shadow:0 35px 100px rgba(0,0,0,.55),0 0 65px rgba(200,241,105,.06);
  backdrop-filter:blur(22px);
}
.ifl-fantasy-page .fantasy-auth-screen .auth-screen__eyebrow {
  display:inline-flex; align-items:center; gap:.55rem; margin-bottom:1.1rem;
  color:var(--fantasy-lime); font-size:.76rem; font-weight:900; letter-spacing:.22em;
}
.ifl-fantasy-page .fantasy-auth-screen .auth-screen__eyebrow:before { content:""; width:24px; height:2px; background:var(--fantasy-lime); }
.ifl-fantasy-page .fantasy-auth-screen h1 {
  max-width:440px; margin:.2rem 0 1rem; color:#fff;
  font-size:clamp(2.7rem,7vw,4.2rem); line-height:.98; letter-spacing:-.055em;
}
.ifl-fantasy-page .fantasy-auth-screen h1 em { color:var(--fantasy-lime); font-style:normal; }
.ifl-fantasy-page .fantasy-auth-screen p { max-width:390px; color:#b5c0c9; line-height:1.65; }
.ifl-fantasy-page .fantasy-auth-screen .auth-screen__button {
  display:flex; width:100%; justify-content:center; align-items:center; gap:.8rem;
  margin-top:1.8rem; padding:1rem 1.15rem; color:#10150c;
  background:var(--fantasy-lime); border:1px solid var(--fantasy-lime);
  border-radius:13px; box-shadow:0 12px 32px rgba(200,241,105,.16);
  font-weight:900; transition:transform .2s,box-shadow .2s,background .2s;
}
.ifl-fantasy-page .fantasy-auth-screen .auth-screen__button:hover {
  background:#dfff9b; transform:translateY(-2px); box-shadow:0 18px 40px rgba(200,241,105,.22);
}
.ifl-fantasy-page .fantasy-auth-screen .auth-screen__discord-icon {
  display:grid; place-items:center; width:30px; height:30px; color:#fff;
  background:#5865f2; border-radius:9px; font-size:1.15rem;
}
@media (max-width:760px) {
  .ifl-fantasy-page .fantasy-hero { grid-template-columns:1fr; min-height:0; }
  .ifl-fantasy-page .fantasy-hero__visual { min-height:190px; }
  .ifl-fantasy-page .fantasy-summary-grid { grid-template-columns:1fr; }
  .ifl-fantasy-page .fantasy-formation-options { grid-template-columns:1fr; }
  .ifl-fantasy-page .fantasy-tactics-layout { grid-template-columns:1fr; }
  .ifl-fantasy-page .fantasy-auth-screen .auth-screen__card { text-align:left; }
}


/* IFL Fantasy v2.0 — rediseño publicado y aislado de la web principal */
.ifl-fantasy-page {
  --fantasy-lime:#c8f169;
  --fantasy-lime-bright:#dfff91;
  --fantasy-ink:#080d12;
  --fantasy-panel:#121a22;
  --fantasy-panel-soft:#17222c;
  --fantasy-line:rgba(255,255,255,.1);
  color:#f4f7f9;
  background:#0a0f14;
}
.ifl-fantasy-page .fantasy-page {
  width:min(100% - 2rem,1320px);
  padding-top:2.2rem;
  padding-bottom:5rem;
}
.ifl-fantasy-page .fantasy-nav {
  background:rgba(8,13,18,.96);
  border-bottom:1px solid rgba(200,241,105,.18);
  backdrop-filter:blur(18px);
}
.ifl-fantasy-page .fantasy-nav__brand strong { color:var(--fantasy-lime); }
.ifl-fantasy-page .fantasy-nav__links a { color:#aeb9c2; }
.ifl-fantasy-page .fantasy-nav__links a:hover { color:var(--fantasy-lime); }
.ifl-fantasy-page .fantasy-nav__exit:hover {
  color:#0c1208; background:var(--fantasy-lime); border-color:var(--fantasy-lime);
}
.ifl-fantasy-page .fantasy-hero {
  min-height:390px;
  grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);
  padding:clamp(2rem,5vw,4.6rem);
  border:1px solid rgba(200,241,105,.18);
  border-radius:28px;
  background:
    radial-gradient(ellipse at 82% 35%,rgba(200,241,105,.16),transparent 28%),
    radial-gradient(ellipse at 65% 100%,rgba(63,128,90,.18),transparent 45%),
    linear-gradient(130deg,#17232b 0%,#0c131a 66%,#10191d 100%);
  box-shadow:0 26px 80px rgba(0,0,0,.22);
}
.ifl-fantasy-page .fantasy-hero:before {
  z-index:-1;
  opacity:.8;
  background:
    linear-gradient(90deg,transparent 49.8%,rgba(255,255,255,.035) 50%,transparent 50.2%),
    repeating-linear-gradient(0deg,transparent 0 43px,rgba(255,255,255,.025) 44px 45px);
}
.ifl-fantasy-page .fantasy-hero .section-kicker,
.ifl-fantasy-page .fantasy-eyebrow { color:var(--fantasy-lime); }
.ifl-fantasy-page .fantasy-eyebrow { margin-top:1.2rem; }
.ifl-fantasy-page .fantasy-hero h1 {
  max-width:650px; margin:.55rem 0 1.25rem;
  font-size:clamp(3rem,6.6vw,5.8rem); line-height:.91;
  letter-spacing:-.065em; text-transform:uppercase;
}
.ifl-fantasy-page .fantasy-hero h1 span { color:var(--fantasy-lime); }
.ifl-fantasy-page .fantasy-hero .section-intro {
  max-width:490px; color:#b8c4cd; font-size:1.08rem; line-height:1.7;
}
.ifl-fantasy-page .fantasy-primary-link {
  margin-top:1.5rem; padding:.95rem 1.3rem; color:#0b1207;
  background:var(--fantasy-lime); border:1px solid var(--fantasy-lime);
  border-radius:12px; box-shadow:0 10px 30px rgba(200,241,105,.12);
}
.ifl-fantasy-page .fantasy-primary-link:hover { background:var(--fantasy-lime-bright); transform:translateY(-2px); }
.ifl-fantasy-page .fantasy-hero__visual {
  min-height:270px;
  background:radial-gradient(ellipse at center,rgba(200,241,105,.08),transparent 60%);
}
.ifl-fantasy-page .fantasy-hero-emblem {
  position:relative; display:flex; width:min(270px,75%); aspect-ratio:1;
  flex-direction:column; align-items:center; justify-content:center; gap:.4rem;
  border:1px solid rgba(200,241,105,.36); border-radius:50%;
  background:radial-gradient(circle at 50% 35%,rgba(200,241,105,.13),rgba(10,16,21,.2) 65%);
  box-shadow:0 0 0 14px rgba(200,241,105,.025),0 0 0 30px rgba(200,241,105,.018),0 0 70px rgba(200,241,105,.1);
}
.ifl-fantasy-page .fantasy-hero-emblem:before {
  position:absolute; inset:12px; content:""; border:1px dashed rgba(200,241,105,.25); border-radius:50%;
}
.ifl-fantasy-page .fantasy-hero-emblem img { position:relative; width:52%; height:52%; object-fit:contain; }
.ifl-fantasy-page .fantasy-hero-emblem small {
  position:relative; color:var(--fantasy-lime); font-size:.7rem; font-weight:900; letter-spacing:.35em;
}
.ifl-fantasy-page .fantasy-hero-tag {
  right:0; bottom:10%; color:var(--fantasy-lime); background:#111a20;
  border-color:rgba(200,241,105,.24); letter-spacing:.16em;
}
.ifl-fantasy-page .fantasy-summary-grid { gap:1rem; margin:1.2rem 0 3.5rem; }
.ifl-fantasy-page .fantasy-summary-card {
  min-height:142px; padding:1.35rem; color:#f5f7f8;
  background:linear-gradient(145deg,#17212a,#10171e);
  border:1px solid rgba(255,255,255,.08); border-radius:18px;
  box-shadow:0 14px 34px rgba(0,0,0,.13);
  transition:transform .2s,border-color .2s;
}
.ifl-fantasy-page .fantasy-summary-card:hover { transform:translateY(-3px); border-color:rgba(200,241,105,.28); }
.ifl-fantasy-page .fantasy-summary-icon { color:var(--fantasy-lime); background:rgba(200,241,105,.1); }
.ifl-fantasy-page .fantasy-summary-label,
.ifl-fantasy-page .fantasy-summary-card small { color:#9eabb6; }
.ifl-fantasy-page .fantasy-summary-card strong { color:#fff; }
.ifl-fantasy-page .fantasy-dashboard { margin:0 0 3.5rem; }
.ifl-fantasy-page .fantasy-dashboard__heading { margin-bottom:1.2rem; }
.ifl-fantasy-page .fantasy-dashboard__heading .section-kicker { color:var(--fantasy-lime); }
.ifl-fantasy-page .fantasy-dashboard__heading h2 { color:#f7f9fa; font-size:clamp(1.8rem,3vw,2.5rem); letter-spacing:-.04em; }
.ifl-fantasy-page .fantasy-dashboard__heading p { color:#aab5bf; }
.ifl-fantasy-page .fantasy-dashboard__season {
  color:var(--fantasy-lime); background:rgba(200,241,105,.08);
  border:1px solid rgba(200,241,105,.2); border-radius:999px;
}
.ifl-fantasy-page .fantasy-dashboard__grid { gap:.85rem; }
.ifl-fantasy-page .fantasy-dashboard-card {
  min-height:108px; color:#f5f7f8;
  background:linear-gradient(145deg,#17212a,#10171e);
  border:1px solid rgba(255,255,255,.085); border-radius:17px;
  transition:transform .2s,border-color .2s,background .2s;
}
.ifl-fantasy-page .fantasy-dashboard-card:hover {
  transform:translateY(-3px); border-color:rgba(200,241,105,.38);
  background:linear-gradient(145deg,#1d2b31,#111b20);
}
.ifl-fantasy-page .fantasy-dashboard-card__icon {
  color:var(--fantasy-lime); background:rgba(200,241,105,.1); border-radius:12px;
}
.ifl-fantasy-page .fantasy-dashboard-card__text strong { color:#f5f7f8; }
.ifl-fantasy-page .fantasy-dashboard-card__text small { color:#a6b2bd; }
.ifl-fantasy-page .fantasy-dashboard-card__arrow { color:var(--fantasy-lime); }
.ifl-fantasy-page .fantasy-section { margin-top:3.7rem; }
.ifl-fantasy-page .fantasy-section-heading h2 { color:#f5f7f8; }
.ifl-fantasy-page .fantasy-section-heading p { color:#aab5bf; }
.ifl-fantasy-page .fantasy-count { color:#f5f7f8; background:#17212a; border-color:var(--fantasy-line); }
.ifl-fantasy-page .fantasy-market-hero {
  padding:clamp(1.5rem,4vw,2.5rem);
  background:radial-gradient(ellipse at 90% 0%,rgba(200,241,105,.12),transparent 34%),linear-gradient(125deg,#17232b,#0e151b);
  border-color:rgba(200,241,105,.18);
}
.ifl-fantasy-page .fantasy-market-hero__copy h2 { color:#fff; font-size:clamp(2rem,4vw,3rem); letter-spacing:-.04em; }
.ifl-fantasy-page .fantasy-market-hero__copy p { color:#b1bdc6; }
.ifl-fantasy-page .fantasy-market-wallet { background:rgba(6,12,16,.45); border-color:rgba(255,255,255,.09); }
.ifl-fantasy-page .fantasy-market-wallet strong { color:var(--fantasy-lime); }
.ifl-fantasy-page .fantasy-market-toolbar { background:#121b23; border-color:rgba(255,255,255,.08); }
.ifl-fantasy-page .fantasy-market-empty { padding:clamp(2rem,5vw,4rem) 1.5rem; border-radius:20px; }
.ifl-fantasy-page .fantasy-market-empty__mark { border-color:rgba(200,241,105,.2); }
.ifl-fantasy-page .fantasy-market-empty h3 { font-size:clamp(1.4rem,3vw,2rem); letter-spacing:-.03em; }
.ifl-fantasy-page .fantasy-market-features span { border-radius:999px; }
.ifl-fantasy-page .fantasy-formation-option {
  color:#f4f7f8; background:linear-gradient(145deg,#17212a,#111820);
  border-color:rgba(255,255,255,.09); border-radius:17px;
}
.ifl-fantasy-page .fantasy-formation-option:hover { border-color:rgba(200,241,105,.45); }
.ifl-fantasy-page .fantasy-formation-number { color:var(--fantasy-lime); }
.ifl-fantasy-page .fantasy-formation-option strong { color:#f4f7f8; }
.ifl-fantasy-page .fantasy-formation-option small { color:#aab5bf; }
.ifl-fantasy-page .fantasy-formation-option.is-selected {
  border:1px solid var(--fantasy-lime);
  box-shadow:inset 0 0 0 1px rgba(200,241,105,.4),0 14px 34px rgba(200,241,105,.07);
}
.ifl-fantasy-page .fantasy-option-check { color:#0b1207; background:var(--fantasy-lime); }
.ifl-fantasy-page .fantasy-pitch-panel,
.ifl-fantasy-page .fantasy-rules-panel {
  padding:1.5rem; color:#f5f7f8; background:linear-gradient(145deg,#17212a,#10171e);
  border-color:rgba(255,255,255,.08); border-radius:20px;
}
.ifl-fantasy-page .fantasy-pitch { min-height:420px; border-radius:15px; box-shadow:inset 0 0 0 1px rgba(255,255,255,.05); }
.ifl-fantasy-page .fantasy-position-token svg { color:#0b1207; background:var(--fantasy-lime); border-color:rgba(255,255,255,.8); }
.ifl-fantasy-page .fantasy-rules-list strong { color:#f5f7f8; }
.ifl-fantasy-page .fantasy-rules-list small { color:#aab5bf; }
.ifl-fantasy-page .fantasy-rule-check { color:#0b1207; background:var(--fantasy-lime); }
.ifl-fantasy-page .fantasy-empty-roster {
  padding:clamp(2.5rem,6vw,4.5rem) 1.5rem; color:#f5f7f8;
  background:radial-gradient(ellipse at 50% 0%,rgba(200,241,105,.08),transparent 50%),#121a22;
  border:1px dashed rgba(200,241,105,.23); border-radius:20px;
}
.ifl-fantasy-page .fantasy-empty-roster h3 { color:#fff; }
.ifl-fantasy-page .fantasy-empty-roster p { color:#aab5bf; }
.ifl-fantasy-page .fantasy-status-note { color:#dfff91; background:rgba(200,241,105,.09); }
.ifl-fantasy-page .fantasy-status-note span { background:var(--fantasy-lime); }
.ifl-fantasy-page .fantasy-footer-note {
  color:#e5ebef; background:#121a22; border-color:rgba(255,255,255,.08); border-radius:16px;
}
.ifl-fantasy-page .fantasy-footer-note strong { color:var(--fantasy-lime); }
.ifl-fantasy-page .site-footer { background:#070b0f; }
@media(max-width:850px) {
  .ifl-fantasy-page .fantasy-hero { grid-template-columns:1fr .55fr; }
  .ifl-fantasy-page .fantasy-hero-emblem { width:82%; }
}
@media(max-width:620px) {
  .ifl-fantasy-page .fantasy-page { width:min(100% - 1.1rem,1320px); padding-top:1rem; }
  .ifl-fantasy-page .fantasy-hero { grid-template-columns:1fr; padding:1.45rem; min-height:0; }
  .ifl-fantasy-page .fantasy-hero__visual { position:relative; right:auto; bottom:auto; min-height:190px; opacity:1; }
  .ifl-fantasy-page .fantasy-hero-emblem { width:165px; }
  .ifl-fantasy-page .fantasy-hero h1 { font-size:clamp(2.7rem,13vw,4rem); }
  .ifl-fantasy-page .fantasy-summary-grid { grid-template-columns:1fr; }
  .ifl-fantasy-page .fantasy-dashboard__heading { align-items:flex-start; }
  .ifl-fantasy-page .fantasy-market-hero { gap:1rem; }
  .ifl-fantasy-page .fantasy-pitch { min-height:330px; }
}


/* Fantasy refresh: jerarquia visual, tarjetas y estados vacíos */
.ifl-fantasy-page .fantasy-page{max-width:1320px}
.ifl-fantasy-page .fantasy-hero{min-height:340px;border:1px solid rgba(255,255,255,.08);box-shadow:0 24px 65px rgba(8,13,18,.16)}
.ifl-fantasy-page .fantasy-hero__copy{position:relative;z-index:2}
.ifl-fantasy-page .fantasy-hero h1{max-width:700px;font-size:clamp(3rem,6.5vw,5.4rem);letter-spacing:-.055em}
.ifl-fantasy-page .fantasy-hero h1 span{color:var(--fantasy-lime,#c8f169)}
.ifl-fantasy-page .fantasy-hero .section-intro{line-height:1.65}
.ifl-fantasy-page .fantasy-primary-link{border-radius:12px;box-shadow:0 9px 22px rgba(0,0,0,.16);transition:transform .18s ease,background .18s ease}
.ifl-fantasy-page .fantasy-primary-link:hover{transform:translateY(-2px)}
.ifl-fantasy-page .fantasy-summary-grid{gap:14px;margin-top:18px}
.ifl-fantasy-page .fantasy-summary-card{position:relative;overflow:hidden;border-radius:18px;border:1px solid #e5e9ed;box-shadow:0 8px 24px rgba(16,24,32,.045);transition:transform .18s ease,box-shadow .18s ease}
.ifl-fantasy-page .fantasy-summary-card:hover{transform:translateY(-2px);box-shadow:0 13px 28px rgba(16,24,32,.08)}
.ifl-fantasy-page .fantasy-summary-icon{border-radius:13px}
.ifl-fantasy-page .fantasy-dashboard{margin-top:38px}
.ifl-fantasy-page .fantasy-dashboard__heading{margin-bottom:17px}
.ifl-fantasy-page .fantasy-dashboard__grid{gap:13px}
.ifl-fantasy-page .fantasy-dashboard-card{min-height:105px;padding:19px;border:1px solid rgba(255,255,255,.09);border-radius:17px;background:linear-gradient(145deg,#17212a,#111820);box-shadow:0 8px 22px rgba(12,18,24,.07);transition:transform .18s ease,border-color .18s ease}
.ifl-fantasy-page .fantasy-dashboard-card:hover{transform:translateY(-3px);border-color:rgba(200,241,105,.4)}
.ifl-fantasy-page .fantasy-dashboard-card__icon{display:grid;place-items:center;width:43px;height:43px;border-radius:12px;background:rgba(200,241,105,.1);color:var(--fantasy-lime,#c8f169);font-size:1.4rem}
.ifl-fantasy-page .fantasy-dashboard-card__arrow{color:var(--fantasy-lime,#c8f169)}
.ifl-fantasy-page .fantasy-market-section{margin-top:42px;padding:clamp(1rem,2.5vw,1.6rem);background:#f0f3f5;border:1px solid #e0e5e9;border-radius:22px}
.ifl-fantasy-page .fantasy-market-hero{gap:18px;padding:clamp(1.25rem,3vw,2rem);border-radius:18px;background:radial-gradient(ellipse at 85% 15%,rgba(200,241,105,.1),transparent 38%),linear-gradient(125deg,#111820,#1b2731)}
.ifl-fantasy-page .fantasy-market-hero__copy h2{font-size:clamp(1.7rem,3.5vw,2.45rem);letter-spacing:-.035em}
.ifl-fantasy-page .fantasy-market-hero__copy p{max-width:620px;color:#bdc7d0;line-height:1.6}
.ifl-fantasy-page .fantasy-market-wallet{min-width:190px;padding:17px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);border-radius:15px}
.ifl-fantasy-page .fantasy-market-wallet strong{font-size:1.45rem}
.ifl-fantasy-page .fantasy-market-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:17px 0}
.ifl-fantasy-page .fantasy-market-tabs{display:flex;flex-wrap:wrap;gap:7px;padding:5px;background:#e2e7eb;border-radius:12px}
.ifl-fantasy-page .fantasy-market-tab{min-height:40px;padding:9px 14px;border:1px solid transparent;border-radius:9px;background:transparent;color:#495665;font:inherit;font-weight:800;cursor:pointer}
.ifl-fantasy-page .fantasy-market-tab.is-active{background:#fff;color:#17202a;box-shadow:0 2px 7px rgba(10,18,26,.08)}
.ifl-fantasy-page .fantasy-market-search{display:flex;align-items:center;gap:9px;min-width:min(100%,280px);padding:0 12px;background:#fff;border:1px solid #dbe1e6;border-radius:11px}
.ifl-fantasy-page .fantasy-market-search input{width:100%;min-height:44px;border:0;outline:0;background:transparent;color:#17202a;font:inherit}
.ifl-fantasy-page .fantasy-market-empty{display:grid;justify-items:center;gap:10px;max-width:760px;margin:0 auto;padding:clamp(2rem,5vw,3.5rem) 1.25rem;text-align:center;background:linear-gradient(180deg,#fff,#f8fafb);border:1px dashed #cbd4dc;border-radius:18px}
.ifl-fantasy-page .fantasy-market-empty__mark{display:grid;place-items:center;width:64px;height:64px;margin-bottom:4px;padding:12px;border-radius:17px;background:#17212a;box-shadow:0 8px 20px rgba(14,22,30,.15)}
.ifl-fantasy-page .fantasy-market-empty__mark img{width:100%;height:100%;object-fit:contain}
.ifl-fantasy-page .fantasy-market-empty h3{margin:0;font-size:clamp(1.3rem,3vw,1.8rem);letter-spacing:-.025em}
.ifl-fantasy-page .fantasy-market-empty p{max-width:570px;margin:0;color:#65717e;line-height:1.65}
.ifl-fantasy-page .fantasy-market-features{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin-top:6px}
.ifl-fantasy-page .fantasy-market-features>span{padding:8px 10px;border:1px solid #e1e6eb;border-radius:999px;background:#fff;color:#465363;font-size:.8rem;font-weight:750}
.ifl-fantasy-page .fantasy-pitch-panel,.ifl-fantasy-page .fantasy-rules-panel{box-shadow:0 10px 28px rgba(8,13,18,.08)}
.ifl-fantasy-page .fantasy-footer-note{line-height:1.6}
.ifl-fantasy-page .profile-avatar.has-discord-avatar{background-size:cover;background-position:center;border-radius:50%}
@media(max-width:760px){.ifl-fantasy-page .fantasy-market-toolbar{align-items:stretch;flex-direction:column}.ifl-fantasy-page .fantasy-market-search{min-width:0}.ifl-fantasy-page .fantasy-market-wallet{min-width:0}.ifl-fantasy-page .fantasy-market-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.ifl-fantasy-page .fantasy-market-tab{padding:8px 5px;font-size:.78rem}}
