.sf-backdrop{position:fixed;inset:0;z-index:2000;background:#06120fee;overflow:auto;color:#e5e9df;font:16px/1.55 system-ui,sans-serif;padding:20px;box-sizing:border-box}.sf-backdrop *{box-sizing:border-box}.sf-shell{max-width:1220px;margin:auto;background:linear-gradient(135deg,#22382b,#111d18 65%);border:1px solid #a09055;border-radius:16px;box-shadow:0 20px 80px #0009}.sf-header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px 30px;border-bottom:1px solid #546346}.sf-header h1{font:700 clamp(25px,3.5vw,42px)/1.15 Georgia,serif;color:#e6cc84;margin:5px 0 8px}.sf-header p{margin:0}.sf-header .eyebrow{font-size:11px;font-weight:700;letter-spacing:2px;color:#d2bc7e}.sf-backdrop h2,.sf-backdrop h3{font-family:Georgia,serif;color:#e4ce93}.sf-backdrop h2{font-size:27px;margin-top:0}.sf-backdrop h3{font-size:19px}.sf-backdrop button{background:#263b2e;color:#f0e7cf;border:1px solid #58694c;border-radius:7px;padding:11px 15px;font:inherit;cursor:pointer;min-height:44px}.sf-backdrop button:hover,.sf-backdrop button:focus-visible,.sf-backdrop select:focus-visible,.sf-backdrop input:focus-visible{outline:2px solid #ddc77e;outline-offset:2px}.sf-backdrop button.chosen,.sf-backdrop button.primary{border-color:#e3c87c;background:#465838;color:#fff6df}.sf-backdrop button:disabled{opacity:.45;cursor:not-allowed}.sf-roster{display:flex;gap:8px;flex-wrap:wrap;padding:16px 24px;background:#101e18}.sf-layout{display:grid;grid-template-columns:230px minmax(0,1fr)}.sf-athlete{padding:22px;background:linear-gradient(#293e2a,#0c1c16);border-right:1px solid #4b5d43}.sf-athlete>.player-art{width:100%;margin-bottom:15px;max-height:240px}.sf-athlete h2{font-size:25px;margin:10px 0 2px;overflow-wrap:anywhere}.sf-athlete p{margin:0 0 8px}.sf-athlete small{color:#bac6b8}.sf-main{padding:20px 28px 28px;min-width:0;max-height:calc(100dvh - 290px);overflow:auto;overscroll-behavior:contain}.sf-steps{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:25px}.sf-steps button{font-size:12px;padding:9px 11px}.sf-attributes{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:18px 0}.sf-attributes>div{background:#081d17;border:1px solid #61704b;text-align:center;padding:14px 7px;border-radius:6px}.sf-attributes span,.sf-attributes b,.sf-attributes small{display:block}.sf-attributes b{font:700 29px Georgia,serif;color:#e7d195}.sf-attributes span,.sf-attributes small{font-size:12px}.sf-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:15px 0}.sf-backdrop label{display:block;font-size:14px;font-weight:600}.sf-backdrop input,.sf-backdrop select,.sf-backdrop textarea{display:block;width:100%;padding:12px;margin-top:6px;color:#f6f2e8;background:#10231b;border:1px solid #7b895e;border-radius:6px;font:inherit;min-height:44px}.sf-backdrop textarea{resize:vertical}.sf-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:17px 0}.sf-backdrop .sf-option{display:flex;flex-direction:column;gap:9px;text-align:left;padding:18px;white-space:normal;line-height:1.6}.sf-option small{color:#cdbf92}.sf-option b{font:700 21px Georgia,serif;color:#f2dc9a}.sf-option.chosen{box-shadow:inset 0 0 0 1px #e4cd80}.sf-option.chosen:before{content:'✓ Elegido';font-size:12px;color:#f4e0a3}.sf-secondary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:14px 0}.sf-secondary span{background:#142c20;padding:8px 12px}.sf-personality{padding:20px;background:#0a1b16;border-left:3px solid #ddc77e;margin:22px 0}.sf-personality h3{margin:0 0 10px}.sf-personality>b{font:700 26px Georgia,serif;color:#e7ce83}.sf-footer,.sf-club-footer{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:22px}.sf-club-footer{padding:22px 26px;justify-content:space-between;border-top:1px solid #4e6546;margin:0;background:#0d1c15;border-radius:0 0 16px 16px}.sf-club-footer>span{font-size:12px;max-width:58ch;color:#bbc5b5}.sf-error{padding:12px 16px;background:#432925;border:1px solid #b08c55;border-radius:6px;color:#ffdfac}.sf-skills{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 18px}.sf-skills span,.sf-skills b{border-bottom:1px solid #40503a;padding:5px 0}.sf-skills b{color:#bde1a1}.sf-backdrop details{margin-top:18px}.sf-backdrop summary{cursor:pointer;color:#dec988}.sf-backdrop p{overflow-wrap:anywhere}.sf-setup{max-width:1050px;margin:30px auto;padding:24px}.sf-setup h1{font:700 38px Georgia,serif;color:#dec988}.sf-setup .sf-options{grid-template-columns:repeat(2,minmax(0,1fr))}.sf-setup .sf-option{display:grid;grid-template-columns:70px 1fr auto;align-items:center;gap:14px}.sf-setup .player-art{width:70px}.sf-setup .count-control{display:flex;align-items:center;gap:8px}
@media(max-width:720px){.sf-backdrop{padding:0}.sf-shell{border-radius:0;min-height:100dvh}.sf-header{padding:18px;align-items:flex-start;gap:12px}.sf-header>button{font-size:12px;max-width:140px;padding:8px}.sf-header h1{font-size:25px}.sf-roster{padding:12px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.sf-roster button{padding:8px 5px;font-size:12px;overflow-wrap:anywhere}.sf-layout{display:block}.sf-athlete{display:grid;grid-template-columns:80px 1fr;gap:2px 14px;padding:14px 18px;border-right:0;border-bottom:1px solid #526445}.sf-athlete>.player-art{grid-row:1/4;width:80px;height:80px;margin:0}.sf-athlete h2{margin:0;font-size:23px}.sf-athlete p,.sf-athlete small{grid-column:2;margin:0}.sf-main{padding:18px;max-height:none;overflow:visible}.sf-steps{gap:6px}.sf-steps button{font-size:11px}.sf-attributes{grid-template-columns:repeat(3,minmax(0,1fr))}.sf-attributes>div{padding:10px 6px}.sf-fields,.sf-options{grid-template-columns:1fr}.sf-club-footer{padding:18px;border-radius:0}.sf-club-footer>button{width:100%}.sf-footer button{flex-grow:1}.sf-backdrop h2{font-size:24px}.sf-setup{margin:0;padding:18px}.sf-setup .sf-options{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.sf-backdrop *{scroll-behavior:auto}}
/* Identidad visual compartida con Crujebol; ilustraciones existentes del proyecto. */
.sf-backdrop{color:#f2ede0;background:#101713f5}
.sf-shell{background:#1b2620;border-color:#d9ba76}
.sf-header{background:linear-gradient(90deg,#152018fa 0%,#152018f0 55%,#152018a8 100%),url("/static/generador/sport-fantasy/v20261010-1/app/assets/author-scenes/match-day.d7a1c8b7a22c.png") center 38%/cover;border-bottom-color:#354438}
.sf-header h1,.sf-backdrop h2,.sf-backdrop h3,.sf-header .eyebrow{color:#d9ba76}
.sf-backdrop button.primary{background:#d9ba76;color:#20281e;font-weight:750;border-color:#d9ba76}
.sf-athlete{background:linear-gradient(#26362c,#152018);border-right-color:#354438}
.sf-roster,.sf-club-footer{background:#152018}
@media(max-width:720px){.sf-header{background:linear-gradient(90deg,#152018f5,#152018cf),url("/static/generador/sport-fantasy/v20261010-1/app/assets/author-scenes/match-day.d7a1c8b7a22c.png") center/cover}}
.sf-page{margin:0;background:#101713;color:#f2ede0}.sf-entry{position:static;min-height:100vh;padding:20px}.sf-entry .sf-setup{margin:0 auto;padding:0;overflow:hidden}.sf-entry .sf-fields,.sf-entry .sf-options{margin:22px}.sf-entry h2,.sf-entry .sf-setup>p,.sf-entry .sf-setup>button,.sf-entry [data-entry-result]{margin:22px}.sf-entry .sf-setup .player-art{height:70px;aspect-ratio:1}.sf-entry .sf-setup .sf-option small{display:block}.sf-entry .sf-setup .sf-options{grid-template-columns:1fr}.sf-entry .count-control b{min-width:16px;text-align:center}.sf-entry [data-entry-result]:empty{display:none}
@media(max-width:720px){.sf-entry{padding:0}.sf-entry .sf-setup .sf-option{grid-template-columns:60px minmax(0,1fr)}.sf-entry .count-control{grid-column:2}.sf-entry .sf-setup .player-art{width:60px;height:60px}.sf-entry .sf-setup>button{max-width:calc(100% - 44px)}}

.sf-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;max-width:420px}.sf-header-actions small{flex-basis:100%;text-align:right;font-size:11px;color:#cfbc89}.sf-point-allocation fieldset,.sf-transfer{border:1px solid #7b895e;border-radius:8px;padding:14px;margin:15px 0;min-width:0}.sf-point-allocation legend,.sf-transfer legend{color:#f1d998;font-weight:bold;padding:0 7px}.sf-point-options{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.sf-point-options button{padding:12px 6px}.sf-transfer .sf-fields{margin:5px 0}.sf-restart{border:1px solid #d9ba76;padding:20px}.sf-restart button{margin:6px}.sf-header-actions button{font-size:12px}@media(max-width:720px){.sf-header{flex-wrap:wrap}.sf-header-actions{justify-content:flex-start;max-width:none}.sf-header-actions small{text-align:left}.sf-point-options{grid-template-columns:repeat(2,minmax(0,1fr))}.sf-point-options button:last-child{grid-column:1/-1}}

.sf-offer{display:flex;flex-direction:column;gap:8px;min-width:0}.sf-offer>.sf-option{flex:1;width:100%}.sf-offer>[data-sf-action="reroll"]{align-self:flex-start;font-size:13px;padding:7px 12px}

/* Equipo agrupado: filas de puestos compactas y seis jugadores siempre juntos. */
.sf-entry .sf-fields{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 20px}
.sf-entry .sf-setup .sf-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 20px}
.sf-entry .sf-setup .sf-option{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:9px;padding:9px 10px;line-height:1.3}
.sf-entry .sf-setup .sf-option b{font-size:17px}.sf-entry .sf-setup .sf-option small{font-size:12px;margin-top:3px}
.sf-entry .sf-setup .player-art{width:48px;height:48px}.sf-entry .count-control{gap:7px;margin:0}.sf-entry .count-control button{width:36px;min-height:36px;padding:4px}
.sf-entry h2,.sf-entry .sf-setup>p,.sf-entry .sf-setup>button,.sf-entry [data-entry-result]{margin:12px 20px}
.sf-entry .sf-header{padding:18px 20px}.sf-entry .sf-header h1{font-size:32px}
.sf-roster{display:grid;grid-template-columns:repeat(6,minmax(75px,110px));justify-content:start;gap:6px;padding:10px 18px}
.sf-roster button{min-width:0;padding:7px 8px;font-size:13px;line-height:1.25;overflow-wrap:anywhere;min-height:40px}
.sf-layout{grid-template-columns:180px minmax(0,1fr)}.sf-athlete{padding:16px}.sf-athlete>.player-art{max-height:170px}
.sf-header{gap:14px;padding:16px 22px}.sf-header h1{font-size:32px}.sf-main{max-height:calc(100dvh - 240px);padding:16px 22px}.sf-steps{margin-bottom:16px}.sf-club-footer{padding:12px 18px;gap:12px;font-size:13px}
@media(max-width:850px){.sf-entry .sf-setup .sf-options{grid-template-columns:1fr}}
@media(max-width:720px){.sf-entry .sf-fields{grid-template-columns:1fr;gap:9px;margin:12px}.sf-entry .sf-setup .sf-options{margin:10px 12px}.sf-entry .sf-setup .sf-option{grid-template-columns:44px minmax(0,1fr) auto;padding:8px;gap:7px}.sf-entry .sf-setup .player-art{width:44px;height:44px}.sf-entry .count-control{grid-column:auto;gap:5px}.sf-entry .count-control button{width:34px;min-height:44px}.sf-entry .sf-setup .sf-option b{font-size:16px}.sf-entry .sf-header,.sf-header{padding:14px}.sf-entry .sf-header h1,.sf-header h1{font-size:25px}.sf-entry h2,.sf-entry .sf-setup>p,.sf-entry .sf-setup>button{margin:12px}.sf-roster{grid-template-columns:repeat(3,minmax(0,1fr));padding:8px 12px;gap:5px}.sf-roster button{min-height:44px}.sf-layout{display:block}.sf-athlete{grid-template-columns:64px minmax(0,1fr);padding:12px;gap:2px 10px}.sf-athlete>.player-art{width:64px;height:64px;grid-row:1/4}.sf-athlete h2{font-size:21px}.sf-main{max-height:none;padding:14px}.sf-club-footer{padding:12px}}

.sf-entry{min-height:0;font-size:15px;line-height:1.4}.sf-entry .sf-setup .sf-option{padding:7px 9px}.sf-entry .sf-setup>p:last-of-type{font-size:12px}
@media(max-width:720px){.sf-header-actions{gap:6px}.sf-header-actions small{display:none}}
