/* Quiz hub and Spot the Scam. Copied only to sites with the quizzes feature. */

.qz-feature { display: flex; gap: 20px; align-items: center; justify-content: space-between; padding: 24px 28px; margin-bottom: 8px; background: white; border: 2px solid var(--brand-primary); border-radius: 16px; color: inherit; text-decoration: none; }
.qz-feature > span:first-child { display: flex; flex-direction: column; gap: 4px; }
.qz-feature strong { font-size: 24px; }
.qz-section { margin: 36px 0 2px; }
.qz-blurb { margin: 0 0 14px; color: var(--text-light); }
.qz-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.qz-card { display: flex; flex-direction: column; gap: 6px; padding: 18px; background: white; border: 1px solid var(--border); border-radius: 14px; font: inherit; text-align: left; cursor: pointer; }
.qz-card:hover, .qz-card:focus-visible { border-color: var(--brand-primary); }
.qz-card span { color: var(--text-light); font-size: 14px; }
.qz-player { max-width: 640px; margin: 32px auto 0; padding: 28px; background: white; border: 1px solid var(--border); border-radius: 16px; }
.qz-player h2 { margin-top: 0; outline: none; }
.qz-count { margin: 0 0 6px; font-weight: 700; color: var(--brand-primary); }
.qz-options { display: grid; gap: 10px; }
.qz-option { padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; font: inherit; text-align: left; cursor: pointer; color: inherit; }
.qz-option:hover:enabled { border-color: var(--brand-primary); }
.qz-option:disabled { cursor: default; }
.qz-option.qz-right { background: #edf7f0; border-color: #1b7f3b; color: #14592a; font-weight: 700; }
.qz-option.qz-wrong { background: #fdf0ee; border-color: #b42318; color: #8c1a12; }
.qz-result { min-height: 1.4em; font-weight: 700; }
.qz-next { margin-top: 4px; }
.qz-summary { margin: 6px 0 22px; }
.qz-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.qz-playing .qz-feature { display: none; }

.sg-app { max-width: 620px; margin: 0 auto; }
.sg-title { text-align: center; }
.sg-app .qz-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.sg-head { display: flex; justify-content: space-between; font-weight: 700; color: var(--brand-primary); }
.sg-bar { height: 6px; margin: 8px 0 18px; background: var(--border); border-radius: 3px; overflow: hidden; }
.sg-bar span { display: block; height: 100%; background: var(--brand-primary); }
/* Message mock-ups: each channel looks like where it would arrive. */
.sg-message { padding: 22px 16px 26px; background: linear-gradient(160deg, var(--surface), #fff); border: 1px solid var(--border); border-radius: 18px; }
.sg-message p { margin: 0; }
.sg-channel { margin-bottom: 14px !important; text-align: center; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-light); }
.sg-body { font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.sg-from { font-weight: 700; overflow-wrap: anywhere; }
.sg-avatar { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; font-weight: 700; font-size: 17px; }
.sg-avatar-lg { width: 84px; height: 84px; font-size: 34px; }

.sg-phone { max-width: 340px; margin: 0 auto; overflow: hidden; background: #fff; border: 9px solid #1d1d1f; border-radius: 34px; box-shadow: 0 12px 30px rgba(0,0,0,0.16); }
.sg-phone-top { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 14px 10px; background: #f6f6f8; border-bottom: 1px solid #e3e3e8; text-align: center; }
.sg-phone-top .sg-from { font-size: 15px; }
.sg-phone-sub { font-size: 12px; color: #6b6b73; }
.sg-thread { min-height: 120px; padding: 16px 14px; }
.sg-bubble { display: inline-block; max-width: 88%; padding: 10px 14px; background: #e9e9eb; color: #1d1d1f; border-radius: 18px 18px 18px 5px; font-size: 15.5px; line-height: 1.45; overflow-wrap: anywhere; }
.sg-compose { margin: 0 12px 12px; padding: 8px 14px; border: 1px solid #d6d6db; border-radius: 18px; color: #9a9aa2; font-size: 14px; }
.sg-phone-social .sg-phone-top .sg-avatar { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #d6249f; }
.sg-phone-social .sg-bubble { background: #efefef; }

.sg-phone-call { padding: 26px 18px 22px; background: linear-gradient(180deg, #2b3a4a, #121a22); color: #fff; text-align: center; }
.sg-call-status { font-size: 14px; color: rgba(255,255,255,0.7); margin-bottom: 14px !important; }
.sg-call-name { margin-top: 10px !important; font-size: 22px; }
.sg-transcript { margin: 20px 0 22px; padding: 12px 14px; background: rgba(255,255,255,0.1); border-radius: 14px; text-align: left; }
.sg-transcript-label { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.65); margin-bottom: 4px !important; }
.sg-phone-call .sg-body { color: #fff; }
.sg-call-keys { display: flex; justify-content: space-around; }
.sg-key { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; font-size: 11px; font-weight: 700; color: #fff; }
.sg-key-no { background: #e5484d; }
.sg-key-yes { background: #30a46c; }

.sg-mail, .sg-browser { max-width: 560px; margin: 0 auto; overflow: hidden; background: #fff; border: 1px solid #d6d6db; border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,0.12); }
.sg-window-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #f1f1f4; border-bottom: 1px solid #e3e3e8; font-size: 12px; font-weight: 700; color: #6b6b73; }
.sg-window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d0d0d6; }
.sg-window-bar i:first-child { background: #ff5f57; }
.sg-window-bar i:nth-child(2) { background: #febc2e; }
.sg-window-bar i:nth-child(3) { background: #28c840; }
.sg-window-bar span { margin-left: 8px; }
.sg-mail-inner { padding: 18px 20px 22px; }
.sg-subject { font-size: 19px; font-weight: 700; line-height: 1.3; margin-bottom: 14px !important; overflow-wrap: anywhere; }
.sg-mail-from { display: flex; gap: 10px; align-items: center; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid #eee; }
.sg-mail-from .sg-from { font-size: 15px; }
.sg-mail-addr { font-weight: 400; font-size: 13px; color: #6b6b73; }
.sg-mail-to { font-size: 12.5px; color: #6b6b73; }

.sg-url { flex: 1; height: 18px; margin-left: 10px !important; background: #fff; border: 1px solid #e3e3e8; border-radius: 9px; }
.sg-browser-page { padding: 26px 18px; background: repeating-linear-gradient(45deg, #f6f6f8, #f6f6f8 10px, #efeff2 10px, #efeff2 20px); }
.sg-alert { max-width: 380px; margin: 0 auto; padding: 18px 18px 16px; background: #fff; border-top: 6px solid #b42318; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.2); text-align: center; }
.sg-alert-title { color: #b42318; margin-bottom: 8px !important; }
.sg-alert-btn { display: inline-block; margin-top: 14px; padding: 6px 26px; background: #e9e9eb; border-radius: 6px; font-weight: 700; font-size: 14px; }

.sg-doorcam { max-width: 440px; margin: 0 auto; overflow: hidden; background: #111; border-radius: 16px; box-shadow: 0 12px 30px rgba(0,0,0,0.2); color: #fff; }
.sg-doorcam-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: #1c1c1c; }
.sg-doorcam-bar .sg-from { font-size: 14px; color: #fff; }
.sg-live { padding: 2px 8px; background: #e5484d; border-radius: 4px; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; }
.sg-doorcam-scene { position: relative; height: 150px; background: radial-gradient(ellipse at 50% 120%, #5b6b5a, #2a332c 60%, #1a1f1b); }
.sg-visitor { position: absolute; left: 50%; bottom: 0; width: 90px; height: 70px; margin-left: -45px; background: #0d0f0d; border-radius: 45px 45px 0 0; }
.sg-visitor::before { content: ""; position: absolute; left: 50%; top: -52px; width: 46px; height: 46px; margin-left: -23px; background: #0d0f0d; border-radius: 50%; }
.sg-doorcam-caption { padding: 14px 16px 16px; color: #f2f2f2; font-size: 15.5px; }

.sg-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.sg-choice { padding: 16px; border: 2px solid; border-radius: 12px; background: white; font: inherit; font-size: 18px; font-weight: 700; cursor: pointer; }
.sg-scam { border-color: #b42318; color: #b42318; }
.sg-legit { border-color: #1b7f3b; color: #1b7f3b; }
.sg-feedback { margin-top: 16px; padding: 18px 20px; border-left: 5px solid; border-radius: 8px; background: white; }
.sg-good { border-color: #1b7f3b; }
.sg-bad { border-color: #b42318; }
.sg-feedback h3 { margin: 0 0 8px; }
.sg-good h3 { color: #1b7f3b; }
.sg-bad h3 { color: #b42318; }
.sg-flags-title { margin: 0; font-weight: 700; }
.sg-feedback ul { margin: 4px 0 10px; padding-left: 20px; }
.sg-next { display: block; width: 100%; margin-top: 14px; }
.sg-final { padding: 28px; background: white; border: 1px solid var(--border); border-radius: 16px; text-align: center; }
.sg-final h2 { margin-top: 0; font-size: 40px; }
.sg-final ul { list-style: none; padding: 0; }
.sg-final .btn-primary, .sg-final .btn-outline-dark { margin: 6px; }
.sg-note { max-width: 620px; margin: 18px auto 0; font-size: 14px; color: var(--text-light); text-align: center; }
.sg-help { max-width: 620px; }

@media (max-width: 600px) {
  .qz-feature { flex-direction: column; align-items: flex-start; }
}
