

body.sg-quiz {
  background: var(--bg);
  -webkit-tap-highlight-color: transparent;
}

body.sg-quiz .sg-header { position: sticky; top: 0; z-index: 100; }

#quiz-wrap {
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px 80px;
  min-height: calc(100vh - 50px);
}

.qz-progress {
  position: sticky;
  top: 50px;
  z-index: 90;
  width: 100%;
  height: 3px;
  background: var(--s2);
}
.qz-progress-fill {
  height: 100%;
  background: var(--ac);
  transition: width .5s ease;
  width: 0%;
}

.qz-header {
  text-align: center;
  padding: 24px 0 4px;
}
.qz-header-num {
  font-family: var(--fm);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--su);
  margin-bottom: 6px;
}
.qz-domain-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--fc);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--bl);
  background: rgba(96,165,250,.1);
  border: 1px solid rgba(96,165,250,.25);
  padding: 4px 12px;
  border-radius: var(--r);
  margin-bottom: 14px;
}

.qz-question {
  font-family: var(--fc);
  font-size: clamp(20px, 4.5vw, 28px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--tx);
  margin-bottom: 8px;
  text-align: center;
}
.qz-context {
  font-size: 13px;
  color: var(--su);
  font-style: italic;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.5;
}

.qz-options { display: flex; flex-direction: column; gap: 8px; }
.qz-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--s1);
  border: 1px solid var(--bd);
  border-radius: var(--r);
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .12s, box-shadow .15s;
  text-align: left;
  width: 100%;
}
.qz-option:hover {
  border-color: var(--bdb);
  background: var(--s2);
  transform: translateX(3px);
}
.qz-opt-letter {
  font-family: var(--fm);
  font-size: 12px;
  font-weight: 500;
  color: var(--su);
  flex-shrink: 0;
  width: 20px;
  margin-top: 2px;
  transition: color .15s;
}
.qz-option:hover .qz-opt-letter { color: var(--ac); }
.qz-opt-body { display: flex; flex-direction: column; gap: 2px; }
.qz-opt-main { font-size: 15px; color: var(--tx); line-height: 1.4; }
.qz-opt-sub { font-size: 12px; color: var(--su); }

.qz-option.selected {
  border-color: var(--ac);
  background: var(--acd);
  pointer-events: none;
  box-shadow: 0 0 8px var(--glow1), 0 0 20px var(--glow2);
}
.qz-option.selected .qz-opt-letter { color: var(--ac); }
.qz-option.disabled { pointer-events: none; opacity: .4; }

.qz-hint {
  font-family: var(--fm);
  font-size: 10px;
  color: var(--su);
  text-align: center;
  margin-top: 14px;
  letter-spacing: .5px;
}

.qz-insight {
  animation: qzFadeIn .3s ease;
}
@keyframes qzFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.qz-insight-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--fm);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--su);
  margin-bottom: 12px;
}
.qz-insight-tag::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--ac);
  opacity: .5;
}

.qz-insight-title {
  font-family: var(--fc);
  font-size: clamp(22px, 5vw, 32px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--tx);
  margin-bottom: 14px;
}
.qz-insight-title .accent { color: var(--ac); }

.qz-insight-body {
  font-size: 15px;
  color: var(--mu);
  line-height: 1.75;
  margin-bottom: 14px;
}
.qz-insight-body strong { color: var(--tx); font-weight: 500; }

.qz-info-box {
  background: var(--s1);
  border: 1px solid var(--bd);
  border-left: 3px solid var(--ac);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 14px 16px;
  margin: 16px 0;
}
.qz-info-label {
  font-family: var(--fm);
  font-size: 9px;
  color: var(--ac);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
  opacity: .8;
}
.qz-info-text {
  font-size: 14px;
  color: var(--mu);
  line-height: 1.65;
}
.qz-info-text strong { color: var(--tx); font-weight: 500; }

.qz-stat-row { display: flex; gap: 8px; margin: 14px 0; }
.qz-stat-cell {
  flex: 1;
  background: var(--s1);
  border: 1px solid var(--bd);
  border-radius: var(--r);
  padding: 14px 12px;
  text-align: center;
}
.qz-stat-val {
  font-family: var(--fm);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 5px;
}
.qz-stat-lbl {
  font-family: var(--fm);
  font-size: 9px;
  color: var(--su);
  letter-spacing: .5px;
  text-transform: uppercase;
  line-height: 1.3;
}
.qz-sv-red    { color: var(--ac); }
.qz-sv-amber  { color: var(--am); }
.qz-sv-green  { color: var(--gn); }

.qz-insight-source {
  font-family: var(--fm);
  font-size: 9px;
  color: var(--su);
  letter-spacing: .5px;
  margin-top: 4px;
  opacity: .6;
}

.qz-insight-next {
  display: block;
  margin: 20px auto 0;
  font-family: var(--fc);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .5px;
  padding: 13px 32px;
  border-radius: var(--r);
  background: var(--acd);
  border: 1px solid var(--ac);
  color: var(--tx);
  cursor: pointer;
  transition: box-shadow .15s;
}
.qz-insight-next:hover {
  box-shadow: 0 0 4px var(--ac), 0 0 14px var(--glow0), 0 0 32px var(--glow1);
}

.qz-survival-clock {
  background: var(--s1);
  border: 1px solid var(--bd);
  border-radius: var(--rl);
  padding: 28px 22px;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.qz-sc-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(192,0,26,.12) 0%, transparent 70%);
  pointer-events: none;
}
.qz-sc-label {
  font-family: var(--fm);
  font-size: 10px;
  color: var(--su);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
  position: relative;
}
.qz-sc-time {
  font-family: var(--ff);
  font-size: clamp(48px, 12vw, 80px);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -.02em;
  position: relative;
}
.qz-sc-unit {
  font-family: var(--fm);
  font-size: 12px;
  color: var(--su);
  letter-spacing: 1px;
  margin-top: 8px;
  position: relative;
}
.qz-sc-sub {
  font-size: 14px;
  color: var(--mu);
  margin-top: 14px;
  line-height: 1.55;
  position: relative;
}

.qz-section-label {
  font-family: var(--fm);
  font-size: 10px;
  color: var(--su);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.qz-threat-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.qz-threat-item {
  background: var(--s1);
  border: 1px solid var(--bd);
  border-radius: var(--r);
  padding: 13px 15px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.qz-ti-rank {
  font-family: var(--fm);
  font-size: 18px;
  font-weight: 500;
  color: var(--su);
  min-width: 28px;
  line-height: 1;
}
.qz-ti-rank.r1 { color: var(--ac); }
.qz-ti-rank.r2 { color: #f07820; }
.qz-ti-rank.r3 { color: var(--am); }
.qz-ti-icon { font-size: 18px; flex-shrink: 0; }
.qz-ti-info { flex: 1; }
.qz-ti-name { font-size: 14px; font-weight: 600; color: var(--tx); margin-bottom: 2px; }
.qz-ti-desc { font-size: 12px; color: var(--mu); }
.qz-ti-sev {
  font-family: var(--fm);
  font-size: 9px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 10px;
  flex-shrink: 0;
  white-space: nowrap;
  letter-spacing: .5px;
}
.sev-critical { color: var(--ac); background: var(--acd); border: 1px solid rgba(192,0,26,.3); }
.sev-high     { color: #f07820;  background: rgba(240,120,32,.08); border: 1px solid rgba(240,120,32,.25); }
.sev-moderate { color: var(--am); background: rgba(255,184,0,.08); border: 1px solid rgba(255,184,0,.25); }
.sev-low      { color: var(--su); background: var(--s2); border: 1px solid var(--bd); }

.qz-gap-list { display: flex; flex-direction: column; gap: 7px; margin-bottom: 20px; }
.qz-gap-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 11px 14px;
  background: var(--s1);
  border: 1px solid var(--bd);
  border-radius: var(--r);
}
.qz-gap-icon { font-size: 15px; flex-shrink: 0; margin-top: 1px; }
.qz-gap-text { font-size: 13px; color: var(--mu); line-height: 1.55; }
.qz-gap-text strong { color: var(--tx); font-weight: 500; }

.qz-aff-stack { display: flex; flex-direction: column; gap: 8px; margin: 20px 0; }
.qz-aff-card {
  position: relative;
  text-align: left;
  background: var(--s2);
  border: 1px solid var(--bdb);
  border-radius: var(--rl);
  padding: 16px;
}
.qz-aff-card::before {
  content: "Affiliate partner offer";
  display: block;
  font-family: var(--fc);
  font-size: 10px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--mu);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--bd);
}
.qz-aff-tag {
  font-family: var(--fm);
  font-size: 9px;
  color: var(--ac);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
  opacity: .7;
}
.qz-aff-title {
  font-family: var(--fc);
  font-weight: 600;
  font-size: 17px;
  color: var(--tx);
  margin-bottom: 4px;
}
.qz-aff-desc { font-size: 13px; color: var(--mu); line-height: 1.55; margin-bottom: 12px; }
.qz-aff-btn {
  display: block;
  text-align: center;
  font-family: var(--fc);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .5px;
  padding: 11px;
  border-radius: var(--r);
  background: var(--am);
  color: #1A1400;
  text-decoration: none;
}
.qz-aff-btn:hover { box-shadow: 0 0 4px var(--am), 0 0 16px rgba(255,184,0,.45); }
.qz-aff-btn.secondary {
  background: var(--acd);
  border: 1px solid var(--ac);
  color: var(--tx);
}
.qz-aff-btn.secondary:hover { box-shadow: 0 0 4px var(--ac), 0 0 14px var(--glow0); }

.qz-share-box {
  background: var(--acd);
  border: 1px solid rgba(192,0,26,.2);
  border-radius: var(--rl);
  padding: 22px;
  text-align: center;
  margin-top: 20px;
}
.qz-share-title {
  font-family: var(--fc);
  font-size: 20px;
  font-weight: 700;
  color: var(--tx);
  margin-bottom: 7px;
}
.qz-share-copy {
  font-size: 13px;
  font-style: italic;
  color: var(--mu);
  line-height: 1.6;
  margin-bottom: 14px;
}

.ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--s1);
  border: 1px dashed var(--bd);
  color: var(--su);
  font-family: var(--fm);
  font-size: 11px;
  letter-spacing: 1px;
  text-align: center;
}

body.sg-quiz .ad-slot-top {
  position: sticky;
  top: 53px;
  z-index: 89;
  height: 90px;
  border-left: none;
  border-right: none;
  border-top: none;
  overflow: hidden;
}
body.sg-quiz .ad-slot-top::before {
  content: 'ADVERTISEMENT';
  position: absolute;
  top: 2px;
  font-size: 7px;
  letter-spacing: 2px;
  color: var(--su);
}

.ad-slot-300 { width: 300px; height: 250px; max-width: 100%; margin: 0 auto; }

.ad-rail {
  position: fixed;
  top: calc(50% + 26px);
  transform: translateY(-50%);
  width: 160px;
  height: 600px;
  max-height: calc(100vh - 140px);
  z-index: 85;
}
.ad-rail-left  { left: 20px; }
.ad-rail-right { right: 20px; }
@media (max-width: 1099px) { .ad-rail { display: none !important; } }
@media (max-width: 600px) { body.sg-quiz .ad-slot-top { height: 60px; top: 50px; } }

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  padding: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(11, 12, 15, .94);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.overlay.active { display: flex; }
.overlay > * { margin: auto; }

.overlay-inner {
  width: 100%;
  max-width: 380px;
  text-align: center;
  background: var(--s1);
  border: 1px solid var(--bd);
  border-radius: var(--rl);
  padding: 28px 24px;
}

.overlay-logo {
  font-family: var(--fc);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: .5px;
  color: var(--tx);
  margin-bottom: 16px;
}
.overlay-logo em { font-style: normal; color: var(--ac); }

.overlay h2 { font-family: var(--fc); font-weight: 600; font-size: 22px; color: var(--tx); margin-bottom: 6px; }
.overlay p  { font-size: 13px; color: var(--mu); margin-bottom: 16px; }

.ov-btn {
  width: 100%;
  font-family: var(--fc);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .5px;
  padding: 13px;
  border-radius: var(--r);
  background: var(--acd);
  border: 1px solid var(--ac);
  color: var(--tx);
  cursor: pointer;
}
.ov-btn:hover:not(:disabled) { box-shadow: 0 0 4px var(--ac), 0 0 14px var(--glow0), 0 0 32px var(--glow1); }
.ov-btn:disabled { opacity: .4; cursor: not-allowed; }

#ad-rewarded-container { min-height: 0; }
.dev-only { font-family: var(--fm); font-size: 12px; color: var(--mu); margin: 12px 0; }
#dev-timer { color: var(--am); }

.gate-info { text-align: left; margin: 6px 0 4px; }
.gate-how-title {
  font-family: var(--fc); font-weight: 700; font-size: 11px;
  letter-spacing: 1px; text-transform: uppercase; color: var(--mu); margin-bottom: 6px;
}
.gate-info ol { margin: 0 0 12px; padding-left: 18px; }
.gate-info ol li { font-size: 13px; color: var(--tx); line-height: 1.5; margin-bottom: 3px; }
.gate-why { font-size: 12.5px; color: var(--mu); line-height: 1.55; }
.gate-why a { color: var(--ac); white-space: nowrap; }

.ad-slot-landing {
  position: relative;
  width: 100%; max-width: 336px; min-height: 60px;
  margin: 16px auto;
  padding-top: 16px;
  border-top: 1px dashed var(--bd);
}
.ad-slot-landing::before {
  content: "Advertisement";
  display: block;
  font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--su); margin-bottom: 6px;
}

.gate-actions { display: flex; gap: 10px; margin-top: 6px; }
.gate-actions > * { flex: 1; }
.ov-btn-ghost {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff); font-weight: 600; font-size: 15px; letter-spacing: .5px;
  padding: 13px; border-radius: var(--r);
  background: var(--s2); color: var(--tx); border: 1px solid var(--bd);
  text-decoration: none;
}
.ov-btn-ghost:hover { border-color: var(--bdb); color: var(--tx); box-shadow: 0 0 10px var(--glow2); }

#overlay-interstitial .ad-slot-300 { margin-bottom: 16px; }
.int-timer-line { font-family: var(--fm); font-size: 12px; color: var(--mu); margin-bottom: 10px; }
#int-timer { color: var(--am); }

#overlay-gameover .overlay-inner { max-width: 400px; }

.go-share { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--bd); }
.go-share-label {
  font-family: var(--fc); font-size: 11px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--mu);
  text-align: center; margin-bottom: 9px;
}
.go-share-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.go-share-btns button {
  font-family: var(--fc); font-weight: 600; font-size: 13px; letter-spacing: .5px;
  padding: 8px 13px; border-radius: var(--r);
  background: var(--s2); border: 1px solid var(--bd); color: var(--tx); cursor: pointer;
  transition: border-color .15s, color .15s, box-shadow .15s;
}
.go-share-btns button:hover {
  border-color: var(--ac); color: var(--ac);
  box-shadow: 0 0 10px var(--glow1);
}

.go-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.go-actions button {
  width: 100%;
  font-family: var(--fc); font-weight: 600; font-size: 14px; letter-spacing: .5px;
  padding: 11px; border-radius: var(--r);
  background: var(--acd); border: 1px solid var(--ac); color: var(--tx);
  cursor: pointer;
}
.go-actions button:hover { box-shadow: 0 0 4px var(--ac), 0 0 14px var(--glow0), 0 0 32px var(--glow1); }
.go-actions a { font-size: 12px; color: var(--mu); padding: 6px; text-align: center; }
.go-actions a:hover { color: var(--tx); }

#overlay-gameover .ad-slot,
#overlay-interstitial .ad-slot {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--bd);
}
#overlay-gameover .ad-slot::before,
#overlay-interstitial .ad-slot::before {
  content: "Advertisement";
  display: block;
  font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--su);
  margin-bottom: 6px;
}

#push-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1100;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: var(--s1);
  border-top: 1px solid var(--ac);
  box-shadow: 0 -4px 18px var(--glow2);
}
#push-bar.active { display: flex; }
.push-txt { font-size: 12px; color: var(--tx); letter-spacing: .3px; }
.push-y {
  font-family: var(--fc); font-weight: 600; font-size: 12px; letter-spacing: .5px;
  padding: 7px 16px; border-radius: var(--r);
  background: var(--gn); border: 1px solid var(--gn); color: #062a14;
  cursor: pointer;
}
.push-n {
  font-family: var(--fc); font-size: 12px;
  padding: 7px 16px; border-radius: var(--r);
  background: var(--ac); border: 1px solid var(--ac); color: #fff;
  cursor: pointer;
}
.push-y:hover { box-shadow: 0 0 4px var(--gn), 0 0 14px rgba(0,230,118,.4); }
.push-n:hover { box-shadow: 0 0 4px var(--ac), 0 0 14px var(--glow0); }

.qz-result-ad {
  margin: 20px 0;
}

@media (max-width: 480px) {
  .qz-stat-row { flex-direction: column; }
  .qz-survival-clock { padding: 22px 16px; }
  .qz-sc-time { font-size: 48px; }
}
