
*{box-sizing:border-box}
:root{--gold:#f5b642;--gold-light:#ffe5a0;--cyan:#00c8ff;--blue:#087de0;--navy:#03152e}
body{margin:0;background:#06152b;color:#f5f8ff;font-family:Arial,Helvetica,sans-serif}
.gate-body{min-height:100vh;background-color:#06152b;background-image:linear-gradient(180deg,rgba(1,10,26,.18),rgba(1,10,26,.38)),url('/assets/stadio-notte-visitatore.png') !important;background-size:cover;background-position:center top;background-repeat:no-repeat;background-attachment:scroll;display:flex;justify-content:center;align-items:flex-start;padding:20px 18px 34px}
.gate{width:min(100%,1120px);margin:0 auto;text-align:center;padding:0 0 12px}
.gate-brand{height:180px;display:flex;align-items:center;justify-content:center;gap:20px;position:relative;margin:0 auto 4px;max-width:650px;filter:drop-shadow(0 4px 10px rgba(0,0,0,.8))}
.brand-center{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:280px}
.brand-crown{width:92px;height:62px;object-fit:contain;margin-bottom:-9px;filter:drop-shadow(0 0 8px rgba(255,183,49,.7))}
.brand-title{font-family:Georgia,'Times New Roman',serif;font-size:clamp(44px,7vw,76px);font-weight:900;line-height:.92;letter-spacing:2px;color:#ffd36c;text-shadow:0 2px 0 #7a3900,0 5px 4px #000,0 0 18px rgba(255,173,37,.75);-webkit-text-stroke:1px #7c480d}
.brand-subtitle{font-family:Georgia,'Times New Roman',serif;font-weight:900;font-size:clamp(20px,3vw,30px);letter-spacing:5px;color:#fff0c8;text-shadow:0 3px 5px #000,0 0 12px #e49b27;margin-top:5px}
.brand-laurel{width:90px;height:150px;object-fit:contain;filter:drop-shadow(0 2px 5px #000)}
.brand-laurel-left{transform:rotate(13deg)}
.brand-laurel-right{transform:rotate(-13deg)}
.visitor-ribbon{width:min(100%,620px);margin:0 auto;border:2px solid #00baff;border-radius:24px;padding:10px 18px;background:linear-gradient(180deg,rgba(0,105,222,.96),rgba(0,31,87,.98));box-shadow:0 0 8px #00baff,0 0 22px rgba(0,166,255,.65),inset 0 0 15px rgba(67,209,255,.35);display:flex;align-items:center;justify-content:center;gap:18px;font-size:clamp(26px,4vw,42px);font-weight:900;font-style:italic;letter-spacing:2px;text-shadow:0 3px 5px #00132e}
.visitor-eye{font-size:.95em;font-style:normal}
.gate-subtitle{font-size:clamp(18px,2.5vw,27px);font-weight:800;font-style:italic;margin:9px 0 17px;color:#f1f5ff;text-shadow:0 3px 6px #000}
.auction-panel{width:min(100%,1000px);margin:0 auto;padding:20px 22px;border:2px solid #00baff;border-radius:24px;background:linear-gradient(145deg,rgba(0,17,43,.91),rgba(0,42,91,.84));box-shadow:0 0 10px #00baff,0 0 28px rgba(0,142,255,.45),inset 0 0 22px rgba(0,153,255,.14)}
.auction-choice{display:flex;align-items:center;gap:16px;min-height:72px;margin:9px 0;padding:9px 14px;border:1px solid rgba(0,170,255,.45);border-radius:15px;background:linear-gradient(100deg,rgba(0,39,86,.97),rgba(0,19,48,.96));box-shadow:inset 0 0 12px rgba(0,141,255,.13),0 3px 8px rgba(0,0,0,.25);text-align:left}
.auction-choice:first-of-type{border-color:#00d8ff;box-shadow:0 0 9px rgba(0,201,255,.65),inset 0 0 15px rgba(0,146,255,.3)}
.auction-ball{flex:0 0 48px;width:48px;text-align:center;font-size:34px;filter:drop-shadow(0 2px 3px #000)}
.auction-info{flex:1;min-width:170px}
.auction-info strong{display:block;font-size:clamp(15px,2vw,22px);font-weight:800;color:#fff;text-shadow:0 2px 4px #000}
.auction-info small{display:block;margin-top:5px;font-size:12px;letter-spacing:.5px;color:#b9dcff}
.password-field{display:flex;align-items:center;gap:8px;width:min(100%,290px);padding:0 11px;border:2px solid #4bcaff;border-radius:12px;background:rgba(1,12,31,.92);box-shadow:inset 0 0 8px rgba(0,0,0,.65)}
.lock-icon{font-size:18px}
.password-field input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:#fff;padding:12px 0;font-size:14px}
.password-field input::placeholder{color:#c4d3e8;font-style:italic}
.open-auction{border:2px solid #26d6ff;border-radius:12px;padding:12px 20px;min-width:108px;background:linear-gradient(180deg,#168ff4,#0050b9);color:white;font-size:14px;font-weight:900;letter-spacing:.5px;cursor:pointer;text-shadow:0 2px 3px #00234b;box-shadow:0 0 9px rgba(0,194,255,.65),inset 0 1px 5px rgba(255,255,255,.35);transition:transform .15s,filter .15s}
.open-auction span{font-size:18px;margin-left:5px}
.open-auction:hover{filter:brightness(1.2);transform:translateY(-1px)}
.error{margin:0 0 12px;padding:12px;border:1px solid #ff7b7b;border-radius:10px;background:rgba(112,12,25,.9);color:#fff;font-weight:700}
.empty-auctions{padding:20px;color:#d9eaff}
.gate-footer{margin-top:16px;color:#d5e6ff;font-size:11px;font-weight:800;letter-spacing:3px;text-shadow:0 2px 5px #000}
.gate-footer span{color:var(--gold);padding:0 8px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Schermata live: mantiene il layout e la palette già verificati */
.topbar{display:flex;justify-content:space-between;align-items:center;padding:12px 22px;background:#071b36;border-bottom:1px solid #167bc1}
.topbar span{display:block;color:#b9cde4;font-size:12px;margin-top:4px}
.topbar a{color:#ffd36c;text-decoration:none;font-size:13px}
.dashboard{padding:16px;max-width:1900px;margin:auto}
.hero-grid{display:grid;grid-template-columns:minmax(150px,.7fr) minmax(300px,2fr) minmax(150px,.7fr);gap:12px}
.timer-card,.player-card{background:linear-gradient(145deg,#102c4c,#07182f);border:1px solid #167bc1;border-radius:14px;padding:18px;min-height:150px;display:flex;flex-direction:column;justify-content:center;box-shadow:0 0 10px rgba(0,153,255,.15)}
.timer-card{text-align:center}
.timer-card small,.player-card small{font-size:11px;letter-spacing:1px;color:#f3c45c;font-weight:800}
.timer-card strong{font-size:clamp(36px,5vw,62px);line-height:1.1;margin:8px 0}
.timer-card span{color:#b9cde4;font-size:12px}
.player-card h1{font-size:clamp(24px,3vw,40px);margin:8px 0}
.player-card p{color:#b9cde4;margin:0}
.bid-line{display:flex;align-items:center;gap:16px;margin-top:14px}
.bid-line strong{font-size:24px;color:#ffd36c}
.bid-line span{color:#d5e3f3}
.section{margin-top:18px}
.section h2{font-size:14px;letter-spacing:1px;color:#f3c45c;margin:0 0 10px}
.teams-strip{display:flex;gap:9px;overflow-x:auto;padding-bottom:8px}
.team-chip{flex:0 0 220px;background:#102c4c;border:1px solid #167bc1;border-radius:10px;padding:12px}
.team-chip>b{font-size:15px}
.team-stats{display:grid;grid-template-columns:1fr 1fr 1fr;gap:4px;margin:10px 0;color:#b9cde4;font-size:10px}
.team-stats strong{display:block;color:#fff;font-size:17px;margin-top:3px}
.role-mini{display:flex;gap:5px}
.role-mini span{font-size:11px;background:#1a4269;padding:4px 6px;border-radius:5px}
.role-mini .done{opacity:.35;text-decoration:line-through}
.is-complete{opacity:.43;filter:grayscale(1)}
.purchases{display:flex;gap:8px;overflow-x:auto}
.purchase{min-width:170px;background:#102c4c;border:1px solid #167bc1;border-radius:9px;padding:10px;display:flex;flex-direction:column;gap:5px}
.purchase span,.purchase strong{font-size:12px;color:#b9cde4}
.purchase strong{color:#ffd36c}
.rosters{display:flex;gap:10px;overflow:auto;padding-bottom:12px;align-items:flex-start}
.roster{flex:0 0 250px;background:#102c4c;border:1px solid #167bc1;border-radius:11px;padding:12px}
.roster h3{margin:0 0 10px;font-size:16px}
.role-group{border-top:1px solid #1d4b72;padding:7px 0}
.role-group header{display:flex;justify-content:space-between;color:#f3c45c;font-size:12px;margin-bottom:5px}
.role-group.done{opacity:.35;filter:grayscale(1)}
.roster-player{display:flex;justify-content:space-between;gap:8px;font-size:12px;padding:4px 0}
.roster-player small{color:#b9cde4}
.empty-slot{font-size:11px;color:#819ab7;padding:3px 0}
.audio-bar{position:sticky;bottom:0;background:#06172d;border-top:1px solid #167bc1;padding:9px 16px;display:flex;align-items:center;gap:12px}
.audio-bar button{border:0;border-radius:8px;padding:8px 13px;font-weight:800;background:#e6ad3e;color:#172033;cursor:pointer}
.audio-bar span{font-size:11px;color:#b9cde4}
@media(max-width:760px){
 .gate-body{padding:12px 10px 24px;background-attachment:scroll}
 .gate-brand{height:140px;gap:5px}
 .brand-center{min-width:190px}
 .brand-laurel{width:58px;height:110px}
 .brand-crown{width:70px;height:45px}
 .brand-title{font-size:48px}
 .brand-subtitle{font-size:19px;letter-spacing:3px}
 .visitor-ribbon{border-radius:16px;padding:9px;font-size:28px}
 .gate-subtitle{font-size:18px;margin:10px 0 14px}
 .auction-panel{padding:10px;border-radius:17px}
 .auction-choice{gap:9px;padding:10px;flex-wrap:wrap}
 .auction-ball{flex-basis:34px;width:34px;font-size:27px}
 .auction-info{min-width:calc(100% - 55px)}
 .password-field{order:3;flex:1 1 100%;width:100%;margin-left:43px}
 .open-auction{min-width:82px;padding:10px 12px}
 .hero-grid{grid-template-columns:1fr 1fr}
 .player-card{grid-column:1/-1;grid-row:1}
 .timer-card{min-height:110px}
 .dashboard{padding:10px}
 .topbar{padding:10px}
 .audio-bar{position:sticky}
}
@media(max-width:420px){
 .brand-laurel{width:43px}
 .brand-title{font-size:40px}
 .brand-subtitle{font-size:16px}
 .auction-choice{gap:7px}
 .open-auction{font-size:12px}
}

/* Nuova selezione aste visitatore */
.visitor-entry{width:min(100%,1000px);margin:0 auto}
.auction-panel{width:100%;padding:20px 22px}
.auction-choice{width:100%;font:inherit;color:inherit;cursor:pointer;min-height:72px;appearance:none;transition:background .18s,border-color .18s,box-shadow .18s,transform .18s}
.auction-choice.selected{border:2px solid #00eaff;background:linear-gradient(100deg,rgba(0,111,226,.98),rgba(0,53,130,.98));box-shadow:0 0 10px #00cfff,0 0 24px rgba(0,174,255,.72),inset 0 0 18px rgba(86,220,255,.28)}
.auction-choice:not(.selected){filter:saturate(.78);opacity:.88}
.auction-choice:hover{filter:brightness(1.18);transform:translateY(-1px)}
.auction-logo{flex:0 0 48px;width:48px;height:48px;object-fit:contain;border-radius:50%;background:rgba(255,255,255,.08);filter:drop-shadow(0 2px 4px #000)}
.auction-ball{flex:0 0 48px;width:48px;text-align:center;font-size:34px;display:flex;align-items:center;justify-content:center}
.auction-info{display:block;flex:1;min-width:0;text-align:left}
.auction-choice .open-auction{flex:0 0 58px;width:58px;min-width:58px;height:52px;padding:0;display:flex;align-items:center;justify-content:center;border-radius:50%;background:linear-gradient(180deg,#087de0,#003b91);border:2px solid #42caff;box-shadow:0 0 10px rgba(0,194,255,.65)}
.play-icon{font-size:24px;line-height:1;margin-left:4px;color:#fff}
.visitor-password-panel{width:min(100%,1000px);margin:18px auto 0;padding:12px 16px;display:flex;align-items:center;gap:14px;border:2px solid #078fff;border-radius:18px;background:linear-gradient(145deg,rgba(0,17,43,.94),rgba(0,42,91,.92));box-shadow:0 0 10px rgba(0,174,255,.65),inset 0 0 18px rgba(0,153,255,.12)}
.visitor-password-panel>.lock-icon{font-size:30px;flex:0 0 auto}
.visitor-password-panel .password-field{flex:1;width:auto;max-width:none;padding:0 14px}
.visitor-password-panel .password-field input{font-size:17px;padding:14px 0}
.enter-room{flex:0 0 auto;border:2px solid #28d6ff;border-radius:13px;padding:14px 24px;background:linear-gradient(180deg,#168ff4,#0050b9);color:#fff;font-size:17px;font-weight:900;letter-spacing:.3px;cursor:pointer;text-shadow:0 2px 3px #00234b;box-shadow:0 0 10px rgba(0,194,255,.7),inset 0 1px 5px rgba(255,255,255,.35)}
.enter-room span{font-size:22px;margin-left:12px}
.enter-room:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:760px){
 .auction-panel{padding:10px}
 .auction-choice{flex-wrap:nowrap;gap:9px;padding:10px}
 .auction-logo,.auction-ball{flex-basis:38px;width:38px;height:38px;font-size:27px}
 .auction-choice .open-auction{flex-basis:46px;width:46px;min-width:46px;height:44px}
 .play-icon{font-size:20px}
 .visitor-password-panel{gap:8px;padding:10px}
 .visitor-password-panel>.lock-icon{font-size:23px}
 .visitor-password-panel .password-field{min-width:0}
 .visitor-password-panel .password-field input{font-size:14px}
 .enter-room{padding:12px 10px;font-size:13px}
 .enter-room span{margin-left:5px;font-size:17px}
}
@media(max-width:420px){
 .auction-info{min-width:0}
 .auction-info strong{font-size:14px}
 .auction-info small{font-size:10px}
 .visitor-password-panel{flex-wrap:wrap}
 .visitor-password-panel .password-field{flex:1 1 calc(100% - 45px)}
 .enter-room{flex:1 1 100%}
}


/* Campo password scuro anche quando Chrome applica il riempimento automatico */
.visitor-password-panel .password-field{background:rgba(2,18,42,.98)!important}
.visitor-password-panel .password-field input{background:transparent!important;color:#f5f8ff!important;color-scheme:dark;caret-color:#fff}
.visitor-password-panel .password-field input:-webkit-autofill,
.visitor-password-panel .password-field input:-webkit-autofill:hover,
.visitor-password-panel .password-field input:-webkit-autofill:focus,
.visitor-password-panel .password-field input:autofill{
  -webkit-text-fill-color:#f5f8ff!important;
  caret-color:#fff!important;
  -webkit-box-shadow:0 0 0 1000px #061a35 inset!important;
  box-shadow:0 0 0 1000px #061a35 inset!important;
  transition:background-color 99999s ease-out 0s;
}
.visitor-password-panel .password-field input::placeholder{color:#b9cde4!important}

/* Dashboard live OLIMPO: stile broadcast neon, isolato dalla schermata di selezione */
.live-body{min-height:100vh;background:radial-gradient(ellipse at 50% -15%,#123c68 0,#061a35 42%,#020b1b 100%);color:#f5f8ff}
.live-header{display:grid;grid-template-columns:190px 1fr 190px;align-items:center;gap:14px;padding:10px 20px;border-bottom:2px solid #00caff;background:linear-gradient(90deg,#020b1b,#092447 50%,#020b1b);box-shadow:0 3px 18px #007acb}
.live-brand{display:flex;align-items:center;gap:8px;color:#ffd36c;font-family:Georgia,serif;text-shadow:0 0 10px #d18b20}.live-brand b{display:block;font-size:27px;letter-spacing:2px}.live-brand small{display:block;text-align:center;color:#fff;font-size:10px;letter-spacing:3px}.brand-crown-mini{font-size:40px}.live-heading{text-align:center}.live-heading strong{display:block;font-size:clamp(20px,3vw,38px);font-style:italic;letter-spacing:1px;text-shadow:0 0 12px #008dff}.live-heading span{display:block;color:#b9dcff;font-size:12px;margin-top:4px}.visitor-mark{justify-self:end;border:2px solid #00caff;border-radius:30px;padding:9px 17px;color:#fff;text-decoration:none;font-weight:900;font-style:italic;box-shadow:0 0 12px #008dff}
.dashboard{max-width:1900px;padding:12px 14px 8px}.hero-grid{grid-template-columns:minmax(210px,.8fr) minmax(360px,1.25fr) minmax(210px,.8fr);gap:12px}.timer-card,.player-card,.section{background:linear-gradient(145deg,rgba(6,30,58,.98),rgba(2,13,30,.98));border:2px solid #00bfff;border-radius:15px;box-shadow:0 0 10px rgba(0,191,255,.5),inset 0 0 18px rgba(0,145,255,.12)}.timer-card{min-height:145px;padding:14px}.timer-card small,.player-card small{color:#eaf8ff;font-size:clamp(12px,1.2vw,16px);letter-spacing:.6px}.timer-card strong{color:#ffe000;font-size:clamp(42px,5vw,68px);text-shadow:0 0 12px rgba(255,222,0,.28)}.timer-card span{font-size:12px;color:#b8dcf8}.player-card{min-height:145px;padding:12px;display:flex;flex-direction:row;align-items:center;gap:15px}.player-photo{flex:0 0 115px;width:115px;height:115px;border-radius:12px;display:flex;align-items:center;justify-content:center;overflow:hidden;background:linear-gradient(145deg,#173d62,#06152a);border:1px solid #168fd0;font-size:48px}.player-photo img{width:100%;height:100%;object-fit:cover}.player-copy{min-width:0}.player-card h1{font-size:clamp(23px,2.8vw,39px);margin:7px 0;color:#fff}.player-card p{font-size:14px;color:#b9dcff}.bid-line{margin-top:9px}.bid-line strong{color:#ffe000}.bid-line span{font-size:13px}
.live-columns{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(320px,1fr);gap:12px;margin-top:12px}.section{margin-top:0;padding:11px}.section h2{font-size:15px;color:#fff;letter-spacing:.8px;margin:0 0 9px;text-shadow:0 0 8px #008dff}.team-table-wrap{overflow:auto;max-height:570px}.team-table{width:100%;border-collapse:separate;border-spacing:0 4px;font-size:14px}.team-table th{padding:5px 7px;color:#b9eaff;font-size:12px;text-align:center;white-space:nowrap}.team-table th:first-child{text-align:left}.team-table td{padding:7px 6px;text-align:center;background:rgba(10,39,69,.88);border-top:1px solid rgba(0,184,255,.35);border-bottom:1px solid rgba(0,184,255,.35)}.team-table tbody tr:nth-child(even) td{background:rgba(16,53,86,.78)}.team-table td:first-child{border-left:1px solid rgba(0,184,255,.35);border-radius:8px 0 0 8px}.team-table td:last-child{border-right:1px solid rgba(0,184,255,.35);border-radius:0 8px 8px 0}.team-name{text-align:left!important;white-space:nowrap}.team-name b{font-size:14px}.team-initial{display:inline-flex;width:30px;height:30px;margin-right:8px;align-items:center;justify-content:center;border-radius:50%;background:linear-gradient(145deg,#087de0,#062d62);border:1px solid #39caff;color:white;font-size:10px;font-weight:900}.credit-cell{font-size:19px;font-weight:900;color:#fff}.max-cell{font-size:20px;font-weight:900;color:#54ed35}.missing-pill{display:inline-block;min-width:45px;padding:5px 4px;border-radius:7px;background:#263e60;border:1px solid #8e9cb4;font-weight:900;color:#fff}.missing-pill.role-P{background:linear-gradient(135deg,#8c30d4,#3f126d);border-color:#d99bff}.missing-pill.role-D{background:linear-gradient(135deg,#087de0,#063c89);border-color:#53caff}.missing-pill.role-C{background:linear-gradient(135deg,#087de0,#063c89);border-color:#53caff}.missing-pill.role-A{background:linear-gradient(135deg,#d82e2e,#761010);border-color:#ff8a8a}.missing-pill.done{opacity:.35;filter:grayscale(1)}.team-row.is-complete{opacity:.48;filter:grayscale(1)}
.right-column{display:flex;flex-direction:column;gap:12px;min-width:0}.purchases{display:flex;flex-direction:column;gap:3px;overflow:visible}.purchase{min-width:0;display:grid;grid-template-columns:25px 1fr auto;align-items:center;gap:8px;padding:6px 7px;border-radius:7px;background:rgba(8,35,64,.88);border:0;border-bottom:1px solid rgba(0,174,255,.25)}.purchase-number{color:#9edcff;font-size:12px;font-weight:900}.purchase div{min-width:0}.purchase b{display:block;font-size:13px;color:#fff}.purchase small{display:block;color:#b8d8f4;font-size:11px;margin-top:3px}.purchase strong{font-size:13px;color:#ffe000;white-space:nowrap}.roster-selector{display:flex;align-items:center;justify-content:center;gap:9px;margin:0 0 7px}.roster-selector button{width:37px;height:32px;border:1px solid #3acaff;border-radius:16px;background:#073c76;color:#fff;font-size:27px;line-height:20px;cursor:pointer}.roster-selector strong{min-width:0;flex:1;text-align:center;padding:5px 8px;border:1px solid #00bfff;border-radius:7px;background:#06244a;font-size:15px}.rosters{display:block;max-height:280px;overflow:auto;padding:0 4px 4px}.role-group{padding:5px 0;border-color:rgba(0,173,255,.25)}.role-group header{margin:0 0 3px}.roster-player{display:grid;grid-template-columns:1fr auto;align-items:center;padding:4px 6px;border-bottom:1px solid rgba(0,157,230,.17);font-size:12px}.roster-player small{grid-column:1;color:#9fc8e8;font-size:10px}.roster-player strong{grid-column:2;grid-row:1/3;color:#ffe000;font-size:12px}.role-group.done{opacity:.4;filter:grayscale(1)}.live-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;padding:12px 18px;border-top:2px solid #00bfff;background:linear-gradient(90deg,#03152c,#0a2b4d,#03152c);box-shadow:0 -3px 14px rgba(0,166,255,.35);font-size:14px}.live-footer>strong{color:#ffe000;font-size:17px}.live-footer b{color:#ffe000}.footer-brand{font-family:Georgia,serif;font-size:18px;letter-spacing:1px;color:#f6d27b!important;white-space:nowrap}
@media(max-width:900px){.live-header{grid-template-columns:130px 1fr 130px;padding:9px}.live-brand b{font-size:20px}.brand-crown-mini{font-size:30px}.visitor-mark{font-size:11px;padding:7px}.live-columns{grid-template-columns:1fr}.right-column{display:grid;grid-template-columns:1fr 1fr}.hero-grid{grid-template-columns:1fr 1fr}.player-card{grid-column:1/-1;grid-row:1}.live-footer{flex-wrap:wrap;justify-content:center}}
@media(max-width:600px){.live-header{grid-template-columns:1fr auto;gap:6px}.live-heading{grid-column:1/-1;grid-row:2}.live-brand b{font-size:19px}.visitor-mark{grid-column:2;grid-row:1}.dashboard{padding:8px}.hero-grid{grid-template-columns:1fr 1fr;gap:7px}.player-card{grid-column:1/-1;grid-row:1;min-height:125px}.player-photo{flex-basis:82px;width:82px;height:100px}.player-card h1{font-size:23px}.player-card p{font-size:12px}.timer-card{min-height:105px;padding:9px}.timer-card strong{font-size:40px}.live-columns{gap:8px;margin-top:8px}.right-column{display:flex}.section{padding:9px}.team-table{font-size:12px}.team-table th{font-size:10px;padding:4px 3px}.team-table td{padding:6px 3px}.team-name b{font-size:12px}.team-initial{width:23px;height:23px;margin-right:4px;font-size:9px}.credit-cell,.max-cell{font-size:15px}.missing-pill{min-width:34px;padding:4px 2px;font-size:10px}.purchase{padding:6px 3px}.purchase b{font-size:12px}.rosters{max-height:250px}.live-footer{font-size:11px;gap:8px;padding:10px}.live-footer>strong{font-size:13px}.footer-brand{font-size:14px}}


/* Colori storici dei ruoli: P giallo, D verde, C blu, A rosso */
:root{--role-p:#e7b600;--role-p-dark:#8c6500;--role-d:#159653;--role-d-dark:#075b32;--role-c:#1688d4;--role-c-dark:#064b86;--role-a:#df3030;--role-a-dark:#791414}
.role-mini .role-P,.missing-pill.role-P{background:linear-gradient(135deg,#f2c400,var(--role-p-dark));border:1px solid #ffe36a;color:#fff}
.role-mini .role-D,.missing-pill.role-D{background:linear-gradient(135deg,#20ad68,var(--role-d-dark));border:1px solid #65e6a0;color:#fff}
.role-mini .role-C,.missing-pill.role-C{background:linear-gradient(135deg,#219be8,var(--role-c-dark));border:1px solid #70ceff;color:#fff}
.role-mini .role-A,.missing-pill.role-A{background:linear-gradient(135deg,#ed4545,var(--role-a-dark));border:1px solid #ff9999;color:#fff}
.role-group.role-P{border-color:rgba(242,196,0,.48)}
.role-group.role-D{border-color:rgba(32,173,104,.48)}
.role-group.role-C{border-color:rgba(33,155,232,.48)}
.role-group.role-A{border-color:rgba(237,69,69,.48)}
.role-group header{align-items:center;gap:8px;color:#eaf4ff}
.role-group header b{display:inline-flex;width:25px;height:25px;flex:0 0 25px;align-items:center;justify-content:center;border-radius:50%;font-size:12px;color:#fff}
.role-group.role-P header b{background:linear-gradient(135deg,#f2c400,#8c6500);border:1px solid #ffe36a}
.role-group.role-D header b{background:linear-gradient(135deg,#20ad68,#075b32);border:1px solid #65e6a0}
.role-group.role-C header b{background:linear-gradient(135deg,#219be8,#064b86);border:1px solid #70ceff}
.role-group.role-A header b{background:linear-gradient(135deg,#ed4545,#791414);border:1px solid #ff9999}


/* Revisione pannelli: loghi squadra, acquisti in riga e rose complete senza scrollbar */
.team-table-wrap{max-height:none;overflow:visible}
.team-table{border-spacing:0 2px;font-size:12px}
.team-table th{padding:3px 5px;font-size:10px}
.team-table td{padding:4px 5px}
.team-name{display:flex;align-items:center;gap:7px}
.team-name b{font-size:12px}
.team-logo-mini{width:25px;height:25px;object-fit:contain;flex:0 0 25px;filter:drop-shadow(0 1px 3px rgba(0,0,0,.55))}
.credit-cell,.max-cell{font-size:16px}
.missing-pill{min-width:35px;padding:3px 3px;font-size:11px}
.purchases{gap:2px}
.purchase{grid-template-columns:20px 25px 30px minmax(95px,1.3fr) minmax(75px,1fr) auto;gap:6px;padding:4px 6px;min-height:30px}
.purchase-number{font-size:11px}
.purchase-role{display:inline-flex;align-items:center;justify-content:center;width:23px;height:23px;border-radius:50%;font-size:11px;font-weight:900;color:#fff}
.purchase-role.role-P{background:linear-gradient(135deg,#f2c400,#8c6500);border:1px solid #ffe36a}
.purchase-role.role-D{background:linear-gradient(135deg,#20ad68,#075b32);border:1px solid #65e6a0}
.purchase-role.role-C{background:linear-gradient(135deg,#219be8,#064b86);border:1px solid #70ceff}
.purchase-role.role-A{background:linear-gradient(135deg,#ed4545,#791414);border:1px solid #ff9999}
.purchase-photo{width:28px;height:28px;border-radius:50%;object-fit:cover;background:#12395b;border:1px solid #36bdf2}
.purchase-photo-empty{display:inline-flex;align-items:center;justify-content:center;font-size:15px}
.purchase-player{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px!important}
.purchase-team{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#a9d9fa;font-size:10px;font-weight:700}
.purchase-price{font-size:11px!important}
.rosters{max-height:none;overflow:visible;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:5px}
.role-group{margin:0;padding:4px 5px;border:1px solid rgba(0,173,255,.25);border-radius:6px;min-width:0}
.role-group header{display:flex;align-items:center;justify-content:space-between;margin:0 0 3px;font-size:10px}
.role-group header b{width:19px;height:19px;flex:0 0 19px;font-size:10px}
.role-group header span{font-size:10px}
.roster-players{display:flex;flex-direction:column;gap:1px}
.roster-player{display:grid;grid-template-columns:17px minmax(0,1fr) auto;grid-template-rows:auto;align-items:center;gap:3px;padding:2px 1px;border-bottom:1px solid rgba(0,157,230,.15);font-size:10px;min-width:0}
.roster-player img,.roster-photo-empty{grid-column:1;grid-row:1;width:16px;height:16px;border-radius:50%;object-fit:cover;background:#153b5a}
.roster-photo-empty{display:inline-flex;align-items:center;justify-content:center;font-size:9px}
.roster-player-name{grid-column:2;grid-row:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#fff;font-weight:700}
.roster-player small{grid-column:2;grid-row:2;font-size:8px;line-height:1;color:#9fc8e8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.roster-player strong{grid-column:3;grid-row:1/3;font-size:9px;color:#ffe000;white-space:nowrap}
.empty-slot{font-size:9px;color:#8eabc6;padding:3px}
.role-group.done{opacity:.55;filter:grayscale(1)}
@media(max-width:900px){
 .team-table-wrap{overflow:visible}
 .rosters{grid-template-columns:1fr 1fr}
 .purchase{grid-template-columns:18px 22px 27px minmax(70px,1fr) minmax(60px,.8fr) auto;gap:4px}
}
@media(max-width:600px){
 .team-table{font-size:10px}
 .team-table th{font-size:9px;padding:3px 2px}
 .team-table td{padding:3px 2px}
 .team-logo-mini{width:20px;height:20px;flex-basis:20px}
 .team-name{gap:4px}
 .team-name b{font-size:10px}
 .credit-cell,.max-cell{font-size:12px}
 .missing-pill{min-width:27px;padding:2px 1px;font-size:9px}
 .purchases-section{overflow:hidden}
 .purchase{grid-template-columns:16px 19px 23px minmax(60px,1fr) minmax(48px,.8fr) auto;gap:3px;padding:3px 2px}
 .purchase-role{width:18px;height:18px;font-size:9px}
 .purchase-photo{width:22px;height:22px}
 .purchase-player{font-size:9px!important}
 .purchase-team{font-size:8px}
 .purchase-price{font-size:9px!important}
 .rosters{grid-template-columns:1fr 1fr}
}

.team-table-wrap.team-count-compact .team-table td{padding-top:2px;padding-bottom:2px}
.team-table-wrap.team-count-compact .team-logo-mini{width:21px;height:21px;flex-basis:21px}
.team-table-wrap.team-count-compact .missing-pill{padding-top:2px;padding-bottom:2px;font-size:10px}
.team-table-wrap.team-count-ultra .team-table td{padding-top:1px;padding-bottom:1px}
.team-table-wrap.team-count-ultra .team-logo-mini{width:18px;height:18px;flex-basis:18px}
.team-table-wrap.team-count-ultra .team-name b,.team-table-wrap.team-count-ultra .credit-cell,.team-table-wrap.team-count-ultra .max-cell{font-size:10px}
.team-table-wrap.team-count-ultra .missing-pill{min-width:24px;padding:1px;font-size:9px}


/* Rifinitura pannelli: classifica a tutta altezza, acquisti compatti e rose in righe uniche */
.live-columns{align-items:stretch}
.teams-panel{display:flex;flex-direction:column;min-height:0}
.team-table-wrap{flex:1 1 auto;min-height:0;max-height:none;overflow:hidden}
.team-table{height:100%;table-layout:fixed;border-spacing:0 3px}
.team-table thead{height:48px}
.team-table tbody{height:calc(100% - 48px)}
.team-table tbody tr{height:calc(100% / max(1,var(--team-count,1)))}
.team-table td{padding:3px 6px}
.team-name{width:30%}
.team-name b{font-size:clamp(10px,.85vw,14px)}
.team-logo-mini{width:25px;height:25px;object-fit:contain;vertical-align:middle;margin-right:7px}
.credit-cell,.max-cell{font-size:clamp(11px,1.1vw,18px)}
.missing-pill{min-width:34px;padding:3px 4px;font-size:clamp(9px,.8vw,12px)}
.team-table-wrap.team-count-compact .team-table td{padding-top:1px;padding-bottom:1px}
.team-table-wrap.team-count-ultra .team-table td{padding-top:0;padding-bottom:0}

.purchases-section h2{font-size:14px}
.purchases{gap:2px}
.purchase{grid-template-columns:18px 19px 25px minmax(90px,1.1fr) minmax(65px,.8fr) auto;gap:5px;padding:4px 3px}
.purchase-number{font-size:11px}
.purchase-role{display:inline-flex;width:18px;height:18px;align-items:center;justify-content:center;border-radius:50%;font-weight:900;font-size:10px}
.purchase-photo{width:23px;height:23px;border-radius:50%;object-fit:cover;border:1px solid #28bfff}
.purchase-photo-empty{display:inline-flex;align-items:center;justify-content:center;background:#173d62}
.purchase-player{font-size:10px;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.purchase-team{font-size:9px;color:#b9dcff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.purchase-price{font-size:10px;color:#ffe000;white-space:nowrap}

.roster-panel{display:flex;flex-direction:column;min-height:0;flex:1 1 auto}
.roster-selector{flex:0 0 auto}
.rosters{display:block;flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto;overflow-x:hidden;scrollbar-width:none;padding:0 2px}
.rosters::-webkit-scrollbar{display:none}
.roster-player{display:grid;grid-template-columns:20px 24px minmax(90px,1.2fr) minmax(55px,.8fr) auto;align-items:center;gap:6px;padding:4px 5px;border:0;border-bottom:1px solid rgba(0,157,230,.24);background:rgba(8,35,64,.58);min-height:29px}
.roster-player img{width:22px;height:22px;object-fit:cover;border-radius:50%;border:1px solid #2b9ed4}
.roster-photo-empty{width:22px;height:22px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#173d62;font-size:12px}
.roster-role{display:inline-flex;width:18px;height:18px;align-items:center;justify-content:center;border-radius:50%;font-size:10px;font-weight:900;color:#fff}
.roster-role.role-P{background:#e0a900;border:1px solid #ffe36a}
.roster-role.role-D{background:#079b56;border:1px solid #7dffb4}
.roster-role.role-C{background:#087de0;border:1px solid #72caff}
.roster-role.role-A{background:#d92d2d;border:1px solid #ff9a9a}
.roster-player-name{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.roster-player small{font-size:9px;color:#a9cde9;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.roster-player strong{font-size:10px;color:#ffe000;white-space:nowrap}
@media(max-width:760px){
 .team-table thead{height:42px}
 .team-table tbody{height:calc(100% - 42px)}
 .purchase{grid-template-columns:16px 18px 23px minmax(65px,1fr) minmax(45px,.7fr) auto;gap:3px}
 .roster-player{grid-template-columns:18px 22px minmax(65px,1fr) minmax(40px,.7fr) auto;gap:3px;padding:3px}
 .roster-player-name,.roster-player strong{font-size:9px}
 .roster-player small{font-size:8px}
}

.missing-pill.role-P{background:linear-gradient(135deg,#f2c400,#8c6500);border-color:#ffe36a}
.missing-pill.role-D{background:linear-gradient(135deg,#20ad68,#075b32);border-color:#7dffb4}
.missing-pill.role-C{background:linear-gradient(135deg,#087de0,#063c89);border-color:#72caff}
.missing-pill.role-A{background:linear-gradient(135deg,#d82e2e,#761010);border-color:#ff9a9a}


/* Pannelli fissi: ogni rosa entra interamente senza cambiare le dimensioni della pagina */
@media (min-width:901px){
 .live-columns{height:clamp(460px,calc(100vh - 180px),720px);min-height:460px;align-items:stretch}
 .teams-panel,.right-column{height:100%;min-height:0}
 .right-column{display:flex;flex-direction:column;overflow:hidden}
 .purchases-section{flex:0 0 29%;min-height:0;overflow:hidden}
 .roster-panel{flex:1 1 0;min-height:0;overflow:hidden}
 .rosters{height:100%;min-height:0;max-height:none;overflow:hidden;display:flex;flex-direction:column;gap:0;padding:0 2px}
 .roster-player{flex:1 1 0;height:calc(100% / var(--roster-count,1));min-height:0;padding:0 4px;grid-template-columns:18px 20px minmax(65px,1.2fr) minmax(45px,.8fr) auto;gap:4px;overflow:hidden}
 .roster-player img,.roster-photo-empty{width:16px;height:16px;max-height:100%}
 .roster-role{width:15px;height:15px;font-size:9px}
 .roster-player-name{font-size:clamp(8px,.62vw,10px);line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .roster-player small{font-size:clamp(7px,.52vw,9px);line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .roster-player strong{font-size:clamp(8px,.6vw,10px)}
}
@media (max-width:900px){
 .live-columns{height:auto;min-height:0}
 .right-column{height:auto}
 .roster-panel{min-height:390px}
 .rosters{display:flex;flex-direction:column;overflow:hidden}
 .roster-player{min-height:20px;padding:2px 4px}
}
@media (min-width:901px){
 .roster-player{grid-template-columns:15px 16px minmax(65px,1.2fr) minmax(45px,.8fr) auto;gap:3px}
 .roster-player img,.roster-photo-empty{width:12px;height:12px}
 .roster-role{width:13px;height:13px;font-size:8px}
 .roster-player-name{grid-column:3;grid-row:1}
 .roster-player small{grid-column:4;grid-row:1;font-size:clamp(7px,.5vw,9px)}
 .roster-player strong{grid-column:5;grid-row:1}
}


/* Rifiniture richieste: foto giocatore senza riquadro, timer leggibili e rose più chiare */
.player-photo{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;flex-basis:110px;width:110px;height:118px;overflow:visible}
.player-photo img{width:100%;height:100%;object-fit:contain;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.waiting-player-silhouette{height:112px;width:82px;color:#eaf5ff;filter:drop-shadow(0 0 7px rgba(0,190,255,.25))}
.timer-card strong{font-variant-numeric:tabular-nums;letter-spacing:1px;white-space:nowrap}
.team-logo-mini{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;width:29px;height:29px;object-fit:contain;margin-right:8px;vertical-align:middle}
.team-name b{font-size:clamp(13px,1vw,17px)!important;vertical-align:middle}
.purchase-team{font-size:clamp(11px,.9vw,14px)!important;color:#fff!important;font-weight:800!important;text-align:left}
.roster-player{grid-template-columns:20px minmax(110px,1.2fr) minmax(80px,.9fr) auto!important;gap:8px!important}
.roster-player-name{font-size:clamp(12px,.9vw,15px)!important;color:#fff!important;font-weight:800!important}
.roster-player small{font-size:clamp(11px,.82vw,14px)!important;color:#fff!important;font-weight:700!important}
.roster-player strong{font-size:clamp(11px,.82vw,14px)!important;text-align:left!important;justify-self:start!important;color:#ffe000!important}
@media(max-width:900px){
 .player-photo{flex-basis:82px;width:82px;height:95px}
 .waiting-player-silhouette{height:90px;width:66px}
 .team-name b{font-size:12px!important}
 .roster-player{grid-template-columns:18px minmax(85px,1.2fr) minmax(60px,.9fr) auto!important;gap:5px!important}
 .roster-player-name,.roster-player small,.roster-player strong{font-size:11px!important}
}


/* Correzione allineamento classifica: la cella squadra resta una vera cella tabellare */
.team-table{table-layout:fixed}
.team-table th:nth-child(1),.team-table td:nth-child(1){width:25%;text-align:left}
.team-table th:nth-child(2),.team-table td:nth-child(2){width:12%}
.team-table th:nth-child(3),.team-table td:nth-child(3){width:13%}
.team-table th:nth-child(n+4),.team-table td:nth-child(n+4){width:12.5%}
.team-table td.team-name{display:table-cell!important;white-space:nowrap;vertical-align:middle;text-align:left!important;padding-left:9px!important}
.team-name .team-logo-mini{display:inline-block;vertical-align:middle;width:26px;height:26px;margin:0 8px 0 0!important}
.team-name b{display:inline-block;vertical-align:middle;font-size:clamp(12px,.9vw,15px)!important;line-height:1.15;white-space:nowrap}

/* Rose: nome giocatore alla dimensione originaria, squadra reale piu evidente e colonne allineate */
.roster-player{grid-template-columns:18px minmax(0,1.15fr) minmax(0,1fr) 48px!important;gap:6px!important;padding:3px 5px!important;min-height:23px}
.roster-player-name{grid-column:2!important;grid-row:1!important;font-size:10px!important;font-weight:700!important;color:#fff!important;text-align:left!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.roster-player small{grid-column:3!important;grid-row:1!important;font-size:12px!important;font-weight:700!important;color:#fff!important;text-align:left!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.roster-player strong{grid-column:4!important;grid-row:1!important;font-size:10px!important;font-weight:800!important;color:#ffe000!important;text-align:left!important;justify-self:start!important;white-space:nowrap}
@media(max-width:900px){.team-table td.team-name{padding-left:5px!important}.team-name .team-logo-mini{width:21px;height:21px;margin-right:5px!important}.team-name b{font-size:11px!important}.roster-player{grid-template-columns:16px minmax(0,1.1fr) minmax(0,.9fr) 40px!important;gap:4px!important}.roster-player-name{font-size:9px!important}.roster-player small{font-size:10px!important}.roster-player strong{font-size:9px!important}}

/* Sagoma grafica ufficiale mostrata quando non c'e' un giocatore chiamato */
.player-photo img.waiting-player-image{width:100%;height:100%;object-fit:contain;object-position:center bottom;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}


/* Rifinitura rose: ripristina badge ruolo e usa tutta l'altezza disponibile */
.purchase-photo{
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
}
@media (min-width:901px){
  .rosters{
    display:flex!important;
    flex-direction:column!important;
    flex:1 1 0!important;
    min-height:0!important;
    height:100%!important;
    overflow:hidden!important;
    gap:0!important;
  }
  .rosters > .roster-player{
    display:grid!important;
    flex:1 1 0!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    width:100%!important;
    box-sizing:border-box!important;
    grid-template-columns:22px 20px minmax(0,1.15fr) minmax(0,1fr) 44px!important;
    gap:6px!important;
    padding:1px 5px!important;
    align-items:center!important;
    overflow:hidden!important;
  }
  .rosters > .roster-player .roster-role{
    display:inline-flex!important;
    grid-column:2!important;
    grid-row:1!important;
    width:16px!important;
    height:16px!important;
    min-width:16px!important;
    font-size:9px!important;
    line-height:14px!important;
    justify-self:center!important;
  }
  .rosters > .roster-player .roster-player-name{
    grid-column:3!important;
    grid-row:1!important;
    font-size:clamp(9px,.75vw,12px)!important;
    line-height:1.1!important;
    min-width:0!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  .rosters > .roster-player small{
    grid-column:4!important;
    grid-row:1!important;
    font-size:clamp(9px,.7vw,11px)!important;
    line-height:1.1!important;
    min-width:0!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  .rosters > .roster-player strong{
    grid-column:5!important;
    grid-row:1!important;
    font-size:clamp(9px,.7vw,11px)!important;
    line-height:1.1!important;
    text-align:right!important;
    white-space:nowrap!important;
  }
}


/* Correzioni richieste: intestazione, audio nel footer, titoli e rose */
.live-header{display:grid!important;grid-template-columns:1fr auto 1fr!important;align-items:center!important}
.live-state-top{justify-self:start!important;color:#ffe000!important;font-size:clamp(13px,1vw,18px)!important;font-weight:900!important;letter-spacing:1px!important;text-shadow:0 0 7px rgba(255,224,0,.35)!important}
.live-heading{justify-self:center!important}
.visitor-mark{justify-self:end!important}
.section h2{text-align:center!important;color:#ffe000!important;font-weight:900!important;text-shadow:0 0 6px rgba(255,224,0,.3)!important}
.team-table thead th{text-align:center!important;font-weight:900!important}
.team-table thead th:first-child{text-align:center!important}
.team-table thead .role-head th{text-align:center!important}
.live-footer{display:flex!important;align-items:center!important;gap:clamp(8px,1.2vw,20px)!important}
.live-footer>.audio-toggle{flex:0 0 auto!important;margin-right:0!important}
.live-footer>.audio-status{flex:0 1 auto!important;min-width:0!important;font-size:10px!important;color:#b9cde4!important;white-space:nowrap!important}
.audio-toggle{border:1px solid!important;border-radius:8px!important;padding:7px 12px!important;font-weight:900!important;font-size:11px!important;cursor:pointer!important;color:#fff!important;text-shadow:0 1px 2px #000!important}
.audio-toggle.is-off{background:linear-gradient(180deg,#f04a4a,#a90e19)!important;border-color:#ff8585!important;box-shadow:0 0 8px rgba(255,35,35,.35)!important}
.audio-toggle.is-on{background:linear-gradient(180deg,#21c878,#08733e)!important;border-color:#80ffc0!important;box-shadow:0 0 8px rgba(30,220,120,.35)!important}
.roster-number{display:inline-flex!important;align-items:center!important;justify-content:center!important;font-weight:900!important;font-size:clamp(10px,.7vw,13px)!important}
.roster-number.role-P,.roster-player-name.role-P,.roster-player small.role-P{color:#ffd400!important}
.roster-number.role-D,.roster-player-name.role-D,.roster-player small.role-D{color:#22df83!important}
.roster-number.role-C,.roster-player-name.role-C,.roster-player small.role-C{color:#42baff!important}
.roster-number.role-A,.roster-player-name.role-A,.roster-player small.role-A{color:#ff5555!important}
.roster-player-name,.roster-player small{font-weight:900!important}
.roster-team-incomplete{color:#fff!important;font-weight:900!important}
.roster-team-complete{color:#22df83!important;font-weight:900!important}


/* Aggiornamento mirato: intestazione metallizzata e sala a tutta larghezza */
@media (min-width:901px){
  .dashboard{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:10px 8px 8px!important;
  }
  .live-columns{width:100%!important}
}
.live-heading{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:center!important;
  gap:clamp(10px,1.2vw,22px)!important;
  min-width:0!important;
  white-space:nowrap!important;
}
.live-heading strong{
  display:inline-block!important;
  color:#ffe000!important;
  font-size:clamp(18px,2.4vw,34px)!important;
  font-weight:900!important;
  text-shadow:0 0 10px rgba(255,224,0,.35)!important;
}
.live-heading span{
  display:inline-block!important;
  margin-top:0!important;
  color:#e8edf4!important;
  font-size:clamp(12px,1.05vw,16px)!important;
  font-weight:800!important;
  letter-spacing:.25px!important;
  background:linear-gradient(180deg,#ffffff 0%,#cbd3dd 24%,#ffffff 43%,#9da9b8 55%,#f7f9fc 72%,#b8c3d0 100%)!important;
  -webkit-background-clip:text!important;
  background-clip:text!important;
  -webkit-text-fill-color:transparent!important;
  text-shadow:0 1px 2px rgba(0,0,0,.55)!important;
}
@media(max-width:900px){
  .live-heading{flex-wrap:wrap!important;white-space:normal!important;gap:3px 10px!important}
  .live-heading strong{font-size:clamp(17px,3vw,25px)!important}
  .live-heading span{font-size:11px!important}
}
@media(max-width:600px){
  .live-heading{flex-direction:column!important}
}


/* Correzione richiesta: nome asta bianco brillante e squadre piu grandi in classifica */
.live-heading span{
  color:#ffffff!important;
  background:none!important;
  -webkit-background-clip:border-box!important;
  background-clip:border-box!important;
  -webkit-text-fill-color:#ffffff!important;
  font-weight:900!important;
  text-shadow:0 0 4px rgba(255,255,255,.95),0 0 9px rgba(255,255,255,.55)!important;
}
.team-table td.team-name b{
  font-size:clamp(14px,1.05vw,17px)!important;
  font-weight:900!important;
}
@media(max-width:900px){
  .team-table td.team-name b{font-size:14px!important}
}
@media(max-width:600px){
  .team-table td.team-name b{font-size:12px!important}
}


/* Rifinitura richiesta: nomi giocatori in grassetto e titoli principali bianco brillante */
.purchase-player{
  font-weight:900!important;
  color:#ffffff!important;
  text-shadow:0 0 3px rgba(255,255,255,.35)!important;
}
.timer-card small,
#playerTag{
  color:#ffffff!important;
  font-weight:900!important;
  text-shadow:0 0 4px rgba(255,255,255,.9),0 0 9px rgba(255,255,255,.45)!important;
}


/* Ultime rifiniture richieste: marchio oro brillante e conteggio rosa */
.live-footer .footer-brand{color:#ffd700!important;text-shadow:0 0 4px rgba(255,215,0,.95),0 0 10px rgba(255,190,0,.8),0 0 18px rgba(255,170,0,.55)!important;font-weight:900!important}
.roster-selector{gap:7px!important}
.roster-selector #rosterTeamName{flex:1 1 auto!important}
.roster-team-count{flex:0 0 auto;display:inline-block;padding:5px 7px;border:1px solid rgba(255,215,0,.75);border-radius:7px;background:rgba(45,35,5,.72);color:#ffd700;font-size:13px;font-weight:900;white-space:nowrap;text-shadow:0 0 6px rgba(255,215,0,.55)}
@media(max-width:600px){.roster-team-count{font-size:11px;padding:4px 5px}.roster-selector{gap:4px!important}}


/* Rifinitura richiesta: conteggio rosa nello stesso riquadro del nome squadra e occhio originale nel pulsante visitatore */
.roster-team-count{
  padding:5px 8px!important;
  border:1px solid #00bfff!important;
  border-radius:7px!important;
  background:#06244a!important;
  color:#fff!important;
  font-size:15px!important;
  font-weight:900!important;
  text-shadow:0 0 3px rgba(255,255,255,.95),0 0 8px rgba(255,255,255,.55)!important;
  box-shadow:0 0 7px rgba(0,191,255,.25)!important;
}
.roster-team-count.roster-team-complete{
  color:#22df83!important;
  text-shadow:0 0 4px rgba(34,223,131,.95),0 0 9px rgba(34,223,131,.55)!important;
}
.roster-team-count.roster-team-incomplete{
  color:#fff!important;
  text-shadow:0 0 3px rgba(255,255,255,.95),0 0 8px rgba(255,255,255,.55)!important;
}
.visitor-mark{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;color:#ffd700!important;text-shadow:0 0 4px rgba(255,215,0,.95),0 0 9px rgba(255,190,0,.75)!important}
.visitor-mark-eye{display:block!important;width:25px!important;height:20px!important;object-fit:contain!important;flex:0 0 auto!important}
.visitor-mark span{color:#ffd700!important;font-weight:900!important}
@media(max-width:600px){.roster-team-count{font-size:11px!important;padding:4px 5px!important}.visitor-mark-eye{width:21px!important;height:17px!important}}

/* Richiesta: tutte le voci della riga finale in grassetto */
.live-footer > span,
.live-footer > span b,
.live-footer > strong,
.live-footer .footer-brand {
  font-weight: 900 !important;
}


/* Crediti spesi: solo valore numerico, piu grande e in grassetto */
.purchase-price{font-size:16px!important;font-weight:900!important;color:#ffe000!important;text-shadow:0 0 4px rgba(255,224,0,.35)!important}
.roster-player strong{font-size:14px!important;font-weight:900!important;color:#ffe000!important;text-shadow:0 0 3px rgba(255,224,0,.3)!important}
@media(max-width:900px){.purchase-price{font-size:14px!important}.roster-player strong{font-size:13px!important}}
@media(max-width:600px){.purchase-price{font-size:12px!important}.roster-player strong{font-size:11px!important}}

/* Classifica MAX RILANCIO: nomi e valori leggermente piu grandi, squadra centrata */
.team-table td.team-name{
  text-align:center!important;
  padding-left:4px!important;
  padding-right:4px!important;
}
.team-table td.team-name .team-logo-mini{
  margin:0 6px 0 0!important;
  vertical-align:middle!important;
}
.team-table td.team-name b{
  font-size:clamp(15px,1.15vw,18px)!important;
  font-weight:900!important;
  text-align:center!important;
}
.team-table td.credit-cell,
.team-table td.max-cell{
  font-size:clamp(13px,1.25vw,20px)!important;
  font-weight:900!important;
  text-align:center!important;
}
.team-table th:not(:first-child),
.team-table td:not(.team-name){
  text-align:center!important;
}
@media(max-width:900px){
  .team-table td.team-name b{font-size:15px!important}
  .team-table td.credit-cell,.team-table td.max-cell{font-size:16px!important}
}
@media(max-width:600px){
  .team-table td.team-name b{font-size:13px!important}
  .team-table td.credit-cell,.team-table td.max-cell{font-size:14px!important}
}

/* Ripristino richiesto: nomi squadre a sinistra, mantenendo invariate le dimensioni */
.team-table td.team-name{
  text-align:left!important;
  padding-left:9px!important;
  padding-right:4px!important;
}
.team-table td.team-name b{
  text-align:left!important;
}
@media(max-width:900px){.team-table td.team-name{padding-left:5px!important}}


/* Pagina principale visitatore: rifinitura SOLO mobile, PC e sala live invariati */
@media(max-width:760px){
  .visitor-ribbon{
    position:relative!important;
    isolation:isolate!important;
    width:100%!important;
    min-height:76px!important;
    padding:12px 18px!important;
    gap:12px!important;
    border:0!important;
    border-radius:0!important;
    clip-path:polygon(0 18%,4% 0,96% 0,100% 18%,100% 82%,96% 100%,4% 100%,0 82%)!important;
    background:linear-gradient(180deg,#19a9ff 0%,#0875d5 16%,#0750a7 48%,#032d68 82%,#087bd0 100%)!important;
    box-shadow:0 0 12px rgba(0,190,255,.95),0 0 28px rgba(0,150,255,.6),inset 0 0 16px rgba(77,220,255,.48)!important;
    text-shadow:0 2px 5px #00132e,0 0 8px rgba(255,255,255,.25)!important;
  }
  .visitor-ribbon:before{
    content:"";position:absolute;z-index:-1;left:5%;right:5%;top:3px;height:42%;
    background:linear-gradient(180deg,rgba(255,255,255,.42),rgba(255,255,255,.08) 58%,transparent);
    clip-path:polygon(0 0,100% 0,96% 100%,4% 100%);pointer-events:none;
  }
  .visitor-ribbon:after{
    content:"";position:absolute;z-index:-1;left:7%;right:7%;bottom:3px;height:2px;
    background:linear-gradient(90deg,transparent,rgba(155,239,255,.95),transparent);
    box-shadow:0 0 9px rgba(0,220,255,.9);pointer-events:none;
  }
  .visitor-eye{display:flex!important;align-items:center!important;justify-content:center!important;width:48px!important;height:34px!important;flex:0 0 48px!important}
  .visitor-eye img{display:block!important;width:48px!important;height:34px!important;object-fit:contain!important;filter:drop-shadow(0 0 5px rgba(255,221,130,.65))}
  .visitor-password-panel{justify-content:center!important;align-items:center!important}
  .visitor-password-panel .password-field{
    order:2!important;flex:0 1 100%!important;width:100%!important;max-width:520px!important;
    margin:0 auto!important;min-height:58px!important;box-sizing:border-box!important;
  }
  .visitor-password-panel>.lock-icon{order:1!important;flex:0 0 100%!important;text-align:left!important}
  .visitor-password-panel .enter-room{order:3!important;flex:0 1 100%!important;width:100%!important;max-width:520px!important;margin:0 auto!important}
}


/* Pulsante VISITATORE anche su PC: estremita a punta, riflessi blu e testo oro brillante. L'occhio esistente resta invariato. */
@media (min-width:761px){
  .visitor-ribbon{
    position:relative!important;
    isolation:isolate!important;
    border:0!important;
    border-radius:0!important;
    clip-path:polygon(0 18%,4% 0,96% 0,100% 18%,100% 82%,96% 100%,4% 100%,0 82%)!important;
    background:linear-gradient(180deg,#19a9ff 0%,#0875d5 16%,#0750a7 48%,#032d68 82%,#087bd0 100%)!important;
    box-shadow:0 0 12px rgba(0,190,255,.95),0 0 28px rgba(0,150,255,.6),inset 0 0 16px rgba(77,220,255,.48)!important;
    color:#ffd700!important;
    text-shadow:0 0 4px rgba(255,215,0,.95),0 0 9px rgba(255,190,0,.8),0 2px 5px #00132e!important;
  }
  .visitor-ribbon:before{
    content:"";position:absolute;z-index:-1;left:5%;right:5%;top:3px;height:42%;
    background:linear-gradient(180deg,rgba(255,255,255,.42),rgba(255,255,255,.08) 58%,transparent);
    clip-path:polygon(0 0,100% 0,96% 100%,4% 100%);pointer-events:none;
  }
  .visitor-ribbon:after{
    content:"";position:absolute;z-index:-1;left:7%;right:7%;bottom:3px;height:2px;
    background:linear-gradient(90deg,transparent,rgba(155,239,255,.95),transparent);
    box-shadow:0 0 9px rgba(0,220,255,.9);pointer-events:none;
  }
  .visitor-ribbon>span:last-child{color:#ffd700!important;text-shadow:0 0 4px rgba(255,215,0,.95),0 0 9px rgba(255,190,0,.8),0 2px 5px #00132e!important}
}

/* Correzioni SOLO mobile: classifica ruoli leggibile e righe rosa allineate */
@media (max-width:760px){
  .team-table-wrap{width:100%!important;max-width:100%!important;overflow:hidden!important}
  .team-table{width:100%!important;min-width:0!important;max-width:100%!important;table-layout:fixed!important;border-spacing:0 3px!important}
  .team-table th,.team-table td{box-sizing:border-box!important;overflow:hidden!important}
  .team-table th:first-child,.team-table td:first-child{width:34%!important}
  .team-table th:nth-child(2),.team-table td:nth-child(2){width:13%!important}
  .team-table th:nth-child(3),.team-table td:nth-child(3){width:15%!important}
  .team-table th:nth-child(n+4),.team-table td:nth-child(n+4){width:9.5%!important}
  .team-table th{font-size:9px!important;line-height:1.1!important;padding:4px 1px!important;white-space:normal!important}
  .team-table th[colspan="4"]{font-size:8px!important;letter-spacing:-.2px!important}
  .team-table td{padding:4px 1px!important}
  .team-table td.team-name{padding-left:4px!important;padding-right:2px!important}
  .team-name .team-logo-mini{width:19px!important;height:19px!important;margin-right:3px!important}
  .team-table td.team-name b{display:inline-block!important;max-width:calc(100% - 24px)!important;vertical-align:middle!important;font-size:clamp(9px,2.6vw,12px)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .team-table td.credit-cell,.team-table td.max-cell{font-size:clamp(10px,2.8vw,13px)!important;padding-left:0!important;padding-right:0!important}
  .team-table .missing-pill{display:block!important;box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;padding:4px 0!important;border-radius:10px!important;font-size:clamp(8px,2.2vw,10px)!important;line-height:1.1!important;white-space:nowrap!important;text-align:center!important;overflow:hidden!important}

  .rosters{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:3px!important;width:100%!important;min-width:0!important;overflow-x:hidden!important}
  .rosters>.roster-player{display:grid!important;width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;grid-template-columns:17px 22px minmax(0,1.15fr) minmax(0,.9fr) 28px!important;grid-template-rows:1fr!important;align-items:center!important;gap:4px!important;padding:5px 4px!important;min-height:30px!important;overflow:hidden!important}
  .rosters>.roster-player .roster-number{grid-column:1!important;grid-row:1!important;justify-self:center!important;font-size:10px!important}
  .rosters>.roster-player .roster-role{display:inline-flex!important;grid-column:2!important;grid-row:1!important;justify-self:center!important;align-self:center!important;width:21px!important;height:21px!important;min-width:21px!important;font-size:11px!important;line-height:19px!important}
  .rosters>.roster-player .roster-player-name{grid-column:3!important;grid-row:1!important;min-width:0!important;font-size:clamp(9px,2.7vw,12px)!important;line-height:1.15!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .rosters>.roster-player small{grid-column:4!important;grid-row:1!important;min-width:0!important;font-size:clamp(9px,2.5vw,11px)!important;line-height:1.15!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .rosters>.roster-player strong{grid-column:5!important;grid-row:1!important;justify-self:end!important;font-size:11px!important;white-space:nowrap!important}
}


/* Mobile: colonne ruoli piu larghe e valori centrati dentro ogni badge */
@media (max-width:760px){
  .team-table{
    width:100%!important;
    min-width:0!important;
    table-layout:fixed!important;
  }
  .team-table th:first-child,
  .team-table td:first-child{width:25%!important}
  .team-table th:nth-child(2),
  .team-table td:nth-child(2){width:9%!important}
  .team-table th:nth-child(3),
  .team-table td:nth-child(3){width:10%!important}
  .team-table th:nth-child(4),
  .team-table td:nth-child(4),
  .team-table th:nth-child(5),
  .team-table td:nth-child(5),
  .team-table th:nth-child(6),
  .team-table td:nth-child(6),
  .team-table th:nth-child(7),
  .team-table td:nth-child(7){width:14%!important}
  .team-table td:not(.team-name){padding-left:2px!important;padding-right:2px!important}
  .team-table .missing-pill{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    box-sizing:border-box!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    min-height:34px!important;
    padding:3px 1px!important;
    margin:0 auto!important;
    font-size:clamp(11px,3vw,13px)!important;
    line-height:1!important;
    letter-spacing:0!important;
    text-align:center!important;
    white-space:nowrap!important;
    overflow:hidden!important;
  }
}


/* Nome della squadra che deve effettuare la chiamata: modifica solo l'etichetta sotto il timer. */
.timer-card #callLabel{
  display:block;
  margin-top:5px;
  color:#ffe000!important;
  font-size:clamp(16px,1.5vw,22px)!important;
  line-height:1.2;
  font-weight:900!important;
  letter-spacing:.5px;
  text-shadow:0 0 8px rgba(255,224,0,.45)!important;
}
@media(max-width:600px){
  .timer-card #callLabel{font-size:clamp(13px,3.5vw,17px)!important}
}

/* Rifinitura nome squadra di chiamata: più grande e leggibile anche su mobile */
.timer-card #callLabel{
  font-size:clamp(19px,1.8vw,26px)!important;
  line-height:1.15!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
}
@media(max-width:600px){
  .timer-card #callLabel{
    font-size:clamp(15px,4vw,20px)!important;
    line-height:1.15!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
  }
}


/* Etichette sotto i timer: preparazione e fase di rilancio */
.timer-card #callLabel,
.timer-card #liveState{
  display:block;
  margin-top:5px;
  font-size:clamp(20px,1.9vw,27px)!important;
  line-height:1.15!important;
  font-weight:900!important;
  letter-spacing:.5px;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  text-shadow:0 0 8px rgba(255,224,0,.4)!important;
}
@media(max-width:600px){
  .timer-card #callLabel,
  .timer-card #liveState{
    font-size:clamp(16px,4.2vw,21px)!important;
    line-height:1.15!important;
  }
}


/* Riquadro giocatore: gruppi avvicinati al centro su PC, offerta verticale su mobile */
@media (min-width:601px){
  .player-card{position:relative!important;justify-content:flex-start!important;gap:12px!important;padding-left:clamp(22px,3.2vw,58px)!important;padding-right:clamp(22px,3.2vw,58px)!important}
  .player-card .player-photo{flex:0 0 clamp(90px,8vw,118px)!important;width:clamp(90px,8vw,118px)!important;margin:0!important}
  .player-card .player-copy{flex:0 1 48%!important;min-width:0!important;margin-left:clamp(4px,.8vw,14px)!important}
  .player-card #playerTag{font-size:clamp(13px,1.15vw,17px)!important}
  .player-card h1{font-size:clamp(27px,2.5vw,40px)!important;margin:6px 0!important}
  .player-card p{font-size:clamp(15px,1.15vw,18px)!important}
  .player-card .bid-line{position:absolute!important;left:64%!important;right:auto!important;top:50%!important;transform:translateY(-50%)!important;width:32%!important;margin:0!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:clamp(10px,1.2vw,20px)!important;white-space:nowrap!important}
  .player-card .bid-line strong{font-size:clamp(25px,2vw,34px)!important;font-weight:900!important;color:#ffe000!important}
  .player-card .bid-line span{font-size:clamp(22px,1.8vw,30px)!important;font-weight:900!important;color:#ffe000!important}
}
@media (max-width:600px){
  .player-card{position:relative!important;justify-content:flex-start!important;gap:8px!important;padding-left:10px!important;padding-right:10px!important}
  .player-card .player-photo{flex:0 0 82px!important;width:82px!important;margin:0!important}
  .player-card .player-copy{min-width:0!important;max-width:58%!important}
  .player-card #playerTag{font-size:clamp(12px,3.1vw,15px)!important}
  .player-card h1{font-size:clamp(19px,5vw,24px)!important;margin:6px 0!important}
  .player-card p{font-size:clamp(11px,3vw,14px)!important}
  .player-card .bid-line{position:absolute!important;right:12px!important;top:50%!important;transform:translateY(-50%)!important;margin:0!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:5px!important;white-space:nowrap!important;text-align:center!important}
  .player-card .bid-line strong{font-size:clamp(19px,5vw,26px)!important;line-height:1.05!important;font-weight:900!important;color:#ffe000!important}
  .player-card .bid-line span{font-size:clamp(17px,4.5vw,23px)!important;line-height:1.05!important;font-weight:900!important;color:#ffe000!important}
}


/* Ultima richiesta: squadra offerente sotto i crediti, con dimensione pari ai crediti su PC e mobile */
@media (min-width:601px){
  .player-card .bid-line{
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:3px!important;
    text-align:center!important;
  }
  .player-card .bid-line strong,
  .player-card .bid-line span{
    font-size:clamp(27px,2.15vw,36px)!important;
    line-height:1.05!important;
    font-weight:900!important;
    color:#ffe000!important;
  }
}
@media (max-width:600px){
  .player-card .bid-line{
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:5px!important;
  }
  .player-card .bid-line strong,
  .player-card .bid-line span{
    font-size:clamp(20px,5.2vw,27px)!important;
    line-height:1.05!important;
    font-weight:900!important;
    color:#ffe000!important;
  }
}


/* FIX V4: forza la stessa dimensione per crediti e squadra offerente. */
@media (min-width:601px){
  .player-card .bid-line #bidValue,
  .player-card .bid-line #leaderName{
    display:block!important;
    font-size:clamp(27px,2.15vw,36px)!important;
    line-height:1.05!important;
    font-weight:900!important;
    color:#ffe000!important;
    text-align:center!important;
  }
}
@media (max-width:600px){
  .player-card .bid-line #bidValue,
  .player-card .bid-line #leaderName{
    display:block!important;
    font-size:clamp(20px,5.2vw,27px)!important;
    line-height:1.05!important;
    font-weight:900!important;
    color:#ffe000!important;
    text-align:center!important;
  }
}

/* Colori timer concordati: chiamata e attesa in bianco, rilanci in giallo */
.timer-card #callTimer,
.timer-card #callLabel{
  color:#ffffff!important;
  text-shadow:0 0 4px rgba(255,255,255,.95),0 0 10px rgba(255,255,255,.55)!important;
}
.timer-card #bidTimer,
.timer-card #liveState{
  color:#ffe000!important;
  text-shadow:0 0 8px rgba(255,224,0,.45),0 0 14px rgba(255,224,0,.3)!important;
}

/* FIX Safari iPhone: evita che il pannello password allarghi la pagina sui telefoni oltre 420px */
@media (max-width:760px){
  .visitor-password-panel{
    flex-wrap:wrap!important;
  }
  .visitor-password-panel>.lock-icon{
    flex:0 0 100%!important;
  }
  .visitor-password-panel .password-field,
  .visitor-password-panel .enter-room{
    flex:0 1 100%!important;
    width:100%!important;
    min-width:0!important;
    max-width:520px!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }
}


/* Nome nel riquadro GIOCATORE ALL'ASTA: abbreviato solo su smartphone */
.player-name-full{display:inline}
.player-name-short{display:none}
@media(max-width:600px){
  .player-name-full{display:none!important}
  .player-name-short{display:inline!important}
}


/* Rosso brillante per PAUSA e NESSUNA OFFERTA */
.timer-card #bidTimer.state-red,
.timer-card #liveState.state-red,
.player-card #leaderName.state-red{
 color:#ff1010!important;
 text-shadow:0 0 5px rgba(255,0,0,.95),0 0 12px rgba(255,0,0,.85),0 0 20px rgba(255,0,0,.65)!important;
}
