#gq2-app.gq2-app{max-width:900px;margin:28px auto;padding:0 16px;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#16233b}
#gq2-app *{box-sizing:border-box}
.gq2-start,.gq2-game,.gq2-end{background:#fff;border-radius:28px;padding:28px;box-shadow:0 18px 45px rgba(22,35,59,.12);border:1px solid #eef1f7}
.gq2-start{text-align:center}
.gq2-badge{display:inline-block;background:#fff0c8;border-radius:999px;padding:9px 16px;font-weight:800;color:#795500;margin-bottom:12px}
.gq2-start h2{font-size:clamp(28px,5vw,46px);line-height:1.05;margin:8px 0 12px}
.gq2-start p{font-size:17px;color:#667085;margin:0 auto 22px;max-width:650px}
.gq2-name-label{display:block;font-weight:800;text-align:left;max-width:620px;margin:0 auto 7px}
.gq2-name{width:100%;max-width:620px;padding:15px 18px;border:2px solid #e4e8f0;border-radius:16px;font-size:18px;outline:none}
.gq2-name:focus{border-color:#4c8bf5}
.gq2-level-title{font-weight:900;font-size:19px;margin:25px 0 12px}
.gq2-levels{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;max-width:760px;margin:auto}
.gq2-level{border:2px solid #e8ebf2;background:#fff;border-radius:20px;padding:18px 12px;min-height:110px;transition:.18s}
.gq2-level.active{border-color:#ffb81c;box-shadow:0 0 0 3px #fff0bd}
.gq2-level span{display:block;font-size:28px}.gq2-level strong{display:block;font-size:20px}.gq2-level small{color:#6b7280;display:block;margin-top:3px}
.gq2-start-info{margin:20px 0;font-weight:800}
.gq2-primary{border:0;border-radius:999px;background:linear-gradient(135deg,#ff3f55,#ff7b3d);color:#fff;font-weight:900;font-size:18px;padding:16px 28px;cursor:pointer;box-shadow:0 7px 0 #c52d3c}
.gq2-primary:active{transform:translateY(3px);box-shadow:0 4px 0 #c52d3c}
.gq2-top{display:flex;justify-content:space-between;align-items:center;font-size:22px;font-weight:900}
.gq2-lives{letter-spacing:2px}.gq2-score{white-space:nowrap}
.gq2-progress{height:9px;background:#edf0f5;border-radius:99px;overflow:hidden;margin:14px 0 18px}
.gq2-progress span{display:block;height:100%;width:0;background:linear-gradient(90deg,#ffbd3f,#ff4c58);transition:width .3s}
.gq2-meta{display:flex;justify-content:space-between;align-items:center;font-weight:800;margin-bottom:14px}
.gq2-level-pill{background:#eaf2ff;color:#2459a9;padding:9px 14px;border-radius:999px}

/* One predictable image window for every source image. The original file is
   contained inside it, never stretched or cropped by the quiz. */
.gq2-image-wrap{width:100%;aspect-ratio:4/3;height:auto;min-height:0;max-height:440px;background:#f7f5f1;border-radius:24px;overflow:hidden;display:flex;align-items:center;justify-content:center;position:relative}
.gq2-image{width:100%;height:100%;object-fit:contain;object-position:center center;display:block;transition:filter .35s,transform .35s;max-width:100%;max-height:100%}
.gq2-image.gq2-blur{filter:blur(var(--gq2-blur,2px))}
.gq2-image.gq2-puzzle{filter:blur(3px);transform:scale(var(--gq2-puzzle-scale,1.1));image-rendering:auto}
.gq2-game h3{text-align:center;font-size:32px;margin:18px 0 14px}
.gq2-options{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.gq2-option{border:0;border-radius:16px;color:#fff;font-weight:900;font-size:18px;padding:16px 12px;cursor:pointer;min-height:58px;box-shadow:0 5px 0 rgba(0,0,0,.22);transition:.12s}
.gq2-option:hover{transform:translateY(-1px)}.gq2-option:active{transform:translateY(3px);box-shadow:0 2px 0 rgba(0,0,0,.22)}
.gq2-option.blue{background:#3e82f7}.gq2-option.green{background:#2ea99b}.gq2-option.orange{background:#f5a35b}.gq2-option.purple{background:#9957df}
.gq2-option.correct{outline:4px solid #2bb673;filter:saturate(1.2)}.gq2-option.wrong{outline:4px solid #e33d54}
.gq2-feedback{text-align:center;min-height:28px;font-size:18px;font-weight:900;margin-top:15px}.gq2-feedback.good{color:#16864f}.gq2-feedback.bad{color:#d33b4e}
.gq2-end{text-align:center}.gq2-end-emoji{font-size:58px}.gq2-end h2{font-size:36px;margin:5px}.gq2-final-name{font-size:20px}.gq2-final-score{font-size:46px;font-weight:1000;margin:12px}.gq2-final-round{font-size:18px;color:#667085;margin-bottom:18px}.gq2-best{background:#f6f8fb;border-radius:18px;padding:15px;margin:0 auto 22px;max-width:480px}
@media(max-width:650px){
 .gq2-start,.gq2-game,.gq2-end{padding:18px;border-radius:20px}
 .gq2-levels{grid-template-columns:1fr}
 .gq2-level{min-height:78px;display:grid;grid-template-columns:42px 1fr;grid-template-rows:1fr 1fr;text-align:left;align-items:center}
 .gq2-level span{grid-row:1/3;align-self:center}
 .gq2-image-wrap{aspect-ratio:4/3;max-height:360px;border-radius:20px}
 .gq2-options{grid-template-columns:1fr}
 .gq2-game h3{font-size:29px}
 .gq2-option{font-size:18px}
}

/* Real 3x3 mosaic used only in Level 3. The visible tiles show exact portions of the original image. */
.gq2-puzzle-grid{position:absolute;inset:0;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);gap:4px;background:#fff;padding:4px}
.gq2-puzzle-tile{min-width:0;min-height:0;background-color:#e9edf2;background-repeat:no-repeat;background-size:300% 300%;border-radius:5px;overflow:hidden}
.gq2-puzzle-tile:not(.is-visible){background-image:none!important;background-color:#e2e6eb}
.gq2-puzzle-tile.is-visible{box-shadow:inset 0 0 0 1px rgba(255,255,255,.45)}

.gq2-new-game{display:block;margin:18px auto 0;border:2px solid #e2e7ef;background:#fff;color:#475467;border-radius:999px;padding:10px 18px;font-weight:800;cursor:pointer}
.gq2-new-game:hover{background:#f7f9fc}
.gq2-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;max-width:620px;margin:0 auto 16px}
.gq2-stat{background:#f7f9fc;border:1px solid #e7ebf2;border-radius:16px;padding:12px 8px}
.gq2-stat b{display:block;font-size:22px}.gq2-stat span{display:block;color:#667085;font-size:13px;font-weight:700;margin-top:2px}
.gq2-records{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;max-width:720px;margin:0 auto 16px}
.gq2-record{background:#fff8e6;border:1px solid #f3dfad;border-radius:16px;padding:12px 9px;text-align:left}
.gq2-record strong{display:block;font-size:14px}.gq2-record span{display:block;font-size:14px;font-weight:800;margin-top:4px;color:#344054;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:650px){.gq2-stats,.gq2-records{grid-template-columns:1fr}.gq2-record{text-align:center}}

/* v2.7.2 - Level cards: white by default, colored thick border; selected card fills with its color. */
.gq2-levels .gq2-level{
  position:relative;
  overflow:hidden;
  background:#fff !important;
  border:4px solid !important;
  color:#16233b !important;
  text-align:center;
  padding:22px 16px 18px;
  min-height:155px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow:0 7px 0 rgba(0,0,0,.10),0 10px 24px rgba(22,35,59,.10);
  transition:transform .16s,box-shadow .16s,background .16s,color .16s,border-color .16s;
}
.gq2-levels .gq2-level:nth-child(1){
  border-color:#22a85a !important;
}
.gq2-levels .gq2-level:nth-child(2){
  border-color:#e4ad00 !important;
}
.gq2-levels .gq2-level:nth-child(3){
  border-color:#d94350 !important;
}
.gq2-levels .gq2-level span{display:block;font-size:31px;line-height:1;margin-bottom:7px}
.gq2-levels .gq2-level strong{display:block;font-size:30px;line-height:1.05;letter-spacing:.2px;color:inherit !important}
.gq2-levels .gq2-level small{display:block;color:#667085 !important;font-size:14px;line-height:1.25;font-weight:700;margin-top:9px;max-width:210px}

.gq2-levels .gq2-level:hover{
  transform:translateY(-3px);
  box-shadow:0 10px 0 rgba(0,0,0,.12),0 14px 28px rgba(22,35,59,.14);
}
.gq2-levels .gq2-level:active{
  transform:translateY(2px);
  box-shadow:0 4px 0 rgba(0,0,0,.12),0 7px 16px rgba(22,35,59,.10);
}

/* Selected state: the whole card fills with its level color. */
.gq2-levels .gq2-level.active:nth-child(1){
  background:#22a85a !important;
  color:#fff !important;
}
.gq2-levels .gq2-level.active:nth-child(2){
  background:#e4ad00 !important;
  color:#fff !important;
}
.gq2-levels .gq2-level.active:nth-child(3){
  background:#d94350 !important;
  color:#fff !important;
}
.gq2-levels .gq2-level.active small,
.gq2-levels .gq2-level.active strong{
  color:#fff !important;
}
.gq2-levels .gq2-level.active{
  outline:4px solid rgba(255,255,255,.95);
  outline-offset:-9px;
  box-shadow:0 7px 0 rgba(0,0,0,.18),0 0 0 5px rgba(255,255,255,.35),0 12px 28px rgba(22,35,59,.16);
}

@media(max-width:650px){
 .gq2-levels .gq2-level{
   min-height:118px;
   display:grid;
   grid-template-columns:52px 1fr;
   grid-template-rows:auto auto;
   text-align:left;
   align-items:center;
   padding:16px 18px;
   gap:0 10px;
 }
 .gq2-levels .gq2-level span{
   grid-row:1/3;
   align-self:center;
   font-size:32px;
   margin:0;
   text-align:center;
 }
 .gq2-levels .gq2-level strong{font-size:27px;line-height:1}
 .gq2-levels .gq2-level small{font-size:13px;margin-top:5px;max-width:none}
}

/* v2.7.5 - 10 second timer and mixed question modes */
.gq2-timer-wrap{margin:4px 0 18px;text-align:center}
.gq2-timer{font-size:22px;font-weight:1000;line-height:1.1;margin-bottom:7px;font-variant-numeric:tabular-nums}
.gq2-timer-bar{height:8px;background:#edf0f5;border-radius:999px;overflow:hidden;max-width:420px;margin:0 auto}
.gq2-timer-bar span{display:block;width:100%;height:100%;background:linear-gradient(90deg,#27ae60,#f1c40f,#e74c3c);transition:width .05s linear}
.gq2-question-label{font-size:clamp(23px,4vw,32px)!important;line-height:1.15;margin:18px auto 14px!important;max-width:850px}
.gq2-image-choices{width:100%;display:grid;gap:14px;padding:4px}
.gq2-image-choices.two{grid-template-columns:repeat(2,1fr)}
.gq2-image-choices.six{grid-template-columns:repeat(3,1fr)}
.gq2-image-choice{border:4px solid #e6eaf0;background:#fff;border-radius:18px;padding:7px;cursor:pointer;box-shadow:0 5px 14px rgba(22,35,59,.10);transition:transform .15s,box-shadow .15s,border-color .15s;background-color .15s}
.gq2-image-choice img{display:block;width:100%;aspect-ratio:4/3;object-fit:contain;background:#f7f5f1;border-radius:12px}
.gq2-image-choice:hover{transform:translateY(-2px);box-shadow:0 9px 20px rgba(22,35,59,.14)}
.gq2-image-choice:active{transform:translateY(1px)}
.gq2-image-choice.correct{border-color:#22a85a;background:#eaf8ef;box-shadow:0 0 0 3px rgba(34,168,90,.18)}
.gq2-image-choice.wrong{border-color:#d94350;background:#fff0f1;box-shadow:0 0 0 3px rgba(217,67,80,.16)}
.gq2-image-choice:disabled{cursor:default}
@media(max-width:650px){
 .gq2-image-choices.six{grid-template-columns:repeat(2,1fr);gap:10px}
 .gq2-image-choices.two{gap:10px}
 .gq2-image-choice{border-width:3px;padding:5px;border-radius:14px}
 .gq2-image-choice img{border-radius:9px}
 .gq2-timer{font-size:20px}
}

.gq2-target-name{margin:12px auto 2px;padding:10px 18px;border-radius:999px;background:#fff;border:3px solid #16233b;font-size:24px;font-weight:1000;text-align:center;max-width:90%;box-shadow:0 5px 0 rgba(22,35,59,.10)}
@media(max-width:650px){.gq2-target-name{font-size:20px;padding:9px 14px}}


/* v2.7.5 - compact desktop layout + reliable hidden images */
#gq2-app .gq2-image[hidden]{display:none !important;}
@media(min-width:651px){
  #gq2-app .gq2-game{padding:22px 24px;}
  #gq2-app .gq2-progress{margin:10px 0 13px;}
  #gq2-app .gq2-meta{margin-bottom:10px;}
  #gq2-app .gq2-image-wrap{max-height:420px;}
  #gq2-app .gq2-game h3{margin:12px 0 10px;}
  #gq2-app .gq2-options{gap:10px;}
  #gq2-app .gq2-option{min-height:52px;padding:13px 10px;}
  #gq2-app .gq2-feedback{margin-top:10px;}
}


/* v2.7.6 - compact responsive game area and no empty image panel for knowledge questions */
#gq2-app .gq2-image-wrap.gq2-no-image{
  aspect-ratio:auto;
  height:0;
  min-height:0;
  max-height:0;
  margin:0;
  padding:0;
  overflow:hidden;
  background:transparent;
}
@media(min-width:651px){
  #gq2-app .gq2-game{padding:14px 18px;}
  #gq2-app .gq2-top{font-size:18px;}
  #gq2-app .gq2-progress{height:7px;margin:7px 0 9px;}
  #gq2-app .gq2-meta{margin-bottom:6px;font-size:14px;}
  #gq2-app .gq2-level-pill{padding:6px 10px;}
  #gq2-app .gq2-timer-wrap{margin:0 0 8px;}
  #gq2-app .gq2-timer{font-size:18px;margin-bottom:4px;}
  #gq2-app .gq2-timer-bar{height:6px;max-width:340px;}
  #gq2-app .gq2-image-wrap{max-height:300px;border-radius:18px;}
  #gq2-app .gq2-game h3{font-size:25px;margin:8px 0 7px;}
  #gq2-app .gq2-options{gap:8px;}
  #gq2-app .gq2-option{min-height:45px;padding:9px 10px;font-size:16px;border-radius:13px;}
  #gq2-app .gq2-feedback{min-height:22px;font-size:15px;margin-top:6px;}
  #gq2-app .gq2-new-game{margin:8px auto 0;padding:7px 15px;font-size:14px;}
  #gq2-app .gq2-image-choices{gap:8px;padding:2px;}
  #gq2-app .gq2-image-choice{border-width:3px;border-radius:13px;padding:4px;}
  #gq2-app .gq2-image-choice img{aspect-ratio:16/9;border-radius:8px;}
  #gq2-app .gq2-target-name{margin:7px auto 0;padding:7px 14px;font-size:19px;}
}
@media(max-width:650px){
  #gq2-app .gq2-image-wrap.gq2-no-image{height:0;max-height:0;}
}

/* v2.7.7 - reto "¿Cuál es la falsa?" */
#gq2-app .gq2-false-option{
  min-height:68px;
  padding:14px 16px;
  font-size:17px;
  line-height:1.25;
  text-align:left;
}
@media(max-width:650px){
  #gq2-app .gq2-false-option{min-height:58px;padding:11px 12px;font-size:15px;}
}

.gq2-feedback-card{padding:10px 12px!important;margin-top:10px}.gq2-feedback-main{font-size:1rem;margin-bottom:7px}.gq2-ficha{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;background:rgba(255,255,255,.96);border-radius:12px;padding:9px 11px;text-align:left}.gq2-ficha strong{font-size:.98rem}.gq2-ficha span{font-size:.82rem;font-weight:700;opacity:.78}.gq2-ficha small{display:block;width:100%;font-size:.8rem;line-height:1.35}.gq2-no-image{min-height:0!important;height:0!important;margin:0!important;padding:0!important;border:0!important;overflow:hidden!important}.gq2-no-image .gq2-image{display:none!important}

/* V2.8.0 — arranque, récord diario y cuenta atrás */
.gq2-start-best{margin:14px auto 18px;padding:12px 16px;border-radius:16px;background:#fff8df;border:2px solid #ffd35a;max-width:520px;display:flex;justify-content:center;align-items:center;gap:10px;flex-wrap:wrap}
.gq2-start-best strong{font-weight:900}.gq2-start-best span{font-weight:800}
.gq2-countdown{position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;background:rgba(20,28,45,.88);backdrop-filter:blur(5px)}
.gq2-countdown-number{font-size:clamp(72px,18vw,180px);font-weight:1000;color:#fff;text-align:center;padding:30px;line-height:1}
.gq2-countdown-title{display:block;font-size:clamp(22px,5vw,46px);letter-spacing:.04em;margin-bottom:22px}.gq2-countdown-number strong{display:block}
.gq2-countdown[hidden]{display:none!important}
@media(max-width:600px){.gq2-start-best{font-size:14px;margin-top:10px}.gq2-countdown-number{font-size:90px}}

/* v2.9.0 - false-question locality heading */
.gq2-false-heading{display:block;font-size:clamp(24px,4vw,38px);font-weight:1000;letter-spacing:.02em;margin-bottom:8px;color:#8a6800;background:#fff7c9;border:3px solid #f0c94b;border-radius:14px;padding:10px 14px;box-shadow:0 4px 0 rgba(240,201,75,.18)}
.gq2-false-question{display:block;font-size:clamp(22px,3.5vw,30px);line-height:1.18}

.gq2-language-title{font-weight:900;font-size:16px;margin:20px 0 9px}
.gq2-languages{display:flex;justify-content:center;gap:10px;max-width:420px;margin:0 auto 8px}
.gq2-language{flex:1;border:2px solid #dfe4ec;background:#fff;border-radius:14px;padding:12px 14px;font-size:16px;font-weight:850;cursor:pointer;transition:.18s}
.gq2-language:hover{transform:translateY(-1px)}
.gq2-language.active{background:#eaf7ef;border-color:#36a269;color:#17683f;box-shadow:0 0 0 3px rgba(54,162,105,.12)}
@media(max-width:520px){.gq2-languages{max-width:none}.gq2-language{font-size:15px;padding:11px 10px}}

/* V2.9.2b - idioma siempre visible, incluso sin hover */
.gq2-languages .gq2-language { color:#243447 !important; background:#fff !important; border:2px solid #cfd8e3 !important; opacity:1 !important; visibility:visible !important; }
.gq2-languages .gq2-language.active { color:#17683f !important; background:#eaf7ef !important; border-color:#36a269 !important; }
.gq2-languages .gq2-language:hover { color:#243447 !important; }

/* V2.9.4 - botones de idioma siempre visibles y selección inequívoca */
.gq2-languages .gq2-language {
  display:flex !important; align-items:center; justify-content:center;
  min-height:48px; color:#243447 !important; background:#fff !important;
  border:3px solid #b9c6d4 !important; opacity:1 !important; visibility:visible !important;
  box-shadow:none !important;
}
.gq2-languages .gq2-language.active {
  color:#17683f !important; background:#eaf7ef !important;
  border-color:#36a269 !important; box-shadow:0 0 0 3px rgba(54,162,105,.16) !important;
}
.gq2-languages .gq2-language:focus-visible { outline:3px solid #f0c94a; outline-offset:2px; }
