/* 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(21px,2vw,27px);font-weight:650;line-height:1.45;color:#213b60;text-wrap:wrap;}
#gameScr .cards3 {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  width: 100% !important;
  max-width: 920px !important;
  gap: 18px !important;
}
#gameScr .cards3:has(> .opt:nth-child(2):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  max-width: 640px !important;
  gap: 20px !important;
}
#gameScr .cards3 .opt.txt,
#gameScr .cards3:has(> .opt:nth-child(2):last-child) .opt.txt {
  min-height: 140px !important;
  padding: 18px 14px 52px !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  flex-direction: column !important;
  border-radius: 18px !important;
}
#gameScr .opt .otext {
  width: 100% !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: #243449 !important;
  text-align: center !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}
#gameScr .cards3 .opt.txt .radio,
#gameScr .cards3:has(> .opt:nth-child(2):last-child) .opt.txt .radio {
  left: 50% !important;
  right: auto !important;
  top: auto !important;
  bottom: 10px !important;
  transform: translateX(-50%) !important;
  width: 28px !important;
  height: 28px !important;
}
#gameScr .mitem,#gameScr .line,#gameScr .chip,#gameScr .reflection-row {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  word-break: normal;
  overflow-wrap: break-word;
}
#gameScr .qsub,#gameScr .hintline,#gameScr .qpill {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.45;
}

/* Mobile 2-up + 1-down layout (exact GK-5 / GK-4 pattern) */
@media (max-width: 640px) {
  #gameScr .cards3,
  .cards3 {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px 10px !important;
    width: 100% !important;
    max-width: 440px !important;
    margin: 0 auto !important;
    justify-content: center !important;
  }

  /* Exactly 3 options: 2 on top, 1 centered underneath with matching width */
  #gameScr .cards3 .opt:nth-child(3):last-child,
  .cards3 .opt:nth-child(3):last-child,
  #gameScr .cards3:has(> .opt) .opt:nth-child(3):last-child {
    grid-column: 1 / -1 !important;
    width: calc(50% - 5px) !important;
    justify-self: center !important;
  }

  #gameScr .cards3:has(> .opt:nth-child(2):last-child),
  .cards3:has(> .opt:nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    max-width: 400px !important;
    margin: 0 auto !important;
  }

  #gameScr .cards3 .opt.txt,
  #gameScr .cards3:has(> .opt:nth-child(2):last-child) .opt.txt,
  .opt.txt {
    padding: 12px 8px 38px !important;
    min-height: 86px !important;
    border-radius: 18px !important;
    border-width: 3px !important;
    border-bottom-width: 7px !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  #gameScr .opt .otext,
  #gameScr .cards3 .opt.txt .otext,
  .opt .otext {
    font-size: clamp(14px, 3.8vw, 16.5px) !important;
    padding: 0 4px !important;
    line-height: 1.25 !important;
    text-align: center !important;
  }

  #gameScr .cards3 .opt.txt .radio,
  #gameScr .cards3:has(> .opt:nth-child(2):last-child) .opt.txt .radio,
  .radio {
    width: 24px !important;
    height: 24px !important;
    bottom: 8px !important;
    left: 50% !important;
    right: auto !important;
    top: auto !important;
    transform: translateX(-50%) !important;
  }

  #gameScr .mitem, #gameScr .line, #gameScr .chip, #gameScr .reflection-row {
    font-size: 17px;
  }
}


.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}
