/* ============================================================
   GIFSQ Quiz Player v1.2 — Premium stylesheet
   GIFSQ green branding (#019444). Mobile-first.
   ============================================================ */
.gifsq-quizzes-wrapper{position:relative;min-height:560px;width:100%;display:flex;align-items:center;justify-content:center;margin:40px auto;font-family:var(--font-body),-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;box-sizing:border-box}
.gifsq-quizzes-wrapper *{box-sizing:border-box}
.info_box,.quiz_box,.result_box{position:relative;z-index:20000;background:#fff;border-radius:16px;box-shadow:0 24px 60px rgb(1 148 68 / .10),0 4px 16px rgb(0 0 0 / .06);border:1px solid #e2e8f0;transition:box-shadow .3s ease,transform .3s ease;display:none}

/* ---------- Buttons: hover lift + press down ---------- */
.start_btn{text-align:center;position:relative;z-index:20000}
.start_btn button{font-size:20px;font-weight:700;color:#fff;background:linear-gradient(135deg,#019444,#00b85c);padding:16px 44px;border:none;border-radius:12px;cursor:pointer;box-shadow:0 8px 20px rgb(1 148 68 / .35);transition:transform .15s ease,box-shadow .15s ease,background .2s ease}
.start_btn button:hover{transform:translateY(-3px);box-shadow:0 12px 28px rgb(1 148 68 / .45)}
.start_btn button:active{transform:translateY(1px) scale(.98);box-shadow:0 4px 10px rgb(1 148 68 / .3)}

.info_box{width:560px;max-width:100%}
.info_box .info-title{height:64px;width:100%;border-bottom:1px solid #edf2f7;display:flex;align-items:center;padding:0 30px;font-size:20px;font-weight:800;color:var(--dark)}
.info_box .info-list{padding:20px 30px}
.info_box .info-list .info{margin:12px 0;font-size:15px;color:var(--dark-muted)}
.info_box .info-list .info span{font-weight:700;color:var(--primary,#019444)}
.info_box .buttons{height:64px;display:flex;align-items:center;justify-content:flex-end;padding:0 30px;border-top:1px solid #edf2f7;gap:10px}
.info_box .buttons button{height:42px;width:120px;font-size:14px;font-weight:700;cursor:pointer;border-radius:10px;transition:transform .15s ease,box-shadow .15s ease,background .2s ease;border:none}
.info_box .buttons button:active{transform:scale(.96)}
.info_box .buttons .quit{background:#fff;border:1px solid var(--border);color:var(--dark-muted)}
.info_box .buttons .quit:hover{background:var(--light);transform:translateY(-2px)}
.info_box .buttons .restart{background:linear-gradient(135deg,#019444,#00b85c);color:#fff;box-shadow:0 6px 14px rgb(1 148 68 / .3)}
.info_box .buttons .restart:hover{transform:translateY(-2px);box-shadow:0 10px 20px rgb(1 148 68 / .4)}

/* ---------- Quiz box ---------- */
.quiz_box{width:660px;max-width:100%;overflow:hidden}
.quiz_box header{position:relative;z-index:2;min-height:72px;padding:10px 28px;background:linear-gradient(180deg,#fff,#fbfdfc);border-radius:16px 16px 0 0;display:flex;align-items:center;justify-content:space-between;box-shadow:0 3px 5px rgb(0 0 0 / .04);flex-wrap:wrap;gap:8px}
.quiz_box header .title{font-size:18px;font-weight:800;color:var(--dark)}
.gq12-header-actions{display:flex;align-items:center;gap:10px;margin-left:auto}
.quiz_box header .timer{color:#0c5460;background:#d1ecf1;border:1px solid #bee5eb;min-height:44px;padding:4px 12px;border-radius:10px;display:flex;align-items:center;justify-content:space-between;gap:8px;transition:background .3s,border-color .3s,box-shadow .3s}
.quiz_box header .timer .time_left_txt{font-weight:600;font-size:13px;user-select:none}
.quiz_box header .timer .timer_sec{font-size:15px;font-weight:800;min-height:30px;min-width:40px;color:#fff;border-radius:8px;line-height:30px;text-align:center;background:#343a40;user-select:none;padding:0 6px;transition:background .3s,transform .3s}
/* Under-10s amber heads-up */
.quiz_box header .timer.warn-amber{background:#fff8e1;border-color:#ffe082;box-shadow:0 0 12px rgb(255 193 7 / .5)}
.quiz_box header .timer.warn-amber .timer_sec{background:#f59e0b;transform:scale(1.08)}
/* Under-5s RED PULSE — strong visual warning */
.quiz_box header .timer.warn-red{background:#fde8e8;border-color:#f87171;box-shadow:0 0 18px rgb(239 68 68 / .65);animation:gqTimerPulse .6s ease-in-out infinite}
.quiz_box header .timer.warn-red .timer_sec{background:#dc2626;animation:gqTimerPulse .6s ease-in-out infinite}
@keyframes gqTimerPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.18)}}
/* Screen edge red glow while critical */
.gq12-quiz.danger-glow{box-shadow:0 0 0 3px #f87171,0 0 34px rgb(239 68 68 / .55),0 24px 60px rgb(1 148 68 / .10);animation:gqEdgeGlow .6s ease-in-out infinite}
@keyframes gqEdgeGlow{0%,100%{box-shadow:0 0 0 3px #f87171,0 0 22px rgb(239 68 68 / .4),0 24px 60px rgb(1 148 68 / .10)}50%{box-shadow:0 0 0 5px #ef4444,0 0 44px rgb(239 68 68 / .7),0 24px 60px rgb(1 148 68 / .10)}}
.quiz_box header .time_line{position:absolute;bottom:0;left:0;height:5px;border-radius:0 4px 4px 0;background:linear-gradient(90deg,#019444,#00d166);width:0%}

/* ---------- Progress bar ---------- */
.gq12-progress{padding:16px 28px 4px;background:#fff}
.gq12-progress-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;font-size:13px;font-weight:700;color:#4a5568}
.gq12-streak-inline{color:#dd6b20}
.gq12-progress-track{height:10px;background:#edf2f7;border-radius:99px;overflow:hidden}
.gq12-progress-fill{height:100%;width:0%;border-radius:99px;background:linear-gradient(90deg,#019444,#00d166);transition:width .5s cubic-bezier(.25,.8,.25,1);box-shadow:0 0 10px rgb(1 148 68 / .5)}

/* ---------- Question + options ---------- */
.quiz_box section{padding:24px 28px 18px;background:#fff}
.quiz_box section .que_text{font-size:20px;line-height:1.55;font-weight:800;color:var(--dark);margin-bottom:22px;animation:gqSlideIn .35s ease}
.quiz_box section .option_list{display:flex;flex-direction:column;gap:12px}
.quiz_box section .option_list .option{background:#f7fafc;border:2px solid #e2e8f0;border-radius:12px;padding:15px 20px;font-size:15px;font-weight:600;color:var(--dark);cursor:pointer;transition:transform .15s ease,box-shadow .2s ease,border-color .2s,background .2s;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:56px;animation:gqSlideIn .35s ease backwards}
.quiz_box section .option_list .option:nth-child(2){animation-delay:.05s}
.quiz_box section .option_list .option:nth-child(3){animation-delay:.1s}
.quiz_box section .option_list .option:nth-child(4){animation-delay:.15s}
.quiz_box section .option_list .option:hover{color:#065f46;background:#ecfdf5;border-color:#019444;transform:translateY(-2px);box-shadow:0 8px 18px rgb(1 148 68 / .18)}
.quiz_box section .option_list .option:active{transform:translateY(1px) scale(.99)}
.quiz_box section .option_list .option.correct{color:#155724;background:#d4edda;border-color:#22c55e;box-shadow:0 0 16px rgb(34 197 94 / .35)}
.quiz_box section .option_list .option.incorrect{color:#721c24;background:#f8d7da;border-color:#ef4444;box-shadow:0 0 16px rgb(239 68 68 / .3)}
.quiz_box section .option_list .option.skipped{color:#744210;background:#fef3c7;border-color:#f59e0b}
.quiz_box section .option_list .option.selected{color:#1e3a8a;background:#dbeafe;border-color:#3b82f6;box-shadow:0 0 14px rgb(59 130 246 / .35)}
.quiz_box section .option_list .option.disabled{pointer-events:none}
/* Answer feedback motion (v1.2.6): a soft glow bloom for correct, a gentle
   shake for wrong, a pop for the exam-style selection — easy on the eyes. */
.quiz_box section .option_list .option.correct{animation:gqCorrectPulse .9s ease-out}
.quiz_box section .option_list .option.incorrect{animation:gqWrongShake .4s ease}
.quiz_box section .option_list .option.selected{animation:gqPop .3s cubic-bezier(.34,1.56,.64,1)}
@keyframes gqCorrectPulse{0%{box-shadow:0 0 0 0 rgb(34 197 94 / .45)}70%{box-shadow:0 0 0 14px rgb(34 197 94 / 0)}100%{box-shadow:0 0 16px rgb(34 197 94 / .35)}}
@keyframes gqWrongShake{0%,100%{transform:translateX(0)}20%{transform:translateX(-6px)}40%{transform:translateX(6px)}60%{transform:translateX(-4px)}80%{transform:translateX(4px)}}
@media (prefers-reduced-motion:reduce){.quiz_box section .option_list .option{animation:none!important}}
/* Reveal-on-demand button (v1.2.8): invites the tap instead of giving the
   answer away — a soft breathing outline keeps it eye-catching, not loud. */
.gq12-reveal-btn{display:block;width:100%;margin:14px 0 4px;padding:13px 18px;background:#fff;color:var(--gq-green,#019444);border:2px solid var(--gq-green,#019444);border-radius:12px;font-size:15px;font-weight:700;cursor:pointer;animation:gqRevealPulse 1.6s ease-in-out infinite;transition:background .2s,color .2s}
.gq12-reveal-btn:hover{background:var(--gq-green,#019444);color:#fff}
@keyframes gqRevealPulse{0%,100%{box-shadow:0 0 0 0 rgb(1 148 68 / .35)}50%{box-shadow:0 0 0 7px rgb(1 148 68 / 0)}}
/* Tick / cross POP animation */
.quiz_box section .option_list .option .icon{height:28px;width:28px;border:2px solid #fff0;border-radius:50%;text-align:center;font-size:12px;pointer-events:none;line-height:24px;flex-shrink:0;animation:gqPop .35s cubic-bezier(.34,1.56,.64,1)}
.quiz_box section .option_list .option .icon.tick{color:#15803d;border-color:#22c55e;background:#d4edda}
.quiz_box section .option_list .option .icon.cross{color:#b91c1c;border-color:#ef4444;background:#f8d7da}
@keyframes gqPop{0%{transform:scale(0)}70%{transform:scale(1.35)}100%{transform:scale(1)}}
@keyframes gqSlideIn{from{opacity:0;transform:translateX(34px)}to{opacity:1;transform:translateX(0)}}
@keyframes gqFadeIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}

.quiz_box footer{min-height:62px;padding:8px 28px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid #edf2f7;gap:10px}
.quiz_box footer .total_que span{display:flex;user-select:none;font-size:14px;color:var(--dark-muted)}
.quiz_box footer .total_que span p{font-weight:700;padding:0 4px;color:var(--dark)}
.quiz_box footer .next_btn{min-height:42px;padding:0 24px;font-size:14px;font-weight:700;cursor:pointer;border:none;color:#fff;border-radius:10px;background:linear-gradient(135deg,#019444,#00b85c);box-shadow:0 6px 14px rgb(1 148 68 / .3);transition:transform .15s ease,box-shadow .15s ease,opacity .2s;opacity:0;pointer-events:none;transform:scale(.95)}
.quiz_box footer .next_btn:hover{transform:translateY(-2px);box-shadow:0 10px 20px rgb(1 148 68 / .4)}
.quiz_box footer .next_btn:active{transform:scale(.96)}
.quiz_box footer .next_btn.show{opacity:1;pointer-events:auto;transform:scale(1)}

/* ---------- Streak popup ---------- */
.gq12-streak-pop{position:absolute;top:38%;left:50%;transform:translate(-50%,-50%) scale(0);z-index:5;pointer-events:none;font-size:30px;font-weight:800;color:#dd6b20;text-shadow:0 2px 12px rgb(221 107 32 / .4);white-space:nowrap}
.gq12-streak-pop.show{animation:gqStreakPop 1.4s ease forwards}
@keyframes gqStreakPop{0%{transform:translate(-50%,-50%) scale(0);opacity:0}18%{transform:translate(-50%,-50%) scale(1.25);opacity:1}32%{transform:translate(-50%,-50%) scale(1)}80%{opacity:1;transform:translate(-50%,-60%) scale(1)}100%{opacity:0;transform:translate(-50%,-90%) scale(.9)}}

/* ---------- Voice bar ---------- */
.gq12-voice-bar{margin-top:16px;display:flex;align-items:center;gap:10px;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:12px;padding:10px 14px;font-size:14px;font-weight:600;color:#065f46;animation:gqFadeIn .3s ease}
.gq12-voice-wave{animation:gqWave 1s ease-in-out infinite;display:inline-block}
@keyframes gqWave{0%,100%{transform:scale(1)}50%{transform:scale(1.3)}}
.gq12-voice-skip{margin-left:auto;background:#fff;border:1px solid #86efac;color:#065f46;border-radius:8px;padding:8px 14px;font-weight:700;font-size:13px;cursor:pointer;transition:transform .15s}
/* ---------- Read-aloud moving caption + speaking highlight (v2.7.15) ---------- */
.gq12-read-caption{margin:8px 0 4px;font-size:15px;font-weight:800;line-height:1.45;color:#019444;animation:gqFadeIn .3s ease}
.option.gq12-speaking{border-color:#019444 !important;background:#f0fdf4 !important;box-shadow:0 0 0 2px rgba(1,148,68,.25)}
/* ---------- Karaoke word-by-word caption (v2.7.18) ---------- */
/* Not-yet-spoken words are dimmed; spoken words light up bright green; the */
/* word being spoken right now carries the soft green pill (explainer-video  */
/* karaoke style, per the owner's reference). */
.gq12-read-caption .kw{opacity:.38;font-weight:700;transition:opacity .12s ease,background-color .12s ease}
.gq12-read-caption .kw.lit{opacity:1;font-weight:800;color:#019444}
.gq12-read-caption .kw.now{opacity:1;font-weight:800;color:#019444;background:rgba(1,148,68,.13);border-radius:5px;padding:0 3px}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-read-caption .kw.lit,
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-read-caption .kw.now{color:#8fdcab}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-read-caption .kw.now{background:rgba(143,220,171,.16)}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-read-caption{color:#8fdcab}
.gifsq-quizzes-wrapper[data-theme="dark"] .option.gq12-speaking{background:#123321 !important;border-color:#3aa564 !important;box-shadow:0 0 0 2px rgba(58,165,100,.35)}
.gq12-voice-skip:hover{transform:translateY(-1px)}
.gq12-voice-skip:active{transform:scale(.96)}

/* ---------- Start screen v1.2 ---------- */
.gq12-start-card{background:#fff;border-radius:20px;border:1px solid #e2e8f0;box-shadow:0 24px 60px rgb(1 148 68 / .12),0 4px 16px rgb(0 0 0 / .06);padding:34px 30px;max-width:560px;width:100%;animation:gqFadeIn .4s ease}
.gq12-quiz-title{font-size:24px;font-weight:800;color:var(--dark);margin-bottom:6px}
.gq12-quiz-subject{display:inline-block;font-size:13px;font-weight:700;color:#15803d;background:#dcfce7;border:1px solid #bbf7d0;padding:4px 14px;border-radius:999px;margin-bottom:10px}
.gq12-start-sub{color:#718096;font-size:15px;margin:0 0 20px}
.gq12-mode-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:22px}
.gq12-mode{border:2px solid #e2e8f0;background:#f7fafc;border-radius:14px;padding:14px 6px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:4px;transition:transform .15s ease,box-shadow .2s ease,border-color .2s,background .2s;font-family:inherit;min-width:0}
/* v3.9.10.2: mode names/descs must never split mid-word. The old
   break-word rule, plus any theme break-all rule, split "Normal" into
   "Nor mal" in the audit. Scoped normal wrap wins over theme rules. */
.gifsq-quizzes-wrapper .gq12-mode-name,.gifsq-quizzes-wrapper .gq12-mode-desc{max-width:100%;overflow-wrap:normal !important;word-break:normal !important;hyphens:none;text-align:center}
.gq12-mode:hover{transform:translateY(-3px);box-shadow:0 10px 22px rgb(1 148 68 / .15);border-color:#86efac}
.gq12-mode:active{transform:scale(.96)}
.gq12-mode.selected{border-color:#019444;background:#f0fdf4;box-shadow:0 8px 20px rgb(1 148 68 / .2)}
.gq12-mode-icon{font-size:26px}
.gq12-mode-name{font-weight:800;font-size:14px;color:var(--dark)}
.gq12-mode-desc{font-size:11px;color:#718096}
.gq12-settings{background:#f7fafc;border:1px solid #e2e8f0;border-radius:14px;padding:6px 18px;margin-bottom:22px}
.gq12-start-btn{width:100%;font-size:19px;padding:16px}
.gq12-daily{margin-top:18px;display:flex;align-items:center;justify-content:center;gap:8px;background:linear-gradient(135deg,#fff7ed,#ffedd5);border:1px solid #fdba74;border-radius:12px;padding:12px;font-size:14px;font-weight:700;color:#9a3412;animation:gqFadeIn .4s ease}
.gq12-daily-fire{font-size:20px;animation:gqWave 1.2s ease-in-out infinite;display:inline-block}
.gq12-speed-btns{display:flex;gap:8px}
.gq12-speed{border:2px solid #e2e8f0;background:#fff;border-radius:8px;padding:7px 14px;font-size:13px;font-weight:700;cursor:pointer;transition:all .15s;color:#4a5568}
.gq12-speed.selected{border-color:#019444;background:#f0fdf4;color:#065f46}

/* ---------- Result screen v1.2 ---------- */
.result_box{padding:36px 30px;width:560px;max-width:100%;display:flex;align-items:center;flex-direction:column;justify-content:center;text-align:center}
.result_box .icon{font-size:72px;color:var(--primary,#019444);margin-bottom:8px;animation:gqPop .5s cubic-bezier(.34,1.56,.64,1)}
.result_box .complete_text{font-size:22px;font-weight:800;color:var(--dark);margin-bottom:14px}
.gq12-score-ring{position:relative;width:150px;height:150px;margin:6px auto 18px}
.gq12-score-ring svg{width:100%;height:100%;transform:rotate(-90deg)}
.gq12-ring-bg{fill:none;stroke:#edf2f7;stroke-width:12}
.gq12-ring-fg{fill:none;stroke:url(#gq12grad);stroke:#019444;stroke-width:12;stroke-linecap:round;stroke-dasharray:326.7;stroke-dashoffset:326.7;transition:stroke-dashoffset 1.6s cubic-bezier(.25,.8,.25,1)}
.gq12-score-num{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:34px;font-weight:800;color:var(--dark)}
.gq12-counts{display:flex;gap:10px;width:100%;margin-bottom:16px}
.gq12-count{flex:1;border-radius:12px;padding:12px 6px;display:flex;flex-direction:column;gap:2px;border:2px solid;animation:gqFadeIn .4s ease backwards}
.gq12-count:nth-child(2){animation-delay:.1s}.gq12-count:nth-child(3){animation-delay:.2s}
.gq12-count.correct{background:#f0fdf4;border-color:#bbf7d0}
.gq12-count.wrong{background:#fef2f2;border-color:#fecaca}
.gq12-count.skipped{background:#fffbeb;border-color:#fde68a}
.gq12-count-num{font-size:26px;font-weight:800;color:var(--dark)}
.gq12-count-label{font-size:12px;font-weight:700;color:#4a5568}
.result_box .score_text{margin-bottom:6px}
.result_box .score_text span{font-size:16px;font-weight:600;color:var(--dark-muted);line-height:1.6}
.result_box .score_text span p{display:inline;font-weight:800;color:var(--primary,#019444)}
/* Badge */
.gq12-badge{margin:18px 0 4px;background:linear-gradient(135deg,#fffbeb,#fef3c7);border:2px solid #fbbf24;border-radius:16px;padding:20px 24px;width:100%;animation:gqPop .5s cubic-bezier(.34,1.56,.64,1)}
.gq12-badge-medal{font-size:52px;animation:gqWave 1.6s ease-in-out infinite;display:inline-block}
.gq12-badge-title{font-size:20px;font-weight:800;color:#92400e;margin:6px 0 2px}
.gq12-badge-sub{font-size:13px;color:#b45309;margin-bottom:12px}
.gq12-badge-share{background:linear-gradient(135deg,#d97706,#f59e0b);color:#fff;border:none;border-radius:10px;padding:12px 26px;font-size:15px;font-weight:800;cursor:pointer;box-shadow:0 6px 16px rgb(217 119 6 / .35);transition:transform .15s}
.gq12-badge-share:hover{transform:translateY(-2px)}
.gq12-badge-share:active{transform:scale(.96)}
.result_box .buttons{display:flex;margin:22px 0 12px;gap:10px;flex-wrap:wrap;justify-content:center}
.result_box .buttons button{min-height:44px;padding:0 20px;font-size:14px;font-weight:700;cursor:pointer;border-radius:10px;transition:transform .15s ease,box-shadow .15s ease;border:none}
.result_box .buttons button:active{transform:scale(.96)}
.result_box .buttons .restart{background:linear-gradient(135deg,#019444,#00b85c);color:#fff;box-shadow:0 6px 14px rgb(1 148 68 / .3)}
.result_box .buttons .restart:hover{transform:translateY(-2px);box-shadow:0 10px 20px rgb(1 148 68 / .4)}
.result_box .buttons .quit{background:#fff;border:1px solid var(--border);color:var(--dark-muted)}
.result_box .buttons .quit:hover{background:var(--light);transform:translateY(-2px)}
/* Answer review */
.gq12-review-toggle{background:#eef2ff;border:1px solid #c7d2fe;color:#3730a3;border-radius:10px;padding:11px 22px;font-size:14px;font-weight:700;cursor:pointer;margin-bottom:12px;transition:transform .15s}
.gq12-review-toggle:hover{transform:translateY(-2px)}
.gq12-review{width:100%;text-align:left;max-height:420px;overflow-y:auto;border:1px solid #e2e8f0;border-radius:12px;margin-bottom:14px;background:#fbfdfc}
.gq12-review-item{padding:14px 16px;border-bottom:1px solid #edf2f7;font-size:14px}
.gq12-review-item:last-child{border-bottom:none}
.gq12-review-q{font-weight:800;color:var(--dark);margin-bottom:8px;line-height:1.5}
.gq12-review-a{margin:4px 0;line-height:1.5}
.gq12-review-a .tag{display:inline-block;font-size:11px;font-weight:800;border-radius:6px;padding:2px 8px;margin-right:6px;text-transform:uppercase;letter-spacing:.4px}
.gq12-review-a.yours .tag{background:#dbeafe;color:#1d4ed8}
.gq12-review-a.right .tag{background:#dcfce7;color:#15803d}
.gq12-review-a.skipped .tag{background:#fef3c7;color:#b45309}
.gq12-review-a.yours.was-wrong{color:#991b1b}
.gq12-review-a.right{color:#166534}
.gq12-review-exp{margin-top:8px;background:#ebf8ff;border-left:3px solid #3182ce;padding:8px 12px;border-radius:0 8px 8px 0;font-size:13px;color:#2c5282;line-height:1.55}
.gq12-review-none{padding:20px;text-align:center;color:#718096;font-size:14px}
.result_box .share_buttons{margin-top:12px;display:flex;gap:10px;flex-wrap:wrap;justify-content:center}
.result_box .share_buttons button{padding:10px 18px;border-radius:10px;border:none;font-size:13px;font-weight:700;color:#fff;cursor:pointer;display:flex;align-items:center;gap:6px;transition:transform .15s,opacity .2s}
.result_box .share_buttons button.fb{background:#3b5998}.result_box .share_buttons button.wa{background:#25d366}.result_box .share_buttons button.tw{background:#1da1f2}
.result_box .share_buttons button:hover{opacity:.92;transform:translateY(-2px)}
.result_box .share_buttons button:active{transform:scale(.96)}

/* ---------- Shared upgrade bits ---------- */
.gq-icon-btn{width:38px;height:38px;border-radius:50%;border:1px solid var(--border);background:#fff;cursor:pointer;font-size:17px;display:flex;align-items:center;justify-content:center;transition:transform .15s,border-color .2s;color:#6c757d}
.gq-icon-btn:hover{border-color:var(--primary);transform:scale(1.08)}
.gq-icon-btn:active{transform:scale(.94)}
.gq-icon-btn.off{opacity:.4}
.gq-explanation{margin:14px 28px 0;padding:16px 18px;background:#ebf8ff;border-left:4px solid #3182ce;border-radius:0 10px 10px 0;font-size:15px;line-height:1.6;display:none;animation:gqFadeIn .3s ease;color:#2c5282}
.gq-explanation.show{display:block}
.gq-explanation strong{display:block;margin-bottom:6px;color:#2b6cb0}
.gq-btn{padding:13px 30px;border-radius:10px;font-size:15px;font-weight:700;cursor:pointer;border:none;transition:transform .15s,box-shadow .15s}
.gq-btn:active{transform:scale(.96)}
.gq-btn-primary{background:linear-gradient(135deg,#019444,#00b85c);color:#fff;box-shadow:0 6px 14px rgb(1 148 68 / .3)}
.gq-btn-primary:hover{transform:translateY(-2px)}
.gq-btn-primary:disabled{opacity:.4;cursor:not-allowed}
.gq-btn-outline{background:#fff;color:var(--text);border:2px solid var(--border)}
.gq-btn-outline:hover{border-color:var(--primary)}
.gq-setting{margin:0 auto 14px;max-width:360px;text-align:left}
.gq-setting label{font-weight:700;font-size:14px;display:block;margin-bottom:8px}
.gq-setting select{width:100%;padding:13px 14px;border:2px solid var(--border);border-radius:10px;font-size:16px;background:#fff;cursor:pointer;transition:border-color .2s}
.gq-setting select:focus{outline:none;border-color:var(--primary)}
.gq-toggle-row{display:flex;align-items:center;justify-content:space-between;padding:11px 0;font-size:15px;font-weight:600;color:var(--dark)}
.gq-switch{position:relative;width:50px;height:28px;flex-shrink:0;display:inline-block}
.gq-switch input{opacity:0;width:0;height:0}
.gq-slider{position:absolute;inset:0;cursor:pointer;background:#cbd5e0;border-radius:99px;transition:.25s}
.gq-slider:before{content:"";position:absolute;width:22px;height:22px;left:3px;top:3px;background:#fff;border-radius:50%;transition:.25s;box-shadow:0 2px 5px rgb(0 0 0 / .2)}
.gq-switch input:checked + .gq-slider{background:linear-gradient(135deg,#019444,#00b85c)}
.gq-switch input:checked + .gq-slider:before{transform:translateX(22px)}
.gq-switch input:focus + .gq-slider{box-shadow:0 0 0 3px rgb(1 148 68 / .25)}

/* ---------- Mobile ---------- */
@media (max-width:768px){
.gifsq-quizzes-wrapper{margin:10px auto;padding:0 4px;min-height:auto}
.info_box,.quiz_box,.result_box{width:100%}
.gq12-start-card{padding:24px 18px}
.gq12-mode-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.gq12-quiz-title{font-size:20px}
.info_box .info-title{padding:0 20px;font-size:18px;height:56px}
.info_box .info-list{padding:14px 20px}
.info_box .info-list .info{font-size:14px;margin:9px 0}
.info_box .buttons{padding:0 20px;height:58px}
.info_box .buttons button{height:40px;width:104px;font-size:13px}
.gq12-progress{padding:12px 18px 2px}
.quiz_box header{padding:10px 18px}
.quiz_box header .title{font-size:15px}
.quiz_box header .timer{min-height:38px;padding:2px 8px}
.quiz_box header .timer .time_left_txt{font-size:11px}
.quiz_box section{padding:18px 18px 14px}
.quiz_box section .que_text{font-size:17px;margin-bottom:16px}
.quiz_box section .option_list{gap:10px}
.quiz_box section .option_list .option{padding:14px 16px;font-size:14px;min-height:52px}
.gq-explanation{margin:12px 18px 0;font-size:14px}
.quiz_box footer{padding:6px 18px}
.gq12-streak-pop{font-size:24px}
.result_box{padding:28px 18px}
.gq12-counts{gap:8px}
.gq12-count-num{font-size:22px}
.result_box .buttons{flex-direction:column;width:100%}
.result_box .buttons button{width:100%}
.result_box .share_buttons{flex-direction:column;width:100%}
.result_box .share_buttons button{width:100%;justify-content:center}
}

/* Volume slider + time slider: one straight line, same style (v2.7.1) */
.gq12-volume-slider{width:130px;accent-color:#1a7a3a;cursor:pointer;min-height:44px}
.gq12-time-slider{width:100%;min-height:44px;accent-color:#1a7a3a;cursor:pointer}
#gq12-time-label{font-weight:800;color:var(--dark)}
/* Theme toggle (v2.7.1) */
.gq12-theme-btn{width:44px;height:44px;font-size:19px;flex-shrink:0}
.gq12-start-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.gq12-start-head .gq12-quiz-title{margin-bottom:6px}
/* Test-sound button (v2.7.1) */
#gq12-testsound-row{justify-content:flex-end}
.gq12-test-sound-btn{min-height:44px;padding:10px 18px;border-radius:10px;border:2px solid #1a7a3a;background:#fff;color:#146b43;font-weight:700;cursor:pointer;font-size:.95rem}
.gq12-test-sound-btn:active{background:#e6f4ec}
/* Share my score (v2.7.1) */
.gq12-share-score-btn{display:block;width:100%;margin:4px 0 14px;padding:14px;min-height:52px;border-radius:12px;border:2px solid #1a7a3a;background:#e6f4ec;color:#146b43;font-weight:800;font-size:1.05rem;cursor:pointer}
.gq12-share-score-btn:active{transform:scale(.98)}
.result_box .share_buttons button.tg{background:#229ED9}
.result_box .share_buttons button.em{background:#6b7280}
/* Quiz rating (v2.7.2) */
.gq12-rating{margin:6px 0 16px;text-align:center}
.gq12-rating-title{font-weight:800;font-size:1.05rem;margin-bottom:6px}
.gq12-stars{display:flex;gap:8px;justify-content:center}
.gq12-star{font-size:2rem;line-height:1;min-width:48px;min-height:48px;background:none;border:none;cursor:pointer;color:#d7dee8;padding:0}
.gq12-star.on{color:#f59e0b}
.gq12-star:active{transform:scale(.94)}
.gq12-star:disabled{cursor:default}
.gq12-rating-msg{margin-top:8px;font-weight:700;font-size:.95rem}
.gq12-rating-avg{text-align:center;font-weight:800;color:#b7791f;margin:2px 0 8px;font-size:1rem}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-rating-title{color:#e9edf2}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-star{color:#3b4a5e}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-star.on{color:#fbbf24}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-rating-msg{color:#9aa6b4}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-rating-avg{color:#fbbf24}

/* Inline validation messages (v1.2.3) — replaces native alert() */
.gq12-inline-error{display:none;color:#b91c1c;font-size:.92rem;font-weight:600;line-height:1.45;margin:8px 0 0}
.gq12-input-error{border-color:#b91c1c !important}

/* Report dialog quick reasons (v1.2.5) */
.gqr-chip{border:1px solid #cfe0cf;background:#fff;border-radius:999px;padding:6px 12px;font-size:13px;font-weight:600;cursor:pointer;color:#14532d}
.gqr-chip.selected{background:#14532d;color:#fff;border-color:#14532d}

/* Hint button inside the options area (v1.4.0) — shown only when the
   question carries a hint; one tap reveals it before answering. */
.gq12-hint-row{margin:4px 28px 0}
.gq12-hint-btn{display:block;width:100%;border:2px dashed #1A8654;background:#fff;border-radius:10px;color:#146b43;font-size:15px;font-weight:700;padding:12px;cursor:pointer;min-height:48px}
.gq12-hint-btn:active{background:#e6f4ec}
.gq12-hint-box{background:#fffbe6;border:1px solid #eadf9f;border-radius:10px;padding:12px 14px;font-size:15px;line-height:1.5}
@media (max-width:480px){.gq12-hint-row{margin:4px 18px 0}.gq12-mode{padding:12px 8px}.gq12-mode-icon{font-size:20px}.gq12-mode-name{font-size:13px}}

/* ================= Dark mode (v2.7.1) =================
   Full dark theme for start/customize, question and results.
   Follows the device setting on first visit; the toggle persists the
   choice in localStorage ('gqm_dark', shared with the demo + studio). */
.gifsq-quizzes-wrapper[data-theme="dark"]{--dark:#e9edf2;--dark-muted:#9aa6b4;--text:#e9edf2;--border:#2e3c4e;--light:#1b2430;--primary:#3aa564;--gq-green:#3aa564}
.gifsq-quizzes-wrapper[data-theme="dark"] .info_box,
.gifsq-quizzes-wrapper[data-theme="dark"] .quiz_box,
.gifsq-quizzes-wrapper[data-theme="dark"] .result_box,
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-start-card{background:#161f2a;border-color:#2e3c4e}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-start-sub{color:#9aa6b4}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-mode{background:#1d2836;border-color:#2e3c4e}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-mode-desc{color:#9aa6b4}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-mode.selected{background:#123321;border-color:#3aa564}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-settings{background:#1d2836;border-color:#2e3c4e}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq-setting label{color:#e9edf2}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-speed{background:#22303f;border-color:#2e3c4e;color:#c4cdd8}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-speed.selected{background:#123321;border-color:#3aa564;color:#8fdcab}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-test-sound-btn{background:#22303f;color:#8fdcab;border-color:#3aa564}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-daily{background:linear-gradient(135deg,#2a1e0e,#3a2a12);border-color:#b45309;color:#fcd34d}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-quiz-subject{color:#8fdcab;background:#123321;border-color:#1f5c38}
.gifsq-quizzes-wrapper[data-theme="dark"] .info_box .info-title{border-color:#2e3c4e}
.gifsq-quizzes-wrapper[data-theme="dark"] .info_box .buttons{border-color:#2e3c4e}
.gifsq-quizzes-wrapper[data-theme="dark"] .info_box .buttons .quit{background:#22303f}
.gifsq-quizzes-wrapper[data-theme="dark"] #guest-name-input{background:#22303f;border-color:#2e3c4e !important;color:#e9edf2}
.gifsq-quizzes-wrapper[data-theme="dark"] .quiz_box header{background:linear-gradient(180deg,#161f2a,#10161e)}
.gifsq-quizzes-wrapper[data-theme="dark"] .quiz_box header .timer{color:#bfe6f2;background:#14303a;border-color:#1f4c5c}
.gifsq-quizzes-wrapper[data-theme="dark"] .quiz_box header .timer.warn-amber{background:#2c260e;border-color:#8a6d1f}
.gifsq-quizzes-wrapper[data-theme="dark"] .quiz_box header .timer.warn-red{background:#3a1f1c;border-color:#ef4444}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-progress{background:#161f2a}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-progress-top{color:#9aa6b4}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-progress-track{background:#2e3c4e}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-streak-inline{color:#fb923c}
.gifsq-quizzes-wrapper[data-theme="dark"] .quiz_box section{background:#161f2a}
.gifsq-quizzes-wrapper[data-theme="dark"] .quiz_box section .option_list .option{background:#1d2836;border-color:#2e3c4e}
.gifsq-quizzes-wrapper[data-theme="dark"] .quiz_box section .option_list .option:hover{color:#a7f3d0;background:#123321;border-color:#3aa564}
.gifsq-quizzes-wrapper[data-theme="dark"] .quiz_box section .option_list .option.correct{color:#a7f3d0;background:#123321;border-color:#3aa564}
.gifsq-quizzes-wrapper[data-theme="dark"] .quiz_box section .option_list .option.incorrect{color:#fca5a5;background:#3a1f1c;border-color:#ef4444}
.gifsq-quizzes-wrapper[data-theme="dark"] .quiz_box section .option_list .option.skipped{color:#fcd34d;background:#2c260e;border-color:#f59e0b}
.gifsq-quizzes-wrapper[data-theme="dark"] .quiz_box section .option_list .option.selected{color:#bfdbfe;background:#1e2a4a;border-color:#3b82f6}
.gifsq-quizzes-wrapper[data-theme="dark"] .quiz_box section .option_list .option .icon.tick{color:#8fdcab;border-color:#3aa564;background:#123321}
.gifsq-quizzes-wrapper[data-theme="dark"] .quiz_box section .option_list .option .icon.cross{color:#fca5a5;border-color:#ef4444;background:#3a1f1c}
.gifsq-quizzes-wrapper[data-theme="dark"] .quiz_box footer{border-color:#2e3c4e}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq-explanation{background:#12283a;border-color:#3b82f6;color:#bfdbfe}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq-explanation strong{color:#93c5fd}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-hint-btn{background:#1d2836;color:#8fdcab;border-color:#3aa564}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-hint-box{background:#2c2812;border-color:#6b5f2a;color:#e9edf2}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-voice-bar{background:#123321;border-color:#1f5c38;color:#a7f3d0}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-voice-skip{background:#22303f;border-color:#1f5c38;color:#a7f3d0}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-reveal-btn{background:#1d2836;color:#8fdcab;border-color:#3aa564}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-ring-bg{stroke:#2e3c4e}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-count.correct{background:#123321;border-color:#1f5c38}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-count.wrong{background:#3a1f1c;border-color:#7a2d24}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-count.skipped{background:#2c260e;border-color:#8a6d1f}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-count-label{color:#9aa6b4}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-badge{background:linear-gradient(135deg,#2a2007,#3a2c0c);border-color:#b45309}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-badge-title{color:#fcd34d}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-badge-sub{color:#fbbf24}
.gifsq-quizzes-wrapper[data-theme="dark"] .result_box .buttons .quit{background:#22303f}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-review{background:#141d28;border-color:#2e3c4e}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-review-item{border-color:#2e3c4e}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-review-a.yours .tag{background:#1e2a4a;color:#bfdbfe}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-review-a.right .tag{background:#123321;color:#8fdcab}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-review-a.skipped .tag{background:#2c260e;color:#fcd34d}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-review-a.yours.was-wrong{color:#fca5a5}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-review-a.right{color:#a7f3d0}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-review-exp{background:#12283a;border-color:#3b82f6;color:#bfdbfe}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-review-none{color:#9aa6b4}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-review-toggle{background:#1e2a4a;border-color:#3b82f6;color:#bfdbfe}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-share-score-btn{background:#123321;border-color:#3aa564;color:#8fdcab}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq-icon-btn{background:#1d2836;color:#c4cdd8}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-streak-pop{color:#fb923c}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-inline-error{color:#ff7a6b}
/* Report modal sits outside the wrapper; it carries its own data-theme attribute */
#gqr-report-modal[data-theme="dark"] > div{background:#161f2a !important;color:#e9edf2}
#gqr-report-modal[data-theme="dark"] h3{color:#e9edf2}
#gqr-report-modal[data-theme="dark"] p{color:#9aa6b4 !important}
#gqr-report-modal[data-theme="dark"] #gqr-report-q{background:#141d28 !important;border-color:#2e3c4e !important;color:#e9edf2}
#gqr-report-modal[data-theme="dark"] #gqr-report-text{background:#1d2836 !important;border-color:#2e3c4e !important;color:#e9edf2}
#gqr-report-modal[data-theme="dark"] #gqr-report-done{background:#123321 !important;color:#8fdcab !important}
#gqr-report-modal[data-theme="dark"] .gqr-chip{background:#22303f;color:#c4cdd8;border-color:#2e3c4e}
#gqr-report-modal[data-theme="dark"] .gqr-chip.selected{background:#1f5c38;color:#fff;border-color:#3aa564}
#gqr-report-modal[data-theme="dark"] .gq-btn-outline{background:#22303f;color:#e9edf2;border-color:#2e3c4e}
/* v2.7.13: per-question press-to-read button — full-width secondary, hint-style */
.gq12-read-row{margin:8px 0 12px}
.gq12-read-btn{display:block;width:100%;border:2px solid #e2e8f0;background:#f7fafc;border-radius:10px;color:#2d3748;font-size:15px;font-weight:700;padding:12px;cursor:pointer;min-height:48px;transition:background .15s,border-color .15s}
.gq12-read-btn:hover{border-color:#1A8654}
.gq12-read-btn:active{background:#edf2f7}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-read-btn{background:#1d2836;color:#e2e8f0;border-color:#4a5568}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-read-btn:active{background:#2b3a4d}

/* ============================================================
   v3.9.12.7: start-screen redesign (owner 2026-11-22).
   The "Choose how you want to play" panel must look like
   advanced, professional settings, and fit a phone without
   endless scrolling. Look only: no behaviour changed — modes,
   time choices, sound, explanations, auto-read and speed all
   work exactly as before. gh- design tokens (light: card #fff,
   ink #0A1A16, muted #45544C, line #E2E7DE, green #0F6B52,
   lime #D4FF4F, teal #7CF2C0; dark: card #122019, line
   #24382D, text #EDF3EE, muted #B7C6BD). Appended last so
   these rules win over the older start-screen rules.
   ============================================================ */
.gq12-start-card{background:#fff;border:1px solid #E2E7DE;border-radius:18px;box-shadow:0 12px 32px rgb(10 26 22 / .08);padding:26px 24px}
.gq12-quiz-title{font-size:22px;letter-spacing:-.3px;color:#0A1A16}
.gq12-quiz-subject{background:#E7F6EE;color:#0B4F3D;border-color:#BFE3CE}
.gq12-start-sub{font-size:12px;font-weight:800;letter-spacing:.7px;text-transform:uppercase;color:#0F6B52;margin:0 0 12px}
.gq12-mode-grid{gap:10px;margin-bottom:16px}
.gq12-mode{background:#F6F7F2;border:1.5px solid #E2E7DE;border-radius:14px;padding:12px 6px}
.gq12-mode:hover{border-color:#0F6B52;box-shadow:0 6px 16px rgb(15 107 82 / .12)}
.gq12-mode.selected{border-color:#0F6B52;background:#EAF6EF;box-shadow:0 6px 16px rgb(15 107 82 / .14)}
.gq12-mode-icon{font-size:24px}
.gq12-mode-name{font-size:13px;color:#0A1A16}
.gq12-mode-desc{font-size:11px;color:#45544C}
.gq12-settings{background:#F6F7F2;border:1px solid #E2E7DE;border-radius:14px;padding:2px 16px 8px;margin-bottom:18px}
.gq12-settings::before{content:"Settings";display:block;font-size:12px;font-weight:800;letter-spacing:.7px;text-transform:uppercase;color:#0F6B52;padding:12px 0 2px}
.gq12-settings>.gq-setting + .gq-toggle-row,.gq12-settings>.gq-toggle-row ~ .gq-toggle-row,.gq12-settings>#gq12-sound-detail{border-top:1px solid #E2E7DE}
.gq-toggle-row{padding:10px 0;font-size:14px;color:#0A1A16}
.gq-switch input:checked + .gq-slider{background:linear-gradient(135deg,#0F6B52,#0B4F3D)}
.gq-switch input:focus + .gq-slider{box-shadow:0 0 0 3px rgb(15 107 82 / .25)}
.gq12-speed{border:1.5px solid #E2E7DE;border-radius:10px;color:#45544C}
.gq12-speed.selected{border-color:#0F6B52;background:#EAF6EF;color:#0B4F3D}
.gq12-start-btn{background:linear-gradient(135deg,#0F6B52,#0B4F3D);border-radius:14px;font-size:18px;padding:15px;box-shadow:0 8px 20px rgb(15 107 82 / .3)}
.gq12-time-slider,.gq12-volume-slider{accent-color:#0F6B52}
#gq12-time-label{color:#0B4F3D}
.gq12-test-sound-btn{border:2px solid #0F6B52;color:#0B4F3D;border-radius:10px}
.gq12-test-sound-btn:active{background:#EAF6EF}
.info_box .info-list{padding:16px 24px}
.info_box .info-list .info{margin:10px 0;font-size:14px}
/* Dark mode: same panel, gh- dark tokens. */
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-start-card{background:#122019;border-color:#24382D}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-quiz-title{color:#EDF3EE}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-quiz-subject{background:#123321;color:#7CF2C0;border-color:#1F5C38}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-start-sub{color:#7CF2C0}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-mode{background:#0E2019;border-color:#24382D}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-mode-name{color:#EDF3EE}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-mode-desc{color:#B7C6BD}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-mode.selected{background:#123321;border-color:#7CF2C0}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-mode.selected .gq12-mode-name{color:#D4FF4F}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-settings{background:#0E2019;border-color:#24382D}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-settings::before{color:#7CF2C0}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-settings>.gq-setting + .gq-toggle-row,.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-settings>.gq-toggle-row ~ .gq-toggle-row,.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-settings>#gq12-sound-detail{border-top-color:#24382D}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq-toggle-row{color:#EDF3EE}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-speed{background:#1A2E22;border-color:#24382D;color:#D8E4DC}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-speed.selected{background:#123321;border-color:#7CF2C0;color:#D4FF4F}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-test-sound-btn{background:#1A2E22;color:#7CF2C0;border-color:#2A4236}
.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-time-slider,.gifsq-quizzes-wrapper[data-theme="dark"] .gq12-volume-slider{accent-color:#7CF2C0}
.gifsq-quizzes-wrapper[data-theme="dark"] #gq12-time-label{color:#EDF3EE}
/* Mobile: compact — the panel was too tall on phones. */
@media (max-width:768px){
.gq12-start-card{padding:18px 14px}
.gq12-quiz-title{font-size:19px}
.gq12-mode-grid{gap:8px;margin-bottom:14px}
.gq12-mode{padding:10px 4px;gap:2px}
.gq12-mode-icon{font-size:20px}
.gq12-mode-name{font-size:13px}
.gq12-mode-desc{font-size:10px}
.gq12-settings{padding:2px 12px 6px;margin-bottom:14px}
.gq12-settings::before{padding:10px 0 0}
.gq-toggle-row{padding:9px 0;font-size:14px}
.gq12-start-btn{font-size:17px;padding:14px}
.info_box .info-list{padding:12px 16px}
.info_box .info-list .info{font-size:14px;margin:8px 0}
}

/* ============================================================
   v3.9.12.8: browser-check fixes (owner 2026-11-22).
   (3) Name-modal helper: it inherits the page color, so with the
   quiz wrapper dark (its own theme, follows the device) while the
   site is light, the text is dark grey on the dark-navy modal.
   The wrapper's own muted color is readable on both modal
   backgrounds (theme hsl(215,14%,40%) on white, #9aa6b4 on navy).
   (6) Spoken-text caption: the word spans are joined by plain
   spaces only, which some readers collapse; give each word an
   explicit gap so the line always reads with spaces. Also defeat
   a foreign .kw.now rule (background-clip:text) that would clip
   the green pill to the glyphs instead of a rounded rect.
   ============================================================ */
#quiz-guest-box .info-list p{color:var(--dark-muted)}
.gq12-read-caption .kw{margin-right:.28em}
.gq12-read-caption .kw:last-child{margin-right:0}
.gq12-read-caption .kw.now{-webkit-background-clip:border-box;background-clip:border-box}

/* ============================================================
   v3.9.12.9: timer fix is JS-only (owner 2026-11-22: "the timer
   also not work"). The timer element is present in the served
   HTML (<div class="timer" id="gq12-timer"> with .timer_sec) and
   visible in the served CSS (player CSS display:flex, no
   display:none anywhere, including the LiteSpeed combined CSS),
   so no CSS rule change was needed. The defect was the JS gate
   in renderQuestion: the countdown started only when the voice
   finished reading.
   ============================================================ */