:root{font-family:system-ui,Segoe UI,sans-serif;color:#eef7ff;background:#050d23}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(ellipse at 65% 12%,#203c79 0,transparent 42%),linear-gradient(#050d23,#091735);overflow-x:hidden}.stars{position:fixed;inset:0;pointer-events:none;opacity:.5;background-image:radial-gradient(white 1px,transparent 1px),radial-gradient(#80caff 1px,transparent 1px);background-size:83px 83px,137px 137px;background-position:0 0,40px 25px}.shell{position:relative;max-width:900px;margin:auto;padding:22px 16px 50px}header{display:flex;align-items:center;gap:18px;margin-bottom:20px;background:#101f40b8;border:1px solid #34558d;border-radius:20px;padding:15px}header img{width:90px;height:90px;object-fit:contain;background:white;border-radius:12px;padding:5px}header small{color:#9ed8ff;font-weight:700;letter-spacing:1px}h1{font-size:clamp(24px,4vw,36px);margin:4px 0}h1 span{color:#63e9d6}header p{margin:0;color:#c3d5f5}.panel{background:#101e3be8;border:1px solid #395b92;border-radius:24px;padding:clamp(20px,4vw,36px);box-shadow:0 18px 60px #0005;text-align:center}.panel h2{font-size:clamp(22px,3vw,30px);margin:10px 0 16px}.panel p{line-height:1.6;color:#d0dcf1}.hero{font-size:75px;filter:drop-shadow(0 0 20px #00d6ff)}label{display:block;text-align:left;margin:14px 0 8px;color:#d5e8ff;font-weight:600}input:not([type=checkbox]),select{background:#081631;border:1px solid #5776a6;border-radius:12px;color:white;padding:14px;font:inherit;width:100%}.settings{display:flex;flex-wrap:wrap;gap:18px;align-items:center;justify-content:center;margin:14px 0}.settings label{flex:1;min-width:220px}.settings input{accent-color:#36cbbf}.settings select{margin-top:8px}button{background:linear-gradient(120deg,#19bdab,#00a6d7);color:#04162b;border:0;border-radius:12px;padding:13px 23px;font-size:16px;font-weight:800;cursor:pointer;margin:8px 4px;transition:transform .2s}button:hover{transform:translateY(-2px)}button.secondary{background:#263c62;color:#eaf5ff;border:1px solid #59749b}.hint{font-size:13px}.hud{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;padding:15px;border-radius:14px;background:#102348;font-weight:700;margin-bottom:12px}.space{height:175px;position:relative;overflow:hidden;border:1px solid #395c94;border-radius:20px;margin-bottom:14px;background:radial-gradient(circle at 80% 50%,#28569c,#06112e 65%)}#ship{position:absolute;left:15%;top:50px;font-size:68px;transform:rotate(45deg);transition:top .3s,left .5s;z-index:2;filter:drop-shadow(0 0 14px #56dfff)}#obstacle{position:absolute;right:15%;top:52px;font-size:45px;animation:float 2s ease-in-out infinite alternate}.track{position:absolute;bottom:23px;width:100%;border-bottom:2px dashed #4b85b8;opacity:.4}@keyframes float{to{transform:translateY(-24px) rotate(20deg)}}.tag{display:inline-block;border-radius:100px;background:#244b80;color:#8ff1ea;padding:6px 15px;font-size:13px;font-weight:800}pre{text-align:left;white-space:pre-wrap;overflow-wrap:anywhere;background:#07142c;border:1px solid #2f4b79;border-radius:12px;padding:17px;color:#bde8ff;line-height:1.55;font-size:13px}#answers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:23px 0 10px}#answers button{margin:0;text-align:left;color:#f2f7ff;background:#1a3159;border:1px solid #45699b;min-height:64px;font-weight:600}#answers button:hover:not(:disabled){background:#294d82}#answers button.correct{background:#136d56;border-color:#42e3ae}#answers button.wrong{background:#8a2941;border-color:#ff8096}#answers button:disabled{cursor:default;opacity:.9}#feedback{min-height:48px;padding:10px;font-weight:700;line-height:1.5}.actions{display:flex;justify-content:center;flex-wrap:wrap}#stats{font-size:20px;font-weight:700;line-height:2}footer{text-align:center;color:#91a9d1;padding:25px;font-size:13px}[hidden]{display:none!important}@media(max-width:600px){header{gap:10px;padding:12px}header img{width:64px;height:64px}header small{font-size:10px}header p{font-size:12px}#answers{grid-template-columns:1fr}.space{height:135px}#ship{font-size:52px;top:36px}#obstacle{font-size:35px}.hud{font-size:13px}.shell{padding:12px 10px 30px}}

/* Campo de tiro espacial */
.quiz-head{margin-bottom:12px}
#battlefield{position:relative;height:clamp(350px,54vw,510px);overflow:hidden;border:2px solid #3674bc;border-radius:22px;background:radial-gradient(ellipse at 50% 20%,#16366d,#060d24 68%);touch-action:none;user-select:none;outline-offset:3px}
#battlefield:before{content:"";position:absolute;inset:0;background-image:radial-gradient(white 1px,transparent 1px);background-size:31px 37px;opacity:.18;pointer-events:none}
#targets,#shots{position:absolute;inset:0;pointer-events:none}
.target{position:absolute;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;min-width:110px;max-width:42%;min-height:48px;padding:9px 12px;border:2px solid #6ee7ff;border-radius:16px;background:#142e61;color:white;font-size:clamp(11px,1.7vw,15px);font-weight:700;line-height:1.25;text-align:center;box-shadow:0 0 16px #36b8ff70;overflow-wrap:anywhere}
.target.correct{background:#116b42;border-color:#55f7a2}
.target.wrong{background:#922d45;border-color:#ff6b85}
.target.muted{opacity:.45}
#ship{position:absolute;bottom:4%;top:auto!important;left:50%;transform:translateX(-50%) rotate(-45deg);font-size:48px;filter:drop-shadow(0 0 10px #4ad8ff);z-index:3;pointer-events:none;transition:left .06s linear}
.laser{position:absolute;width:7px;height:25px;border-radius:9px;background:#fff46b;box-shadow:0 0 12px 5px #ff9b24;transform:translate(-50%,-50%);z-index:2}
.controls{display:flex;gap:10px;justify-content:center;margin:12px 0 18px}
.controls button{flex:1;max-width:220px;touch-action:manipulation}
#fire{background:#ef6541;color:white;font-weight:900}
#feedback{min-height:42px;font-weight:700}
@media(max-width:550px){.target{max-width:44%;min-width:0;padding:7px 6px;font-size:11px;min-height:58px}#battlefield{height:420px}.controls button{font-size:12px;padding:12px 5px}#ship{font-size:42px}}
