@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800&family=DM+Sans:wght@400;500;600;700&display=swap');
:root{font-family:'DM Sans',Arial,sans-serif;color:#eaf4fb;background:#07121e;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px;background:radial-gradient(circle at 42% -14%,#14344b 0,transparent 37%),#07121e}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.42}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #36d9e8;outline-offset:2px}.app-shell{min-height:100vh;display:flex;flex-direction:column}.topbar{height:72px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 2.4vw;background:#0a1825;border-bottom:1px solid #254256}.brand{display:flex;align-items:center;gap:8px;font:800 24px 'Barlow Condensed',Impact,sans-serif;letter-spacing:.09em;white-space:nowrap}.brand-mark{color:#26d8e6;border:2px solid #26d8e6;width:32px;height:32px;display:grid;place-items:center;margin-right:5px;font-size:19px;line-height:1}.brand-accent{color:#26d8e6}.brand-divider{height:22px;width:1px;background:#36536a;margin:0 10px}.brand small{font:700 10px 'DM Sans',sans-serif;letter-spacing:.13em;color:#8ba4b6}.top-actions{display:flex;align-items:center;gap:14px}.save-status{font-size:10px;letter-spacing:.14em;font-weight:700;color:#68dcb8}.outline-btn,.icon-btn{border:1px solid #38576b;color:#d6e9f1;background:#132636;border-radius:7px;padding:10px 15px;font-weight:700;font-size:12px}.outline-btn:hover,.icon-btn:hover{border-color:#38cbd9;background:#193447}.icon-btn{font-size:20px;padding:6px 12px}.main-grid{display:grid;grid-template-columns:minmax(0,1fr) 365px;min-height:calc(100vh - 112px);flex:1}.arena{padding:24px clamp(24px,3.5vw,64px) 28px;display:flex;flex-direction:column;gap:18px;min-width:0;background:linear-gradient(120deg,transparent 65%,#0b2132 100%)}.arena-top,.arena-overline{display:flex;align-items:center;justify-content:space-between;gap:10px}.arena-overline,.round-meta,.eyebrow,.team-label,.clock-caption,.clock-unit,.challenge,.pill,.key-tag,.status-icon,.arena-status strong,.footer,.teacher-badge,.answer-label,.projection-label{font-size:11px;letter-spacing:.13em;font-weight:800}.arena-overline{color:#93b0c2}.live-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#2de1cd;box-shadow:0 0 14px #2de1cd;margin-right:9px}.overline-spacer,.muted{color:#537183}.round-meta{color:#c7d9e4}.scoreboard{display:grid;grid-template-columns:minmax(0,1fr) 175px minmax(0,1fr);gap:12px;min-height:170px}.team,.clock{border:1px solid #2c465c;background:linear-gradient(160deg,#112a3b,#0b1c2b);border-radius:10px;padding:19px 22px;position:relative;overflow:hidden}.team:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--team-color)}.team.active{border-color:var(--team-color);box-shadow:0 0 0 1px var(--team-color),0 0 25px #35d4ee22}.team-a{--team-color:#26d8e6}.team-b{--team-color:#f6ac4e}.team-label{color:var(--team-color)}.team-symbol{font-size:16px;margin-right:7px}.team-name{font:700 clamp(20px,2vw,31px) 'Barlow Condensed',sans-serif;margin-top:10px;overflow-wrap:anywhere}.score{font:800 50px 'Barlow Condensed',sans-serif;line-height:.98;margin-top:6px}.score small{font:700 10px 'DM Sans',sans-serif;color:#8aa5b8;letter-spacing:.15em;margin-left:8px}.key-tag{position:absolute;right:16px;bottom:18px;color:#829bab;font-size:9px}.key-tag kbd,.footer kbd{border:1px solid #426075;border-radius:4px;padding:3px 6px;margin-left:4px;color:#eaf4fb}.clock{display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;background:#112538}.clock-caption{color:#8caabf;font-size:9px}.clock strong{font:800 78px 'Barlow Condensed',Impact,sans-serif;line-height:.95;color:#effaff;margin:7px 0 2px;font-variant-numeric:tabular-nums}.clock-unit{color:#4ed4e0;font-size:9px}.clock.urgent{border-color:#f77d67}.clock.urgent strong{color:#ff9b7f}.challenge-card{position:relative;flex:1;min-height:330px;padding:28px 42px 33px;border:1px solid #2b4a5e;border-radius:10px;background:radial-gradient(circle at 50% 12%,#15374a 0,transparent 52%),linear-gradient(135deg,#0e2738,#0b2030 72%);display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;overflow:hidden}.challenge-card:after{content:"";position:absolute;inset:12px;border:1px solid #35536a55;pointer-events:none;border-radius:4px}.challenge-card:before{content:"";position:absolute;inset:0;opacity:.22;background-image:linear-gradient(#58ccdb19 1px,transparent 1px),linear-gradient(90deg,#58ccdb19 1px,transparent 1px);background-size:45px 45px;pointer-events:none}.challenge-card>*{z-index:1}.intro-glyph{font:800 clamp(85px,12vw,180px) 'Barlow Condensed',sans-serif;color:#276e83;line-height:.9;opacity:.7}.cyan{color:#49dce9}.intro-title{font:800 clamp(42px,4.8vw,78px) 'Barlow Condensed',Impact,sans-serif;line-height:1.02;letter-spacing:.018em;margin:10px 0}.intro-title em{font-style:normal;color:#47d8e3}.intro-copy{font-size:15px;color:#a7becc;margin:12px 0}.played{color:#61d5de;font-weight:700}.question-header{align-self:stretch;display:flex;justify-content:space-between;align-items:center;gap:12px;text-align:left}.pill{border:1px solid #287789;background:#143746;color:#6de5e8;border-radius:20px;padding:7px 12px;font-size:10px}.challenge{color:#87a7ba;font-size:10px}.dot-sep{color:#48d7e3;padding:0 4px}.circuit-art{height:100px;width:140px;display:grid;place-items:center;position:relative;color:#42d2df;font-size:58px;opacity:.76;margin:20px 0 4px}.circuit-art:before,.circuit-art:after{content:"";position:absolute;width:80px;height:1px;background:#4baaba;top:50%}.circuit-art:before{right:92%}.circuit-art:after{left:92%}.circuit-art i{position:absolute;width:5px;height:5px;background:#48d3e1;border-radius:50%;top:48%}.circuit-art i:nth-child(2){left:-74px}.circuit-art i:nth-child(3){right:-74px}.circuit-art i:nth-child(4){top:8px;left:50%}.prompt{max-width:900px;font:700 clamp(28px,3.5vw,54px) 'Barlow Condensed',Impact,sans-serif;line-height:1.12;letter-spacing:.015em;margin:12px auto 4px;text-wrap:balance}.question-image{width:min(100%,540px);height:clamp(170px,24vh,300px);margin:17px 0 8px;display:grid;place-items:center;background:#081b2a;border:1px solid #31586a;border-radius:8px;overflow:hidden}.question-image img{max-width:100%;max-height:100%;object-fit:contain}.answer-reveal{margin:20px 0 0;background:#0a3040;border:1px solid #2a9dac;padding:15px 24px;border-radius:8px;max-width:800px}.answer-reveal strong{color:#65e5c6}.answer-label{color:#74cdd5;font-size:9px;margin-top:8px}.answer-text{font-weight:800;font-size:20px;margin-top:3px}.answer-reveal p{font-size:13px;color:#bdced7;line-height:1.5;margin:7px 0 0}.arena-status{display:flex;align-items:center;gap:14px;min-height:70px;padding:11px 18px;background:#102737;border:1px solid #2b4a5e;border-radius:9px}.status-icon{height:36px;width:36px;display:grid;place-items:center;color:#3be0e5;background:#164356;border:1px solid #31879a;border-radius:50%;font-size:18px;flex:none}.arena-status strong{color:#6de1e5}.arena-status p{font-size:13px;color:#bdd0db;margin:3px 0 0}.projection-label{margin-left:auto;color:#7594a7;white-space:nowrap;font-size:9px}.teacher-panel{background:#0c1a27;border-left:1px solid #254155;display:flex;flex-direction:column;min-height:0}.panel-head{display:flex;justify-content:space-between;align-items:center;padding:24px 22px 16px}.panel-head h2{font:700 27px 'Barlow Condensed',sans-serif;margin:4px 0 0}.eyebrow{color:#6faabd;font-size:9px}.teacher-badge{font-size:9px;color:#65dfe0;border:1px solid #26697b;border-radius:5px;padding:7px 8px}.tabs{display:flex;padding:0 22px;border-bottom:1px solid #294456;gap:18px}.tab{background:none;border:0;border-bottom:2px solid transparent;padding:12px 1px;color:#8ba7ba;font-size:12px;font-weight:700}.tab.active{color:#55dbe3;border-color:#44d2e1}.panel-body{padding:20px 22px 30px;overflow-y:auto;flex:1}.panel-section{margin-bottom:21px}.panel-section h3,.section-title{font-size:10px;letter-spacing:.14em;color:#7fa6b9;margin:0 0 12px;font-weight:800;text-transform:uppercase}.field{display:block;margin-bottom:12px;font-size:11px;color:#a9c1ce;font-weight:700}.field input,.field select,.field textarea,.number-input{display:block;width:100%;margin-top:6px;background:#102838;border:1px solid #335267;border-radius:6px;color:#edf7fa;padding:10px 11px;font-size:13px;outline:none}.field textarea{min-height:74px;resize:vertical}.field input:disabled{opacity:.65}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.two-fields .field{min-width:0}.primary-btn,.secondary-btn,.danger-btn,.good-btn,.bad-btn{border-radius:7px;padding:12px 14px;font-size:12px;font-weight:800;border:1px solid transparent;transition:background .15s,color .15s}.primary-btn{background:#3bd2df;color:#06202d}.primary-btn:hover:not(:disabled){background:#79ebee}.secondary-btn{background:#152f40;color:#dceaf2;border-color:#3a596d}.secondary-btn:hover:not(:disabled){background:#214256}.danger-btn{background:#442c31;color:#ffd1ce;border-color:#84505a}.good-btn{background:#17483f;border-color:#328875;color:#86f2ca}.bad-btn{background:#48353a;border-color:#9a5a5e;color:#ffd2c9}.wide{width:100%}.button-row{display:flex;gap:8px;margin:8px 0}.button-row button{flex:1}.helper{color:#849eac;font-size:11px;line-height:1.5;margin:8px 0}.rule-note{font-size:12px;color:#b4cad5;padding:12px;background:#102737;border:1px solid #2d4858;border-radius:7px;line-height:1.5}.step-pill{color:#61dce2;background:#153c4c;padding:6px 9px;border-radius:4px;font-size:10px;font-weight:800;letter-spacing:.1em}.teacher-answer{padding:12px;background:#102e3b;border:1px solid #286279;border-radius:7px;font-size:12px;line-height:1.5;color:#c8dce5}.teacher-answer strong{color:#6de1e5}.teacher-answer p{margin:5px 0 0}.kbd-large{border:1px solid #7095a6;background:#284556;padding:3px 8px;border-radius:4px;color:#fff}.buzzer-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:8px 0}.buzzer-buttons button{min-height:66px;text-align:left}.buzzer-buttons strong{display:block;font:800 22px 'Barlow Condensed',sans-serif}.buzzer-buttons span{font-size:10px;color:#a0bcca}.buzzer-buttons .a{border-color:#209cb0}.buzzer-buttons .b{border-color:#b8874d}.phase-card{border:1px solid #2a4a5d;border-radius:7px;background:#102838;padding:13px;margin-bottom:18px}.phase-card .section-title{margin:0 0 7px;color:#5fdae2}.phase-card p{font-size:12px;line-height:1.5;margin:0;color:#c6d8e0}.phase-card strong{color:#fff}.divider{height:1px;background:#2b4556;margin:19px 0}.topic-list{display:grid;gap:7px;margin:10px 0}.topic-option{display:flex;align-items:center;gap:8px;background:#102838;border:1px solid #29485a;border-radius:6px;padding:9px;font-size:12px}.topic-option input{accent-color:#36d7e2}.tiny{font-size:10px;color:#7897a9}.bank-list{display:grid;gap:7px;max-height:240px;overflow-y:auto;margin:12px 0}.bank-item{background:#112b3b;border:1px solid #345267;border-radius:6px;color:#d7e9f1;padding:10px;text-align:left;font-size:11px}.bank-item.active{border-color:#50d9e3;background:#17404d}.bank-item small{display:block;color:#6ed9dd;margin-bottom:4px;letter-spacing:.09em}.file-label{display:block;border:1px dashed #477b8c;background:#143140;border-radius:6px;padding:10px;text-align:center;color:#9fdce4;font-size:11px;cursor:pointer}.file-label input{display:none}.round-config{padding:10px;border:1px solid #2f5265;border-radius:7px;margin:9px 0;background:#112a3b}.round-config strong{font-size:12px}.round-config .two-fields{margin-top:9px}.toast{position:fixed;right:22px;bottom:22px;background:#1c4955;border:1px solid #3dcfe0;color:#fff;padding:12px 18px;border-radius:7px;box-shadow:0 14px 30px #0008;z-index:99;font-size:13px}.footer{height:40px;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:0 2.4vw;color:#7290a1;border-top:1px solid #244053;background:#081521;font-size:9px}.footer kbd{font-size:9px}.projection .main-grid{display:block;min-height:calc(100vh - 112px)}.projection .teacher-panel,.projection .top-actions,.projection .footer span:last-child{display:none}.projection .arena{min-height:calc(100vh - 112px)}.projection .challenge-card{min-height:35vh}.projection .prompt{font-size:clamp(38px,4.2vw,74px)}.projection .team-name{font-size:clamp(25px,2.5vw,42px)}.projection .score{font-size:68px}.projection .clock strong{font-size:96px}.projection .scoreboard{min-height:190px}.projection .topbar{padding:0 3.5vw}@media(max-width:1100px){.main-grid{grid-template-columns:minmax(0,1fr) 320px}.arena{padding:18px}.scoreboard{grid-template-columns:minmax(0,1fr) 130px minmax(0,1fr)}.clock strong{font-size:65px}.team{padding:17px}.key-tag{display:none}.brand small{display:none}}@media(max-width:820px){.main-grid{display:flex;flex-direction:column}.teacher-panel{border-left:0;border-top:1px solid #385164}.panel-body{overflow:visible}.arena{min-height:700px}.challenge-card{min-height:340px}.topbar{padding:0 18px}.save-status{display:none}.footer span:last-child{display:none}}@media(max-width:530px){.topbar{height:60px}.brand{font-size:21px}.outline-btn{font-size:0;padding:9px}.outline-btn:first-letter{font-size:16px}.icon-btn{display:none}.arena-top{align-items:flex-start}.arena-overline,.round-meta{font-size:9px}.scoreboard{grid-template-columns:1fr 88px 1fr;gap:5px;min-height:140px}.team,.clock{padding:10px}.team-label{font-size:9px}.team-name{font-size:18px}.score{font-size:37px}.clock strong{font-size:46px}.clock-caption,.clock-unit{font-size:7px}.challenge-card{padding:22px 18px}.prompt{font-size:29px}.question-header{flex-wrap:wrap}.footer{height:32px}.projection .scoreboard{grid-template-columns:1fr 100px 1fr}.projection .score{font-size:42px}.projection .clock strong{font-size:54px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
/* Cierre de partida: reconocimiento legible en la pantalla proyectada. */
.team.champion{border-color:var(--team-color);box-shadow:0 0 0 1px var(--team-color),0 0 26px #37d2df33}
.final-clock strong{color:#f5c77b}
.final-results{width:min(100%,820px);display:flex;flex-direction:column;align-items:center}
.final-award{font:800 clamp(34px,4vw,56px) 'Barlow Condensed',Impact,sans-serif;color:#f5bc66;line-height:1}
.final-title{font:800 clamp(42px,5vw,78px) 'Barlow Condensed',Impact,sans-serif;line-height:1.03;overflow-wrap:anywhere;margin:8px 0 0;color:#fff;text-wrap:balance}
.final-lead{font-size:clamp(16px,1.6vw,21px);line-height:1.35;color:#bcd7e1;margin:9px 0 20px}
.final-scores{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.final-score-card{min-width:0;display:flex;flex-direction:column;align-items:center;gap:3px;border:1px solid #318b9d;background:#0c2c3d;border-radius:9px;padding:13px 18px 15px}
.final-score-card:nth-child(2){border-color:#a87849;background:#30291f}
.final-score-card.champion{box-shadow:0 0 0 2px #f5bc66,0 0 28px #f5bc6633}
.final-team-label{font-size:12px;font-weight:800;letter-spacing:.14em;color:#64d8e4}
.final-score-card:nth-child(2) .final-team-label{color:#f5bc66}
.final-team-name{font:700 clamp(20px,2.2vw,32px) 'Barlow Condensed',Impact,sans-serif;line-height:1.1;overflow-wrap:anywhere}
.final-score-card strong{font:800 clamp(32px,3.5vw,50px) 'Barlow Condensed',Impact,sans-serif;line-height:1;color:#fff}
.final-score-card small{font:700 13px 'DM Sans',sans-serif;color:#afc7d2}
.final-results .played{margin:17px 0 0;font-size:13px}
@media(max-width:530px){.final-scores{gap:7px}.final-score-card{padding:10px 5px}.final-team-label{font-size:10px}.final-score-card small{display:block;margin-top:3px;font-size:12px}.final-lead{margin-bottom:15px}}
@media(max-height:800px){.projection .arena:has(.finale){padding-top:12px;padding-bottom:12px;gap:10px}.projection .arena:has(.finale) .scoreboard{min-height:145px}.projection .arena:has(.finale) .arena-status{min-height:55px}.projection .challenge-card.finale{min-height:290px;padding:14px}.projection .final-award{font-size:36px}.projection .final-title{font-size:clamp(40px,4.2vw,58px)}.projection .final-lead{font-size:16px;margin:5px 0 10px}.projection .final-score-card{padding:8px 12px}.projection .final-score-card strong{font-size:37px}.projection .final-team-name{font-size:24px}.projection .final-results .played{margin-top:9px}}
/* Identidad y navegación hacia GamificaTec. */
.brand-icon{flex:none;width:44px;height:44px;object-fit:contain;background:#fff;border-radius:7px}
.top-actions{gap:9px}.site-link{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;text-decoration:none}
.about-main{width:min(100%,1160px);margin:0 auto;padding:34px 28px 48px;flex:1}
.about-wordmark{height:170px;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#fff;border:1px solid #417086;border-radius:12px}
.about-wordmark img{display:block;width:min(100%,700px);height:auto;flex:none}
.intro-logo-frame{width:min(100%,550px);height:126px;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#fff;border-radius:9px;margin-bottom:19px}.intro-logo-frame img{display:block;width:100%;height:auto;flex:none}
.about-intro{max-width:900px;margin:32px 0 28px}.about-intro h1{font:800 clamp(40px,5vw,72px) 'Barlow Condensed',Impact,sans-serif;line-height:1.03;margin:7px 0 12px}.about-intro p{font-size:18px;line-height:1.55;color:#bfd3df;margin:0}
.about-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.about-card{min-width:0;border:1px solid #315369;background:linear-gradient(145deg,#123246,#0d2434);border-radius:10px;padding:23px}.about-card h2{font:800 27px 'Barlow Condensed',Impact,sans-serif;margin:0 0 9px;color:#61dce5}.about-card p{font-size:16px;line-height:1.55;color:#ccdae3;margin:0}.about-card kbd{border:1px solid #49778b;border-radius:4px;padding:1px 6px;color:#fff}
.about-bottom{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid #315369;margin-top:29px;padding-top:25px}.about-bottom p{margin:0;color:#afc7d4;font-size:15px;line-height:1.5}.about-bottom strong{color:#e9f7fb}.about-bottom .primary-btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;white-space:nowrap;font-size:14px}
@media(max-width:1200px){.brand small{display:none}.save-status{display:none}}
@media(max-width:1050px){.nav-label{display:none}.site-link{font-size:18px;line-height:1;padding:9px 11px}}
@media(max-width:820px){.about-grid{grid-template-columns:1fr}.about-main{padding:24px 18px 40px}.about-wordmark{height:145px}.about-intro{margin:25px 0}.about-intro p{font-size:16px}}
@media(max-width:530px){.brand-icon{width:38px;height:38px}.site-link{font-size:18px!important;padding:9px 11px}.top-actions .outline-btn:not(.site-link){font-size:12px}.about-bottom{align-items:stretch;flex-direction:column}.about-wordmark{height:110px}.about-wordmark img{width:min(100%,430px)}}
#admin-shortcut[hidden]{display:none!important}
#admin-shortcut{padding:12px 18px 0;margin:0}
#admin-shortcut a{display:block;text-align:center;text-decoration:none}
