:root{--bg:#090b10;--panel:#141923;--line:#293242;--gold:#d7ae55;--muted:#9aa5b5;--white:#f6f7fb}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--white);font:15px Arial,sans-serif}header{padding:20px 5vw;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}h1{font-size:clamp(20px,4vw,29px);margin:0;color:var(--gold)}h1 span{color:#fff}main{max-width:1120px;margin:26px auto;padding:0 16px}.card{background:var(--panel);border:1px solid var(--line);border-radius:15px;padding:19px;margin:13px 0}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:13px}.bar,.inline,.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:space-between}button{background:var(--gold);border:0;border-radius:8px;padding:11px 14px;font-weight:700;cursor:pointer;color:#17130a}button.secondary{background:#293242;color:var(--white)}button:disabled{opacity:.5;cursor:not-allowed}input,select{background:#0c1119;color:white;border:1px solid var(--line);border-radius:8px;padding:11px;width:100%;margin:5px 0 12px}label{display:block;color:var(--muted);font-size:13px;margin-top:8px}.muted,.small,small{color:var(--muted)}.small{font-size:12px;overflow-wrap:anywhere}.pill{border:1px solid var(--line);padding:5px 9px;border-radius:20px;color:var(--muted);font-size:12px}.judge{padding:12px 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.tablewrap{overflow:auto}table{width:100%;border-collapse:collapse;min-width:650px}th,td{text-align:left;padding:11px;border-bottom:1px solid var(--line)}th{color:var(--gold)}.center{text-align:center}.notice{color:#9be0b9}.error{color:#ff9c9c}
.buttonlink{display:inline-block;background:#293242;color:var(--white);padding:11px 14px;border-radius:8px;text-decoration:none;font-weight:700}.screen-body{background:radial-gradient(circle at 15% 10%,#1d2a3b 0,#090b10 45%);min-height:100vh}.screen-body header{display:none}.screen-body main{max-width:1600px;margin:0 auto;padding:24px 3vw}.screen-top{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #394456;padding:10px 0 22px;gap:20px}.screen-top h1{font-size:clamp(30px,4vw,58px);letter-spacing:2px;margin:7px 0;color:#e2bd68}.screen-top p,.screen-kicker{color:#aeb9c9;letter-spacing:2px;font-size:clamp(11px,1vw,15px)}.screen-live{border:1px solid #d7ae55;color:#e2bd68;padding:12px 18px;border-radius:30px;font-weight:bold;letter-spacing:2px}.screen-main{display:grid;grid-template-columns:1fr;gap:22px;padding:24px 0}.screen-feature{display:grid;grid-template-columns:1fr auto;align-items:center;gap:30px;background:linear-gradient(120deg,#182231,#101722);border:1px solid #344155;border-radius:24px;padding:clamp(24px,4vw,55px)}.screen-team h2{font-size:clamp(34px,6vw,76px);margin:12px 0;color:#fff}.screen-team p{font-size:clamp(17px,2vw,25px);color:#b7c1d0}.screen-qr{text-align:center;background:#fff;color:#111;padding:14px;border-radius:16px;width:min(270px,25vw)}.screen-qr img{width:100%;display:block}.screen-qr p{font-size:12px;font-weight:bold;letter-spacing:1px}.screen-scores{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.screen-scores>div{background:#151e2b;border:1px solid #2b394d;border-radius:18px;padding:20px;text-align:center}.screen-scores small{display:block;color:#aeb9c9;letter-spacing:1px;font-size:clamp(10px,1vw,14px)}.screen-scores strong{display:block;font-size:clamp(30px,4vw,54px);margin-top:10px;color:#f4f5f7}.screen-scores i{font-size:.4em;color:#aeb9c9;font-style:normal}.screen-scores .screen-total{border-color:#d7ae55}.screen-scores .screen-total strong{color:#e2bd68}.screen-ranking{background:#151e2b;border:1px solid #2b394d;border-radius:18px;padding:20px}.screen-ranking h2{color:#e2bd68;letter-spacing:2px;font-size:clamp(22px,3vw,34px)}.screen-table table{width:100%;min-width:0;font-size:clamp(13px,1.5vw,22px)}.screen-table th,.screen-table td{padding:clamp(9px,1.3vw,18px);border-color:#303d50}.screen-table th{font-size:.8em;letter-spacing:1px}.screen-table .first-place{background:#3b321e}.screen-table .first-place td{color:#f1d48a}.screen-footer{text-align:center;color:#8390a3;letter-spacing:2px;font-size:12px;padding:10px}.screen-off{min-height:75vh;display:grid;align-content:center;text-align:center}.screen-off h1{font-size:clamp(36px,6vw,72px)}.screen-off p{color:#aeb9c9;font-size:22px}@media(max-width:700px){.screen-feature{grid-template-columns:1fr}.screen-qr{width:210px;max-width:100%;margin:auto}.screen-scores{grid-template-columns:1fr}.screen-top{align-items:flex-start;flex-direction:column}.screen-table table{font-size:12px}.screen-table th,.screen-table td{padding:7px 5px}}

/* Atualização: Telão em tela cheia */
.screen-body{width:100vw;height:100vh;min-height:100vh;overflow:hidden}
.screen-body main{width:100vw;max-width:none;height:100vh;min-height:100vh;margin:0;padding:2.2vh 3vw;display:flex;flex-direction:column}
.screen-body #app{width:100%;height:100%;display:flex;flex-direction:column;justify-content:space-between}
.screen-top{flex:0 0 auto;padding:1vh 0 2vh}
.screen-main{flex:1;display:flex;flex-direction:column;justify-content:center;gap:2vh;padding:2vh 0;min-height:0}
.screen-feature{min-height:38vh;grid-template-columns:1fr auto}
.screen-team h2{font-size:clamp(42px,7vw,104px)}
.screen-qr{width:min(34vh,28vw);padding:1.5vh}
.screen-qr img{width:100%;aspect-ratio:1}
.screen-scores{gap:1.2vw}
.screen-scores>div{padding:3vh 1.5vw}
.screen-scores strong{font-size:clamp(38px,5.4vw,78px)}
.screen-ranking{max-height:78vh;overflow:hidden;padding:2vh 2vw}
.screen-table th,.screen-table td{padding:1.3vh 1.2vw}
.screen-footer{flex:0 0 auto;padding:1vh 0;font-size:clamp(10px,.8vw,15px)}
.progress-team{padding:14px 0;border-bottom:1px solid var(--line)}
.progress-team h4{margin:0 0 10px;color:var(--gold)}
.progress-list{display:flex;flex-wrap:wrap;gap:8px}
.progress-person{border-radius:18px;padding:7px 10px;font-size:13px;border:1px solid var(--line)}
.progress-person.done{color:#9be0b9;border-color:#286447;background:#10271e}
.progress-person.pending{color:#ffcf8a;border-color:#76582d;background:#2b2112}
.active-team{background:#101a26;border:1px solid var(--line);border-radius:12px;padding:16px;margin:14px 0}
.active-team h2{margin:8px 0;color:var(--gold)}
#judgeFeedback{min-height:28px}
@media(max-width:700px){.screen-body{overflow:auto}.screen-body main{height:auto;min-height:100vh;padding:16px}.screen-feature{min-height:0}.screen-qr{width:210px}.screen-scores{grid-template-columns:1fr}.screen-ranking{max-height:none}}

.team-score-detail{margin-top:16px;border-color:var(--gold)}.team-score-detail h4{color:var(--gold);margin-top:20px}.team-score-detail .grid>div{background:#0c1119;border:1px solid var(--line);border-radius:10px;padding:12px}.team-score-detail .grid h3{margin:6px 0}

/* Modal de consulta de notas da equipe */
body.modal-open{overflow:hidden}
.scores-modal{position:fixed;inset:0;z-index:9999;display:none;align-items:center;justify-content:center;padding:24px}
.scores-modal.open{display:flex}
.scores-modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.78);backdrop-filter:blur(5px)}
.scores-modal-dialog{position:relative;z-index:1;width:min(1120px,96vw);max-height:90vh;overflow:auto;background:#141923;border:1px solid #3b4658;border-radius:18px;padding:clamp(18px,3vw,30px);box-shadow:0 24px 80px rgba(0,0,0,.55)}
.scores-modal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:22px}
.scores-modal-head h2{margin:10px 0;color:var(--gold);font-size:clamp(22px,3vw,32px)}
.scores-modal-head .modal-close{font-size:18px;min-width:42px}
.scores-modal-dialog h3{color:var(--gold);margin:22px 0 12px}
.scores-modal-dialog .tablewrap{max-height:38vh;overflow:auto}
.modal-score-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));margin-top:14px}
.modal-score-grid>div{background:#0c1119;border:1px solid var(--line);border-radius:12px;padding:16px}
.modal-score-grid h3{font-size:25px;margin:8px 0;color:#fff}
.scores-modal-actions{display:flex;justify-content:flex-end;margin-top:22px}
@media(max-width:700px){.scores-modal{padding:8px}.scores-modal-dialog{width:100%;max-height:96vh;padding:14px}.scores-modal-dialog table{min-width:760px}}

/* Fallback visual para modal, mesmo quando estilos externos não carregarem */
#teamScoresModal{position:fixed!important;inset:0!important;z-index:2147483000!important;align-items:center!important;justify-content:center!important;padding:24px!important;background:rgba(0,0,0,.78)!important}#teamScoresModal.open{display:flex!important}#teamScoresModal .scores-modal-dialog{width:min(1120px,96vw)!important;max-height:90vh!important;overflow:auto!important;background:#141923!important;color:#f6f7fb!important;border:1px solid #596579!important;border-radius:18px!important;padding:clamp(18px,3vw,30px)!important;box-shadow:0 24px 80px rgba(0,0,0,.65)!important}@media(max-width:700px){#teamScoresModal{padding:8px!important}#teamScoresModal .scores-modal-dialog{width:100%!important;max-height:96vh!important;padding:14px!important}}

/* TELÃO OFICIAL: identidade visual inspirada na referência enviada */
.screen-body{margin:0!important;padding:0!important;width:100vw!important;height:100vh!important;min-height:100vh!important;overflow:hidden!important;background:#020b18!important;color:#f7f8fc!important;font-family:Arial,Helvetica,sans-serif!important}
.screen-body main{max-width:none!important;margin:0!important}
.screen-body #app{width:100vw!important;height:100vh!important;min-height:100vh!important}
.arena-screen{--arena-gold:#f3ae24;--arena-blue:#087cff;position:relative;isolation:isolate;display:flex;flex-direction:column;width:100vw;height:100vh;min-height:100vh;overflow:hidden;padding:2.1vh 4.2vw 0;background:radial-gradient(ellipse at 50% 110%,rgba(0,103,255,.32),transparent 38%),radial-gradient(ellipse at 50% 30%,#061c36 0,#020b18 62%,#01050c 100%);color:#fff}
.arena-screen:before{content:"";position:absolute;z-index:-1;inset:0;background:repeating-linear-gradient(112deg,transparent 0 14%,rgba(0,115,255,.035) 14.2%,transparent 14.5% 29%);pointer-events:none}
.arena-screen:after{content:"";position:absolute;z-index:-1;left:0;right:0;bottom:8.5vh;height:3px;background:linear-gradient(90deg,transparent,#087cff 15%,#f5b632 50%,#087cff 85%,transparent);box-shadow:0 0 18px #087cff,0 0 32px rgba(0,119,255,.65)}
.arena-header{display:grid;grid-template-columns:1fr 1.5fr 1fr;align-items:center;gap:2vw;min-height:17vh}
.arena-brand{display:flex;align-items:center;gap:12px}
.arena-ages-mark{font-family:Georgia,serif;font-size:clamp(48px,6vw,90px);font-weight:900;line-height:.8;color:#fff;text-shadow:0 0 15px rgba(255,255,255,.2);transform:skew(-12deg)}
.arena-ages-name{border-left:1px solid #d9e1ee;padding-left:12px;display:flex;flex-direction:column}
.arena-ages-name small{font-size:clamp(8px,.8vw,13px);letter-spacing:.6px;color:#f0f2f7}
.arena-ages-name strong{font-size:clamp(28px,3.4vw,52px);letter-spacing:-2px;line-height:1}
.arena-event-title{text-align:center;position:relative;line-height:.9}
.arena-shark-mark{font-size:clamp(42px,6vw,88px);height:5vh;color:#e9edf4;text-shadow:0 4px 5px #000,0 0 15px #f2ae27;transform:scaleX(1.7) skew(-18deg)}
.arena-shark-name{font-size:clamp(36px,5.2vw,78px);font-weight:1000;font-style:italic;letter-spacing:-3px;color:#f5f6fa;text-shadow:0 4px 0 #8d929a,0 7px 12px #000}
.arena-shark-ribbon{display:inline-block;margin-top:8px;padding:8px 28px;background:linear-gradient(110deg,#d98208,#ffcf50,#d8890a);color:#090b10;font-weight:1000;font-style:italic;font-size:clamp(18px,2.2vw,34px);letter-spacing:1px;transform:skew(-12deg);box-shadow:0 7px 20px rgba(244,164,26,.3)}
.arena-course{justify-self:end;display:flex;align-items:center;gap:14px;font-size:clamp(13px,1.5vw,23px);line-height:1.25}
.arena-course-icon{font-size:clamp(32px,3.5vw,54px);color:var(--arena-gold);border-right:2px solid var(--arena-gold);padding-right:14px}
.arena-live-row{display:flex;align-items:center;justify-content:flex-end;gap:24px;margin:1vh 0 1.5vh;padding-right:2vw}
.arena-live-pill{background:linear-gradient(100deg,#0755b6,#087dff,#07439a);border:2px solid #078aff;border-radius:18px;padding:10px 24px;font-size:clamp(16px,2vw,30px);font-weight:900;box-shadow:0 0 20px rgba(0,119,255,.45);white-space:nowrap}
.arena-official{display:flex;align-items:center;gap:14px;font-size:clamp(13px,1.5vw,22px);letter-spacing:5px;white-space:nowrap}
.arena-official i{display:block;width:42px;height:2px;background:var(--arena-gold)}
.arena-main{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,29vw);gap:4vw;align-items:center;padding:1vh 1vw 3vh}
.arena-team-column{min-width:0;display:flex;flex-direction:column;justify-content:center}
.arena-team-label{align-self:flex-start;display:flex;align-items:center;gap:14px;padding:12px 30px;border-radius:16px;background:linear-gradient(100deg,#d78b12,#ffda75);color:#080d16;font-weight:1000;font-size:clamp(18px,2vw,31px);box-shadow:0 0 24px rgba(244,172,36,.2);margin-bottom:-9px;z-index:2}
.arena-team-label span{font-size:1.4em}
.arena-team-name{min-height:25vh;display:flex;align-items:center;padding:4vh 3vw;border:3px solid #a66a12;border-radius:28px;background:linear-gradient(110deg,rgba(5,20,38,.97),rgba(3,12,26,.94));box-shadow:inset 0 0 30px rgba(0,96,255,.1),0 0 18px rgba(245,167,35,.13);font-size:clamp(36px,5vw,82px);font-weight:900;line-height:1.08;overflow-wrap:anywhere}
.arena-presentation-time{display:flex;align-items:center;gap:18px;margin:3vh 0 0 3vw;font-size:clamp(20px,2.5vw,38px)}
.arena-presentation-time>span:first-child{font-size:1.7em;color:var(--arena-gold)}
.arena-presentation-time strong{font-size:1.25em;color:#ffca4c}
.arena-qr-column{justify-self:center;width:min(100%,min(29vw,43vh));display:flex;flex-direction:column;align-items:center;gap:12px}
.arena-qr-heading{font-size:clamp(13px,1.5vw,22px);font-weight:900;letter-spacing:1px;color:#f7c04d;text-align:center}
.arena-qr-frame{width:100%;aspect-ratio:1;background:#fff;padding:10px;border:4px solid #e8f4ff;border-radius:20px;box-shadow:0 0 24px rgba(0,125,255,.4)}
.arena-qr-frame img{width:100%;height:100%;display:block;object-fit:contain}
.arena-qr-callout{width:110%;display:flex;align-items:center;justify-content:center;gap:16px;border:3px solid var(--arena-gold);border-radius:50px;padding:12px 14px;text-align:center;font-size:clamp(15px,1.7vw,25px);line-height:1.12;background:rgba(1,8,18,.7)}
.arena-qr-callout span{font-size:2em;color:var(--arena-gold)}
.arena-qr-placeholder{min-height:32vh;justify-content:center;border:2px solid rgba(244,174,36,.55);border-radius:24px;background:rgba(3,18,36,.7)}
.arena-score-emblem{font-size:clamp(70px,10vw,140px);color:var(--arena-gold);text-shadow:0 0 24px rgba(245,174,36,.45)}
.arena-qr-placeholder p{letter-spacing:2px;text-align:center;color:#dce7f6;font-size:clamp(12px,1vw,16px)}
.arena-score-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:3vh}
.arena-score-cards>div{padding:18px 12px;border:1px solid #1b4c80;border-radius:14px;background:linear-gradient(145deg,#0b1e35,#071323);text-align:center}
.arena-score-cards span{display:block;color:#c6d4e7;font-size:clamp(10px,.9vw,15px);font-weight:800;letter-spacing:.5px}
.arena-score-cards strong{display:block;margin-top:8px;color:#fff;font-size:clamp(26px,3vw,46px)}
.arena-score-cards small{font-size:.42em;color:#b6c5d8}
.arena-score-cards .arena-score-total{border-color:var(--arena-gold);box-shadow:0 0 16px rgba(244,174,36,.12)}
.arena-score-cards .arena-score-total strong{color:#ffcb57}
.arena-ranking{flex:1;min-height:0;display:flex;flex-direction:column;justify-content:center;padding:1vh 2vw 3vh}
.arena-section-label{text-align:center;color:#ffcb57;font-size:clamp(14px,1.4vw,22px);letter-spacing:3px;font-weight:900}
.arena-ranking h1{text-align:center;font-size:clamp(30px,4vw,58px);margin:10px 0 2vh;color:#fff;letter-spacing:3px}
.arena-ranking-table{border:1px solid #25496d;border-radius:18px;overflow:hidden;background:rgba(5,19,36,.92)}
.arena-ranking-table table{width:100%;min-width:0;border-collapse:collapse;font-size:clamp(14px,1.5vw,23px)}
.arena-ranking-table th,.arena-ranking-table td{padding:1.6vh 1.3vw;border-bottom:1px solid #1b3857;text-align:left}
.arena-ranking-table th{color:#ffc34d;font-size:.78em;letter-spacing:1px;background:#0c2038}
.arena-ranking-table small{color:#a8b9cc}
.arena-rank-number{font-size:1.2em;color:#ffcc58;font-weight:900}
.arena-team-cell{font-weight:900}
.arena-final-score{font-size:1.2em;font-weight:1000;color:#ffcf5b}
.arena-champion{background:linear-gradient(90deg,rgba(163,104,14,.4),rgba(7,35,62,.8))}
.arena-footer{flex:0 0 auto;text-align:center;padding:1.5vh 0 1.8vh;border-top:1px solid #087cff;box-shadow:0 -5px 20px rgba(0,111,255,.22);font-size:clamp(13px,1.6vw,24px);letter-spacing:1px;background:rgba(1,7,15,.65)}
.arena-footer b{color:var(--arena-gold);padding:0 14px}
.arena-wait{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.arena-wait-icon{font-size:clamp(60px,9vw,130px);color:var(--arena-gold)}
.arena-wait h2{font-size:clamp(28px,4vw,56px);letter-spacing:3px}
.arena-wait p{font-size:clamp(16px,1.7vw,25px);color:#b9c9dd}
@media(max-width:800px){.arena-screen{overflow:auto;height:auto;min-height:100vh;padding:14px}.arena-header{grid-template-columns:1fr 1fr;min-height:auto}.arena-event-title{grid-column:1/-1;grid-row:2}.arena-course{font-size:12px}.arena-live-row{justify-content:center;flex-wrap:wrap}.arena-main{grid-template-columns:1fr;gap:22px}.arena-team-name{min-height:180px;font-size:38px}.arena-qr-column{width:min(75vw,320px)}.arena-score-cards{grid-template-columns:1fr}.arena-footer{margin-top:20px}.arena-ranking-table{overflow:auto}.arena-ranking-table table{min-width:700px}}

.screen-body main.arena-main{display:grid!important;flex-direction:initial!important;justify-content:initial!important;grid-template-columns:minmax(0,1fr) minmax(260px,29vw)!important}.screen-body main.arena-ranking{display:flex!important;flex-direction:column!important;justify-content:center!important;max-width:none!important}@media(max-width:800px){.screen-body main.arena-main{grid-template-columns:1fr!important}}

/* REFINAMENTO VISUAL DO TELÃO | layout 16:9 para projeção */
.screen-body{background:#020812!important}
.screen-body #app{width:100vw!important;height:100vh!important;min-height:100vh!important;margin:0!important;padding:0!important;max-width:none!important}
.arena-screen{--arena-gold:#f5b52e;--arena-blue:#087cff;width:100vw;height:100vh;min-height:100vh;padding:2.1vh 5.1vw 0!important;gap:0;background:
 radial-gradient(ellipse at 50% 112%,rgba(0,112,255,.32),transparent 36%),
 radial-gradient(ellipse at 50% 36%,rgba(4,34,66,.8),transparent 60%),
 linear-gradient(115deg,#01050d 0%,#031329 48%,#010711 100%)!important}
.arena-screen:before{z-index:-1;opacity:.8;background:
 radial-gradient(ellipse at 0% 52%,rgba(255,171,35,.16),transparent 16%),
 radial-gradient(ellipse at 100% 52%,rgba(255,171,35,.13),transparent 16%),
 linear-gradient(90deg,transparent 0%,rgba(0,117,255,.05) 50%,transparent 100%)!important}
.arena-screen:after{bottom:8.1vh;height:3px;background:linear-gradient(90deg,transparent 2%,#087cff 18%,#f5b52e 50%,#087cff 82%,transparent 98%)!important;box-shadow:0 0 14px #087cff,0 0 34px rgba(0,119,255,.7)!important}
.arena-header{grid-template-columns:minmax(220px,1fr) minmax(420px,1.45fr) minmax(260px,1fr)!important;min-height:17vh!important;gap:2vw!important}
.arena-brand{justify-self:start}
.arena-ages-name{border:0!important;padding:0!important;position:relative}
.arena-ages-name:before{content:"◢";position:absolute;left:-.68em;top:-.32em;font-size:clamp(36px,4.4vw,68px);font-weight:900;color:#fff;transform:skew(-18deg);text-shadow:0 0 15px rgba(255,255,255,.25)}
.arena-ages-name small{font-size:clamp(9px,.78vw,13px)!important;letter-spacing:.8px!important;margin-left:35px}
.arena-ages-name strong{font-size:clamp(42px,4.5vw,70px)!important;letter-spacing:-3px!important;line-height:.92!important}
.arena-event-title{padding-top:0!important}
.arena-shark-mark{display:none!important}
.arena-shark-name{font-size:clamp(43px,5.4vw,86px)!important;letter-spacing:-4px!important;line-height:.92!important;color:#f5f6fa!important;text-shadow:0 3px 0 #858b95,0 8px 18px #000!important}
.arena-shark-ribbon{margin-top:8px!important;padding:7px 28px!important;font-size:clamp(19px,2.25vw,36px)!important;letter-spacing:1px!important;border-radius:2px 2px 14px 2px;box-shadow:0 7px 22px rgba(244,164,26,.34)!important}
.arena-course{font-size:clamp(14px,1.45vw,23px)!important;justify-self:end;max-width:310px}
.arena-course-icon{font-size:clamp(36px,3.5vw,58px)!important}
.arena-live-row{height:12vh!important;min-height:85px!important;margin:0!important;padding:0 1.2vw 0 0!important;justify-content:flex-end!important;align-items:flex-start!important}
.arena-live-stack{display:flex;flex-direction:column;align-items:center;gap:8px;min-width:min(30vw,440px)}
.arena-live-pill{width:100%;text-align:center;border-radius:18px!important;padding:12px 18px!important;font-size:clamp(17px,2vw,31px)!important;letter-spacing:.2px}
.arena-official{justify-content:center;font-size:clamp(13px,1.4vw,22px)!important;letter-spacing:5px!important}
.arena-main{grid-template-columns:minmax(0,1fr) minmax(290px,27vw)!important;gap:4vw!important;padding:0 1vw 2vh!important}
.arena-team-column{padding-top:1vh}
.arena-team-label{font-size:clamp(18px,2vw,31px)!important;padding:10px 28px!important;border-radius:18px!important;margin-bottom:-8px!important;box-shadow:0 5px 24px rgba(245,181,46,.2)!important}
.arena-team-name{min-height:26vh!important;padding:3vh 3vw!important;border:2px solid #b77a1d!important;border-radius:26px!important;background:linear-gradient(112deg,rgba(4,19,38,.98),rgba(1,10,23,.97))!important;box-shadow:inset 0 0 45px rgba(0,104,255,.12),0 0 22px rgba(245,167,35,.12)!important;font-size:clamp(42px,5.1vw,86px)!important;line-height:1.05!important}
.arena-presentation-time{margin:3vh 0 0 3vw!important;font-size:clamp(21px,2.4vw,38px)!important}
.arena-qr-column{width:min(100%,min(26vw,42vh))!important;gap:12px!important}
.arena-qr-heading{font-size:clamp(13px,1.35vw,21px)!important;color:#f8c34d!important;letter-spacing:1px!important}
.arena-qr-frame{padding:8px!important;border:3px solid #f3f6fb!important;border-radius:22px!important;box-shadow:0 0 26px rgba(0,125,255,.42)!important}
.arena-qr-callout{width:112%!important;border:3px solid #e5a72c!important;border-radius:48px!important;padding:11px 12px!important;font-size:clamp(15px,1.65vw,25px)!important;box-shadow:0 0 18px rgba(245,174,36,.12)}
.arena-footer{padding:1.2vh 0 1.6vh!important;font-size:clamp(13px,1.5vw,23px)!important;letter-spacing:.8px!important;background:rgba(1,7,15,.72)!important}
.arena-ranking{padding:0 1vw 2vh!important}
.arena-ranking h1{font-size:clamp(34px,4vw,62px)!important}
.arena-ranking-table{border-radius:18px!important;box-shadow:0 18px 50px rgba(0,0,0,.28)}
.arena-ranking-table th,.arena-ranking-table td{padding:1.45vh 1.25vw!important}
@media(max-width:900px){.arena-screen{overflow:auto!important;height:auto!important;min-height:100vh!important;padding:18px 18px 0!important}.arena-header{grid-template-columns:1fr 1fr!important;min-height:auto!important;row-gap:20px}.arena-brand{grid-column:1}.arena-event-title{grid-column:1/-1;grid-row:2}.arena-course{grid-column:2;grid-row:1}.arena-live-row{height:auto!important;min-height:0!important;padding:20px 0!important}.arena-live-stack{min-width:min(90vw,440px)}.arena-main{grid-template-columns:1fr!important;gap:24px!important}.arena-team-name{min-height:180px!important;font-size:clamp(32px,8vw,54px)!important}.arena-qr-column{width:min(72vw,320px)!important}.arena-footer{margin-top:20px}}

/* Acompanhamento da banca integrado à lista de equipes */
.team-name-cell{display:flex;flex-direction:column;align-items:flex-start;gap:7px;min-width:220px}
.team-judge-chips{display:flex;flex-wrap:wrap;gap:5px;max-width:560px}
.team-judge-chips .progress-person{font-size:11px;padding:4px 8px;white-space:nowrap}
.team-judge-count{font-size:11px;color:#9aa9bc;line-height:1.2}
#app table td{vertical-align:middle}

/* CORREÇÃO DE ALINHAMENTO: reexibir cabeçalho do Telão e organizar áreas */
.screen-body .arena-screen header.arena-header{display:grid!important;visibility:visible!important;position:relative!important;inset:auto!important;opacity:1!important;transform:none!important;grid-template-columns:minmax(230px,1fr) minmax(400px,1.35fr) minmax(260px,1fr)!important;align-items:center!important;height:16vh!important;min-height:120px!important;max-height:170px!important;margin:0!important;padding:0 0 1vh!important;border:0!important;background:transparent!important;flex:0 0 16vh!important;z-index:2}
.screen-body .arena-screen{display:flex!important;flex-direction:column!important;justify-content:flex-start!important;box-sizing:border-box!important;padding:1.8vh 4.5vw 0!important;gap:0!important}
.screen-body .arena-live-row{display:flex!important;flex:0 0 13vh!important;height:13vh!important;min-height:100px!important;max-height:130px!important;justify-content:flex-end!important;align-items:flex-start!important;margin:0!important;padding:0 1vw 0 0!important;box-sizing:border-box!important}
.screen-body .arena-live-stack{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;gap:7px!important;width:min(31vw,440px)!important;min-width:340px!important}
.screen-body .arena-main{display:grid!important;flex:1 1 auto!important;min-height:0!important;height:auto!important;grid-template-columns:minmax(0,1fr) minmax(300px,26vw)!important;align-items:center!important;gap:3.2vw!important;padding:0 1.2vw 2vh!important;margin:0!important;box-sizing:border-box!important}
.screen-body .arena-team-column{display:flex!important;min-width:0!important;align-self:center!important;justify-content:center!important}
.screen-body .arena-team-label{align-self:flex-start!important;max-width:90%!important;white-space:nowrap!important;position:relative!important;margin-bottom:-9px!important}
.screen-body .arena-team-name{width:100%!important;min-height:25vh!important;max-height:31vh!important;box-sizing:border-box!important;overflow-wrap:anywhere!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;padding:3vh 3vw!important;font-size:clamp(40px,4.8vw,82px)!important}
.screen-body .arena-presentation-time{display:flex!important;align-items:center!important;gap:16px!important;margin:3vh 0 0 2.5vw!important;white-space:nowrap!important}
.screen-body .arena-qr-column{display:flex!important;justify-self:center!important;align-self:center!important;align-items:center!important;width:min(100%,min(25vw,39vh))!important;max-width:420px!important;min-width:260px!important;margin:0!important;gap:12px!important}
.screen-body .arena-qr-frame{width:100%!important;aspect-ratio:1!important;box-sizing:border-box!important}
.screen-body .arena-qr-callout{width:100%!important;max-width:100%!important;box-sizing:border-box!important;display:flex!important;justify-content:center!important;align-items:center!important;gap:12px!important;white-space:normal!important}
.screen-body .arena-footer{display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 8vh!important;height:8vh!important;min-height:58px!important;max-height:80px!important;width:100%!important;margin:0!important;padding:0 0 1vh!important;box-sizing:border-box!important;position:relative!important}
.screen-body .arena-screen:after{bottom:8vh!important}
@media(max-width:1100px){.screen-body .arena-header{grid-template-columns:1fr 1.2fr 1fr!important}.screen-body .arena-course{font-size:14px!important}.screen-body .arena-main{grid-template-columns:minmax(0,1fr) minmax(240px,28vw)!important;gap:2vw!important}.screen-body .arena-qr-column{min-width:220px!important}}
@media(max-width:900px){.screen-body .arena-screen{height:100vh!important;min-height:100vh!important;overflow:auto!important;padding:16px!important}.screen-body .arena-screen header.arena-header{display:grid!important;grid-template-columns:1fr 1fr!important;height:auto!important;min-height:0!important;max-height:none!important;flex:0 0 auto!important;row-gap:12px!important}.screen-body .arena-live-row{height:auto!important;min-height:0!important;max-height:none!important;flex:0 0 auto!important;padding:16px 0!important}.screen-body .arena-main{grid-template-columns:1fr!important;flex:1 0 auto!important;gap:20px!important}.screen-body .arena-qr-column{width:min(72vw,320px)!important;min-width:0!important}.screen-body .arena-footer{flex:0 0 auto!important;height:auto!important;min-height:55px!important}}

/* Espaçamento da lista de equipes e acompanhamento dos jurados */
#app .card .tablewrap table tbody tr{height:auto}
#app .card .tablewrap table tbody td{padding:18px 14px!important;vertical-align:middle!important}
#app .card .tablewrap table thead th:nth-child(2),
#app .card .tablewrap table tbody td:nth-child(2){width:38%;min-width:340px}
#app .team-name-cell{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;gap:10px!important;min-width:300px!important;padding:2px 0!important}
#app .team-name-cell>b{display:block!important;line-height:1.35!important;margin:0!important;font-size:15px!important}
#app .team-judge-chips{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:center!important;gap:7px!important;max-width:100%!important;width:100%!important}
#app .team-judge-chips .progress-person{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:30px!important;padding:6px 10px!important;line-height:1.25!important;font-size:12px!important;white-space:nowrap!important}
#app .team-judge-count{display:block!important;margin-top:0!important;line-height:1.35!important;font-size:12px!important;color:#aebbd0!important}
@media(max-width:850px){#app .card .tablewrap table tbody td{padding:16px 10px!important}#app .card .tablewrap table thead th:nth-child(2),#app .card .tablewrap table tbody td:nth-child(2){min-width:300px;width:300px}#app .team-name-cell{min-width:280px!important}}

/* REDUÇÃO PROPORCIONAL DOS ELEMENTOS DO TELÃO */
.screen-body .arena-screen{padding:1.4vh 4.2vw 0!important}
.screen-body .arena-header{height:14vh!important;min-height:105px!important;max-height:145px!important;flex-basis:14vh!important;grid-template-columns:minmax(210px,1fr) minmax(360px,1.25fr) minmax(240px,1fr)!important}
.screen-body .arena-ages-name strong{font-size:clamp(36px,3.9vw,62px)!important}
.screen-body .arena-ages-name small{font-size:clamp(8px,.68vw,11px)!important}
.screen-body .arena-shark-name{font-size:clamp(38px,4.7vw,74px)!important;letter-spacing:-3px!important}
.screen-body .arena-shark-ribbon{font-size:clamp(17px,1.9vw,30px)!important;padding:6px 22px!important;margin-top:6px!important}
.screen-body .arena-course{font-size:clamp(12px,1.25vw,20px)!important}
.screen-body .arena-course-icon{font-size:clamp(30px,3vw,48px)!important}
.screen-body .arena-live-row{flex-basis:11vh!important;height:11vh!important;min-height:82px!important;max-height:108px!important}
.screen-body .arena-live-stack{width:min(28vw,390px)!important;min-width:310px!important;gap:5px!important}
.screen-body .arena-live-pill{font-size:clamp(15px,1.7vw,27px)!important;padding:9px 15px!important}
.screen-body .arena-official{font-size:clamp(11px,1.2vw,19px)!important;letter-spacing:4px!important}
.screen-body .arena-main{grid-template-columns:minmax(0,1fr) minmax(260px,23vw)!important;gap:3vw!important;padding:0 1.2vw 1.5vh!important}
.screen-body .arena-team-label{font-size:clamp(15px,1.7vw,27px)!important;padding:8px 22px!important;border-radius:15px!important}
.screen-body .arena-team-name{min-height:22vh!important;max-height:27vh!important;font-size:clamp(36px,4.3vw,70px)!important;padding:2.5vh 2.5vw!important;border-radius:22px!important}
.screen-body .arena-presentation-time{font-size:clamp(18px,2vw,32px)!important;margin:2.5vh 0 0 2vw!important}
.screen-body .arena-qr-column{width:min(100%,min(22vw,34vh))!important;max-width:360px!important;min-width:230px!important;gap:9px!important}
.screen-body .arena-qr-heading{font-size:clamp(11px,1.15vw,18px)!important;letter-spacing:.7px!important}
.screen-body .arena-qr-frame{padding:6px!important;border-radius:18px!important}
.screen-body .arena-qr-callout{width:100%!important;padding:8px 9px!important;font-size:clamp(13px,1.35vw,21px)!important;border-width:2px!important;gap:8px!important}
.screen-body .arena-footer{flex-basis:7vh!important;height:7vh!important;min-height:50px!important;max-height:68px!important;font-size:clamp(11px,1.25vw,19px)!important;padding-bottom:.5vh!important}
.screen-body .arena-screen:after{bottom:7vh!important}

/* Uso dos arquivos oficiais de identidade visual enviados pelo usuário */
.screen-body .arena-brand{display:flex!important;align-items:center!important;justify-self:start!important;min-width:0!important}
.screen-body .arena-logo-ages{display:block!important;width:clamp(150px,17vw,270px)!important;max-width:100%!important;max-height:12vh!important;height:auto!important;object-fit:contain!important;filter:drop-shadow(0 3px 8px rgba(0,0,0,.35))}
.screen-body .arena-event-title{display:flex!important;align-items:center!important;justify-content:center!important;min-width:0!important;padding:0!important}
.screen-body .arena-logo-event{display:block!important;width:clamp(260px,28vw,440px)!important;max-width:100%!important;max-height:14vh!important;height:auto!important;object-fit:contain!important;filter:drop-shadow(0 4px 10px rgba(0,0,0,.38))}
@media(max-width:900px){.screen-body .arena-logo-ages{width:min(36vw,180px)!important;max-height:90px!important}.screen-body .arena-logo-event{width:min(62vw,320px)!important;max-height:120px!important}}

/* Remoção definitiva do horário de apresentação do Telão */
.screen-body .arena-presentation-time{display:none!important}
