/* =====================================================================
   Quizlino v2 additions: study notes, question-bank stats, answer stats,
   daily trivia archive, badge help text, header fit on laptop screens.
   Loaded after style.css / content-extras.css. Works in dark and light theme.
   ===================================================================== */

/* ---- Header: keep every nav item inside the bar on 992-1399px screens ---- */
@media (min-width: 992px) and (max-width: 1399.98px) {
    .navbar .container { max-width: 100%; padding-left: 16px; padding-right: 16px; }
    .navbar .navbar-nav .nav-link { padding-left: .5rem !important; padding-right: .5rem !important; font-size: .9rem; }
    .navbar-brand { margin-right: .5rem; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    .navbar .navbar-nav .nav-link { padding-left: .35rem !important; padding-right: .35rem !important; font-size: .84rem; }
}

/* ---- Badges: show what each badge is for ---- */
.qz-badge-tile .qz-badge-how {
    display: block;
    margin-top: 3px;
    font-size: .66rem;
    line-height: 1.3;
    color: var(--text-secondary);
    opacity: .85;
    padding: 0 4px;
}
.qz-badge-grid { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }

/* ---- Homepage: link to the daily archive under the daily card ---- */
.qz-daily-archive-link {
    display: inline-block;
    margin-top: 10px;
    font-size: .86rem;
    font-weight: 600;
    color: #c4b5fd;
    text-decoration: none;
}
.qz-daily-archive-link:hover { color: #fff; text-decoration: underline; }
.daily-spotlight.h-100 { height: auto !important; }

/* ---- Category page: question bank at a glance ---- */
.qz-qb-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
}
.qz-qb-cell {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 14px 10px;
    text-align: center;
}
.qz-qb-cell strong { display: block; font-size: 1.25rem; color: var(--text-primary); line-height: 1.2; }
.qz-qb-cell span { display: block; font-size: .74rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .04em; margin-top: 3px; }

/* ---- Category page: study notes ---- */
.qz-notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}
.qz-note-card {
    position: relative;
    padding: 18px 18px 16px 58px;
    border-radius: 14px;
    background: rgba(139, 92, 246, .06);
    border: 1px solid rgba(139, 92, 246, .18);
}
.qz-note-num {
    position: absolute;
    left: 16px;
    top: 16px;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: .9rem;
    color: #fff;
    background: linear-gradient(135deg, #8b5cf6, #d946ef);
}
.qz-note-title { font-size: 1rem; font-weight: 700; margin: 0 0 6px; color: var(--text-primary); }
.qz-note-text { font-size: .9rem; line-height: 1.65; margin: 0; color: var(--text-primary); opacity: .88; }
.qz-notes-tips { margin: 0; padding-left: 1.2rem; }
.qz-notes-tips li { margin-bottom: 8px; line-height: 1.6; color: var(--text-primary); opacity: .9; }

/* ---- "X% of players got this right" ---- */
.qz-stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    border: 1px solid transparent;
}
.qz-stat-badge small { font-weight: 500; opacity: .75; }
.qz-stat-easy { color: #34d399; background: rgba(16, 185, 129, .1); border-color: rgba(16, 185, 129, .3); }
.qz-stat-mid  { color: #fbbf24; background: rgba(245, 158, 11, .1); border-color: rgba(245, 158, 11, .3); }
.qz-stat-hard { color: #f87171; background: rgba(239, 68, 68, .1); border-color: rgba(239, 68, 68, .3); }

/* ---- Daily trivia archive ---- */
.qz-daily-today {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-primary);
    background: linear-gradient(135deg, rgba(245, 185, 66, .14), rgba(217, 70, 239, .14));
    border: 1px solid rgba(245, 185, 66, .35);
}
.qz-daily-today:hover { color: var(--text-primary); border-color: rgba(245, 185, 66, .7); }
.qz-daily-today-ic { font-size: 1.8rem; }
.qz-daily-today strong { display: block; }
.qz-daily-today small { display: block; color: var(--text-secondary); }
.qz-daily-today-go { margin-left: auto; font-weight: 700; color: #f5b942; white-space: nowrap; }
.qz-daily-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}
.qz-daily-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-primary);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    transition: transform .15s ease, border-color .15s ease;
}
.qz-daily-card:hover { transform: translateY(-2px); border-color: rgba(139, 92, 246, .55); color: var(--text-primary); }
.qz-daily-date { font-size: 1.3rem; font-weight: 800; line-height: 1.1; }
.qz-daily-date small { display: block; font-size: .72rem; font-weight: 600; color: var(--text-secondary); letter-spacing: .03em; margin-top: 2px; }
.qz-daily-topics { font-size: .82rem; color: var(--text-secondary); line-height: 1.45; }
.qz-daily-open { font-size: .8rem; font-weight: 700; color: #a78bfa; margin-top: auto; }
.qz-daily-qmeta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; font-size: .75rem; }
.qz-daily-qmeta a, .qz-daily-qmeta span {
    padding: 2px 9px;
    border-radius: 999px;
    background: rgba(139, 92, 246, .12);
    color: #c4b5fd;
    text-decoration: none;
    font-weight: 600;
}
.qz-daily-page .qb-question { font-size: 1.05rem; }
.qz-daily-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    font-weight: 600;
    font-size: .9rem;
}
.qz-daily-nav a { text-decoration: none; }

@media (max-width: 575.98px) {
    .qz-note-card { padding: 16px 14px 14px 52px; }
    .qz-daily-today { flex-wrap: wrap; }
    .qz-daily-today-go { margin-left: 0; }
}

/* ---- Light theme ---- */
html[data-theme="light"] .qz-daily-archive-link,
html[data-theme="light"] .qz-daily-open { color: #6d28d9; }
html[data-theme="light"] .qz-daily-qmeta a,
html[data-theme="light"] .qz-daily-qmeta span { color: #6d28d9; }
html[data-theme="light"] .qz-stat-easy { color: #047857; }
html[data-theme="light"] .qz-stat-mid { color: #b45309; }
html[data-theme="light"] .qz-stat-hard { color: #b91c1c; }

/* keep study-note headings compact (global h3 rules are larger) */
.qz-notes .qz-note-title { font-size: 1rem !important; line-height: 1.35; }

/* =====================================================================
   v3: countries, percentile, party mode, user quizzes, worksheet, mistakes
   ===================================================================== */
.qz-flag { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }

/* ---- Leaderboard country bar ---- */
.qz-country-bar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    padding: 12px 14px; border-radius: 14px;
    background: var(--card-bg); border: 1px solid var(--card-border);
}
.qz-country-me { font-weight: 700; color: var(--text-primary); }
.qz-country-bar select { width: auto; min-width: 200px; max-width: 100%; border-radius: 999px; }
.qz-country-row {
    display: grid; grid-template-columns: 34px 34px 1fr auto; align-items: center; gap: 10px;
    padding: 10px 14px; border-radius: 12px;
    background: rgba(30, 27, 75, 0.25); border: 1px solid rgba(139, 92, 246, 0.08);
}
.qz-country-rank { font-weight: 700; color: var(--text-secondary); text-align: center; }
.qz-country-flag { font-size: 1.5rem; line-height: 1; }
.qz-country-name { font-weight: 700; color: var(--text-primary); font-size: .92rem; }
.qz-country-name small { display: block; font-weight: 500; color: var(--text-secondary); font-size: .72rem; }
.qz-country-pts { font-weight: 700; color: var(--text-primary); }
.qz-country-chip { font-size: .8rem; color: var(--text-secondary); white-space: nowrap; }
.qz-podium-flag { font-size: 1.2rem; line-height: 1.2; }

/* ---- Result screen: "You beat X%" ---- */
.qz-percentile {
    display: inline-block; margin-top: 8px; padding: 6px 14px; border-radius: 999px;
    font-weight: 700; font-size: .92rem; color: #34d399;
    background: rgba(16, 185, 129, .1); border: 1px solid rgba(16, 185, 129, .3);
}

/* ---- Party Mode: landing ---- */
.qz-party-hero {
    padding: 34px 30px; border-radius: 22px;
    background: radial-gradient(circle at 15% 20%, rgba(217, 70, 239, .35), transparent 50%),
                radial-gradient(circle at 85% 80%, rgba(34, 211, 238, .25), transparent 50%),
                linear-gradient(160deg, #2a1f63, #140f33);
    border: 1px solid rgba(139, 92, 246, .3);
}
.qz-party-code-input { letter-spacing: .35em; font-size: 1.8rem; }

/* ---- Party Mode: host screen ---- */
.qz-party-host { max-width: 1200px; margin: 0 auto; padding: 10px 0 30px; }
.qz-party-topbar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px;
    padding: 14px 20px; border-radius: 18px; margin-bottom: 18px;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
}
.qz-party-joininfo { color: var(--text-secondary); font-size: 1.05rem; }
.qz-party-joininfo strong { color: var(--text-primary); }
.qz-party-bigcode { font-size: 2.6rem; font-weight: 900; letter-spacing: .12em; color: #fff; line-height: 1;
    padding: 6px 18px; border-radius: 14px; background: linear-gradient(135deg, #8b5cf6, #d946ef); }
.qz-party-panel { text-align: center; padding: 26px 16px; border-radius: 22px; background: var(--card-bg); border: 1px solid var(--card-border); }
.qz-party-title { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 900; color: #fff; }
.qz-party-sub { color: var(--text-secondary); font-size: 1.15rem; }
.qz-party-names { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.qz-party-name { padding: 8px 16px; border-radius: 999px; font-weight: 700; color: #fff; background: rgba(139, 92, 246, .25); border: 1px solid rgba(139, 92, 246, .45); animation: qzPop .3s ease; }
@keyframes qzPop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.qz-party-qmeta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--text-secondary); font-weight: 600; margin-bottom: 10px; }
.qz-party-timer { position: relative; height: 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); margin-bottom: 18px; overflow: visible; }
.qz-party-timer-bar { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #22d3ee, #8b5cf6, #d946ef); transition: width 1s linear; }
.qz-party-timer span { position: absolute; right: 0; top: -34px; font-size: 1.6rem; font-weight: 900; color: #fff; }
.qz-party-qtext { font-size: clamp(1.5rem, 3.4vw, 2.6rem); font-weight: 800; color: #fff; line-height: 1.25; margin: 10px 0 24px; }
.qz-party-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.qz-party-opt { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; text-align: left;
    padding: 20px 18px; border-radius: 16px; color: #fff; font-size: clamp(1.05rem, 2vw, 1.5rem); font-weight: 700; transition: opacity .3s, transform .3s; }
.qz-party-opt.opt-A, .qz-party-pbtn.opt-A { background: #e11d48; }
.qz-party-opt.opt-B, .qz-party-pbtn.opt-B { background: #2563eb; }
.qz-party-opt.opt-C, .qz-party-pbtn.opt-C { background: #d97706; }
.qz-party-opt.opt-D, .qz-party-pbtn.opt-D { background: #059669; }
.qz-party-opt.is-dim { opacity: .35; }
.qz-party-opt.is-correct { transform: scale(1.02); box-shadow: 0 0 0 4px #fff, 0 12px 30px rgba(0, 0, 0, .35); }
.qz-party-key { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .22); font-weight: 900; position: relative; z-index: 1; }
.qz-party-otext { position: relative; z-index: 1; }
.qz-party-dist { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(255, 255, 255, .18); }
.qz-party-distn { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); z-index: 1; font-size: 1.3rem; }
.qz-party-expl { margin: 18px auto 0; max-width: 900px; color: var(--text-primary); font-size: 1.1rem; opacity: .9; }
.qz-party-mini { max-width: 560px; margin: 20px auto 0; text-align: left; }
.qz-party-mini h3 { font-size: 1.1rem; font-weight: 800; color: #fff; text-align: center; }
.qz-party-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 9px 14px; margin-bottom: 6px; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.qz-party-row span { font-weight: 800; color: var(--text-secondary); }
.qz-party-row strong { color: #fff; }
.qz-party-row em { font-style: normal; font-weight: 800; color: #f5b942; }
.qz-party-podium { display: flex; justify-content: center; align-items: flex-end; gap: 14px; margin-top: 24px; }
.qz-party-step { width: 170px; text-align: center; color: #fff; }
.qz-party-step strong { display: block; font-size: 1.15rem; margin-top: 4px; word-break: break-word; }
.qz-party-step em { display: block; font-style: normal; color: #f5b942; font-weight: 800; margin-bottom: 8px; }
.qz-party-medal { font-size: 2.6rem; }
.qz-party-block { border-radius: 14px 14px 0 0; background: linear-gradient(180deg, #8b5cf6, #4c1d95); }
.qz-party-step.first .qz-party-block { height: 170px; background: linear-gradient(180deg, #f5b942, #b45309); }
.qz-party-step.second .qz-party-block { height: 120px; }
.qz-party-step.third .qz-party-block { height: 85px; background: linear-gradient(180deg, #fb923c, #9a3412); }

/* ---- Party Mode: player phone ---- */
.qz-party-player { max-width: 520px; margin: 0 auto; padding: 8px 0 24px; }
.qz-party-me { display: flex; justify-content: space-between; gap: 8px; padding: 10px 14px; border-radius: 14px; margin-bottom: 14px; color: var(--text-secondary); background: var(--card-bg); border: 1px solid var(--card-border); font-size: .9rem; }
.qz-party-me strong { color: var(--text-primary); }
.qz-party-ppanel { text-align: center; padding: 26px 14px; border-radius: 20px; background: var(--card-bg); border: 1px solid var(--card-border); }
.qz-party-big { font-size: 3.4rem; line-height: 1.1; margin-bottom: 8px; }
.qz-party-pq { color: var(--text-secondary); font-weight: 700; margin-bottom: 4px; }
.qz-party-ptext { color: var(--text-primary); font-weight: 700; font-size: 1.05rem; margin-bottom: 14px; }
.qz-party-pbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qz-party-pbtn { border: 0; border-radius: 16px; min-height: 110px; padding: 12px; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-weight: 700; font-size: .95rem; box-shadow: 0 6px 0 rgba(0, 0, 0, .25); }
.qz-party-pbtn b { font-size: 1.8rem; line-height: 1; }
.qz-party-pbtn:active { transform: translateY(3px); box-shadow: 0 3px 0 rgba(0, 0, 0, .25); }
.qz-party-pbtn:disabled { opacity: .5; }
.qz-party-ptimer { margin: 14px 0 0; font-size: 1.3rem; font-weight: 800; color: var(--text-primary); }
@media (max-width: 767.98px) {
    .qz-party-options { grid-template-columns: 1fr; }
    .qz-party-bigcode { font-size: 2rem; }
    .qz-party-step { width: 31%; }
}

/* ---- Homepage: play together ---- */
.qz-together-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.qz-together-card {
    display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 16px; text-decoration: none;
    color: var(--text-primary); background: var(--card-bg); border: 1px solid var(--card-border);
    border-top: 3px solid var(--tg, #8b5cf6); transition: transform .15s ease, box-shadow .15s ease;
}
.qz-together-card:hover { transform: translateY(-3px); color: var(--text-primary); box-shadow: 0 10px 28px rgba(0, 0, 0, .3); }
.qz-together-ic { font-size: 1.8rem; }
.qz-together-card strong { font-size: 1.05rem; }
.qz-together-card span:last-child { font-size: .85rem; color: var(--text-secondary); line-height: 1.45; }

/* ---- Create & Share a Quiz ---- */
.qz-uq-q { padding: 16px; border-radius: 14px; margin-bottom: 14px; background: rgba(139, 92, 246, .06); border: 1px solid rgba(139, 92, 246, .18); }
.qz-uq-q .input-group-text { background: rgba(255, 255, 255, .06); color: var(--text-primary); border-color: var(--card-border); }
.qz-uq-opt { text-align: left; padding: 14px 16px; border-radius: 12px; font-weight: 600; color: var(--text-primary);
    background: rgba(255, 255, 255, .05); border: 1px solid var(--card-border); }
.qz-uq-opt:hover:not(:disabled) { border-color: #8b5cf6; color: var(--text-primary); }
.qz-uq-opt b { display: inline-block; width: 28px; color: #a78bfa; }
.qz-uq-opt.is-right { background: rgba(16, 185, 129, .2); border-color: #10b981; }
.qz-uq-opt.is-wrong { background: rgba(239, 68, 68, .2); border-color: #ef4444; }
.qz-uq-share { background: linear-gradient(135deg, rgba(16, 185, 129, .12), rgba(139, 92, 246, .12)); border: 1px solid rgba(16, 185, 129, .35) !important; }
.qz-note-card .qz-note-title { font-size: 1rem !important; line-height: 1.35; }

/* ===== v4: Featured game (Crowd Guess Quiz) ===== */
.qz-fg-inner { display: grid; grid-template-columns: 1.25fr 1fr; gap: 0; border-radius: 1.4rem; overflow: hidden;
  background: linear-gradient(135deg, #3b0764 0%, #1e1b4b 55%, #0f172a 100%); border: 1px solid rgba(217,70,239,.35);
  box-shadow: 0 18px 50px rgba(124,58,237,.28); position: relative; }
.qz-fg-art { position: relative; min-height: 220px; background: #111; }
.qz-fg-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qz-fg-play { position: absolute; inset: 0; margin: auto; width: max-content; height: max-content; display: flex; align-items: center; gap: .6rem;
  padding: .85rem 1.6rem; border: 0; border-radius: 999px; font-weight: 800; font-size: 1.15rem; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, #f97316, #db2777); box-shadow: 0 10px 30px rgba(219,39,119,.55); animation: qzFgPulse 1.8s ease-in-out infinite; }
.qz-fg-play-ic { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: rgba(255,255,255,.22); font-size: .95rem; }
.qz-fg-play:hover { transform: scale(1.05); }
@keyframes qzFgPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(249,115,22,.55); } 50% { box-shadow: 0 0 0 14px rgba(249,115,22,0); } }
.qz-fg-text { padding: 1.6rem 1.6rem 1.5rem; color: #fff; display: flex; flex-direction: column; justify-content: center; gap: .55rem; }
.qz-fg-tag { align-self: flex-start; font-size: .78rem; font-weight: 700; padding: .25rem .7rem; border-radius: 999px; background: rgba(249,115,22,.2); color: #fdba74; border: 1px solid rgba(249,115,22,.45); }
.qz-fg-title { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; margin: 0; background: linear-gradient(90deg, #fff, #f0abfc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.qz-fg-desc { margin: 0; color: rgba(255,255,255,.82); font-size: .98rem; }
.qz-fg-points { list-style: none; padding: 0; margin: 0 0 .4rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.qz-fg-points li { font-size: .8rem; padding: .2rem .6rem; border-radius: 999px; background: rgba(255,255,255,.1); }
.qz-fg-inner.is-playing { display: block; }
.qz-fg-livebar { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; padding: .6rem .9rem; color: #fff; }
.qz-fg-frame, .qz-cg-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 80vh; background: #000; }
.qz-fg-frame iframe, .qz-cg-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.qz-cg-frame { border-radius: 1rem; overflow: hidden; border: 1px solid rgba(217,70,239,.35); box-shadow: 0 14px 40px rgba(124,58,237,.25); }
.qz-fg-frame:fullscreen, .qz-cg-frame:fullscreen { max-height: none; aspect-ratio: auto; height: 100vh; border-radius: 0; }
.qz-cg-wrap { margin: 1rem 0 1.5rem; }
@media (max-width: 767.98px) {
  .qz-fg-inner { grid-template-columns: 1fr; }
  .qz-fg-art { aspect-ratio: 16 / 9; min-height: 0; }
  .qz-fg-text { padding: 1.1rem; }
  .qz-fg-frame, .qz-cg-frame { aspect-ratio: auto; height: 75vh; max-height: none; }
}

/* ===== v4: "New" menu + New on Quizlino strip ===== */
.qz-nav-new { position: relative; color: #fdba74 !important; font-weight: 700; }
.qz-nav-dot { position: absolute; top: 6px; right: 2px; width: 8px; height: 8px; border-radius: 50%; background: #f97316; box-shadow: 0 0 0 0 rgba(249,115,22,.7); animation: qzFgPulse 1.6s infinite; }
.qz-new-menu .dropdown-item small { opacity: .65; }
.qz-new-pill { display: inline-block; font-style: normal; font-size: .62rem; font-weight: 800; letter-spacing: .04em; padding: .1rem .4rem; border-radius: 999px; background: linear-gradient(135deg,#f97316,#db2777); color: #fff; vertical-align: middle; margin-left: .25rem; }
.qz-party-join { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; padding: .85rem 1rem; border-radius: 1rem;
  background: linear-gradient(135deg, rgba(217,70,239,.18), rgba(34,211,238,.12)); border: 1px solid rgba(217,70,239,.35); }
.qz-party-join-text { flex: 1 1 220px; color: var(--text-primary, #fff); }
.qz-party-join-text span { color: var(--text-secondary, rgba(255,255,255,.75)); font-size: .9rem; }
.qz-party-join-form { display: flex; gap: .4rem; }
.qz-party-join-form input { width: 130px; text-align: center; font-weight: 700; letter-spacing: .15em; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.25); color: #fff; padding: .45rem .8rem; }
.qz-party-join-form input::placeholder { letter-spacing: normal; font-weight: 500; color: rgba(255,255,255,.5); }
@media (max-width: 575.98px) { .qz-party-join-form { flex: 1 1 100%; } .qz-party-join-form input { flex: 1; width: auto; } .qz-party-join > .btn { flex: 1 1 100%; } }
/* small laptops: How to Play / Blog / Mock Test move into the Fun Zone menu so the bar never overflows */
.qz-nav-narrow-only { display: none; }
@media (min-width: 992px) and (max-width: 1299.98px) {
  #mainNav .qz-nav-wide { display: none !important; }
  .qz-nav-narrow-only { display: list-item; }
}
/* logged-in desktop: History / My Stats / Profile / Logout live in the "Me" menu */
.qz-me-menu { display: none; }
@media (min-width: 992px) {
  #mainNav .qz-me-flat { display: none !important; }
  .qz-me-menu { display: list-item; list-style: none; }
}
/* "New" dot sits next to the word instead of floating */
.qz-nav-dot { position: relative; top: -6px; right: auto; display: inline-block; margin-left: 2px; width: 7px; height: 7px; }
/* phones: feature cards in 2 compact columns */
@media (max-width: 575.98px) {
  .qz-together-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .qz-together-card { padding: 12px !important; gap: 4px !important; }
  .qz-together-ic { font-size: 1.4rem; }
  .qz-together-card strong { font-size: .92rem; }
  .qz-together-card span:last-child { font-size: .76rem; }
}
