
/* DigitalEdge Black‑Neon Theme (Animated/Bold)
   Colors: Orange‑Red #ff4500, Neon Green #39ff14, Base #0b0f14
   Fonts: Inter, Orbitron (already linked in HTML)
*/

:root{
  --bg:#0b0f14;
  --panel:#0e141c;
  --panel-2:#0c1219;
  --text:#e6eefb;
  --muted:#a7b4c9;
  --dim:#7f8aa3;
  --brand:#ff4500;
  --accent:#39ff14;
  --ok:#39ff14;
  --warn:#ff9d00;
  --danger:#ff2d55;
  --ring1:0 0 14px rgba(255,69,0,.55), 0 0 3px rgba(255,69,0,.4), inset 0 0 24px rgba(255,69,0,.15);
  --ring2:0 0 14px rgba(57,255,20,.6), 0 0 3px rgba(57,255,20,.45), inset 0 0 24px rgba(57,255,20,.18);
  --ringBlue:0 0 14px rgba(0,180,255,.55), 0 0 3px rgba(0,180,255,.4);
  --radius:18px;
  --card-pad:20px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1200px 800px at 80% -10%, rgba(57,255,20,.08), transparent 60%),
              radial-gradient(900px 600px at -10% 40%, rgba(255,69,0,.08), transparent 60%),
              var(--bg);
  color:var(--text);
  line-height:1.45;
}

/* ---- Header ---- */
.top{
  display:flex; align-items:center; justify-content:space-between;
  padding:18px 22px;
  position:sticky; top:0; z-index:20;
  background: linear-gradient(180deg, rgba(11,15,20,.96), rgba(11,15,20,.78));
  backdrop-filter: blur(8px);
  border-bottom:1px solid rgba(255,255,255,.05);
  box-shadow: 0 6px 24px rgba(0,0,0,.35);
}

.left{display:flex; flex-direction:column; gap:4px}
.brand{display:flex; align-items:center; gap:10px; font-weight:800; letter-spacing:.4px}
.brand .dot{
  width:12px; height:12px; border-radius:50%;
  background: radial-gradient(circle at 30% 30%, #fff, var(--brand) 35%, rgba(255,69,0,.4) 60%);
  box-shadow: var(--ring1);
}
.brand .name{ font-family: Orbitron, Inter, sans-serif; text-transform:uppercase; font-size:18px; }

.title{font-weight:800; font-size:22px}
.subtitle{color:var(--muted); font-size:13px}

.right{display:flex; align-items:center; gap:12px}

/* ---- Buttons & Chips ---- */
.btn, .chip{
  --glow: var(--ring1);
  display:inline-flex; align-items:center; justify-content:center;
  border:1px solid rgba(255,255,255,.12);
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  color:var(--text); text-decoration:none;
  padding:10px 14px; border-radius:999px; font-weight:600; cursor:pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.btn:hover, .chip:hover{
  transform:translateY(-1px);
  border-color: rgba(255,255,255,.25);
  box-shadow: var(--glow);
}
.btn.ghost{
  background: transparent;
  border-color: rgba(255,255,255,.16);
}
.btn.ok{ --glow: var(--ring2); border-color: rgba(57,255,20,.4); }
.btn.warn{ --glow: var(--ring1); border-color: rgba(255,157,0,.4); }

.chip{ font-size:12px; padding:8px 12px }
.lang .chip[data-lang="en"]:hover{ --glow: var(--ring2) }
.lang .chip[data-lang="es"]:hover{ --glow: var(--ring1) }

/* Back button style emphasis */
.btn.back{ --glow: var(--ring1); }

/* ---- LIVE pill ---- */
.live{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px; border-radius:999px;
  font-weight:800; letter-spacing:.6px;
  background:rgba(255,69,0,.1);
  border:1px solid rgba(255,69,0,.35);
  box-shadow: var(--ring1);
  text-transform:uppercase; font-size:12px;
  position:relative;
}
.live::before{
  content:""; width:8px; height:8px; border-radius:50%;
  background: #ff4500; box-shadow: 0 0 12px #ff4500;
  animation:pulse 1.3s infinite;
}
@keyframes pulse{
  0%{ transform:scale(.9); box-shadow:0 0 6px rgba(255,69,0,.6); }
  70%{ transform:scale(1.2); box-shadow:0 0 18px rgba(255,69,0,.9); }
  100%{ transform:scale(.9); box-shadow:0 0 6px rgba(255,69,0,.6); }
}

/* ---- Layout ---- */
.wrap{ max-width: 980px; margin: 26px auto 80px; padding: 0 18px; }
.tabs{ display:flex; gap:10px; margin-bottom:16px }
.tab{
  border:none; cursor:pointer; font-weight:700; padding:10px 14px; border-radius:999px;
  color:var(--text); background: rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.1);
  transition: box-shadow .2s ease, transform .12s ease, background .2s ease;
}
.tab:hover{ box-shadow: var(--ringBlue); transform: translateY(-1px); }
.tab.active{ background: rgba(57,255,20,.09); border-color: rgba(57,255,20,.35); box-shadow: var(--ring2); }

.panel{ display:none; }
.panel.active{ display:block; }

.card{
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border:1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: var(--card-pad);
  box-shadow: 0 8px 28px rgba(0,0,0,.45), inset 0 0 40px rgba(255,255,255,.02);
}

/* ---- Progress ---- */
.progress{ height:10px; background:rgba(255,255,255,.08); border-radius:999px; overflow:hidden; }
.progress .bar{ height:100%; width:0%; background: linear-gradient(90deg, #39ff14, #ff4500);
  box-shadow: 0 0 14px rgba(57,255,20,.7), 0 0 22px rgba(255,69,0,.5);
  transition: width .35s ease; }

/* ---- Controls Row ---- */
.row{ display:flex; align-items:center; gap:12px; margin:12px 0 }
.row-ctl{ flex-wrap:wrap; gap:18px }
.group{ display:flex; align-items:center; gap:8px; color:var(--muted); font-size:13px }
label{ color:var(--muted) }
select, input[type="number"]{
  background:#0a1017; color:var(--text); border:1px solid rgba(255,255,255,.15);
  border-radius:12px; padding:10px 12px; outline:none;
  transition: box-shadow .2s ease, border-color .2s ease;
}
select:hover, input[type="number"]:hover{ border-color: rgba(255,255,255,.25); box-shadow: var(--ringBlue); }
button.mini{ padding:8px 12px }

/* ---- Question ---- */
.qhead{ display:flex; align-items:center; gap:10px; margin-top:8px }
.pill{
  padding:6px 10px; border-radius:999px; font-weight:700; letter-spacing:.4px;
  background: rgba(57,255,20,.1); border:1px solid rgba(57,255,20,.35); color: var(--text);
  box-shadow: var(--ring2);
}
.pill.ghost{ background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.15); box-shadow: none; color:#cfe6ff }
.sep{ flex:1 1 auto }
#qMeta{ color: var(--dim); font-weight:700 }

.qtext{ margin:12px 0 8px; font-size:22px; font-weight:800; letter-spacing:.2px }

.opts{ display:grid; gap:10px; margin:12px 0 16px }
.opts .opt{ cursor:pointer;
  display:flex; gap:12px; align-items:flex-start;
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.1);
  border-radius:14px; padding:12px 14px;
  transition: box-shadow .2s ease, transform .12s ease, border-color .2s ease, background .2s ease;
}
.opts .opt:hover{ transform: translateY(-1px); border-color: rgba(57,255,20,.3); box-shadow: var(--ring2); background: rgba(57,255,20,.06); }
.opts input[type="radio"]{ accent-color:#39ff14; transform: translateY(2px); }
.opts .label{ color:#dbe8ff }

/* ---- Footer Buttons ---- */
.buttons{ display:flex; flex-wrap:wrap; gap:10px; margin-top:6px }
.btn.warn{ color:#fff; background:linear-gradient(180deg, rgba(255,157,0,.18), rgba(255,157,0,.08)); }
.btn.ok{ color:#0b1d0e; background:linear-gradient(180deg, rgba(57,255,20,.22), rgba(57,255,20,.1)); }

/* ---- Explanation ---- */
.explain{
  margin-top:12px; padding:14px; border-radius:12px;
  background: rgba(0,180,255,.08); border:1px solid rgba(0,180,255,.28);
  color:#d9f2ff; box-shadow: 0 0 14px rgba(0,180,255,.35);
}

/* ---- Footer ---- */
.foot{
  max-width:980px; margin:24px auto 60px; padding:0 18px; color:var(--dim);
  text-align:left;
}

/* ---- Utilities ---- */
.hidden{ display:none !important; }

/* ---- Responsive ---- */
@media (max-width:640px){
  .title{ font-size:18px }
  .wrap{ margin-top:18px }
  .qtext{ font-size:19px }
}


/* Selected option state */
.opts .opt.picked{
  border-color: rgba(57,255,20,.45);
  box-shadow: 0 0 14px rgba(57,255,20,.5), inset 0 0 10px rgba(57,255,20,.08);
  background: rgba(57,255,20,.08);
}

/* Disabled buttons */
.btn[disabled]{
  opacity:.45;
  pointer-events:none;
  filter:grayscale(.3);
}


/* Answer feedback states */
.opts .opt.correctRow{
  border-color: rgba(57,255,20,.6);
  box-shadow: 0 0 16px rgba(57,255,20,.8), inset 0 0 12px rgba(57,255,20,.15);
  background: rgba(57,255,20,.12);
  color:#eaffea;
}
.opts .opt.wrongRow{
  border-color: rgba(255,69,0,.55);
  box-shadow: 0 0 16px rgba(255,69,0,.7), inset 0 0 12px rgba(255,69,0,.15);
  background: rgba(255,69,0,.08);
  color:#fff5f5;
}
/* Make Check Answer button always look clickable */
#checkBtn{
  cursor:pointer;
  opacity:1;
  filter:none;
}
#checkBtn:active{
  transform:scale(.98);
}


/* Interactivity hardening */
.opts{ position:relative; z-index:1; }
.buttons{ position:relative; z-index:2; }
.opts .opt{ cursor:pointer; }
.btn, .btn *{ pointer-events:auto !important; }
#checkBtn{ cursor:pointer; }


/* Radio‑free rows are fully clickable */
.opts .opt{ cursor:pointer; }
