@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');
:root{--ink:#102c26;--green:#0d4238;--lime:#c9f04b;--paper:#f5f2e9;--muted:#6d7975;--line:#dce2dc;--white:#fff;--red:#df624f}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:Inter,sans-serif}.hidden{display:none!important}button,input,select,textarea{font:inherit}button{cursor:pointer}.brand{font:800 21px 'Barlow Condensed';letter-spacing:1.5px}.brand>span:first-child{display:inline-grid;place-items:center;background:var(--lime);color:var(--green);width:36px;height:36px;border-radius:50%;font-size:25px}.brand>span:last-child{color:var(--lime)}.auth-shell{min-height:100vh;display:grid;grid-template-columns:1.25fr 1fr;background:var(--green)}.hero{padding:56px 8vw;position:relative;overflow:hidden;color:white;background:radial-gradient(circle at 15% 95%,#1b6859,transparent 35%),var(--green)}.hero h1{font:800 clamp(58px,8vw,120px)/.82 'Barlow Condensed';text-transform:uppercase;margin:18vh 0 25px;letter-spacing:-3px}.hero p{max-width:430px;font-size:18px;color:#cce1dc}.ball{font-size:110px;position:absolute;right:8%;bottom:8%;filter:grayscale(1);opacity:.15}.auth-card{background:var(--paper);display:flex;flex-direction:column;justify-content:center;padding:12%;border-radius:40px 0 0 40px}.tabs{display:flex;border-bottom:1px solid var(--line);margin-bottom:32px}.tabs button{border:0;background:none;padding:14px 24px;font-weight:700;color:var(--muted)}.tabs button.active{color:var(--green);border-bottom:3px solid var(--lime)}form{display:grid;gap:18px}label{font-size:13px;font-weight:700;display:grid;gap:7px}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}input,select,textarea{width:100%;padding:13px 14px;border:1px solid #cfd8d2;border-radius:10px;background:white;color:var(--ink);outline:none}input:focus,select:focus,textarea:focus{border-color:#6d9b4d;box-shadow:0 0 0 3px #c9f04b40}.primary,.outline,.danger{border:0;border-radius:9px;padding:13px 18px;font-weight:800}.primary{background:var(--lime);color:var(--green)}.outline{background:transparent;border:1px solid #aab9b2;color:var(--green)}.danger{background:#ffe4df;color:#8f281a}.app{min-height:100vh;display:grid;grid-template-columns:230px 1fr}aside{position:fixed;width:230px;height:100vh;background:var(--green);color:white;padding:28px 20px;display:flex;flex-direction:column}.brand.small{padding:0 9px 35px}nav{display:grid;gap:5px}nav button,.logout{border:0;background:transparent;color:#b9d1cb;text-align:left;padding:13px 16px;border-radius:9px;font-weight:600;font-size:15px}nav button span,.logout span{padding-left:11px}nav button.active,nav button:hover{background:#ffffff14;color:white}.logout{margin-top:auto}main{grid-column:2;padding:34px 5vw 70px}header{display:flex;align-items:center;gap:18px;margin-bottom:34px}header h2{margin:4px 0 0;font:700 28px 'Barlow Condensed';text-transform:uppercase}header small{color:var(--muted);font-size:10px;letter-spacing:2px}.avatar{margin-left:auto;width:42px;height:42px;background:var(--green);color:var(--lime);display:grid;place-items:center;border-radius:50%;font-weight:800}#menu{display:none;border:0;background:none;font-size:24px}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.card{background:white;border:1px solid var(--line);border-radius:14px;padding:22px;box-shadow:0 5px 20px #143c3010}.card h3{font:700 22px 'Barlow Condensed';margin:5px 0}.card p{color:var(--muted);font-size:14px}.game-card{position:relative;overflow:hidden}.game-card:before{content:'';position:absolute;left:0;top:0;bottom:0;width:5px;background:var(--lime)}.tag{display:inline-block;border-radius:20px;background:#e6eee9;color:var(--green);font-size:10px;font-weight:800;padding:6px 9px;text-transform:uppercase}.stats-row{display:flex;gap:20px;padding:14px 0;border-top:1px solid var(--line);margin-top:14px}.stats-row b{display:block;font:700 23px 'Barlow Condensed'}.stats-row small{color:var(--muted)}.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.section-head{display:flex;justify-content:space-between;align-items:center;margin:28px 0 15px}.section-head h3{font:700 25px 'Barlow Condensed';text-transform:uppercase;margin:0}.empty{text-align:center;padding:50px;color:var(--muted)}.search{max-width:500px;margin-bottom:20px}.list{display:grid;gap:12px}.player{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding:12px 0}.player:last-child{border:0}.player .avatar{margin:0;width:34px;height:34px}.player-info{flex:1}.player-info b,.player-info small{display:block}.player-info small{color:var(--muted);margin-top:3px}.score{font:800 26px 'Barlow Condensed';color:var(--green)}.team-columns{display:grid;grid-template-columns:1fr 1fr;gap:20px}.team{min-height:150px;border:2px dashed #c8d3cc;border-radius:12px;padding:15px}.counter{display:grid;grid-template-columns:1fr repeat(4,64px);gap:8px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}.counter input{text-align:center;padding:8px}.counter-head{font-size:10px;font-weight:800;color:var(--muted)}#toast{position:fixed;z-index:99;right:24px;top:24px;background:var(--ink);color:white;padding:14px 18px;border-radius:9px;transform:translateY(-120px);transition:.25s}#toast.show{transform:none}.muted{color:var(--muted)}.invite-box{background:#eef4d4;border:1px dashed #789245;padding:14px;border-radius:10px;word-break:break-all}.rank{font:800 30px 'Barlow Condensed';color:#9aaa9f;width:38px}
@media(max-width:850px){.auth-shell{grid-template-columns:1fr}.hero{min-height:280px;padding:30px}.hero h1{font-size:54px;margin:55px 0 15px}.auth-card{border-radius:28px 28px 0 0;padding:35px 25px}.app{display:block}aside{z-index:10;transform:translateX(-100%);transition:.2s}aside.open{transform:none}main{padding:22px 18px 90px}#menu{display:block}.grid{grid-template-columns:1fr}.team-columns{grid-template-columns:1fr}.field-row{grid-template-columns:1fr}header .outline{font-size:0;padding:10px}header .outline:after{content:'↓';font-size:18px}.counter{grid-template-columns:1fr repeat(4,45px);font-size:12px}.counter input{padding:7px 2px}}

/* Identidade visual inspirada no escudo FUTEARTE */
:root{--ink:#101b31;--green:#102c61;--lime:#f3b51b;--paper:#f5f4f0;--muted:#697184;--line:#d9deea;--red:#d7192d}
.hero{padding-top:40px;background:radial-gradient(circle at 15% 95%,#163f86,transparent 38%),linear-gradient(135deg,#071a3e,#102c61 72%)}
.hero-brand{display:flex;align-items:center;gap:16px;position:relative;z-index:2}.hero-brand img{width:88px;height:88px;object-fit:cover;border-radius:18px;box-shadow:0 8px 24px #0006}.brand-copy{font:800 28px 'Barlow Condensed';letter-spacing:1.5px}.brand-copy em,.side-brand em{color:var(--red);font-style:normal}.brand-copy small{display:block;color:#f4c548;font:700 9px Inter;letter-spacing:1.7px;margin-top:4px}.stripe{position:absolute;width:520px;height:80px;background:var(--red);transform:rotate(-42deg);right:-180px;bottom:65px;opacity:.85}
aside{background:linear-gradient(180deg,#071a3e,#102c61);padding-top:24px}.side-brand{display:flex;align-items:center;gap:10px;padding:0 5px 30px}.side-brand img{width:48px;height:55px;object-fit:cover;border-radius:9px}.side-brand strong{font:800 20px 'Barlow Condensed';letter-spacing:1px;color:white}.primary{background:var(--red);color:white;box-shadow:0 4px 12px #d7192d30}.primary:hover{background:#b91223}.tabs button.active{border-bottom-color:var(--red)}.game-card:before{background:linear-gradient(var(--green) 0 34%,white 34% 66%,var(--red) 66%)}.tag{background:#e7ebf4}.invite-box{background:#fff5d7;border-color:#d3a42f}
@media(max-width:850px){.hero-brand img{width:68px;height:68px}.brand-copy{font-size:23px}.hero .stripe{bottom:30px}.hero h1{margin-top:40px}}

.mobile-logo{display:none;text-decoration:none;color:var(--ink)}
@media(max-width:850px){
  body{padding-bottom:76px}
  main{padding-top:96px;padding-bottom:28px}
  main>header{position:fixed;z-index:9;left:0;right:0;top:0;height:78px;margin:0;padding:10px 18px;background:#f5f4f0ee;backdrop-filter:blur(12px);border-bottom:1px solid var(--line);box-shadow:0 5px 18px #071a3e12}
  .mobile-logo{display:flex;align-items:center;gap:8px;flex-shrink:0}
  .mobile-logo img{width:48px;height:48px;object-fit:cover;border-radius:10px;box-shadow:0 3px 9px #071a3e35}
  .mobile-logo strong{font:800 18px 'Barlow Condensed';letter-spacing:.6px;color:#102c61}
  .page-heading{display:none}
  header .avatar{margin-left:0}
  aside{display:block;position:fixed;z-index:20;left:0;right:0;top:auto;bottom:0;width:100%;height:72px;padding:0;background:#071a3ef5;transform:none!important;border-top:2px solid #d7192d;box-shadow:0 -5px 20px #071a3e25}
  aside .side-brand{display:none}
  aside{display:grid;grid-template-columns:minmax(0,1fr) 62px}
  aside nav{height:100%;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0}
  aside nav button{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;text-align:center;padding:6px 2px;border-radius:0;font-size:20px;color:#aebbd4}
  aside nav button span{padding:0;font-size:10px;line-height:1;font-weight:700}
  aside nav button.active{background:transparent;color:#fff;box-shadow:inset 0 3px 0 #f3b51b}
  aside .logout{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;margin:0;padding:6px 2px;border-radius:0;background:#b91f31;color:#fff;text-align:center;font-size:20px;box-shadow:inset 1px 0 0 #ffffff22}
  aside .logout span{padding:0;font-size:10px;line-height:1;font-weight:800}
  #install{display:block;margin-left:auto;background:#102c61;border-color:#102c61;color:white;white-space:nowrap;box-shadow:0 4px 12px #102c6130}header #install:after{content:none}
}
@media(max-width:420px){.mobile-logo strong{font-size:16px}.mobile-logo img{width:44px;height:44px}header .avatar{width:38px;height:38px}}

.match-card{display:flex;flex-direction:column}.attendance-actions{display:flex;justify-content:center;margin:20px 0 14px}.attendance-action{width:132px;height:132px;border:0;border-radius:31px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;color:white;font-size:13px;font-weight:800;letter-spacing:.5px;transition:transform .15s,box-shadow .15s;box-shadow:inset 0 1px 0 #ffffff70,0 10px 24px #071a3e25}.attendance-action:active{transform:scale(.94)}.attendance-action svg{width:49px;height:49px;padding:9px;border:1.5px solid #ffffff90;border-radius:50%;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}.attendance-action.inside{background:linear-gradient(145deg,#35c96f,#15984b)}.attendance-action.outside{background:linear-gradient(145deg,#f05c63,#c92435)}.stats-link{align-self:center;border:1px solid var(--green);border-radius:10px;background:transparent;color:var(--green);font-size:14px;font-weight:700;padding:10px 16px}.stats-link:hover{background:var(--green);color:white}.stats-link span{font-size:17px;vertical-align:-1px;margin-right:3px}
@media(max-width:850px){.attendance-action{width:122px;height:122px;border-radius:28px}.match-card{text-align:center}}

.confirmed-card{margin-top:20px}.confirmed-card summary{display:flex;align-items:center;justify-content:space-between;cursor:pointer;font:700 19px 'Barlow Condensed';list-style:none}.confirmed-card summary::-webkit-details-marker{display:none}.confirmed-card summary b{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#e8edf7;color:var(--green)}.confirmed-list{margin-top:14px;border-top:1px solid var(--line)}.whatsapp-button{margin-top:16px;border:0;border-radius:12px;padding:12px 17px;background:#20b85a;color:white;font-weight:800;box-shadow:0 5px 14px #20b85a35}.whatsapp-button span{font-size:19px;margin-right:5px}.auto-team{border:0;border-radius:9px;padding:13px 18px;background:linear-gradient(135deg,#102c61,#1c4e9e);color:white;font-weight:800;box-shadow:0 5px 14px #102c6130}.auto-team span{color:#f3b51b;margin-right:5px}.finance-callout{margin-top:20px;display:flex;align-items:center;justify-content:space-between;gap:18px}.finance-callout>div{display:flex;align-items:center;gap:13px}.finance-callout h3,.finance-callout p{margin:2px 0}.finance-icon{display:grid;place-items:center;width:49px;height:49px;border-radius:15px;background:#e5f7eb;color:#15984b;font-size:24px;font-weight:800}.finance-head{display:flex;align-items:end;justify-content:space-between;gap:20px}.finance-head h3{font-size:28px}.finance-head label{max-width:190px}.payment-summary{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:20px 0}.payment-summary .card{display:flex;flex-direction:column;align-items:center}.payment-summary b{font:800 38px 'Barlow Condensed';color:#15984b}.payment-summary .late b{color:#c92435}.payment-summary span{font-size:12px;color:var(--muted);font-weight:700}.payment-player{display:flex;align-items:center;gap:13px;padding:13px 0;border-bottom:1px solid var(--line)}.payment-player:last-child{border:0}.payment-player.paid{opacity:.68}.payment-check{flex:0 0 38px;height:38px;border:2px solid #c8d0dc;border-radius:12px;background:white;color:white;font-weight:900;font-size:20px}.payment-player.paid .payment-check{background:#20b85a;border-color:#20b85a}.reminder{border:0;border-radius:9px;padding:9px 12px;background:#e8f7ed;color:#147e3d;font-weight:800;font-size:12px}
@media(max-width:600px){.finance-callout,.finance-head{align-items:stretch;flex-direction:column}.finance-callout .primary,.finance-head label{width:100%;max-width:none}.payment-summary{grid-template-columns:1fr 1fr}.payment-player{gap:9px}.reminder{padding:8px}.confirmed-card .whatsapp-button{width:100%}}

.presence-status{text-align:center;padding:11px 16px;border-radius:13px;margin-bottom:13px}.presence-status small,.presence-status b{display:block}.presence-status small{font-size:9px;letter-spacing:1.4px;margin-bottom:4px}.presence-status.confirmed{background:#e5f8eb;color:#11783a}.presence-status.declined{background:#fbe8ea;color:#a31e2d}.presence-choice{display:grid;grid-template-columns:1fr 1fr;gap:10px}.ios-choice{border:2px solid transparent;border-radius:17px;padding:13px 8px;background:#eef1f5;color:#7b8494;font-size:12px;font-weight:800;transition:.15s}.ios-choice span{display:block;margin:auto auto 6px;width:31px;height:31px;border-radius:50%;line-height:28px;font-size:20px}.ios-choice.in span{background:#d7f5e2;color:#168a48}.ios-choice.out span{background:#f8dade;color:#bd2637}.ios-choice.in.active{border-color:#20b85a;background:#effbf3;color:#11783a}.ios-choice.out.active{border-color:#d82d3f;background:#fff2f3;color:#a31e2d}.builder-toolbar{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:16px}.bench{margin-bottom:20px}.bench h3{margin-top:0}.token-row{display:flex;gap:10px;flex-wrap:wrap;min-height:75px}.player-token{border:0;background:transparent;display:flex;flex-direction:column;align-items:center;min-width:72px;max-width:90px;color:var(--ink);cursor:grab}.player-token:active{cursor:grabbing}.player-token>span,.player-figure{display:grid;place-items:center;width:46px;height:46px;border-radius:50% 50% 44% 44%;background:linear-gradient(#fff 0 31%,var(--team,#164d92) 32%);border:2px solid white;box-shadow:0 3px 9px #071a3e4a;color:#f0c7a0;font-size:23px;line-height:1}.player-token b{font-size:11px;margin-top:5px;overflow:hidden;text-overflow:ellipsis;max-width:82px}.player-token small{font-size:8px;color:var(--muted)}.pitch-grid,.live-pitches{display:grid;grid-template-columns:repeat(2,minmax(280px,1fr));gap:18px}.team-pitch,.live-pitch{border-radius:17px;overflow:hidden;background:#197442;box-shadow:0 8px 20px #071a3e25}.team-pitch>header{position:static;margin:0;padding:13px 16px;background:var(--team);color:white;display:flex;justify-content:space-between}.team-pitch header b,.team-pitch header small{display:block}.team-pitch header small{font-size:9px;opacity:.8;margin-top:2px}.team-pitch header>span{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#ffffff35}.pitch-lines{position:relative;min-height:260px;padding:22px 13px;background:linear-gradient(90deg,#ffffff08 50%,transparent 50%),repeating-linear-gradient(0deg,#23834e 0 34px,#1d7b48 34px 68px);background-size:50% 100%,100% 100%;border:2px solid #ffffffa0;border-top:0}.pitch-lines:before{content:'';position:absolute;inset:12px;border:2px solid #ffffff8a}.pitch-lines:after{content:'';position:absolute;left:50%;top:12px;bottom:12px;border-left:2px solid #ffffff8a}.pitch-lines>i{position:absolute;z-index:0;width:74px;height:74px;border:2px solid #ffffff8a;border-radius:50%;left:calc(50% - 37px);top:calc(50% - 37px)}.pitch-players{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-around;align-content:center;gap:12px;flex-wrap:wrap;min-height:212px}.team-pitch.drag-over,.bench.drag-over{outline:4px solid #f3b51b;outline-offset:-4px}.kickoff{margin-top:22px}.kickoff h3{margin-top:0}.match-score{display:flex;justify-content:center;align-items:center;gap:20px;background:#071a3e;color:white;padding:18px;border-radius:17px 17px 0 0}.match-score>div{display:flex;align-items:center;gap:14px;flex:1;justify-content:flex-end}.match-score>div:last-child{justify-content:flex-start}.match-score strong{font:800 42px 'Barlow Condensed';color:#f3b51b}.match-score>span{opacity:.5}.countdown{background:#102c61;color:white;text-align:center;padding:12px;font:800 40px 'Barlow Condensed';letter-spacing:3px;border-radius:0 0 17px 17px}.countdown.finished{background:#d82d3f;animation:pulse .8s infinite alternate}@keyframes pulse{to{filter:brightness(1.35)}}.validation-banner{text-align:center;padding:14px;background:#fff1cd;color:#765408;font-weight:800;border-radius:0 0 17px 17px}.live-pitches{margin-top:20px}.live-pitch h3{position:relative;z-index:2;margin:0;padding:12px 15px;background:var(--team);color:white}.live-pitch h3 small{font:500 10px Inter;opacity:.8}.live-pitch .pitch-lines{border-top:2px solid #ffffff8a}.stat-review{margin-top:20px}.stat-review>div{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid var(--line)}.stat-review>div:last-child{border:0}.stat-review span{color:var(--muted);font-size:12px}.match-footer{position:sticky;bottom:82px;z-index:6;display:flex;justify-content:center;margin:22px}.stat-modal{position:fixed;z-index:100;inset:0;background:#071a3ebb;display:grid;place-items:end center;padding:20px}.stat-sheet{position:relative;width:min(460px,100%);background:white;border-radius:25px;padding:24px;box-shadow:0 20px 50px #0005}.close-sheet{position:absolute;right:16px;top:13px;border:0;background:#edf0f4;width:33px;height:33px;border-radius:50%;font-size:22px}.stat-sheet .player-figure{margin:auto;width:62px;height:62px;font-size:30px;--team:#102c61}.stat-sheet h3{text-align:center;font:800 25px 'Barlow Condensed'}.stat-step{display:grid;grid-template-columns:1fr 40px 32px 40px;gap:8px;align-items:center;padding:10px 0;border-top:1px solid var(--line)}.stat-step button{border:0;border-radius:11px;width:40px;height:40px;background:#e8edf7;color:#102c61;font-size:21px;font-weight:800}.stat-step b{text-align:center;font-size:19px}
@media(max-width:720px){.pitch-grid,.live-pitches{grid-template-columns:1fr}.team-pitch .pitch-lines{min-height:230px}.presence-choice{grid-template-columns:1fr 1fr}.match-score{gap:8px}.match-score>div{gap:7px}.match-score b{font-size:12px}.match-score strong{font-size:34px}.stat-review>div{flex-direction:column}.match-footer{bottom:78px}}

.bench h3 span{display:inline-grid;place-items:center;width:27px;height:27px;margin-left:5px;border-radius:50%;background:#e8edf7;color:#102c61;font:700 13px Inter}.slot-pitch .pitch-lines{min-height:350px}.formation-grid{position:relative;z-index:2;min-height:306px;display:grid;grid-template-columns:repeat(3,1fr);align-content:space-around;gap:12px}.formation-slot{border:0;background:transparent;display:flex;flex-direction:column;align-items:center;color:white;min-width:0}.formation-slot .slot-role{font-size:7px;font-weight:900;letter-spacing:.6px;background:#071a3eaa;padding:3px 6px;border-radius:7px;margin-bottom:4px}.formation-slot .slot-figure{display:grid;place-items:center;width:54px;height:54px;border-radius:50% 50% 43% 43%;font-size:25px;border:2px solid #ffffffd0;box-shadow:0 4px 10px #071a3e55}.formation-slot.empty .slot-figure{background:#9da7ae;color:white;border-style:dashed}.formation-slot.filled .slot-figure{background:linear-gradient(145deg,#2457a6 0 49%,#d82d3f 50%);color:#f0c7a0}.formation-slot b{font-size:11px;max-width:84px;overflow:hidden;text-overflow:ellipsis;margin-top:4px}.formation-slot small{font-size:8px;opacity:.82}.incomplete-warning{margin-top:20px;text-align:center;border:1px solid #edc2c7;background:#fff4f5}.incomplete-warning b{color:#a31e2d}.ready-note{color:#168a48!important;font-weight:700}.slot-sheet h3{text-align:left}.slot-player-list{display:grid;gap:8px;max-height:50vh;overflow:auto}.slot-player-list>button{display:flex;align-items:center;gap:12px;width:100%;padding:9px;border:1px solid var(--line);border-radius:13px;background:white;text-align:left;color:var(--ink)}.slot-player-list>button:hover{background:#eef3fa}.slot-player-list small,.slot-player-list b{display:block}.slot-player-list small{color:var(--muted);margin-top:3px}.candidate-figure{display:grid;place-items:center;flex:0 0 44px;height:44px;border-radius:50%;background:linear-gradient(145deg,#2457a6 0 49%,#d82d3f 50%);color:#f0c7a0;font-size:23px}.remove-slot{width:100%;margin-top:15px}
@media(max-width:480px){.formation-grid{grid-template-columns:repeat(3,1fr);gap:8px}.formation-slot .slot-figure{width:48px;height:48px}.slot-pitch .pitch-lines{min-height:330px}}

/* Escalação compacta em meia quadra */
.slot-pitch{max-width:560px;margin-inline:auto;width:100%}.slot-pitch .pitch-lines{min-height:245px;height:245px;padding:15px 12px;background:repeating-linear-gradient(0deg,#23834e 0 28px,#1d7b48 28px 56px)}.slot-pitch .pitch-lines:before{inset:10px;border-radius:0 0 45% 45%}.slot-pitch .pitch-lines:after{left:20%;right:20%;top:auto;bottom:10px;height:48px;border:2px solid #ffffff8a;border-bottom:0;border-left:2px solid #ffffff8a}.slot-pitch .pitch-lines>i{width:66px;height:33px;left:calc(50% - 33px);top:10px;border-radius:0 0 40px 40px;border-top:0}.slot-pitch .formation-grid{position:relative;display:flex;flex-wrap:wrap;justify-content:space-evenly;align-content:flex-start;gap:7px 4px;min-height:215px;height:215px;padding:3px 4px 70px}.slot-pitch .formation-slot{flex:0 1 22%;min-width:58px;max-width:82px}.slot-pitch .keeper-slot{position:absolute;left:50%;bottom:0;transform:translateX(-50%);z-index:3}.slot-pitch .slot-figure{width:43px;height:43px;font-size:20px}.slot-pitch .formation-slot b{font-size:10px;margin-top:2px}.slot-pitch .formation-slot small{font-size:7px}.slot-pitch .slot-role{font-size:6px;padding:2px 5px;margin-bottom:2px}
@media(max-width:480px){.slot-pitch .pitch-lines{height:230px;min-height:230px}.slot-pitch .formation-grid{height:200px;min-height:200px;padding-bottom:64px}.slot-pitch .formation-slot{flex-basis:24%;min-width:52px}.slot-pitch .slot-figure{width:39px;height:39px}.slot-pitch .pitch-lines:after{height:42px}}

/* Altura fluida: nenhuma vaga fica cortada em telas pequenas */
.pitch-grid{align-items:start}.slot-pitch .pitch-lines{height:auto;min-height:245px;overflow:visible}.slot-pitch .formation-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:start;align-content:start;height:auto;min-height:215px;padding:4px 3px 72px;gap:9px 3px}.slot-pitch .formation-slot{width:100%;min-width:0;max-width:none;flex:none}.slot-pitch .keeper-slot{width:78px}.slot-pitch .pitch-lines:before{bottom:10px}
@media(max-width:600px){body{overflow-x:hidden}.pitch-grid{gap:14px}.slot-pitch{max-width:100%}.slot-pitch .pitch-lines{height:auto;min-height:225px;padding-inline:7px}.slot-pitch .formation-grid{grid-template-columns:repeat(3,minmax(0,1fr));height:auto;min-height:195px;padding-bottom:65px;gap:8px 1px}.slot-pitch .formation-slot{min-width:0}.slot-pitch .keeper-slot{width:70px}.slot-pitch .slot-figure{width:40px;height:40px}.slot-pitch .formation-slot b{max-width:68px}.builder-toolbar>*{flex:1 1 145px}.team-pitch>header{gap:8px}.team-pitch>header>div{min-width:0}.team-pitch>header b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}

/* Gramado fotográfico em visão aérea */
.slot-pitch{max-width:460px}.slot-pitch .pitch-lines{aspect-ratio:4/3;height:auto;min-height:0;background-image:linear-gradient(#071a3e12,#071a3e12),url('/pitch-realistic.png');background-size:100% 100%;background-position:center;background-repeat:no-repeat;padding:12px}.slot-pitch .pitch-lines:before,.slot-pitch .pitch-lines:after,.slot-pitch .pitch-lines>i{display:none}.slot-pitch .formation-grid{min-height:100%;height:100%;padding:10px 4px 67px;align-content:start}.slot-pitch .formation-slot{text-shadow:0 1px 3px #000}.slot-pitch .formation-slot small{color:white;opacity:.95}.slot-pitch .slot-role{background:#071a3ed9}.slot-pitch .keeper-slot{bottom:8px}
@media(max-width:600px){.slot-pitch .pitch-lines{aspect-ratio:4/3;min-height:0;padding:7px}.slot-pitch .formation-grid{min-height:100%;height:100%;padding:5px 1px 60px}.slot-pitch .keeper-slot{bottom:5px}}

/* Posicionamento tático mobile: duas linhas completas e goleiro recuado */
.slot-pitch .pitch-lines{position:relative}.slot-pitch .formation-grid{position:absolute;inset:0;height:auto;min-height:0;grid-auto-rows:72px;align-content:start;padding:12px 8px 78px}.slot-pitch .keeper-slot{position:absolute;left:50%;top:auto;bottom:7px;transform:translateX(-50%);z-index:5}.slot-pitch .line-slot{position:relative;z-index:3}
@media(max-width:600px){.slot-pitch .formation-grid{position:absolute;inset:0;height:auto;min-height:0;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:68px;padding:9px 3px 72px;align-content:start}.slot-pitch .keeper-slot{top:auto;bottom:2px;width:68px}.slot-pitch .formation-slot b{line-height:1.05}.slot-pitch .formation-slot small{line-height:1}.slot-pitch .slot-role{white-space:nowrap}}

/* Formação padrão 1–2–3: goleiro, meio e frente */
.slot-pitch .tactical-slot{position:absolute;width:82px;z-index:4;transform:translateX(-50%)}.slot-pitch .slot-pos-0{left:50%;top:auto;bottom:-16px;z-index:6}.slot-pitch .slot-pos-1{left:34%;top:auto;bottom:88px}.slot-pitch .slot-pos-2{left:66%;top:auto;bottom:88px}.slot-pitch .slot-pos-3{left:17%;top:8%;bottom:auto}.slot-pitch .slot-pos-4{left:50%;top:8%;bottom:auto}.slot-pitch .slot-pos-5{left:83%;top:8%;bottom:auto}
@media(max-width:600px){.slot-pitch .tactical-slot{width:68px}.slot-pitch .slot-pos-0{top:auto;bottom:-18px}.slot-pitch .slot-pos-1{left:33%;top:auto;bottom:76px}.slot-pitch .slot-pos-2{left:67%;top:auto;bottom:76px}.slot-pitch .slot-pos-3{left:17%;top:6%;bottom:auto}.slot-pitch .slot-pos-4{left:50%;top:6%;bottom:auto}.slot-pitch .slot-pos-5{left:83%;top:6%;bottom:auto}}

/* Marcadores compactos para evitar sobreposição */
.slot-pitch .formation-slot{width:68px;max-width:68px;min-height:68px;padding:0 2px;gap:0}.slot-pitch .formation-slot .slot-figure{width:35px;height:35px;font-size:17px;border-width:1.5px}.slot-pitch .formation-slot .slot-role{font-size:5.5px;line-height:1;padding:2px 4px;margin-bottom:2px}.slot-pitch .formation-slot b{display:block;width:100%;max-width:64px;font-size:8.5px;line-height:1.05;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.slot-pitch .formation-slot small{display:block;width:100%;max-width:62px;font-size:6px;line-height:1.05;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.slot-pitch .tactical-slot,.slot-pitch .keeper-slot{width:68px}
@media(max-width:600px){.slot-pitch .formation-slot{width:58px;max-width:58px;min-height:61px;padding:0 1px}.slot-pitch .formation-slot .slot-figure{width:32px;height:32px;font-size:15px}.slot-pitch .formation-slot b{max-width:56px;font-size:8px}.slot-pitch .formation-slot small{max-width:54px;font-size:5.5px}.slot-pitch .tactical-slot,.slot-pitch .keeper-slot{width:58px}}

.presence-status.pending{background:#fff3ce;color:#765408}.roster-panels{display:grid;gap:12px;margin-top:16px}.roster-group{border:1px solid var(--line);border-radius:13px;overflow:hidden}.roster-group>header{position:static;height:auto;margin:0;padding:10px 13px;display:flex;justify-content:space-between;background:#f0f3f7;font-size:12px;font-weight:800}.roster-group>header b{display:grid;place-items:center;min-width:25px;height:25px;border-radius:50%;background:white}.roster-group>div{padding:0 13px}.roster-group .player{padding:9px 0}.roster-group .avatar{width:31px;height:31px;font-size:11px}.roster-group.confirmed>header{background:#e5f8eb;color:#11783a}.roster-group.pending>header{background:#fff3ce;color:#765408}.roster-group.declined>header{background:#fbe8ea;color:#a31e2d}.roster-group .muted{font-size:11px;padding:4px 0 12px}
.organizer-presence{display:flex;flex:0 0 auto;gap:6px;margin-left:8px}.organizer-presence button{display:grid;place-items:center;width:34px;height:34px;padding:0;border:1px solid var(--line);border-radius:11px;background:#f0f3f7;color:#7b8494;font-size:18px;font-weight:900;transition:.15s}.organizer-presence .in.active{border-color:#20b85a;background:#20b85a;color:white}.organizer-presence .out.active{border-color:#d82d3f;background:#d82d3f;color:white}.organizer-presence button:active{transform:scale(.92)}
.game-management{margin-top:20px;display:flex;align-items:center;justify-content:space-between;gap:18px}.game-management h3,.game-management p{margin:2px 0}@media(max-width:600px){.game-management{align-items:stretch;flex-direction:column}.game-management button{width:100%}}
.edit-schedule-note{margin:16px 0;padding:11px 13px;border-radius:11px;background:#e8f7ed;color:#147e3d;font-size:12px;font-weight:700}
.game-weekday{color:var(--green);font-weight:800;text-transform:capitalize}
#authForm .primary:disabled{opacity:.65;cursor:wait}#otpField input{font-size:22px;font-weight:800;letter-spacing:7px;text-align:center}
#emailLogin{display:grid;gap:18px}.login-tabs button{flex:1;padding-left:8px;padding-right:8px}
.profile-danger{margin-top:22px}
@media(max-width:380px){.roster-group>div{padding:0 9px}.roster-group .player{gap:7px}.organizer-presence{gap:4px;margin-left:3px}.organizer-presence button{width:31px;height:31px;border-radius:9px}}
.roster-group>header{justify-content:flex-start;gap:8px}.roster-group>header b{min-width:23px;width:23px;height:23px}

.danger-zone{margin-top:20px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-color:#efc7cc;background:#fffafb}.danger-zone h3,.danger-zone p{margin:2px 0}.danger-zone p{font-size:12px}.viewer-notice{margin-bottom:15px;padding:12px 15px;border-radius:11px;background:#e8edf7;color:#102c61;font-size:12px;font-weight:800;text-align:center}.formation-slot.readonly{cursor:default;opacity:.88}.formation-slot.readonly .slot-figure{filter:saturate(.7)}
@media(max-width:600px){.danger-zone{align-items:stretch;flex-direction:column}.danger-zone .danger{width:100%}}

/* Proteção global contra overflow em telas mobile */
html,body{width:100%;max-width:100%;overflow-x:hidden}.app,main,#content,.grid,.card,.list,.section-head,.actions,.field-row,.team-columns,.pitch-grid,.live-pitches{min-width:0;max-width:100%}img,svg,video,canvas{max-width:100%}.card,.player-info,.game-card{overflow-wrap:anywhere}.player-info{min-width:0}.player-info b,.player-info small{max-width:100%;overflow:hidden;text-overflow:ellipsis}.actions{flex-wrap:wrap}.actions>*{max-width:100%}
@media(max-width:850px){
  .app{width:100%;max-width:100vw;overflow-x:hidden}
  main{width:100%;max-width:100vw;min-width:0;padding-left:14px;padding-right:14px}
  #content{width:100%;overflow-x:hidden}
  main>header{max-width:100vw;padding-left:12px;padding-right:12px;gap:9px}
  .mobile-logo{min-width:0}.mobile-logo strong{white-space:nowrap}
  header #install{flex:0 0 auto;width:auto;height:39px;padding:7px 10px;font-size:11px}
  header .avatar{flex:0 0 38px}
  .card{width:100%;padding:16px;border-radius:12px}
  .grid,.team-columns,.pitch-grid,.live-pitches{width:100%;grid-template-columns:minmax(0,1fr)}
  .section-head{gap:10px;flex-wrap:wrap}.section-head h3{font-size:21px;min-width:0}
  .section-head>button{max-width:100%;white-space:normal}
  .field-row{width:100%;grid-template-columns:minmax(0,1fr)}
  form,label,input,select,textarea{min-width:0;max-width:100%}
  .actions{width:100%;gap:8px}.actions button{white-space:normal}
  .game-card h3,.card h3{overflow-wrap:anywhere}
  .invite-box{width:100%;overflow-wrap:anywhere;word-break:break-all}
  .player{width:100%;min-width:0}.player .avatar{flex:0 0 34px}.player .score{flex:0 0 auto;font-size:21px;white-space:nowrap}
  .rank{flex:0 0 28px;width:28px;font-size:24px}
  .counter{width:100%;grid-template-columns:minmax(74px,1fr) repeat(4,minmax(34px,42px));gap:4px;overflow:hidden}
  .counter input{width:100%;min-width:0;font-size:12px}
  .counter-head{font-size:7px}.counter>b{font-size:10px;overflow:hidden;text-overflow:ellipsis}
  .match-score{width:100%;padding:13px 8px}.match-score>div{min-width:0}.match-score b{max-width:90px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .countdown{font-size:34px}
  .formation-grid,.pitch-lines,.slot-pitch,.team-pitch{max-width:100%;box-sizing:border-box}
  .team-pitch>header{width:100%;padding:10px 12px}.team-pitch>header>div{min-width:0;max-width:calc(100% - 40px)}
  .bench .token-row{width:100%;overflow:hidden}
  .finance-head,.finance-callout{width:100%}.payment-player{width:100%;min-width:0}.payment-player .reminder{flex:0 0 auto}
  .payment-summary{width:100%;gap:8px}.payment-summary .card{padding:12px 8px}
  .confirmed-card summary{gap:10px}.confirmed-card summary span{min-width:0;overflow-wrap:anywhere}
  .roster-group>header{width:100%}.roster-group .player{flex-wrap:nowrap}
  .stat-modal{width:100vw;max-width:100vw;padding:10px}.stat-sheet{width:100%;max-width:100%;padding:20px 15px}
  .stat-step{grid-template-columns:minmax(0,1fr) 38px 28px 38px;gap:5px}.stat-step button{width:38px;height:38px}
  .auth-shell{width:100%;max-width:100vw;overflow:hidden}.hero,.auth-card{width:100%;max-width:100vw}.hero{padding-left:22px;padding-right:22px}.hero h1{font-size:48px;letter-spacing:-1.5px;overflow-wrap:normal}.hero-brand{max-width:100%}
  aside nav button{min-width:0;overflow:hidden}aside nav button span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
@media(max-width:380px){
  main{padding-left:10px;padding-right:10px}.card{padding:13px}.mobile-logo strong{display:none}.mobile-logo img{width:40px;height:40px}
  aside{grid-template-columns:minmax(0,1fr) 55px}aside nav button{font-size:18px}aside nav button span,aside .logout span{font-size:8.5px}
  .counter{grid-template-columns:minmax(62px,1fr) repeat(4,32px);gap:3px}
  .presence-choice{gap:6px}.ios-choice{padding:10px 4px;font-size:10px}
  .payment-summary{grid-template-columns:1fr 1fr}.match-score strong{font-size:29px}
}

.my-games{margin-bottom:28px;padding-bottom:24px;border-bottom:1px solid var(--line)}.my-games>.section-head{margin-top:0}.member-badge{display:inline-grid;place-items:center;min-width:32px;height:32px;padding:0 9px;border-radius:18px;background:#102c61;color:white;font-size:12px;font-weight:800}.member-manager{margin-top:20px}.member-manager .section-head{margin:0 0 5px}.unlink-member{border:0;border-radius:9px;padding:8px 11px;background:#fbe8ea;color:#a31e2d;font-size:11px;font-weight:800}.unlink-member:hover{background:#f5cfd4}
@media(max-width:600px){.member-manager .player{align-items:flex-start;flex-wrap:wrap}.member-manager .unlink-member{margin-left:46px}.my-games .grid{grid-template-columns:1fr}}
.delete-team-button {
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  background: rgba(125,18,32,.88);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

.delete-team-button:hover { background: #a6172b; transform: translateY(-1px); }
.goal-summary, .match-history { margin-top: 14px; }
.goal-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.goal-summary > div { min-width: 0; padding: 10px; border-radius: 12px; background: rgba(24,134,75,.08); }
.goal-summary b, .goal-summary span { display: block; }
.goal-summary span { margin-top: 5px; overflow-wrap: anywhere; font-size: 13px; }
.history-event { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(0,0,0,.08); }
.history-event > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #eaf7ef; }
.history-event b, .history-event small { display: block; }
.history-event small { margin-top: 2px; color: var(--muted); }
.history-event > div { min-width: 0; flex: 1; }
.history-event time { flex: 0 0 auto; padding: 5px 8px; border-radius: 9px; background: rgba(36,87,166,.1); color: #173f7d; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.assist-sheet > .outline { width: 100%; margin-top: 8px; }
.assist-player-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-height: 42vh; margin-top: 12px; overflow-y: auto; }
.assist-player-list button { min-width: 0; white-space: normal; }
@media (max-width: 520px) {
  .goal-summary { grid-template-columns: 1fr; }
  .assist-player-list { grid-template-columns: 1fr; }
}
.confrontation-history { margin-top: 16px; }
.history-leader { max-width: 52%; padding: 7px 10px; border-radius: 10px; background: #fff4cf; color: #705500; font-size: 12px; font-weight: 800; text-align: right; }
.confrontation-list { display: grid; gap: 10px; }
.confrontation-row { padding: 12px; border: 1px solid rgba(0,0,0,.08); border-radius: 13px; background: rgba(255,255,255,.64); }
.match-number { display: block; margin-bottom: 7px; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.confrontation-score { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 10px; }
.confrontation-score b { min-width: 0; overflow-wrap: anywhere; }
.confrontation-score b:last-child { text-align: right; }
.confrontation-score strong { padding: 6px 10px; border-radius: 9px; background: #142d22; color: #fff; font-size: 18px; font-variant-numeric: tabular-nums; }
.confrontation-row > small { display: block; margin-top: 7px; color: var(--muted); text-align: center; }
@media (max-width: 520px) {
  .confrontation-history .section-head { align-items: flex-start; }
  .history-leader { max-width: 100%; text-align: left; }
  .confrontation-score { gap: 6px; font-size: 12px; }
  .confrontation-score strong { padding: 5px 7px; font-size: 16px; }
}
/* Estatísticas visíveis: jogador, gols, assistências e defesas. */
.counter{grid-template-columns:1fr repeat(3,64px)}
@media(max-width:850px){.counter{grid-template-columns:1fr repeat(3,45px)}}
@media(max-width:600px){.counter{grid-template-columns:minmax(74px,1fr) repeat(3,minmax(34px,42px))}}
@media(max-width:390px){.counter{grid-template-columns:minmax(62px,1fr) repeat(3,32px)}}
