/* Copa FPL R40: somente exportação de rodadas.
   Prévia e PNG apontam para #gamesExportArt, sem criar arte duplicada. */
#gamesExportEditorModal.r40-on:not(.hidden){display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;z-index:10040!important;background:rgba(4,10,21,.73)!important;}
#gamesExportEditorModal.r40-on .export-editor-box.r40-on{width:min(100%,720px)!important;max-width:720px!important;height:min(98dvh,940px)!important;max-height:98dvh!important;padding:0!important;margin:0!important;border:0!important;border-radius:16px!important;background:#f1f2f4!important;overflow:hidden!important;position:relative!important;display:flex!important;flex-direction:column!important;box-shadow:0 28px 80px rgba(0,0,0,.35)!important;color:#101827!important;}
#gamesExportEditorModal.r40-on .r40-legacy{display:none!important;}
#gamesExportEditorModal .r40-editor{display:flex;flex:1;min-height:0;min-width:0;flex-direction:column;font-family:'Advent Pro','Roboto',system-ui,sans-serif;color:#101827;background:#f1f2f4;}
#gamesExportEditorModal .r40-editor *{box-sizing:border-box;}
#gamesExportEditorModal .r40-editor [hidden],#gamesExportEditorModal .r40-preview-restore[hidden]{display:none!important;}
#gamesExportEditorModal .r40-head{min-height:70px;background:#101827;color:#fff;display:flex;align-items:center;gap:22px;padding:8px 17px;flex:0 0 auto;}
#gamesExportEditorModal .r40-head>strong{font-size:23px;letter-spacing:.015em;font-weight:700;line-height:1.1;}
#gamesExportEditorModal .r40-head button{width:44px;height:44px;display:grid;place-items:center;color:#fff;border:0;background:transparent;border-radius:50%;flex:none;}
#gamesExportEditorModal .r40-head .material-symbols-rounded{font-size:29px;}
#gamesExportEditorModal .r40-scroll{min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;background:#f2f3f5;}
#gamesExportEditorModal .r40-controls{padding:10px 20px 110px;display:flex;flex-direction:column;gap:24px;}
#gamesExportEditorModal .r40-section{display:flex;flex-direction:column;gap:12px;min-width:0;}
#gamesExportEditorModal .r40-section:empty{display:none}
#gamesExportEditorModal .r40-section h3{font-size:19px;font-weight:650;letter-spacing:0;margin:0;color:#101827;}
#gamesExportEditorModal .r40-section h3:empty{display:none;}
#gamesExportEditorModal .r40-segments{width:100%;display:grid;overflow:hidden;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid #889598;border-radius:40px;background:transparent;min-height:54px;}
#gamesExportEditorModal .r40-segments.r40-three{grid-template-columns:repeat(3,minmax(0,1fr));}
#gamesExportEditorModal .r40-segments button{background:transparent;border:0;border-right:1px solid #9ca3af;border-radius:0;color:#101827;font-family:inherit;font-size:17px;line-height:1.2;padding:8px 4px;white-space:nowrap;}
#gamesExportEditorModal .r40-segments button:last-child{border-right:0;}
#gamesExportEditorModal .r40-segments button.selected{background:#cfece6;color:#0f423c;}
#gamesExportEditorModal .r40-basic{display:flex;flex-direction:column;gap:15px;}
#gamesExportEditorModal .r40-field{position:relative;display:block;margin-top:2px;}
#gamesExportEditorModal .r40-field>small{display:block;position:absolute;top:-8px;left:16px;padding:0 6px;z-index:1;font-size:13px;line-height:1;background:#f2f3f5;color:#5e6570;}
#gamesExportEditorModal .r40-field>input,#gamesExportEditorModal .r40-field>select{display:block;width:100%;height:75px;border:1px solid #d5d8dc;border-radius:17px;background:#fff;color:#101827;font-family:inherit;font-size:20px;line-height:1;padding:17px 20px;outline:none;}
#gamesExportEditorModal .r40-field>input:focus,#gamesExportEditorModal .r40-field>select:focus{border-color:#0d9488;box-shadow:0 0 0 2px rgba(13,148,136,.14);}
#gamesExportEditorModal .r40-field>input[readonly]{background:#f4f5f6;color:#64748b;}
#gamesExportEditorModal .r40-advanced{display:none;flex-direction:column;gap:15px;}
#gamesExportEditorModal .r40-editor[data-level="custom"] [data-level-content="custom"],
#gamesExportEditorModal .r40-editor[data-level="studio"] [data-level-content="custom"],
#gamesExportEditorModal .r40-editor[data-level="studio"] [data-level-content="studio"]{display:flex;}
#gamesExportEditorModal .r40-themes{display:flex;flex-wrap:wrap;gap:10px;}
#gamesExportEditorModal .r40-themes button{display:inline-flex;align-items:center;gap:8px;min-height:48px;border-radius:11px;border:1px solid #bbc5cc;background:#fff;color:#475569;padding:8px 13px;font-size:17px;}
#gamesExportEditorModal .r40-themes button.selected{background:#cfece6;border-color:#cfece6;color:#1e3a37;}
#gamesExportEditorModal .r40-themes button i{display:block;width:22px;height:22px;border-radius:50%;}
#gamesExportEditorModal .r40-themes button.selected i{box-shadow:inset 0 0 0 3px #d1efe8;}
#gamesExportEditorModal .r40-color-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 20px;min-height:69px;border:1px solid #c8d4dc;border-radius:15px;background:#fff;color:#172033;font-size:18px;font-weight:500;}
#gamesExportEditorModal .r40-color-row input[type=color]{-webkit-appearance:none;appearance:none;border:1px solid #bfc9d1;border-radius:10px;width:66px;height:48px;min-width:66px;min-height:48px;background:#fff;padding:3px;cursor:pointer;}
#gamesExportEditorModal .r40-color-row input[type=color]::-webkit-color-swatch-wrapper{padding:0;}
#gamesExportEditorModal .r40-color-row input[type=color]::-webkit-color-swatch{border:0;border-radius:7px;}
#gamesExportEditorModal .r40-font-pick{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:81px;background:#fff;border:1px solid #c8d4dc;border-radius:15px;padding:12px 20px;color:#172033;font-size:18px;text-align:left;}
#gamesExportEditorModal .r40-font-pick small{display:block;font-size:15px;margin-top:4px;}
#gamesExportEditorModal .r40-font-pick .material-symbols-rounded{font-size:28px;}
#gamesExportEditorModal .r40-file-pick{border:1px solid #d9dde1;border-radius:35px;background:#f7f7f9;min-height:57px;font-size:19px;color:#172033;display:flex;align-items:center;justify-content:center;gap:8px;}
#gamesExportEditorModal .r40-file-remove{border:0;background:transparent;text-decoration:underline;font-size:16px;color:#b91c1c;}
#gamesExportEditorModal .r40-slider{display:flex;flex-direction:column;gap:10px;margin-bottom:6px;color:#172033;font-size:17px;}
#gamesExportEditorModal .r40-slider input{display:block;accent-color:#0d9488;width:95%;margin:4px auto 8px;height:26px;}
#gamesExportEditorModal .r40-slider small{font-size:13px;color:#64748b;line-height:1.35;}
#gamesExportEditorModal .r40-move{display:flex;flex-direction:column;gap:6px;}
#gamesExportEditorModal .r40-label{font-size:18px;color:#172033;}
#gamesExportEditorModal .r40-pad{display:grid;grid-template-columns:54px 54px 54px;grid-template-rows:49px 49px 49px;gap:1px;justify-content:center;align-items:center;}
#gamesExportEditorModal .r40-pad button{height:49px;width:49px;display:grid;place-items:center;border:1px solid #83938f;border-radius:50%;background:#f2f3f5;color:#172033;}
#gamesExportEditorModal .r40-pad button .material-symbols-rounded{font-size:31px;}
#gamesExportEditorModal .r40-move-word{font-size:17px;text-align:center;}
#gamesExportEditorModal .r40-move>small{font-size:15px;}
#gamesExportEditorModal .r40-footer{display:flex;flex:0 0 auto;padding:11px 18px calc(11px + env(safe-area-inset-bottom));gap:10px;background:rgba(245,246,247,.98);border-top:1px solid #e5e7eb;z-index:12;}
#gamesExportEditorModal .r40-footer>button{display:inline-flex;justify-content:center;align-items:center;gap:8px;flex:1;min-height:56px;min-width:0;padding:8px 6px;border-radius:999px;font-size:18px;font-family:inherit;white-space:nowrap;}
#gamesExportEditorModal .r40-footer .r40-share{border:1px solid #cad0d5;color:#172033;background:#f7f8fa;}
#gamesExportEditorModal .r40-footer .r40-save{border:1px solid #10968c;background:#10968c;color:#fff;}
#gamesExportEditorModal .r40-footer .material-symbols-rounded{font-size:23px;}
#gamesExportEditorModal .r40-footer button:disabled{opacity:.5;}
#gamesExportEditorModal.r40-on .games-preview-section.r40-preview{display:block!important;position:absolute!important;left:16px;top:86px;z-index:15;overflow:hidden!important;padding:0!important;margin:0!important;width:var(--r40-preview-width,310px)!important;max-width:calc(100% - 16px)!important;background:#101827!important;border:0!important;border-radius:14px!important;box-shadow:0 15px 30px rgba(0,0,0,.28)!important;order:initial!important;touch-action:none;}
#gamesExportEditorModal.r40-on .games-preview-section.r40-preview .r40-preview-bar{display:flex;align-items:center;width:100%;height:54px;background:#101827;color:#fff;padding:0 7px;gap:2px;user-select:none;touch-action:none;}
#gamesExportEditorModal.r40-on .r40-preview-bar .r40-grip{width:28px;display:flex;align-items:center;justify-content:center;flex:none;color:#afb8c6;}
#gamesExportEditorModal.r40-on .r40-preview-bar .r40-preview-name{flex:1;font-size:16px;font-family:'Advent Pro',system-ui,sans-serif;line-height:1.2;min-width:0;}
#gamesExportEditorModal.r40-on .r40-preview-bar button{background:transparent;border:0;border-radius:0;color:#fff;padding:0;width:34px;height:44px;display:grid;place-items:center;flex:none;}
#gamesExportEditorModal.r40-on .r40-preview-bar .material-symbols-rounded{font-size:25px;}
#gamesExportEditorModal.r40-on .games-preview-section.r40-preview .export-preview-shell{display:block!important;position:relative!important;width:100%!important;margin:0!important;padding:0!important;border:0!important;outline:0!important;border-radius:0!important;background:transparent!important;overflow:hidden!important;box-shadow:none!important;}
#gamesExportEditorModal.r40-on .games-preview-section.r40-preview.r40-hidden{display:none!important;}
#gamesExportEditorModal.r40-on .games-preview-section.r40-preview.r40-collapsed .export-preview-shell{display:none!important;}
#gamesExportEditorModal .r40-preview-restore{position:absolute;top:80px;right:12px;z-index:20;width:46px;height:46px;border-radius:50%;border:1px solid #cbd5e1;background:#101827;color:#fff;display:grid;place-items:center;}
#gamesExportEditorModal .r40-font-dialog{position:absolute;inset:0;z-index:35;background:rgba(7,16,28,.65);display:grid;place-items:center;padding:18px;}
#gamesExportEditorModal .r40-font-card{width:min(100%,460px);max-height:min(80dvh,740px);overflow:hidden;display:flex;flex-direction:column;background:#fff;color:#101827;border-radius:16px;box-shadow:0 24px 75px #0006;padding:18px;gap:12px;}
#gamesExportEditorModal .r40-font-head{display:flex;align-items:center;justify-content:space-between;font-size:20px;}
#gamesExportEditorModal .r40-font-head button{background:transparent;border:0;padding:8px;}
#gamesExportEditorModal .r40-font-card input{height:47px;flex:none;border:1px solid #cbd5e1;border-radius:9px;padding:8px 12px;font-size:16px;}
#gamesExportEditorModal .r40-font-list{display:flex;flex-direction:column;overflow-y:auto;gap:4px;}
#gamesExportEditorModal .r40-font-list button{min-height:45px;border:0;border-bottom:1px solid #e2e8f0;background:#fff;font-size:20px;padding:10px;text-align:left;}
@media(max-width:600px){
 #gamesExportEditorModal.r40-on .export-editor-box.r40-on{height:100dvh!important;max-height:100dvh!important;width:100%!important;max-width:none!important;border-radius:0!important;}
 #gamesExportEditorModal .r40-controls{padding:8px 14px 130px;gap:22px;}
 #gamesExportEditorModal .r40-footer{padding-inline:12px;}
 #gamesExportEditorModal .r40-preview-bar button{width:32px!important;}
 #gamesExportEditorModal .r40-head{min-height:64px;}
 #gamesExportEditorModal .r40-themes button{font-size:16px;}
}
/* A arte que aparece na prévia é o MESMO elemento usado por html2canvas;
   as duas opções preservam o tamanho fixo 1080×1350 do gerador. */
#gamesExportArt.r40-art.games-v34{width:1080px!important;height:1350px!important;font-family:'Advent Pro',Arial,sans-serif!important;}
#gamesExportArt.r40-art.games-v34:not(.games-layout-white):not(.theme-custom) .games-export-bg{background:radial-gradient(circle at 60% 35%,#12395b 0%,#071b34 56%,#06172a 100%)!important;}
#gamesExportArt.r40-art.games-v34:not(.games-layout-white).theme-europe .games-export-bg{background:linear-gradient(145deg,#05182e,#065a84,#071b34)!important;}
#gamesExportArt.r40-art.games-v34:not(.games-layout-white).theme-fpl .games-export-bg{background:linear-gradient(145deg,#22101b,#7f1d1d,#260d24)!important;}
#gamesExportArt.r40-art.games-v34:not(.games-layout-white).theme-stadium .games-export-bg{background:linear-gradient(145deg,#061b1b,#176440,#03231a)!important;}
#gamesExportArt.r40-art.games-v34:not(.games-layout-white).theme-gold .games-export-bg{background:linear-gradient(145deg,#241707,#774e12,#221406)!important;}
#gamesExportArt.r40-art.games-v34:not(.games-layout-white).theme-xclan .games-export-bg{background:linear-gradient(145deg,#100e2b,#5d1b85,#17264f)!important;}
#gamesExportArt.r40-art.games-v34 .games-export-content{gap:0!important;padding:0 0 9px!important;}
#gamesExportArt.r40-art.games-v34 .games-export-top{border:0!important;border-radius:0!important;background:var(--cover-background,#081a2c)!important;box-shadow:none!important;margin:0!important;height:170px!important;min-height:170px!important;flex:0 0 170px!important;padding:18px 34px!important;gap:22px!important;}
#gamesExportArt.r40-art.games-v34 .games-export-logo{background:transparent!important;border:0!important;border-radius:0!important;flex-basis:120px!important;width:120px!important;height:120px!important;min-width:120px!important;}
#gamesExportArt.r40-art.games-v34 .games-export-logo img{max-width:120px!important;max-height:120px!important;}
#gamesExportArt.r40-art.games-v34 .games-export-kicker{font-size:18px!important;color:var(--cover-small-color,#fff)!important;letter-spacing:.03em!important;margin-bottom:10px!important;}
#gamesExportArt.r40-art.games-v34 .games-export-title{font-family:Georgia,'Times New Roman',serif!important;font-size:42px!important;font-weight:800!important;color:var(--cover-title-color,#fff)!important;letter-spacing:0!important;line-height:1.1!important;}
#gamesExportArt.r40-art.games-v34 .games-export-accent{display:none!important;}
#gamesExportArt.r40-art.games-v34 .games-round-title{height:100px!important;min-height:100px!important;flex:0 0 100px!important;display:flex!important;align-items:center!important;justify-content:center!important;font-size:34px!important;letter-spacing:.02em!important;}
#gamesExportArt.r40-art.games-v34 .games-round-title:before,#gamesExportArt.r40-art.games-v34 .games-round-title:after{display:none!important;}
#gamesExportArt.r40-art.games-v34 #gamesExportMatches{display:flex!important;flex-direction:column!important;justify-content:center!important;gap:0!important;width:100%!important;flex:1 1 auto!important;}
#gamesExportArt.r40-art.games-v34 .games-group-block{flex:var(--games-group-weight,1) 1 0!important;min-height:0!important;width:100%!important;margin:0!important;padding:0!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;}
#gamesExportArt.r40-art.games-v34 .games-match-shell{display:flex!important;flex-direction:column!important;flex:1 1 0!important;min-height:0!important;}
#gamesExportArt.r40-art.games-v34 .games-match-row{display:grid!important;grid-template-columns:minmax(0,1fr) 152px minmax(0,1fr)!important;align-items:center!important;gap:8px!important;padding:0 28px!important;margin:0!important;min-height:0!important;height:var(--auto-game-row,60px)!important;flex:1 1 auto!important;border-bottom:1px solid rgba(31,125,210,.75)!important;background:rgba(5,26,49,var(--games-card-opacity,.94))!important;}
#gamesExportArt.r40-art.games-v34 .games-team{grid-template-columns:var(--auto-game-logo,48px) minmax(0,1fr)!important;gap:10px!important;min-width:0!important;}
#gamesExportArt.r40-art.games-v34 .games-team.away{grid-template-columns:minmax(0,1fr) var(--auto-game-logo,48px)!important;}
#gamesExportArt.r40-art.games-v34 .games-team-logo{width:var(--auto-game-logo,48px)!important;height:var(--auto-game-logo,48px)!important;min-height:var(--auto-game-logo,48px)!important;}
#gamesExportArt.r40-art.games-v34 .games-team-logo img{width:auto!important;height:auto!important;max-height:100%!important;max-width:100%!important;}
#gamesExportArt.r40-art.games-v34 .games-team-name{font-size:var(--auto-game-font,19px)!important;font-weight:650!important;line-height:1.1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
#gamesExportArt.r40-art.games-v34 .games-score,#gamesExportArt.r40-art.games-v34 .games-vs{font-size:27px!important;font-weight:800!important;line-height:1.1!important;}
#gamesExportArt.r40-art.games-v34 .games-status{display:none!important;}
#gamesExportArt.r40-art.games-v34 .games-group-title{height:37px!important;min-height:37px!important;flex:0 0 37px!important;font-size:18px!important;background:transparent!important;color:var(--games-group-name-color,#38bdf8)!important;border-bottom:1px solid var(--games-line,#20a6ff)!important;}
#gamesExportArt.r40-art.games-v34 .games-footer{height:45px!important;min-height:45px!important;flex:0 0 45px!important;border-top:1px solid var(--games-line,#2563eb)!important;padding:4px 26px!important;}
#gamesExportArt.r40-art.games-v34 .games-footer:before{font-size:22px!important;}
#gamesExportArt.r40-art.games-v34.games-layout-white{background:#fff!important;}
#gamesExportArt.r40-art.games-v34.games-layout-white .games-export-content{background:#fff!important;}
#gamesExportArt.r40-art.games-v34.games-layout-white .games-match-row{background:rgba(255,255,255,var(--games-card-opacity,1))!important;border-bottom:1px solid #7a7d83!important;}
#gamesExportArt.r40-art.games-v34.games-layout-white .games-group-title{background:#fff!important;color:#111827!important;border-bottom:1px solid #9ca3af!important;}
#gamesExportArt.r40-art.games-v34.games-layout-white .games-export-top{background:#fff!important;}
#gamesExportArt.r40-art.games-v34.games-layout-white .games-export-kicker,#gamesExportArt.r40-art.games-v34.games-layout-white .games-export-title{color:#111827!important;}
#gamesExportArt.r40-art.games-v34.games-layout-white .games-round-title{color:var(--art-title-color,#111827)!important;}
#gamesExportArt.r40-art.games-v34.games-layout-white .games-footer{background:#fff!important;}

/* Neutraliza apenas os previews extras de rodadas, sem tocar na classificação. */
#gamesExportEditorModal.r40-on .fpl-floating-preview[data-floating-art="gamesExportArt"],#gamesExportEditorModal.r40-on .app-preview-restore,#gamesExportEditorModal.r40-on .app-export-actions{display:none!important;}

body.r40-games-export-open .fpl-floating-preview[data-floating-art="gamesExportArt"]{display:none!important;}
/* R41: paridade de desenho 1080x1350 com round_export_editor.dart.
   Mesma arvore CSS participa da miniatura e do html2canvas. */
#gamesExportEditorModal.r40-on .games-preview-section.r40-preview{touch-action:pan-y!important}
#gamesExportEditorModal .r40-preview-bar{touch-action:none!important}
#gamesExportEditorModal .r40-spacer{flex:none!important;min-height:0!important;margin:0!important;padding:0!important}
#gamesExportEditorModal .r40-controls{padding-top:12px!important;gap:20px!important}
#gamesExportEditorModal .r40-footer .r40-save:disabled{opacity:.78!important;cursor:progress!important}
#gamesExportEditorModal .r41-spinner{width:21px;height:21px;border-radius:50%;border:3px solid #ffffff77;border-top-color:#fff;display:inline-block;animation:r41spin .7s linear infinite}
@keyframes r41spin{to{transform:rotate(360deg)}}
#gamesExportArt.r40-art.games-v34{--r41-row:96px;--r41-outer:104px;--r41-logo:82px;--r41-font:25px;--r41-outer-space:8px;font-family:'Oswald','Arial Narrow',Arial,sans-serif!important}
#gamesExportArt.r40-art.games-v34 .games-export-content{height:100%!important;max-height:100%!important;overflow:hidden!important;gap:0!important;padding:0!important;justify-content:initial!important}
#gamesExportArt.r40-art.games-v34 .games-export-top{height:170px!important;min-height:170px!important;flex:0 0 170px!important;padding:0 38px!important;gap:25px!important;align-items:center!important}
#gamesExportArt.r40-art.games-v34.games-header-banner .games-export-banner{height:150px!important;min-height:150px!important;flex:0 0 150px!important;border:0!important;border-radius:0!important}
#gamesExportArt.r40-art.games-v34 .games-export-logo{width:120px!important;height:120px!important;min-width:120px!important;flex-basis:120px!important}
#gamesExportArt.r40-art.games-v34 .games-export-title{font-family:inherit!important;font-size:38px!important;line-height:1.22!important;font-weight:900!important;max-height:none!important;overflow:visible!important}
#gamesExportArt.r40-art.games-v34 .games-export-kicker{font-family:inherit!important;font-size:18px!important;line-height:1.3!important;font-weight:800!important;letter-spacing:0!important;margin-bottom:5px!important}
#gamesExportArt.r40-art.games-v34 .games-round-title{height:100px!important;min-height:100px!important;flex:0 0 100px!important;font-size:38px!important;font-weight:900!important;font-family:inherit!important;line-height:1.25!important;overflow:visible!important;margin:0!important;padding:0 10px!important}
#gamesExportArt.r40-art.games-v34 #gamesExportMatches{flex:1 1 auto!important;min-height:0!important;height:auto!important;display:flex!important;flex-direction:column!important;justify-content:flex-start!important;gap:0!important;overflow:hidden!important}
#gamesExportArt.r40-art.games-v34 .games-group-block{display:flex!important;flex-direction:column!important;flex:0 0 auto!important;min-height:0!important;margin:0!important;overflow:visible!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
#gamesExportArt.r40-art.games-v34 .games-group-title{position:relative!important;transform:none!important;left:auto!important;right:auto!important;top:auto!important;height:42px!important;min-height:42px!important;flex:0 0 42px!important;line-height:1.2!important;padding:0!important;font-family:inherit!important;font-size:19px!important;font-weight:900!important;letter-spacing:0!important;display:flex!important;align-items:center!important;justify-content:center!important;clip-path:none!important;border-radius:0!important;box-shadow:none!important;border:0!important;color:var(--games-group-name-color,#fff)!important;background:rgba(6,24,43,var(--games-card-opacity,.94))!important}
#gamesExportArt.r40-art.games-v34 .games-match-shell{display:flex!important;flex-direction:column!important;flex:0 0 var(--r41-outer)!important;height:var(--r41-outer)!important;min-height:0!important;max-height:var(--r41-outer)!important;margin:0!important;padding:4px 22px!important;overflow:visible!important;box-sizing:border-box!important}
#gamesExportArt.r40-art.games-v34 .games-match-label{display:none!important}
#gamesExportArt.r40-art.games-v34 .games-match-row{display:grid!important;grid-template-columns:minmax(0,1fr) 160px minmax(0,1fr)!important;gap:0!important;align-items:center!important;flex:0 0 var(--r41-row)!important;height:var(--r41-row)!important;min-height:0!important;max-height:var(--r41-row)!important;padding:0!important;border:0!important;border-bottom:1.5px solid var(--games-line,#2563eb)!important;border-radius:14px!important;box-shadow:0 5px 12px rgba(0,0,0,.2)!important;background:rgba(6,24,43,var(--games-card-opacity,.94))!important;overflow:visible!important}
#gamesExportArt.r40-art.games-v34 .games-team{display:grid!important;grid-template-columns:var(--r41-logo) minmax(0,1fr)!important;gap:18px!important;padding:0 28px!important;align-items:center!important;min-width:0!important;width:100%!important;overflow:visible!important}
#gamesExportArt.r40-art.games-v34 .games-team.away{grid-template-columns:minmax(0,1fr) var(--r41-logo)!important;text-align:right!important}
#gamesExportArt.r40-art.games-v34 .games-team-logo{width:var(--r41-logo)!important;height:var(--r41-logo)!important;min-width:0!important;min-height:0!important;max-width:var(--r41-logo)!important;max-height:var(--r41-logo)!important;overflow:visible!important;display:flex!important;align-items:center!important;justify-content:center!important}
#gamesExportArt.r40-art.games-v34 .games-team-logo img{width:auto!important;height:auto!important;min-width:0!important;min-height:0!important;max-height:100%!important;max-width:100%!important;object-fit:contain!important}
#gamesExportArt.r40-art.games-v34 .games-team-name{display:block!important;height:auto!important;min-height:0!important;max-height:none!important;padding:2px 0!important;margin:0!important;font-family:inherit!important;font-size:var(--r41-font)!important;font-weight:900!important;line-height:1.27!important;letter-spacing:0!important;text-transform:none!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:normal!important;word-break:normal!important;align-self:center!important;transform:translateZ(0)}
#gamesExportArt.r40-art.games-v34 .games-team.away .games-team-name{text-align:right!important}
#gamesExportArt.r40-art.games-v34 .games-center{display:flex!important;align-items:center!important;justify-content:center!important;min-width:0!important;height:100%!important}
#gamesExportArt.r40-art.games-v34 .games-score,#gamesExportArt.r40-art.games-v34 .games-vs{font-family:inherit!important;font-size:32px!important;font-weight:900!important;line-height:1.3!important;white-space:nowrap!important;overflow:visible!important}
#gamesExportArt.r40-art.games-v34 .games-status{display:none!important}
#gamesExportArt.r40-art.games-v34 .games-footer{position:relative!important;display:flex!important;align-items:center!important;justify-content:space-between!important;flex:0 0 48px!important;height:48px!important;min-height:48px!important;margin:0!important;padding:0 32px!important;border:0!important;background:transparent!important;font-family:inherit!important;font-size:16px!important;letter-spacing:0!important;font-weight:900!important;overflow:hidden!important}
#gamesExportArt.r40-art.games-v34 .games-footer:before{content:'🏆'!important;position:absolute!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;font-size:24px!important;color:inherit!important}
#gamesExportArt.r40-art.games-v34 .games-footer-brand{width:auto!important;height:auto!important;min-width:50px!important;display:flex!important;align-items:center!important}
#gamesExportArt.r40-art.games-v34 .games-footer-brand img{display:none!important}
#gamesExportArt.r40-art.games-v34 .games-footer-brand:before{content:'FPL'!important;font-family:inherit!important;font-size:16px!important;font-weight:900!important}
#gamesExportArt.r40-art.games-v34 .games-footer>span:last-child{font-weight:800!important;max-width:48%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
#gamesExportArt.r40-art.games-v34.games-layout-white{background:#fff!important}
#gamesExportArt.r40-art.games-v34.games-layout-white .games-export-content{background:#fff!important}
#gamesExportArt.r40-art.games-v34.games-layout-white .games-group-title{background:rgba(241,245,249,var(--games-card-opacity,1))!important;color:var(--games-group-name-color,#111827)!important}
#gamesExportArt.r40-art.games-v34.games-layout-white .games-match-shell{padding:0!important;max-height:var(--r41-row)!important;height:var(--r41-row)!important;flex-basis:var(--r41-row)!important}
#gamesExportArt.r40-art.games-v34.games-layout-white .games-match-row{height:var(--r41-row)!important;flex-basis:var(--r41-row)!important;border-radius:0!important;background:rgba(255,255,255,var(--games-card-opacity,1))!important;border-bottom:1.5px solid var(--games-line,#4b5563)!important;box-shadow:none!important}
#gamesExportArt.r40-art.games-v34.games-layout-white .games-export-title,#gamesExportArt.r40-art.games-v34.games-layout-white .games-export-kicker{color:var(--cover-title-color,#111827)!important}
#gamesExportArt.r40-art.games-v34.games-layout-white .games-round-title{color:var(--art-title-color,#111827)!important}
#gamesExportArt.r40-art.games-v34.games-layout-white .games-team-name,#gamesExportArt.r40-art.games-v34.games-layout-white .games-score,#gamesExportArt.r40-art.games-v34.games-layout-white .games-vs{color:var(--games-content-color,#111827)!important}
#gamesExportArt.r40-art.games-v34.games-layout-white .games-footer{color:#111827!important}
/* Mesmo diálogo de confirmação da classificação, isolado das demais exportações. */
#r41RoundSaveOverlay[hidden]{display:none!important}
#r41RoundSaveOverlay{position:fixed;inset:0;z-index:110000;background:rgba(8,14,25,.57);display:flex;align-items:center;justify-content:center;padding:16px;font-family:'Advent Pro','Oswald',Arial,sans-serif}
#r41RoundSaveOverlay .r41-save-card{width:min(490px,calc(100vw - 40px));border-radius:32px;background:#fff;color:#18202b;box-shadow:0 22px 70px #0005;text-align:center;padding:36px 26px 25px}
#r41RoundSaveOverlay .r41-save-check{display:grid;place-items:center;margin:0 auto 20px;width:52px;height:52px;border-radius:50%;background:#19a79e;color:#fff;font:bold 38px/1 Arial,sans-serif}
#r41RoundSaveOverlay h3{margin:0;font-size:28px;font-weight:700;line-height:1.2}
#r41RoundSaveOverlay p{font-size:18px;margin:22px 0 28px;line-height:1.3}
#r41RoundSaveOverlay .r41-save-actions{display:flex;justify-content:flex-end;gap:15px}
#r41RoundSaveOverlay button{border:0;background:transparent;color:#099c8f;font-size:19px;padding:10px 12px;cursor:pointer}

/* R42: corrigir proporcoes e cores iniciais sem alterar a classificacao. */
#gamesExportArt.r40-art.games-v34{font-family:var(--r42-art-font,'Oswald','Arial Narrow',Arial,sans-serif)!important}
#gamesExportArt.r40-art.games-v34 .games-team-name{font-family:inherit!important;font-size:var(--r42-name-font,var(--r41-font,25px))!important;line-height:1.30!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;padding:0!important}
#gamesExportArt.r40-art.games-v34 .games-team-logo img{width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important}
#gamesExportArt.r40-art.games-v34 .games-footer{overflow:visible!important;align-items:center!important;line-height:1.4!important}
#gamesExportArt.r40-art.games-v34 .games-footer>span:last-child{font-size:var(--r42-footer-font,16px)!important;display:block!important;line-height:1.5!important;height:auto!important;max-height:none!important;overflow:visible!important;text-overflow:clip!important;white-space:nowrap!important;align-self:center!important;padding:0!important;margin:0!important;transform:translateY(-3px)!important}
#gamesExportArt.r40-art.games-v34.games-layout-white .games-match-row{border-bottom-color:var(--games-line,#1f2937)!important}
#gamesExportArt.r40-art.games-v34.games-layout-white .games-round-title{border-color:var(--games-line,#1f2937)!important}
#gamesExportArt.r40-art.games-v34.games-layout-white .games-group-title{border-color:#b6bdc8!important}
#gamesExportEditorModal .r40-color-row input[hidden]{display:none!important}
#gamesExportEditorModal .r42-color-swatch{width:65px;height:49px;padding:3px;border:1px solid #aab0b7;background:#fff;border-radius:11px;flex:0 0 auto;cursor:pointer}
#gamesExportEditorModal .r42-color-swatch i{display:block;width:100%;height:100%;border-radius:8px;box-shadow:inset 0 0 0 1px #0002}
#gamesExportEditorModal .r42-color-dialog[hidden]{display:none!important}
#gamesExportEditorModal .r42-color-dialog{position:absolute;inset:0;z-index:80;background:#08111ec4;display:flex;align-items:center;justify-content:center;padding:18px;touch-action:pan-y}
#gamesExportEditorModal .r42-color-card{width:min(100%,510px);max-height:calc(100dvh - 48px);overflow-y:auto;border-radius:20px;background:#fff;color:#101827;padding:22px;box-shadow:0 20px 60px #0005;display:flex;flex-direction:column;gap:18px;font-family:'Advent Pro',Arial,sans-serif}
#gamesExportEditorModal .r42-color-head{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:22px}
#gamesExportEditorModal .r42-color-head strong{font-weight:650}
#gamesExportEditorModal .r42-color-head button{border:0;background:transparent;padding:4px;display:grid;place-items:center;color:#111827}
#gamesExportEditorModal .r42-color-sv{width:100%;aspect-ratio:1.45;position:relative;cursor:crosshair;touch-action:none;background-image:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,transparent);border-radius:3px}
#gamesExportEditorModal [data-color-point]{position:absolute;display:block;width:21px;height:21px;border:3px solid #fff;box-shadow:0 0 0 1px #2229;border-radius:50%;transform:translate(-50%,-50%);pointer-events:none}
#gamesExportEditorModal .r42-color-hue{height:28px;width:100%;position:relative;border-radius:7px;cursor:pointer;touch-action:none;background:linear-gradient(to right,red,#ff0,lime,cyan,blue,magenta,red)}
#gamesExportEditorModal [data-color-hue-point]{position:absolute;top:-3px;width:19px;height:34px;transform:translateX(-50%);border:3px solid #fff;box-shadow:0 0 0 1px #3337;border-radius:10px;pointer-events:none}
#gamesExportEditorModal .r42-color-bottom{display:flex;gap:14px;align-items:center;min-width:0}
#gamesExportEditorModal [data-color-preview]{width:58px;height:58px;border-radius:11px;border:1px solid #cbd5e1;flex:none}
#gamesExportEditorModal .r42-color-hex{display:flex;min-width:0;flex:1;align-items:center;border:1px solid #cbd5e1;border-radius:12px;height:58px;padding:4px 10px}
#gamesExportEditorModal .r42-color-hex input{border:0;outline:0;flex:1;width:100%;font:600 18px/1 Arial,sans-serif;color:#111827}
#gamesExportEditorModal .r42-color-hex button{background:none;border:0;color:#111827;display:grid;place-items:center;padding:8px}
#gamesExportEditorModal .r42-color-confirm{background:#1e3a5f;color:#fff;border:0;border-radius:50px;min-height:56px;font-size:19px;font-family:inherit}
#gamesExportEditorModal .r40-font-dialog{z-index:79!important}
#gamesExportEditorModal .r40-font-card{max-height:min(73dvh,680px);border-radius:28px;padding:24px;gap:18px}
#gamesExportEditorModal .r40-font-card input{height:58px;border-radius:8px;border:2px solid #0d9488;font-size:18px}
#gamesExportEditorModal .r40-font-list{gap:0}
#gamesExportEditorModal .r40-font-list button{min-height:56px;font-size:19px;padding:12px 14px;border-bottom:1px solid #edf0f2}
#gamesExportEditorModal .r40-spacer{max-height:none!important}

/* R43 — override legacy games-dense-list, both art models, screenshot + PNG. */
#gamesExportArt.r40-art.games-v34.r43-parity .games-match-row,
#gamesExportArt.r40-art.games-v34.r43-parity.games-layout-white.games-dense-list .games-match-row{
 height:var(--r41-row)!important;min-height:var(--r41-row)!important;max-height:var(--r41-row)!important;
 display:grid!important;grid-template-columns:minmax(0,1fr) 160px minmax(0,1fr)!important;
 align-items:center!important;gap:0!important;padding:0!important;flex:0 0 var(--r41-row)!important;overflow:visible!important;
}
#gamesExportArt.r40-art.games-v34.r43-parity .games-match-shell,
#gamesExportArt.r40-art.games-v34.r43-parity.games-layout-white.games-dense-list .games-match-shell{
 flex:0 0 var(--r41-outer)!important;max-height:var(--r41-outer)!important;height:var(--r41-outer)!important;
 min-height:0!important;overflow:visible!important;
}
#gamesExportArt.r40-art.games-v34.r43-parity.games-layout-white .games-match-shell{padding:0!important;}
#gamesExportArt.r40-art.games-v34.r43-parity .games-team,
#gamesExportArt.r40-art.games-v34.r43-parity.games-layout-white.games-dense-list .games-team{
 display:grid!important;grid-template-columns:var(--r41-logo) minmax(0,1fr)!important;
 grid-template-rows:minmax(0,1fr)!important;align-items:center!important;gap:16px!important;
 padding:0 28px!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;overflow:visible!important;
}
#gamesExportArt.r40-art.games-v34.r43-parity .games-team.away,
#gamesExportArt.r40-art.games-v34.r43-parity.games-layout-white.games-dense-list .games-team.away{
 grid-template-columns:minmax(0,1fr) var(--r41-logo)!important;
}
#gamesExportArt.r40-art.games-v34.r43-parity .games-team-logo,
#gamesExportArt.r40-art.games-v34.r43-parity.games-layout-white.games-dense-list .games-team-logo{
 display:flex!important;align-items:center!important;justify-content:center!important;
 width:var(--r41-logo)!important;height:var(--r41-logo)!important;
 min-width:var(--r41-logo)!important;min-height:var(--r41-logo)!important;
 max-width:var(--r41-logo)!important;max-height:var(--r41-logo)!important;
 overflow:visible!important;aspect-ratio:1!important;
}
#gamesExportArt.r40-art.games-v34.r43-parity .games-team-logo img,
#gamesExportArt.r40-art.games-v34.r43-parity.games-layout-white.games-dense-list .games-team-logo img{
 display:block!important;width:100%!important;height:100%!important;
 min-width:0!important;min-height:0!important;max-width:100%!important;max-height:100%!important;
 object-fit:contain!important;object-position:center!important;aspect-ratio:auto!important;
}
#gamesExportArt.r40-art.games-v34.r43-parity .games-team-name,
#gamesExportArt.r40-art.games-v34.r43-parity.games-layout-white.games-dense-list .games-team-name{
 display:flex!important;align-items:center!important;justify-content:flex-start!important;
 height:100%!important;min-height:0!important;max-height:none!important;
 font-size:var(--r42-name-font,var(--r43-name-font,24px))!important;
 font-weight:800!important;line-height:1.25!important;
 white-space:nowrap!important;text-overflow:clip!important;overflow:visible!important;
 padding:0!important;margin:0!important;word-break:normal!important;overflow-wrap:normal!important;
}
#gamesExportArt.r40-art.games-v34.r43-parity .games-team.away .games-team-name{justify-content:flex-end!important;}
#gamesExportArt.r40-art.games-v34.r43-parity.games-layout-white .games-team-name{color:var(--games-content-color,#111827)!important;}
#gamesExportArt.r40-art.games-v34.r43-parity .games-team-logo{transform:translate(var(--team-logo-x,0px),var(--team-logo-y,0px)) scale(var(--team-logo-scale,1))!important;}
#gamesExportArt.r40-art.games-v34.r43-parity .games-team-name{transform:translate(var(--team-name-x,0px),var(--team-name-y,0px))!important;}
#gamesExportArt.r40-art.games-v34.r43-parity.games-layout-white .games-team-logo,
#gamesExportArt.r40-art.games-v34.r43-parity.games-layout-white .games-team-logo img{flex:none!important;}
#gamesExportArt.r40-art.games-v34.r43-parity .games-footer>span:last-child{
 max-width:46%!important;width:max-content!important;white-space:nowrap!important;
 font-size:var(--r42-footer-font,16px)!important;overflow:visible!important;
}

/* R43 - seletor de fontes: mesmo acabamento e mesma lista da classificacao. */
#gamesExportEditorModal .r40-font-dialog{z-index:95!important;position:absolute!important;inset:0!important;background:rgba(0,0,0,.54)!important;padding:18px!important;place-items:center!important}
#gamesExportEditorModal .r40-font-card{width:min(580px,calc(100vw - 48px))!important;max-width:100%!important;max-height:min(78dvh,760px)!important;padding:24px 0 10px!important;gap:0!important;border-radius:24px!important;font-family:'Oswald','Arial Narrow',Arial,sans-serif!important;background:#fff!important;color:#20242a!important;box-shadow:0 24px 70px rgba(0,0,0,.34)!important}
#gamesExportEditorModal .r40-font-head{display:flex!important;align-items:center!important;gap:12px!important;justify-content:initial!important;padding:0 24px 18px!important;font-family:inherit!important;color:#1f2937!important}
#gamesExportEditorModal .r40-font-head strong{flex:1;font-size:30px!important;line-height:1.15!important;font-weight:500!important}
#gamesExportEditorModal .r40-font-head button{width:44px!important;height:44px!important;display:grid!important;place-items:center!important;padding:0!important;border:0!important;border-radius:50%!important;min-height:0!important;color:#111827!important}
#gamesExportEditorModal .r40-font-head button .material-symbols-rounded{font-size:30px!important}
#gamesExportEditorModal .r43-font-search{margin:0 24px 14px!important;height:76px!important;display:flex!important;align-items:center!important;gap:12px!important;padding:0 18px!important;flex:none!important;border:3px solid #169f94!important;border-radius:6px!important;background:#fff!important}
#gamesExportEditorModal .r43-font-search .material-symbols-rounded{font-size:30px!important;color:#4b5563!important}
#gamesExportEditorModal .r40-font-card .r43-font-search input{min-width:0!important;flex:1!important;height:64px!important;min-height:0!important;width:100%!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;outline:none!important;box-shadow:none!important;color:#374151!important;font-size:24px!important;font-weight:400!important;font-family:inherit!important}
#gamesExportEditorModal .r43-font-search input::placeholder{color:#6b7280!important}
#gamesExportEditorModal .r40-font-list{height:min(54dvh,520px)!important;max-height:min(54dvh,520px)!important;overflow-y:auto!important;padding:2px 24px 14px!important;gap:0!important;flex:1 1 auto!important}
#gamesExportEditorModal .r40-font-list button{width:100%!important;min-height:76px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;padding:12px 8px 12px 22px!important;border:0!important;border-radius:0!important;background:#fff!important;text-align:left!important;box-shadow:none!important;color:#20242a!important;font-size:24px!important;line-height:1.15!important;font-weight:400!important}
#gamesExportEditorModal .r40-font-list button:active{background:#f3f4f6!important}
#gamesExportEditorModal .r40-font-list button .material-symbols-rounded{color:#0d9488!important;font-size:24px!important}
#gamesExportEditorModal .r43-font-empty{padding:20px;color:#64748b;font-size:18px}
@media(max-width:480px){#gamesExportEditorModal .r40-font-card{width:calc(100vw - 36px)!important;border-radius:22px!important}#gamesExportEditorModal .r40-font-head strong{font-size:27px!important}#gamesExportEditorModal .r43-font-search{height:72px!important;margin-left:20px!important;margin-right:20px!important}#gamesExportEditorModal .r40-font-list{padding-left:20px!important;padding-right:20px!important}#gamesExportEditorModal .r40-font-list button{font-size:22px!important;min-height:74px!important}}

/* R43 — Corrige largura REAL incluindo padding; evita escudo fora do PNG. */
#gamesExportArt.r40-art.games-v34.r43-parity .games-team,
#gamesExportArt.r40-art.games-v34.r43-parity.games-layout-white.games-dense-list .games-team{
  box-sizing:border-box!important;max-width:100%!important;
}
#gamesExportArt.r40-art.games-v34.r43-parity .games-match-row,
#gamesExportArt.r40-art.games-v34.r43-parity.games-layout-white.games-dense-list .games-match-row{
  width:100%!important;max-width:100%!important;box-sizing:border-box!important;
}
#gamesExportArt.r40-art.games-v34.r43-parity .games-footer,
#gamesExportArt.r40-art.games-v34.r43-parity.games-layout-white .games-footer{
  width:100%!important;max-width:100%!important;min-width:0!important;
  box-sizing:border-box!important;flex-shrink:0!important;
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  padding:0 32px!important;overflow:visible!important;
}
#gamesExportArt.r40-art.games-v34.r43-parity .games-footer > span:last-child{
  margin:0!important;padding:0!important;line-height:1.25!important;
  display:block!important;min-width:0!important;max-width:47%!important;
  text-overflow:clip!important;overflow:visible!important;white-space:nowrap!important;
}

/* Visible editor model picker: same eight models as the round engine. */
#gamesExportEditorModal .r40-segments.r40-models{display:grid!important;grid-template-columns:repeat(8,120px)!important;overflow-x:auto!important;max-width:100%;border-radius:14px!important;justify-content:start;scrollbar-width:thin;}
#gamesExportEditorModal .r40-models button{min-width:120px!important;white-space:nowrap;}
