/* Shared reading style for every exercise. */
body, button, input, textarea, summary,
#gameScr *, #chapScr *, #listScr *, #endOv * {
  font-family: "Segoe UI", Arial, sans-serif !important;
  letter-spacing: normal !important;
  text-shadow: none !important;
}
#gameScr .qbig {font-size:clamp(19px,2vw,25px);font-weight:650;line-height:1.4;color:#213b60;text-wrap:wrap;}
#gameScr .cards3 {
  grid-template-columns:repeat(3,minmax(0,1fr));width:100%;max-width:760px;gap:14px;
}
#gameScr .cards3:has(> .opt:nth-child(2):last-child) {
  grid-template-columns:repeat(2,minmax(0,1fr));max-width:580px;gap:16px;
}
#gameScr .cards3 .opt.txt,
#gameScr .cards3:has(> .opt:nth-child(2):last-child) .opt.txt {
  min-height:76px;max-height:105px;height:auto;aspect-ratio:auto;padding:12px 14px 34px;
  align-items:center;justify-content:center;text-align:center;
}
#gameScr .opt .otext {
  width:100%;font-size:17px;font-weight:600;line-height:1.35;
  color:#243449;text-align:center;white-space:normal;word-break:normal;
  overflow-wrap:break-word;text-wrap:wrap;
}
#gameScr .cards3 .opt.txt .radio,
#gameScr .cards3:has(> .opt:nth-child(2):last-child) .opt.txt .radio {
  left:50%;right:auto;top:auto;bottom:7px;transform:translateX(-50%);width:22px;height:22px;font-size:13px;
}
#gameScr .mitem,#gameScr .line,#gameScr .chip,#gameScr .reflection-row {
  font-size:18px;font-weight:600;line-height:1.4;word-break:normal;overflow-wrap:break-word;
}
#gameScr .qsub,#gameScr .hintline,#gameScr .qpill {font-size:15px;font-weight:500;line-height:1.4;}
@media(max-width:560px){
  #gameScr .cards3 .opt.txt,
  #gameScr .cards3:has(> .opt:nth-child(2):last-child) .opt.txt {padding:10px 12px 30px;min-height:68px;}
  #gameScr .opt .otext,#gameScr .mitem,#gameScr .line,#gameScr .chip,#gameScr .reflection-row {font-size:15.5px;}
  #gameScr .cards3 .opt.txt .radio,
  #gameScr .cards3:has(> .opt:nth-child(2):last-child) .opt.txt .radio {width:20px;height:20px;font-size:12px;bottom:5px;}
}

@media(min-width:561px){
 #gameScr .cards3{grid-template-columns:repeat(3,minmax(0,1fr));max-width:800px;gap:14px;}
 #gameScr .cards3:has(> .opt:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr));max-width:580px;gap:16px;}
 #gameScr .cards3 .opt.txt,#gameScr .cards3:has(> .opt:nth-child(2):last-child) .opt.txt{min-height:76px;padding:12px 14px 34px;align-items:center;text-align:center;}
 #gameScr .opt .otext{text-align:center;font-size:17px;line-height:1.35;}
 #gameScr .cards3 .opt.txt .radio,#gameScr .cards3:has(> .opt:nth-child(2):last-child) .opt.txt .radio{left:50%;right:auto;top:auto;bottom:7px;transform:translateX(-50%);width:22px;height:22px;}
}



.total-score{margin:12px auto;padding:10px 22px;width:fit-content;background:#fff;border:2px solid #d8d1f7;border-radius:24px;color:#43327d;font:700 18px "Segoe UI",sans-serif;text-align:center}.score-note{text-align:center;color:#31426b;font:14px "Segoe UI",sans-serif;margin:0 0 18px}.game-total{margin:4px auto;padding:4px 16px;font-size:14px;flex-shrink:0}

#listCards .pcard .ic{font-family:"Segoe UI Emoji","Segoe UI Symbol",sans-serif!important;font-size:27px;display:flex;align-items:center;justify-content:center;flex-shrink:0} #listSubBadge{line-height:1.6;white-space:normal} #listCards .dd{font-size:13px;line-height:1.5}

/* ==========================================================================
   FULL MOBILE, TABLET & DESKTOP RESPONSIVE ENHANCEMENTS (GK EXPLORER 4)
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { max-width: 100vw; overflow-x: hidden; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; image-rendering: -webkit-optimize-contrast; }

/* Crisp HD question image presentation on all screen sizes */
.q-img, .quiz-img, .gbody img {
  max-height: clamp(160px, 28vh, 270px) !important;
  width: auto !important;
  max-width: min(100%, 460px) !important;
  object-fit: contain !important;
  margin: 0.5rem auto !important;
  display: block !important;
  border-radius: 14px !important;
  box-shadow: 0 6px 20px rgba(0,0,0,0.14) !important;
  background: #ffffff !important;
  padding: 6px !important;
}

@media (max-width: 991px) {
  .hub { padding: 12px 10px 32px !important; }
  .pcards {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
    gap: 14px !important;
    padding: 8px !important;
  }
  .card-shell {
    width: 98vw !important;
    max-width: 98vw !important;
    min-height: calc(100dvh - 16px) !important;
    margin: 8px auto !important;
    border-radius: 18px !important;
  }
}

@media (max-width: 640px) {
  .topbar {
    flex-wrap: wrap !important;
    gap: 6px !important;
    padding: 8px 10px !important;
  }
  .topbar .gname {
    font-size: 0.95rem !important;
    max-width: 48vw !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .topbar .dots { display: none !important; }
  .gbody {
    padding: 10px 10px 16px !important;
    overflow-y: auto !important;
  }
  .q-img, .quiz-img, .gbody img {
    max-height: 180px !important;
    max-width: 92vw !important;
  }
  .bottombar {
    flex-wrap: wrap !important;
    gap: 8px !important;
    padding: 8px 10px !important;
    justify-content: space-between !important;
  }
  .bbtn {
    padding: 8px 14px !important;
    font-size: 0.88rem !important;
    min-height: 40px !important;
  }
  .pcards {
    grid-template-columns: 1fr !important;
  }
}
