@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');
:root{font-family:'DM Sans',system-ui,Arial,sans-serif;color:#102b51;background:#f4f7ff;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-height:100vh;overflow-x:hidden}button,input{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}.ambient{position:fixed;border-radius:50%;pointer-events:none;filter:blur(5px);z-index:-1}.ambient-1{background:#dae7ff;width:460px;height:460px;top:-240px;left:-130px}.ambient-2{background:#e0f9ee;width:360px;height:360px;right:-190px;bottom:-190px}.shell{max-width:1060px;margin:0 auto;padding:16px 22px 28px;min-height:100vh;display:flex;flex-direction:column}.topbar{display:flex;align-items:center;gap:12px;padding:8px 0 24px}.brandmark{width:45px;height:45px;background:#153f91;color:white;display:grid;place-items:center;font:900 22px Outfit;border-radius:13px;flex:none}.brandmark span{color:#ffbe3b;font-size:13px;align-self:start;margin-left:-18px}.brand{display:flex;flex-direction:column;gap:2px}.brand strong{font:800 12px Outfit;letter-spacing:.05em}.brand small{font-size:12px;color:#6b7b93}.navbtn{margin-left:auto;background:#fff;border:1px solid #dbe3f2;border-radius:14px;padding:10px 14px;color:#28466e;font-size:12px;font-weight:800}.panel{background:#fff;border:1px solid #e4eaf4;box-shadow:0 16px 50px #29448011;border-radius:28px;padding:32px;overflow:hidden}.hero{display:grid;grid-template-columns:1.3fr .7fr;align-items:center;gap:22px;position:relative;overflow:hidden}.eyebrow{display:inline-flex;background:#eaf2ff;color:#2753a1;padding:7px 12px;border-radius:999px;font-size:11px;font-weight:800;letter-spacing:.09em;text-transform:uppercase}.display{font:900 clamp(38px,6vw,68px)/.98 Outfit;margin:18px 0;color:#153a85;letter-spacing:-.045em}.display b{color:#f5a823}.subtitle{font-size:16px;line-height:1.6;color:#59708f;max-width:480px}.hero-art{text-align:center;font-size:clamp(85px,14vw,145px);line-height:1;position:relative;filter:drop-shadow(0 18px 16px #1b44922b)}.hero-art:after{content:'✦  ★';color:#f4b33e;font-size:26px;position:absolute;right:3%;top:-5%}.formbox{max-width:420px;margin-top:22px}.label{display:block;font-size:13px;font-weight:800;margin:0 0 8px}.input{width:100%;padding:15px 16px;border:1px solid #ccd8eb;border-radius:13px;outline:0;background:white;color:#142d59}.input:focus{border-color:#326fd1;box-shadow:0 0 0 3px #dfeaff}.primary{background:#1b58c4;color:white;border:0;border-radius:14px;padding:15px 21px;font-weight:800;box-shadow:0 8px 16px #2056b028}.primary:hover{background:#1246a5}.wide{width:100%}.secondary{background:#edf3fd;color:#194583;border:1px solid #d8e4f8;border-radius:13px;padding:12px 16px;font-weight:800}.outline-danger{background:#fff2f2;color:#a42034;border:1px solid #f6c3cb;padding:13px 16px;border-radius:13px;font-weight:800}.row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.pills{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0}.pill{background:#eff3f9;padding:8px 12px;border-radius:100px;color:#486585;font-size:12px;font-weight:800}.note{color:#637896;font-size:12px;line-height:1.6;margin:12px 0}.section-title{font:850 27px Outfit;color:#153c85;margin:0 0 10px}.instructions{margin-top:18px;display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.instruction{padding:20px;background:#fff;border-radius:19px;border:1px solid #e5eaf4}.instruction strong{display:block;color:#1c458f;margin-bottom:5px}.instruction p{font-size:12px;color:#667a98;margin:0;line-height:1.5}.quiz-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.progress-track{height:10px;background:#eaf0fa;border-radius:20px;overflow:hidden;margin:20px 0}.progress-fill{height:100%;background:linear-gradient(90deg,#255bd4,#39b8c8);border-radius:20px;transition:width .2s}.question{font:800 clamp(20px,3vw,30px)/1.3 Outfit;color:#102f70;margin:10px 0 24px}.answers{display:grid;gap:12px}.answer{width:100%;display:flex;text-align:left;align-items:center;gap:14px;background:#f9fbff;border:2px solid #e1e9f5;border-radius:17px;padding:15px;color:#1a3664;font-size:15px;font-weight:750;min-height:62px}.answer:hover{background:#edf4ff}.answer.selected{background:#e7f0ff;border-color:#2865d9}.letter{background:#e7ecf6;padding:10px 13px;border-radius:12px;min-width:41px;text-align:center}.selected .letter{background:#245bd1;color:white}.quiz-actions{display:flex;gap:10px;justify-content:space-between;margin-top:24px}.quiz-actions button{flex:1}.result{text-align:center;padding:12px}.score{font:900 clamp(80px,14vw,128px) Outfit;color:#1e55b7;line-height:1}.score small{font-size:27px;color:#8295b5}.winner{background:#e6f9ee;border:1px solid #bfead1;color:#177348;border-radius:17px;padding:16px;margin:20px auto;font-weight:900;max-width:500px}.not-winner{background:#eff4ff;border:1px solid #d7e3fa;color:#36548b;border-radius:17px;padding:16px;margin:20px auto;max-width:500px}.board{margin-top:16px}.board-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}.board-title{font:800 21px Outfit;margin:0;color:#193c81}.stats{display:flex;gap:7px}.stat{font-size:11px;font-weight:800;background:#edf3fd;padding:8px 10px;border-radius:10px;color:#3f6191}.table{width:100%;border-collapse:collapse;text-align:left}.table td,.table th{padding:12px 10px;border-bottom:1px solid #e7edf6;font-size:13px}.table th{font-size:11px;text-transform:uppercase;letter-spacing:.07em;color:#71839c}.table td:last-child{text-align:right;font-weight:850}.prize{color:#178454}.pending{color:#8291a9}.empty{background:#f4f7fd;padding:22px;border-radius:16px;text-align:center;color:#7484a0;font-size:13px}.footer{margin-top:auto;padding-top:28px;display:flex;justify-content:space-between;gap:14px;color:#8392a9;font-size:11px}.toast{position:fixed;bottom:20px;left:50%;transform:translate(-50%,140px);background:#14346a;color:#fff;border-radius:14px;padding:14px 18px;max-width:90vw;text-align:center;box-shadow:0 12px 40px #13336955;z-index:20;transition:transform .2s}.toast.show{transform:translate(-50%,0)}.loading{text-align:center;padding:40px;color:#506b99}.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.admin-side{border-radius:19px;background:#f5f8ff;padding:20px}.admin-buttons{display:flex;gap:12px;flex-wrap:wrap}.chip-ok{background:#e5f8f0;color:#167b55;padding:7px 12px;border-radius:100px;font-size:12px;font-weight:900}@media(max-width:650px){.shell{padding:10px 12px 22px}.topbar{padding-bottom:15px}.brand small{font-size:10px}.brand strong{font-size:10px}.navbtn{padding:8px;font-size:11px}.panel{padding:22px 17px;border-radius:20px}.hero{grid-template-columns:1fr}.hero-art{font-size:80px;grid-row:1;display:none}.display{font-size:44px}.instructions,.admin-grid{grid-template-columns:1fr}.instructions{gap:8px}.instruction{padding:15px}.quiz-actions{flex-direction:column-reverse}.quiz-header{align-items:flex-start}.footer{flex-direction:column;gap:3px}.board-title{font-size:17px}.table td,.table th{padding:10px 5px;font-size:12px}}
/* Cambios versión 2: favicon propio, respuesta instantánea y reinicio seguro */
.brandmark{width:46px;height:46px;border-radius:13px;object-fit:cover;background:none;box-shadow:0 5px 13px #1b3d7a22}
.sparkle{font-size:.68em;color:#f2bb44;vertical-align:middle}
.hero-orbit{font-size:40px;color:#f3bc37;position:absolute;right:22px;top:-15px}
.hero-trophy{font-size:130px;filter:drop-shadow(0 12px 20px #143f7427)}
.hero-coins{font-size:53px;letter-spacing:10px}
.formbox .primary{margin-top:13px}
.small-space{margin-top:12px}
.space{margin-top:18px}
.counter{white-space:nowrap;font-size:14px;color:#163e8c}
.score-progress{display:flex;justify-content:space-between;gap:8px;color:#5b7295;font-size:12px;font-weight:800;margin-bottom:24px}
.quiz-panel{max-width:830px;margin-inline:auto}
.answer{transition:background .15s,border-color .15s,transform .15s}
.answer:not(:disabled):hover{transform:translateY(-2px)}
.answer:disabled{opacity:1;cursor:default}
.answer-text{flex:1}
.answer-symbol{font-size:22px;font-weight:900;min-width:25px;text-align:center}
.answer.correct-answer{background:#e6f8ee;border-color:#30a96a;color:#16633e}
.answer.correct-answer .letter{background:#2da46b;color:white}
.answer.wrong-answer{background:#fff0f1;border-color:#e56a78;color:#8f1d32}
.answer.wrong-answer .letter{background:#ce455b;color:white}
.feedback{padding:15px 18px;border-radius:16px;margin-top:17px;line-height:1.45}
.feedback p{margin:5px 0}
.feedback-good{background:#effaf3;border:1px solid #c8ecd7;color:#216d49}
.feedback-bad{background:#fff3f4;border:1px solid #f3ced3;color:#9a2a3e}
.feedback-explain{font-size:13px;color:#4c6074;line-height:1.5;margin-top:10px!important}
.checking{background:#eff4ff;color:#2d5488;border-radius:14px;padding:14px;margin-top:16px}
.subtle-help{margin-top:16px}
button.primary:disabled{background:#a9b9d5;box-shadow:none}
.quiz-actions{align-items:stretch}
.quiz-actions button{min-height:49px}
.centered{text-align:center;max-width:670px;margin:auto}
.centered-text{text-align:center;margin-inline:auto}
.big-emoji{font-size:70px;margin:8px 0 15px}
.result{padding:28px 20px}
.result-actions{justify-content:center}
.result-actions button{flex:0 1 auto}
.table-scroll{overflow-x:auto}
.position{font-size:19px!important}
.board-error{color:#b52e48;font-size:13px}
.admin-steps{color:#5e7192;line-height:2;font-size:14px}
@media(max-width:650px){.hero-trophy{font-size:85px}.hero-coins{font-size:33px}.score-progress{font-size:11px}.answer{padding:13px 12px;gap:9px}.question{font-size:22px}.feedback{padding:14px}.quiz-actions{gap:10px}.quiz-actions button{width:100%}}

/* Fallback tipográfico para conexión sin Google Fonts */
.display,.section-title,.question,.board-title,.score,.brand strong{font-family:Outfit,'DM Sans',system-ui,-apple-system,'Segoe UI',sans-serif}

/* v3: Inicio limpio sin los tres recuadros y adaptación optimizada a teléfonos. */
.instructions{display:none!important}
#view{width:100%;min-width:0}
.topbar .brand{min-width:0}
.topbar .brand strong,.topbar .brand small{overflow-wrap:anywhere}
.table-scroll{-webkit-overflow-scrolling:touch}
@media(max-width:700px){
  .shell{width:100%;padding:12px 14px 24px;max-width:100%}
  .topbar{gap:10px;padding:2px 0 17px;min-width:0}
  .brand{flex:1;min-width:0}
  .brandmark{width:40px;height:40px;border-radius:11px}
  .navbtn{flex-shrink:0;max-width:128px;min-height:42px;padding:8px 11px}
  .panel{padding:23px 19px;border-radius:22px;max-width:100%}
  .hero{grid-template-columns:minmax(0,1fr);gap:0}
  .hero>div:first-child{min-width:0}
  .hero-art{display:none}
  .display{font-size:clamp(35px,10.4vw,54px);margin:14px 0 12px;line-height:1.04}
  .subtitle{font-size:14px;line-height:1.55}
  .eyebrow{max-width:100%;font-size:10px;line-height:1.4;letter-spacing:.055em}
  .pills{gap:6px;margin:16px 0 13px}
  .pill{font-size:11px;padding:8px 10px}
  .formbox{max-width:none;margin-top:19px}
  .input{min-height:49px;font-size:16px}
  .primary,.secondary,.outline-danger{min-height:48px}
  .formbox .primary{margin-top:11px}
  .note{line-height:1.5}
  .board{margin-top:14px;padding:18px 15px}
  .board-head{flex-wrap:wrap;align-items:flex-start;gap:10px}
  .board-title{font-size:19px}
  .stats{flex-wrap:wrap}
  .table-scroll{overflow:visible}
  .table{display:block;width:100%}
  .table thead{display:none}
  .table tbody{display:grid;gap:9px}
  .table tbody tr{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;column-gap:9px;row-gap:3px;background:#f8faff;border:1px solid #e6edf7;border-radius:14px;padding:12px}
  .table tbody td{border:0;padding:0;font-size:13px;min-width:0}
  .table tbody td:first-child{grid-column:1;grid-row:1 / span 2;text-align:center}
  .table tbody td:nth-child(2){grid-column:2;grid-row:1;overflow-wrap:anywhere}
  .table tbody td:nth-child(3){grid-column:3;grid-row:1;text-align:right;white-space:nowrap;font-weight:850}
  .table tbody td:last-child{grid-column:2 / 4;grid-row:2;text-align:left;color:#637896;font-size:11px}
  .position{font-size:18px!important}
  .quiz-panel{padding:22px 17px}
  .quiz-header{gap:8px}
  .section-title{font-size:clamp(21px,6vw,27px);line-height:1.22}
  .question{font-size:clamp(19px,5.3vw,24px);line-height:1.35;margin:12px 0 17px}
  .answer{min-height:58px;padding:12px 11px;font-size:14px;line-height:1.35;gap:10px;border-radius:14px}
  .letter{min-width:38px;padding:9px}
  .feedback{font-size:14px}
  .quiz-actions{margin-top:17px}
  .quiz-actions button{min-height:48px}
  .result{padding:24px 16px}
  .score{font-size:clamp(68px,19vw,102px)}
  .admin-grid{grid-template-columns:1fr;gap:12px}
  .admin-side{padding:17px}
  .footer{padding-top:20px;flex-wrap:wrap;gap:5px}
}
@media(max-width:375px){
  .shell{padding:9px 10px 20px}
  .topbar{gap:7px}
  .brandmark{width:35px;height:35px}
  .brand strong{font-size:9.5px;letter-spacing:0}
  .brand small{font-size:9px}
  .navbtn{padding:8px 7px;font-size:10px;min-height:39px}
  .panel{padding:20px 15px;border-radius:18px}
  .display{font-size:clamp(33px,10.8vw,42px)}
  .pill{font-size:10px;padding:7px 9px}
  .board{padding:17px 12px}
  .table tbody tr{grid-template-columns:32px minmax(0,1fr) auto;padding:11px 9px;column-gap:7px}
  .table tbody td{font-size:12px}
  .answer{font-size:13px}
  .counter{font-size:11px}
}
