/*
Theme Name:  9wQuiz
Description: Premium animated theme for the 9wQuiz online quiz site. Built around the 9wQuiz Quiz Manager plugin.
Version:     2.0.0
Author:      9wQuiz
Text Domain: quiz24
Requires PHP: 7.4
*/

/* ==========================================================================
   1. TOKENS
   ========================================================================== */
:root {
    --night:    #0e0b05;
    --night-2:  #1a150a;
    --night-3:  #272011;
    --bg:       #fbf8ef;
    --surface:  #ffffff;
    --ink:      #1d1808;
    --muted:    #6f6750;
    --line:     #eee6d0;

    --primary:   #f1c247;
    --primary-ink: #865c00;
    --on-primary: #1d1808;
    --primary-2: #d6a01c;
    --accent:    #ff9d2e;
    --pink:      #ff7a45;
    --live:      #ff4757;
    --upcoming:  #2f9bff;
    --success:   #16c47f;

    --grad-text:    linear-gradient(100deg, #fff0b3 0%, #f1c247 48%, #e39c1a 100%);
    --grad-primary: linear-gradient(135deg, #f8db7c 0%, #f1c247 50%, #d9a11c 100%);
    --grad-accent:  linear-gradient(135deg, #ffeeb0 0%, #f1c247 55%, #de9f1a 100%);

    --r-xl: 28px;
    --r-lg: 20px;
    --r-md: 14px;
    --r-sm: 10px;

    --sh-sm: 0 1px 2px rgba(30,24,8,.05), 0 4px 14px rgba(30,24,8,.05);
    --sh-md: 0 2px 4px rgba(30,24,8,.04), 0 12px 32px rgba(30,24,8,.08);
    --sh-lg: 0 24px 60px rgba(30,24,8,.16);
    --sh-glow: 0 18px 50px rgba(214,160,20,.35);

    --font:      'Noto Sans Bengali', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-head: 'Anek Bangla', 'Noto Sans Bengali', system-ui, sans-serif;

    --container: 1220px;
    --header-h:  64px;

    /* Fluid vertical rhythm: phone → desktop */
    --space-section: clamp(28px, 3.4vw, 44px);
    --space-hero:    clamp(18px, 2.2vw, 28px);
    --space-tight:   clamp(20px, 2.4vw, 28px);
    --cover-overlap: clamp(48px, 7vw, 96px);
    --ease:      cubic-bezier(.2, .8, .2, 1);

    /* Tokens the quiz plugin reads */
    --q24-primary: var(--primary);
    --q24-primary-ink: var(--primary-ink);
    --q24-primary-soft: #fdf1cf;
    --q24-accent: var(--accent);
    --q24-live: var(--live);
    --q24-success: var(--success);
    --q24-upcoming: var(--upcoming);
    --q24-bg: var(--bg);
    --q24-ink: var(--ink);
    --q24-muted: var(--muted);
    --q24-line: var(--line);
    --q24-radius: var(--r-lg);
    --q24-radius-sm: var(--r-sm);
    --q24-font: var(--font);
    --q24-font-head: var(--font-head);
}

/* ==========================================================================
   2. BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0; background: var(--bg); color: var(--ink);
    font: 400 16px/1.7 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--primary-ink); text-decoration: none; }
a:hover { color: var(--primary-2); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.3; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--primary); color: var(--on-primary); }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 1000; width: auto; height: auto; clip: auto; padding: 10px 16px; background: #fff; color: var(--ink); border-radius: 10px; }

.q24-container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; position: relative; }
.q24-i { width: 1em; height: 1em; flex: 0 0 auto; }
/* Gradient text. The padding enlarges the painted box so Bangla vowel signs
   above/below the line (ি ী ু ূ ৃ) are not clipped; the negative margin cancels
   the padding so layout is unchanged. */
.q24-grad {
    background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
    padding: .14em 0 .24em; margin: -.14em 0 -.24em;
    -webkit-box-decoration-break: clone; box-decoration-break: clone;
    pointer-events: none; /* the enlarged box must not block the line below it */
}

/* Reveal on scroll */
/* Reveal on scroll (only when JS is running; see header.php) */
.q24-js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.q24-js [data-reveal].is-in { opacity: 1; transform: none; }

/* Scroll progress */
.q24-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 100; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: var(--grad-text); }

/* ==========================================================================
   3. BUTTONS, PILLS, TAGS
   ========================================================================== */
.q24-btn {
    --pad: 10px 18px;
    position: relative; overflow: hidden; isolation: isolate;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: var(--pad); border-radius: 999px; border: 0; cursor: pointer;
    font: 700 15px/1.2 var(--font); text-decoration: none; white-space: nowrap;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s ease, color .25s ease;
}
.q24-btn .q24-i { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.q24-btn:hover .q24-i { transform: translateX(4px); }
.q24-btn::after { /* shine sweep */
    content: ""; position: absolute; inset: 0; z-index: -1; transform: translateX(-120%) skewX(-20deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
    transition: transform .7s var(--ease);
}
.q24-btn:hover::after { transform: translateX(120%) skewX(-20deg); }
.q24-btn:hover { transform: translateY(-2px); }
.q24-btn:active { transform: translateY(0); }
.q24-btn--primary { background: var(--grad-primary); color: var(--on-primary); box-shadow: var(--sh-glow); }
.q24-btn--primary:hover { color: var(--on-primary); box-shadow: 0 22px 54px rgba(214,160,20,.5); }
.q24-btn--accent { background: var(--grad-accent); color: #2b1600; box-shadow: 0 16px 40px rgba(255,160,40,.35); }
.q24-btn--accent:hover { color: #2b1600; box-shadow: 0 22px 54px rgba(255,160,40,.5); }
.q24-btn--glass { background: rgba(255,255,255,.08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); backdrop-filter: blur(10px); }
.q24-btn--glass:hover { background: rgba(255,255,255,.16); color: #fff; }
.q24-btn--outline { background: transparent; color: var(--primary-ink); box-shadow: inset 0 0 0 2px var(--primary); }
.q24-btn--outline:hover { background: var(--primary); color: var(--on-primary); }
.q24-btn--sm { --pad: 9px 16px; font-size: 15px; }
.q24-btn--lg { --pad: 12px 22px; font-size: 16px; }
.q24-btn--block { width: 100%; }

.q24-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 14px; border-radius: 999px; font-size: 14px; font-weight: 700;
    color: var(--primary-ink); background: #fdf1cf; letter-spacing: .01em;
}
.q24-pill--glass { color: #fff; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); backdrop-filter: blur(8px); }

.q24-dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(255,71,87,.7); animation: q24-ping 1.6s infinite; flex: 0 0 auto; }
@keyframes q24-ping { 0% { box-shadow: 0 0 0 0 rgba(255,71,87,.6); } 80%, 100% { box-shadow: 0 0 0 9px rgba(255,71,87,0); } }

.q24-status {
    display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px;
    font-size: 13px; font-weight: 700; background: rgba(255,255,255,.95); color: var(--ink); box-shadow: 0 6px 20px rgba(0,0,0,.18);
}
.q24-status i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.q24-status--live { color: var(--live); }
.q24-status--live i { animation: q24-ping 1.6s infinite; }
.q24-status--upcoming { color: var(--upcoming); }
.q24-status--closed { color: var(--muted); }

.q24-tag {
    display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px;
    font-size: 13px; font-weight: 700; color: #fff; background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
}
.q24-tag .q24-i { width: 15px; height: 15px; }
.q24-tag--soft { color: var(--c1, var(--primary)); background: color-mix(in srgb, var(--c1, var(--primary)) 12%, white); box-shadow: none; }

.q24-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--primary-ink); }
.q24-link .q24-i { width: 17px; height: 17px; transition: transform .25s var(--ease); }
.q24-link:hover .q24-i { transform: translateX(4px); }

/* ==========================================================================
   4. AMBIENT BACKGROUNDS (aurora, grid, floaters)
   ========================================================================== */
.q24-aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.q24-aurora i {
    position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(80px); opacity: .55;
    animation: q24-drift 22s ease-in-out infinite alternate;
}
.q24-aurora i:nth-child(1) { background: #f1c247; top: -22vmax; left: -10vmax; }
.q24-aurora i:nth-child(2) { background: #c98a1e; top: -18vmax; right: -14vmax; opacity: .38; animation-duration: 26s; animation-delay: -6s; }
.q24-aurora i:nth-child(3) { background: #f1c247; bottom: -30vmax; left: 30%; opacity: .22; animation-duration: 30s; animation-delay: -12s; }
.q24-aurora--soft i { opacity: .28; }
@keyframes q24-drift {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(6vmax, 4vmax) scale(1.12); }
    100% { transform: translate(-4vmax, 6vmax) scale(.95); }
}
.q24-grid-bg {
    position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.q24-floaters span {
    position: absolute; left: var(--x); top: var(--y); z-index: 0; pointer-events: none;
    font: 800 calc(64px * var(--s)) / 1 var(--font-head); color: rgba(255,255,255,.07);
    animation: q24-float var(--t) ease-in-out infinite;
}
@keyframes q24-float { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-22px) rotate(6deg); } }

/* ==========================================================================
   5. HEADER
   ========================================================================== */
.q24-header {
    position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--header-h);
    transition: background .35s ease, box-shadow .35s ease, height .35s var(--ease), backdrop-filter .35s;
}
/* Logged-in users: sit below the WP admin bar. --q24-adminbar is kept in sync by
   theme.js, because on phones (≤600px) the admin bar scrolls away instead of staying fixed. */
.admin-bar .q24-header { top: var(--q24-adminbar, 32px); }
@media (max-width: 782px) { .admin-bar .q24-header { top: var(--q24-adminbar, 46px); } }
.q24-header.is-scrolled {
    --header-h: 58px;
    background: rgba(14,11,5,.78); backdrop-filter: saturate(1.6) blur(16px);
    box-shadow: 0 1px 0 rgba(255,255,255,.08), 0 12px 30px rgba(0,0,0,.25);
}
.q24-header__inner { display: flex; align-items: center; gap: 20px; height: 100%; }

.q24-logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; flex: 0 0 auto; }
.q24-logo:hover { color: #fff; }
.q24-logo__mark { width: 34px; height: 34px; transition: transform .5s var(--ease); }
.q24-logo:hover .q24-logo__mark { transform: rotate(-12deg) scale(1.06); }
.q24-logo__text { font: 800 23px/1 var(--font-head); letter-spacing: -.5px; }
.q24-logo__text span { background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.q24-logo img.custom-logo { max-height: 44px; width: auto; display: block; }

.q24-nav { margin-left: auto; }
.q24-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.q24-nav a {
    position: relative; display: block; padding: 8px 14px; border-radius: 999px;
    color: rgba(255,255,255,.82); font-weight: 600; transition: color .2s ease, background .2s ease;
}
.q24-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.q24-nav .current-menu-item > a,
.q24-nav .current_page_item > a,
.q24-nav .current-menu-parent > a { color: #fff; background: rgba(255,255,255,.12); }
.q24-header__cta { flex: 0 0 auto; }
.q24-nav .q24-nav__cta { display: none; }

.q24-menu-toggle {
    display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 14px; cursor: pointer;
    border: 0; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
    align-items: center; justify-content: center;
}
.q24-burger { position: relative; width: 20px; height: 14px; }
.q24-burger i { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: #fff; transition: transform .35s var(--ease), opacity .2s, top .35s var(--ease); }
.q24-burger i:nth-child(1) { top: 0; }
.q24-burger i:nth-child(2) { top: 6px; }
.q24-burger i:nth-child(3) { top: 12px; }
.q24-menu-open .q24-burger i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.q24-menu-open .q24-burger i:nth-child(2) { opacity: 0; }
.q24-menu-open .q24-burger i:nth-child(3) { top: 6px; transform: rotate(-45deg); }

@media (max-width: 960px) {
    .q24-menu-toggle { display: inline-flex; }
    .q24-header__cta { display: none; }
    .q24-nav {
        position: fixed; inset: var(--header-h) 0 auto 0; margin: 0; padding: 14px 20px 22px;
        background: rgba(14,11,5,.96); backdrop-filter: blur(16px);
        border-top: 1px solid rgba(255,255,255,.08); box-shadow: 0 30px 60px rgba(0,0,0,.4);
        transform: translateY(-12px); opacity: 0; visibility: hidden;
        transition: opacity .3s ease, transform .35s var(--ease), visibility 0s .35s;
    }
    .admin-bar .q24-nav { top: calc(var(--header-h) + var(--q24-adminbar, 46px)); }
    .q24-menu-open .q24-nav { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
    .q24-menu-open { background: rgba(14,11,5,.96); }
    .q24-nav ul { flex-direction: column; gap: 4px; }
    .q24-nav a { padding: 13px 16px; border-radius: 12px; font-size: 17px; }
    .q24-nav .q24-nav__cta { display: flex; margin-top: 12px; }
}

/* ==========================================================================
   6. HOME HERO
   ========================================================================== */
.q24-hero {
    position: relative; overflow: hidden; color: #fff; isolation: isolate;
    background: radial-gradient(120% 80% at 50% 0%, var(--night-3) 0%, var(--night) 60%);
    padding-top: var(--header-h);
    padding-bottom: 48px; /* the stats card floats up into this space */
}
@media (max-width: 900px) { .q24-hero { padding-bottom: 48px; } }
.q24-hero__inner {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 32px; align-items: center;
    padding-top: var(--space-hero); padding-bottom: var(--space-section);
}
@media (max-width: 1000px) { .q24-hero__inner { grid-template-columns: minmax(0, 1fr); padding-top: 28px; padding-bottom: 48px; gap: 32px; } }

.q24-hero__title { font-size: clamp(28px, 4vw, 44px); line-height: 1.24; margin: 16px 0 12px; color: #fff; font-weight: 800; }
.q24-hero__lead { font-size: clamp(15px, 1.4vw, 17px); color: rgba(255,255,255,.78); max-width: 540px; margin-bottom: 22px; }
.q24-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Rotating words: stacked in one grid cell and cross-faded by theme.js, so
   Bangla vowel signs that hang outside the line box never peek in. */
.q24-rotator { display: inline-grid; }
.q24-rotator__track { display: grid; }
.q24-rotator__track > span {
    grid-area: 1 / 1; opacity: 0; transform: translateY(.35em); filter: blur(6px);
    transition: opacity .6s var(--ease), transform .6s var(--ease), filter .6s var(--ease);
}
.q24-rotator__track > span.is-active { opacity: 1; transform: none; filter: none; }
.q24-rotator__track > span.is-leaving { transform: translateY(-.35em); }

.q24-trust { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.q24-trust p { margin: 0; color: rgba(255,255,255,.72); font-size: 15px; }
.q24-trust strong { color: #fff; font-size: 18px; }
.q24-avatars { display: flex; }
.q24-avatars span {
    width: 32px; height: 32px; margin-left: -8px; border-radius: 50%; display: grid; place-items: center;
    font: 700 14px var(--font); color: #fff; border: 2px solid var(--night);
    background: hsl(calc(28 + var(--i, 0) * 14) 72% 46%);
}
.q24-avatars span:first-child { margin-left: 0; }
.q24-avatars__more { background: var(--grad-accent) !important; color: #2b1600 !important; font-size: 18px !important; }

/* Hero stage: spotlight card + floating toasts */
.q24-hero__stage { position: relative; perspective: 1200px; }
.q24-spot {
    position: relative; display: block; color: var(--ink);
    border: 2px solid transparent; border-radius: var(--r-xl); overflow: hidden; max-width: 400px; margin-left: auto;
    background: linear-gradient(var(--surface), var(--surface)) padding-box,
                conic-gradient(from var(--ang, 0deg), var(--c1), var(--accent), var(--c2), var(--c1)) border-box;
    box-shadow: 0 40px 100px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.1);
    transform-style: preserve-3d; transition: transform .4s var(--ease);
    animation: q24-bob 7s ease-in-out infinite, q24-spin 6s linear infinite;
}
.q24-spot:hover { color: var(--ink); }
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes q24-spin { to { --ang: 360deg; } }
@keyframes q24-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.q24-spot__media { position: relative; aspect-ratio: 16 / 7; overflow: hidden; }
.q24-spot__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.q24-spot:hover .q24-spot__media img { transform: scale(1.06); }
.q24-spot__media .q24-status { position: absolute; top: 14px; left: 14px; }
.q24-spot__body { padding: 14px 16px 16px; }
.q24-spot__body h2 { font-size: 18px; margin-bottom: 6px; }
.q24-spot__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 16px; color: var(--muted); font-size: 14px; font-weight: 600; }
.q24-spot__meta span { display: inline-flex; align-items: center; gap: 6px; }
.q24-spot__meta .q24-i { width: 16px; height: 16px; color: var(--primary-ink); }
.q24-spot .qms-card-countdown-wrap { margin-bottom: 16px; }

.q24-toast {
    position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px;
    padding: 6px 14px 6px 6px; border-radius: 14px; color: var(--ink);
    background: rgba(255,255,255,.9); backdrop-filter: blur(12px) saturate(1.4); -webkit-backdrop-filter: blur(12px) saturate(1.4);
    box-shadow: 0 14px 32px rgba(0,0,0,.28), inset 0 0 0 1px rgba(255,255,255,.6);
    animation: q24-bob 6s ease-in-out infinite;
}
.q24-toast small { display: block; font-size: 10.5px; color: var(--muted); font-weight: 600; line-height: 1.3; }
.q24-toast strong { display: block; font-size: 13px; line-height: 1.3; }
.q24-toast__ic { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 auto; }
.q24-toast__ic .q24-i { width: 16px; height: 16px; }
.q24-toast--win { left: -44px; top: 118px; animation-delay: -2s; }
/* Two-column hero: leave room under the card for the winner badge */
@media (min-width: 1001px) { .q24-hero__inner { padding-bottom: 40px; } }
.q24-toast--win .q24-toast__ic { background: var(--grad-accent); color: #2b1600; }
.q24-toast--ok { right: -26px; top: -14px; animation-delay: -4s; }
.q24-toast--ok .q24-toast__ic { background: #dcfce9; color: var(--success); }
@media (max-width: 1000px) {
    .q24-spot { margin: 0 auto; }
    /* Stacked layout: the winner badge sits under the card instead of over its button */
    .q24-toast--win { position: relative; left: auto; bottom: auto; top: auto; width: max-content; max-width: 100%; margin: 18px auto 0; }
    .q24-toast--ok { right: 0; top: -22px; }
}
@media (max-width: 520px) { .q24-toast { transform: scale(.88); } .q24-toast--ok { display: none; } }

/* Category marquee */
.q24-marquee {
    position: relative; z-index: 1; overflow: hidden; padding: 9px 0; border-top: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.03);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.q24-marquee__track { display: flex; gap: 14px; width: max-content; animation: q24-marquee 38s linear infinite; }
.q24-marquee:hover .q24-marquee__track { animation-play-state: paused; }
.q24-marquee span {
    display: inline-flex; align-items: center; gap: 7px; padding: 5px 13px; border-radius: 999px;
    color: #fff; font-weight: 600; white-space: nowrap;
    background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.q24-marquee .q24-i { width: 18px; height: 18px; color: var(--c1); filter: brightness(1.6); }
@keyframes q24-marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   7. INNER PAGE HERO
   ========================================================================== */
.q24-phero {
    position: relative; overflow: hidden; isolation: isolate; color: #fff; text-align: center;
    background: radial-gradient(120% 90% at 50% 0%, var(--night-3) 0%, var(--night) 65%);
    padding: calc(var(--header-h) + var(--space-hero)) 0 var(--space-hero);
}
.q24-phero__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.q24-phero__title { font-size: clamp(24px, 3.2vw, 36px); line-height: 1.28; margin: 12px 0 8px; color: #fff; font-weight: 800; max-width: 900px; }
.q24-phero__sub { font-size: clamp(15px, 1.4vw, 17px); color: rgba(255,255,255,.75); max-width: 640px; margin: 0 auto 8px; }
.q24-hero-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.q24-hero-stats span { padding: 8px 16px; border-radius: 999px; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); color: rgba(255,255,255,.8); font-weight: 600; }
.q24-hero-stats strong { color: #fff; font-size: 18px; }

.q24-search {
    display: flex; align-items: center; gap: 8px; width: min(620px, 100%); margin: 26px auto 0;
    padding: 7px 7px 7px 20px; border-radius: 999px;
    background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), 0 20px 50px rgba(0,0,0,.25);
    backdrop-filter: blur(12px); transition: box-shadow .25s ease;
}
.q24-search:focus-within { box-shadow: inset 0 0 0 2px var(--accent), 0 20px 50px rgba(0,0,0,.3); }
.q24-search > .q24-i { width: 20px; height: 20px; color: rgba(255,255,255,.7); }
.q24-search input { flex: 1; min-width: 0; border: 0; background: none; color: #fff; font: 500 16px var(--font); padding: 8px 4px; }
.q24-search input::placeholder { color: rgba(255,255,255,.55); }
.q24-search input:focus { outline: none; }

/* ==========================================================================
   8. SECTIONS
   ========================================================================== */
.q24-section { position: relative; padding: var(--space-section) 0 0; }
.q24-section--tight { padding-top: var(--space-tight); }
.q24-main > .q24-section:last-child,
.q24-main > section:last-of-type { padding-bottom: var(--space-tight); }
/* Content right after a page hero starts at the tighter rhythm */
.q24-phero + .q24-section, .q24-post-wrap + .q24-section { padding-top: var(--space-tight); }
.q24-section--dark {
    margin-top: var(--space-section); padding: clamp(28px, 3.4vw, 44px) 0; color: #fff; overflow: hidden; isolation: isolate;
    background: radial-gradient(100% 120% at 50% 0%, var(--night-3), var(--night) 70%);
}
.q24-section--dark + .q24-section { padding-top: var(--space-section); }

.q24-shead { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.q24-shead__title { font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; margin: 8px 0 4px; }
.q24-shead__sub { color: var(--muted); margin: 0; font-size: 17px; }
.q24-section--dark .q24-shead__sub { color: rgba(255,255,255,.7); }
.q24-section--dark .q24-pill { background: rgba(255,255,255,.1); color: #fff; }

.q24-empty {
    text-align: center; padding: 40px 20px; border-radius: var(--r-xl);
    background: var(--surface); border: 1.5px dashed var(--line); color: var(--muted);
}
.q24-empty strong { display: block; color: var(--ink); font-size: 20px; margin-bottom: 4px; font-family: var(--font-head); }
.q24-empty p { margin: 0 0 18px; }
.q24-empty__icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 20px; display: grid; place-items: center; background: #fdf1cf; color: var(--primary-ink); }
.q24-empty__icon .q24-i { width: 28px; height: 28px; }

/* Stats strip */
.q24-stats { position: relative; z-index: 2; margin-top: -34px; padding-top: 0; margin-bottom: 14px; }
.q24-stats__grid {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    transform: translateY(-50%); margin-bottom: -40px;
    background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--sh-lg);
    border: 1px solid var(--line);
}
.q24-stat { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.q24-stat + .q24-stat { border-left: 1px solid var(--line); }
.q24-stat__ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: 0 0 auto; color: var(--on-primary); background: var(--grad-primary); box-shadow: var(--sh-glow); }
.q24-stat:nth-child(2) .q24-stat__ic { background: linear-gradient(135deg, #ffb35c, #e8742f); box-shadow: 0 14px 34px rgba(255,140,60,.35); }
.q24-stat:nth-child(3) .q24-stat__ic { background: var(--grad-accent); color: #2b1600; box-shadow: 0 14px 34px rgba(255,160,40,.35); }
.q24-stat:nth-child(4) .q24-stat__ic { background: linear-gradient(135deg, #34d399, #10b981); box-shadow: 0 14px 34px rgba(16,185,129,.35); }
.q24-stat__ic .q24-i { width: 20px; height: 20px; }
.q24-stat__num { font: 800 clamp(18px, 1.8vw, 22px)/1 var(--font-head); }
.q24-stat__label { color: var(--muted); font-weight: 600; font-size: 14px; margin-top: 4px; }
@media (max-width: 900px) {
    /* Card floats 48px into the hero's bottom padding (no transform, so spacing below stays exact) */
    .q24-stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); transform: none; margin: -48px 0 0; }
    .q24-stat:nth-child(3) { border-left: 0; }
    .q24-stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) { .q24-stat { flex-direction: column; text-align: center; padding: 14px 8px; gap: 8px; } }

/* ==========================================================================
   9. QUIZ CARDS
   ========================================================================== */
.q24-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }

.qc {
    --mx: 50%; --my: 50%;
    --tint: color-mix(in srgb, var(--c1) 9%, #fff);
    position: relative; display: flex; flex-direction: column; color: var(--ink);
    background: var(--surface); border-radius: 22px; overflow: hidden; isolation: isolate;
    box-shadow: 0 0 0 1px rgba(30,24,8,.06), 0 2px 4px rgba(30,24,8,.04), 0 14px 34px -12px rgba(30,24,8,.16);
    transition: transform .45s var(--ease), box-shadow .45s var(--ease), opacity .8s var(--ease);
    transform-style: preserve-3d;
}
.qc:hover {
    color: var(--ink); transform: translateY(-4px);
    box-shadow: 0 0 0 1px rgba(30,24,8,.04), 0 28px 60px -18px color-mix(in srgb, var(--c1) 45%, rgba(30,24,8,.35));
}
.qc::before { /* gradient border on hover */
    content: ""; position: absolute; inset: 0; z-index: 4; border-radius: inherit; padding: 1.5px; pointer-events: none;
    background: linear-gradient(135deg, var(--c1), var(--accent), var(--c2));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0; transition: opacity .35s ease;
}
.qc:hover::before { opacity: 1; }
.qc::after { /* cursor spotlight */
    content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
    background: radial-gradient(380px circle at var(--mx) var(--my), color-mix(in srgb, var(--c1) 10%, transparent), transparent 45%);
    opacity: 0; transition: opacity .3s ease;
}
.qc:hover::after { opacity: 1; }

/* Framed cover */
.qc__media {
    position: relative; margin: 6px 6px 0; aspect-ratio: 16 / 8.6; overflow: hidden; border-radius: 17px;
    background: linear-gradient(135deg, var(--c1), var(--c2));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.qc__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s var(--ease), filter .4s ease; }
.qc:hover .qc__media img { transform: scale(1.07); }
.qc--closed .qc__media img { filter: grayscale(.6) brightness(.92); }
.qc__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,11,5,.28) 0%, transparent 34%, transparent 52%, rgba(14,11,5,.55) 100%); pointer-events: none; }
.qc__ph { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; }
.qc__ph .q24-i { width: 56px; height: 56px; }

.qc__badge, .qc__cat {
    position: absolute; top: 10px; z-index: 1;
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
    font-size: 12px; font-weight: 700; line-height: 1.5; color: #fff;
    background: rgba(14,11,5,.42); backdrop-filter: blur(10px) saturate(1.4); -webkit-backdrop-filter: blur(10px) saturate(1.4);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.qc__badge { left: 10px; }
.qc__badge i { width: 7px; height: 7px; border-radius: 50%; background: #c9c6d8; flex: 0 0 auto; }
.qc--live .qc__badge i { background: #ff4757; box-shadow: 0 0 0 3px rgba(255,71,87,.25); animation: q24-ping 1.6s infinite; }
.qc--upcoming .qc__badge i { background: #4fb0ff; box-shadow: 0 0 0 3px rgba(79,176,255,.25); }
.qc__cat { right: 10px; max-width: 55%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qc__cat .q24-i { width: 13px; height: 13px; flex: 0 0 auto; }

.qc__prize {
    position: absolute; left: 10px; bottom: 10px; z-index: 1;
    display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px;
    color: #2b1600; background: linear-gradient(135deg, #ffe08a, #ffb020);
    box-shadow: 0 8px 20px rgba(255,160,32,.35), inset 0 1px 0 rgba(255,255,255,.6);
}
.qc__prize-ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.55); flex: 0 0 auto; }
.qc__prize-ic .q24-i { width: 15px; height: 15px; }
.qc__prize small { display: block; font-size: 10px; font-weight: 700; line-height: 1.1; opacity: .75; }
.qc__prize strong { display: block; font: 800 14px/1.25 var(--font-head); }
.qc--closed .qc__prize { filter: saturate(.5); }

/* Body */
.qc__body { display: flex; flex-direction: column; gap: 6px; padding: 12px 16px 12px; flex: 1; }
.qc__title {
    font-size: 17px; line-height: 1.38; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    transition: color .25s ease;
}
.qc:hover .qc__title { color: color-mix(in srgb, var(--c1) 70%, var(--ink)); }
.qc__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; color: var(--muted); font-size: 13px; font-weight: 600; }
.qc__meta > span { display: inline-flex; align-items: center; gap: 5px; }
.qc__meta > span + span { position: relative; }
.qc__meta > span + span::before { content: ""; position: absolute; left: -8px; top: 50%; width: 3px; height: 3px; border-radius: 50%; background: #cfcadf; }
.qc__meta .q24-i { width: 15px; height: 15px; color: var(--c1); }

/* Ticket footer */
.qc__foot {
    position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px;
    margin: 0 16px; padding: 11px 0 14px; border-top: 1.5px dashed #e7e3f2;
}
.qc__foot::before, .qc__foot::after { /* ticket notches */
    content: ""; position: absolute; top: -9px; width: 16px; height: 16px; border-radius: 50%;
    background: var(--bg); box-shadow: inset 0 0 0 1px rgba(30,24,8,.06);
}
.qc__foot::before { left: -25px; }
.qc__foot::after { right: -25px; }
.qc__when { min-width: 0; }
.qc__when small { display: block; font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .01em; margin-bottom: 4px; }
.qc__ended { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ink); }
.qc__ended .q24-i { width: 16px; height: 16px; color: var(--success); }

.qc .qms-card-countdown-wrap .qms-cd-boxes { display: flex; gap: 4px; }
.qc .qms-card-countdown-wrap .qms-cd-unit {
    width: 38px; padding: 4px 0 3px; border-radius: 9px; display: flex; flex-direction: column; align-items: center;
    background: var(--tint); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c1) 14%, transparent);
}
.qc .qms-card-countdown-wrap .qms-cd-num { font: 800 15px/1.1 var(--font-head); color: var(--ink); }
.qc .qms-card-countdown-wrap .qms-cd-sep { font-size: 9.5px; line-height: 1.3; color: var(--muted); font-weight: 600; }

.qc__go {
    flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
    color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2));
    box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--c1) 70%, transparent), inset 0 1px 0 rgba(255,255,255,.35);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.qc__go .q24-i { width: 18px; height: 18px; transform: rotate(-45deg); transition: transform .35s var(--ease); }
.qc:hover .qc__go { transform: scale(1.08); box-shadow: 0 12px 26px -6px color-mix(in srgb, var(--c1) 80%, transparent); }
.qc:hover .qc__go .q24-i { transform: rotate(0deg); }
.qc--closed .qc__go { background: #2a2312; box-shadow: 0 8px 18px -6px rgba(30,24,8,.5); }

/* Countdown boxes (cards, spotlight, sidebar) */
.qms-card-countdown-wrap .qms-cd-boxes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.qms-card-countdown-wrap .qms-cd-unit {
    display: flex; flex-direction: column; align-items: center; padding: 5px 2px 4px; border-radius: 10px;
    background: linear-gradient(180deg, #fff8e3, #fbeabb); box-shadow: inset 0 -2px 0 rgba(214,160,20,.12);
}
.qms-card-countdown-wrap .qms-cd-num { font: 800 18px/1.1 var(--font-head); color: var(--ink); font-variant-numeric: tabular-nums; }
.qms-card-countdown-wrap .qms-cd-sep { font-size: 11px; color: var(--muted); font-weight: 600; }
.qc--upcoming .qms-cd-unit { background: linear-gradient(180deg, #f0f7ff, #e4f0ff); box-shadow: inset 0 -2px 0 rgba(47,155,255,.15); }
.qms-cd-num.is-tick { animation: q24-tick .45s var(--ease); }
@keyframes q24-tick { 0% { transform: translateY(-30%); opacity: .45; } 100% { transform: none; opacity: 1; } }

/* ==========================================================================
   10. ARCHIVE FILTERS & PAGINATION
   ========================================================================== */
.q24-filters { display: flex; flex-direction: column; gap: 18px; margin-bottom: 36px; }
.q24-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: 999px; background: var(--surface); box-shadow: var(--sh-sm); width: fit-content; max-width: 100%; }
.q24-tab {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px;
    color: var(--muted); font-weight: 700; transition: background .25s ease, color .25s ease;
}
.q24-tab em { font-style: normal; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--bg); color: var(--muted); }
.q24-tab:hover { color: var(--ink); background: var(--bg); }
.q24-tab.is-active { color: var(--on-primary); background: var(--grad-primary); box-shadow: 0 8px 22px rgba(214,160,20,.35); }
.q24-tab.is-active em { background: rgba(255,255,255,.22); color: #fff; }
.q24-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.q24-chip {
    --c1: var(--primary);
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
    font-weight: 600; color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line);
    transition: box-shadow .25s ease, color .25s ease, background .25s ease, transform .25s var(--ease);
}
.q24-chip .q24-i { width: 17px; height: 17px; color: var(--c1); }
.q24-chip:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--c1); transform: translateY(-2px); }
.q24-chip.is-active { color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2, var(--c1))); box-shadow: 0 8px 22px color-mix(in srgb, var(--c1) 40%, transparent); }
.q24-chip.is-active .q24-i { color: #fff; }
.q24-result-note { color: var(--muted); margin: -12px 0 24px; }

.q24-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 44px; }
.q24-pagination .page-numbers {
    min-width: 46px; height: 46px; display: inline-grid; place-items: center; padding: 0 14px; border-radius: 14px;
    background: var(--surface); box-shadow: var(--sh-sm); color: var(--ink); font-weight: 700; transition: transform .2s var(--ease), background .2s;
}
.q24-pagination a.page-numbers:hover { transform: translateY(-2px); color: var(--primary-ink); }
.q24-pagination .page-numbers.current { background: var(--grad-primary); color: var(--on-primary); box-shadow: var(--sh-glow); }

/* ==========================================================================
   11. CATEGORIES, STEPS, PANELS
   ========================================================================== */
.q24-cats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
@media (max-width: 560px) { .q24-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .q24-cat { min-height: 116px; padding: 14px; } .q24-cat strong { font-size: 17px; } .q24-cat__go { display: none; } }
.q24-cat {
    position: relative; overflow: hidden; isolation: isolate;
    display: flex; flex-direction: column; gap: 4px; padding: 14px; min-height: 104px;
    border-radius: var(--r-lg); color: #fff;
    background: linear-gradient(140deg, var(--c1), var(--c2));
    box-shadow: 0 14px 36px color-mix(in srgb, var(--c1) 30%, transparent);
    transition: transform .45s var(--ease), box-shadow .45s var(--ease), opacity .8s var(--ease);
}
.q24-cat:hover { color: #fff; box-shadow: 0 24px 50px color-mix(in srgb, var(--c1) 45%, transparent); }
.q24-cat::before { content: ""; position: absolute; width: 180px; height: 180px; right: -60px; top: -60px; border-radius: 50%; background: rgba(255,255,255,.14); z-index: -1; transition: transform .6s var(--ease); }
.q24-cat:hover::before { transform: scale(1.35); }
.q24-cat__ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.2); margin-bottom: auto; backdrop-filter: blur(6px); }
.q24-cat__ic .q24-i { width: 20px; height: 20px; }
.q24-cat strong { font: 700 17px/1.3 var(--font-head); margin-top: 10px; }
.q24-cat small { opacity: .85; font-weight: 600; }
.q24-cat__go { position: absolute; right: 18px; bottom: 18px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.2); transition: transform .35s var(--ease), background .3s; }
.q24-cat__go .q24-i { width: 18px; height: 18px; }
.q24-cat:hover .q24-cat__go { transform: rotate(-45deg); background: #fff; color: var(--c1); }

.q24-steps { display: grid; gap: 22px; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); position: relative; }
.q24-steps::before { content: ""; position: absolute; top: 58px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.25) 0 10px, transparent 10px 20px); }
@media (max-width: 860px) { .q24-steps { grid-template-columns: minmax(0, 1fr); } .q24-steps::before { display: none; } }
.q24-step {
    position: relative; padding: 18px 16px; border-radius: var(--r-lg); text-align: center;
    background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); backdrop-filter: blur(12px);
    transition: transform .4s var(--ease), background .3s ease, opacity .8s var(--ease);
}
.q24-step:hover { transform: translateY(-6px); background: rgba(255,255,255,.08); }
.q24-step__num { position: absolute; top: 12px; right: 16px; font: 800 30px/1 var(--font-head); color: rgba(255,255,255,.08); }
.q24-step__ic {
    position: relative; width: 48px; height: 48px; margin: 0 auto 12px; border-radius: 14px; display: grid; place-items: center;
    background: var(--grad-primary); color: var(--on-primary); box-shadow: var(--sh-glow);
}
.q24-step:nth-child(2) .q24-step__ic { background: linear-gradient(135deg, #ffb35c, #e8742f); box-shadow: 0 14px 34px rgba(255,140,60,.4); }
.q24-step:nth-child(3) .q24-step__ic { background: var(--grad-accent); color: #2b1600; box-shadow: 0 14px 34px rgba(255,160,40,.4); }
.q24-step__ic .q24-i { width: 22px; height: 22px; }
.q24-step h3 { font-size: 22px; color: #fff; }
.q24-step p { color: rgba(255,255,255,.7); margin: 0; }



.q24-medal { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px; color: var(--muted); background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.q24-medal--gold   { color: #6b4300; background: linear-gradient(135deg, #ffe08a, #ffb020); box-shadow: 0 6px 14px rgba(255,176,32,.45); }
.q24-medal--silver { color: #3b4252; background: linear-gradient(135deg, #f1f3f8, #b9c0cf); box-shadow: 0 6px 14px rgba(140,150,170,.4); }
.q24-medal--bronze { color: #5a2a00; background: linear-gradient(135deg, #ffcf9e, #d98a4a); box-shadow: 0 6px 14px rgba(217,138,74,.4); }

/* Podium */
.q24-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 12px; padding-top: 34px; }
.q24-podium__col { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.q24-podium__avatar {
    position: relative; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center;
    font: 800 24px var(--font-head); color: var(--on-primary); background: var(--grad-primary); margin-bottom: 10px;
    box-shadow: 0 0 0 4px #fff, 0 14px 30px rgba(214,160,20,.35);
}
.q24-podium__col--1 .q24-podium__avatar { width: 92px; height: 92px; font-size: 30px; background: var(--grad-accent); color: #2b1600; box-shadow: 0 0 0 4px #fff, 0 18px 40px rgba(255,160,40,.5); }
.q24-podium__col--3 .q24-podium__avatar { background: linear-gradient(135deg, #ffb37a, #d97a3a); }
.q24-podium__crown { position: absolute; top: -30px; left: 50%; width: 34px; height: 34px; translate: -50% 0; color: #ffb020; filter: drop-shadow(0 4px 8px rgba(255,160,40,.5)); animation: q24-crown 3s ease-in-out infinite; }
@keyframes q24-crown { 0%, 100% { transform: rotate(-8deg) translateY(0); } 50% { transform: rotate(8deg) translateY(-4px); } }
.q24-podium__name { font-size: 16px; line-height: 1.3; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q24-podium__sub { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.q24-podium__block {
    width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px;
    padding: 14px 6px; border-radius: 16px 16px 6px 6px; color: #fff;
    background: linear-gradient(180deg, #f6d36a, var(--primary-2));
}
.q24-podium__col--1 .q24-podium__block { min-height: 118px; background: var(--grad-accent); color: #2b1600; }
.q24-podium__col--2 .q24-podium__block { min-height: 90px; }
.q24-podium__col--3 .q24-podium__block { min-height: 70px; background: linear-gradient(180deg, #ffb37a, #d97a3a); }
.q24-podium__rank { font: 800 34px/1 var(--font-head); opacity: .9; }
.q24-podium__value { font-weight: 700; font-size: 14px; }

/* Winners page */
.q24-champ {
    position: relative; overflow: hidden; padding: 24px 22px 22px; border-radius: var(--r-xl);
    background: radial-gradient(80% 100% at 50% 0%, #fff4d6, #fff 60%); box-shadow: var(--sh-lg); border: 1px solid #ffe6ad;
}
.q24-champ__head { text-align: center; }
.q24-champ__head h2 { font-size: clamp(20px, 2.2vw, 24px); margin: 8px 0 4px; }
.q24-champ__head h2 a { color: var(--ink); }
.q24-champ__head p { color: var(--muted); margin: 0; }
.q24-champ .q24-podium { max-width: 640px; margin: 0 auto; }
.q24-confetti-static i { position: absolute; top: -10px; width: 9px; height: 15px; border-radius: 2px; animation: q24-fall 6s linear infinite; opacity: .8; }
.q24-confetti-static i:nth-child(odd) { background: var(--accent); }
.q24-confetti-static i:nth-child(even) { background: var(--primary); }
.q24-confetti-static i:nth-child(3n) { background: var(--pink); }
.q24-confetti-static i:nth-child(1) { left: 6%; animation-delay: 0s; }
.q24-confetti-static i:nth-child(2) { left: 18%; animation-delay: -2s; }
.q24-confetti-static i:nth-child(3) { left: 30%; animation-delay: -4s; }
.q24-confetti-static i:nth-child(4) { left: 44%; animation-delay: -1s; }
.q24-confetti-static i:nth-child(5) { left: 58%; animation-delay: -3s; }
.q24-confetti-static i:nth-child(6) { left: 72%; animation-delay: -5s; }
.q24-confetti-static i:nth-child(7) { left: 84%; animation-delay: -2.5s; }
.q24-confetti-static i:nth-child(8) { left: 94%; animation-delay: -4.5s; }
@keyframes q24-fall { 0% { transform: translateY(0) rotate(0); } 100% { transform: translateY(560px) rotate(540deg); } }

.q24-results { display: grid; gap: 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .q24-results { grid-template-columns: minmax(0, 1fr); } }
.q24-result { display: grid; grid-template-columns: 200px minmax(0, 1fr); background: var(--surface); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-md); transition: transform .4s var(--ease), box-shadow .4s, opacity .8s var(--ease); }
.q24-result:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.q24-result__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.q24-result__body { padding: 20px 22px; }
.q24-result__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.q24-result__date { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 600; }
.q24-result__date .q24-i { width: 15px; height: 15px; }
.q24-result h3 { font-size: 19px; margin-bottom: 12px; }
.q24-result h3 a { color: var(--ink); }
.q24-result h3 a:hover { color: var(--primary-ink); }
@media (max-width: 560px) { .q24-result { grid-template-columns: minmax(0, 1fr); } .q24-result__media { aspect-ratio: 16 / 7; } }

.q24-wlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.q24-wlist__row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; background: var(--bg); }
.q24-wlist__who { flex: 1; min-width: 0; }
.q24-wlist__who strong { display: block; font-size: 15px; line-height: 1.3; }
.q24-wlist__who small { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.q24-wlist__prize { font-weight: 700; color: #a06a00; font-size: 14px; white-space: nowrap; }

/* FAQ */
.q24-faq-wrap { max-width: 900px; }
.q24-faq-wrap .q24-shead { justify-content: center; text-align: center; }
.q24-faq { display: flex; flex-direction: column; gap: 12px; }
.q24-faq__item { background: var(--surface); border-radius: var(--r-md); box-shadow: var(--sh-sm); border: 1px solid var(--line); transition: box-shadow .3s, border-color .3s, opacity .8s var(--ease), transform .8s var(--ease); }
.q24-faq__item[open] { border-color: #f2d68a; box-shadow: var(--sh-md); }
.q24-faq__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; font-weight: 700; font-size: 15px; }
.q24-faq__item summary::-webkit-details-marker { display: none; }
.q24-faq__plus { position: relative; width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto; background: #fdf1cf; transition: transform .35s var(--ease), background .3s; }
.q24-faq__plus::before, .q24-faq__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 2px; background: var(--primary-ink); translate: -50% -50%; transition: transform .35s var(--ease), background .3s; }
.q24-faq__plus::after { transform: rotate(90deg); }
.q24-faq__item[open] .q24-faq__plus { transform: rotate(180deg); background: var(--primary); }
.q24-faq__item[open] .q24-faq__plus::before, .q24-faq__item[open] .q24-faq__plus::after { background: var(--on-primary); }
.q24-faq__item[open] .q24-faq__plus::after { transform: rotate(0); }
.q24-faq__a { padding: 0 22px 18px; color: var(--muted); }
.q24-faq__a p { margin: 0; }
.q24-faq__item[open] .q24-faq__a { animation: q24-fade-down .4s var(--ease); }
@keyframes q24-fade-down { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   12. ABOUT & CONTACT & GENERIC PAGES
   ========================================================================== */
.q24-story { display: grid; gap: 56px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
@media (max-width: 900px) { .q24-story { grid-template-columns: minmax(0, 1fr); } }
.q24-story__art { position: relative; transition: transform .45s var(--ease), opacity .8s var(--ease); }
.q24-story__art img { display: block; width: 100%; border-radius: var(--r-xl); box-shadow: var(--sh-lg); }
.q24-story__toast { right: -16px; bottom: -22px; top: auto; }
.q24-story__copy h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 10px 0 12px; font-weight: 800; }
.q24-prose { color: var(--muted); font-size: 17px; }
.q24-prose h2, .q24-prose h3 { color: var(--ink); margin-top: 1.4em; }
.q24-prose ul, .q24-prose ol { padding-left: 22px; }
.q24-checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.q24-checks li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.q24-checks .q24-i { width: 26px; height: 26px; padding: 5px; border-radius: 50%; color: #fff; background: var(--success); }

.q24-bigstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; text-align: center; }
.q24-bigstats div { padding: 10px; }
.q24-bigstats strong { display: block; font: 800 clamp(24px, 2.8vw, 34px)/1.3 var(--font-head); background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .1em; }
.q24-bigstats span { color: rgba(255,255,255,.72); font-weight: 600; }
@media (max-width: 760px) { .q24-bigstats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.q24-values { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.q24-value { padding: 16px 16px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-md); transition: transform .4s var(--ease), box-shadow .4s, opacity .8s var(--ease); }
.q24-value:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.q24-value__ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 16px; color: var(--on-primary); background: var(--grad-primary); box-shadow: var(--sh-glow); }
.q24-value:nth-child(2) .q24-value__ic { background: var(--grad-accent); color: #2b1600; box-shadow: 0 14px 34px rgba(255,160,40,.35); }
.q24-value:nth-child(3) .q24-value__ic { background: linear-gradient(135deg, #34d399, #10b981); box-shadow: 0 14px 34px rgba(16,185,129,.35); }
.q24-value:nth-child(4) .q24-value__ic { background: linear-gradient(135deg, #ffb35c, #e8742f); box-shadow: 0 14px 34px rgba(255,140,60,.35); }
.q24-value__ic .q24-i { width: 26px; height: 26px; }
.q24-value h3 { font-size: 21px; }
.q24-value p { color: var(--muted); margin: 0; }

.q24-ccard {
    display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--r-lg);
    background: var(--surface); box-shadow: var(--sh-sm); color: var(--ink); border: 1px solid var(--line);
    transition: transform .35s var(--ease), box-shadow .35s, border-color .3s, opacity .8s var(--ease);
}
a.q24-ccard:hover { color: var(--ink); transform: translateX(6px); border-color: #f2d68a; box-shadow: var(--sh-md); }
.q24-ccard__ic { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; flex: 0 0 auto; color: var(--on-primary); background: var(--grad-primary); }
.q24-ccard__ic .q24-i { width: 22px; height: 22px; }
.q24-ccard small { display: block; color: var(--muted); font-size: 13px; font-weight: 600; }
.q24-ccard strong { display: block; word-break: break-word; }


.q24-paper { max-width: 860px; margin: 0 auto; padding: clamp(16px, 2.4vw, 28px); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--sh-md); border: 1px solid var(--line); }
.q24-posts { display: grid; gap: 18px; }
.q24-posts .q24-paper h2 { font-size: 24px; margin-bottom: 4px; }
.q24-posts .q24-paper h2 a { color: var(--ink); }
.q24-meta { color: var(--muted); font-size: 14px; }

.q24-404__code { display: flex; gap: 10px; font: 800 clamp(80px, 15vw, 150px)/1 var(--font-head); }
.q24-404__code span { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; padding: .05em 0 .15em; }
.q24-404__q { display: inline-block; animation: q24-wobble 2.4s ease-in-out infinite; }
@keyframes q24-wobble { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(12deg) translateY(-10px); } }
.q24-404 .q24-hero__actions { justify-content: center; margin-top: 18px; }

/* ==========================================================================
   13. SINGLE QUIZ
   ========================================================================== */
.q24-qhero {
    position: relative; overflow: hidden; isolation: isolate; color: #fff;
    background: radial-gradient(120% 90% at 30% 0%, var(--night-3) 0%, var(--night) 65%);
    padding: calc(var(--header-h) + var(--space-hero)) 0 calc(var(--space-hero) + 84px);
}
.q24-qhero::after { /* fade the hero into the page so the overlapping cards sit on a soft edge, not a hard line */
    content: ""; position: absolute; inset: auto 0 0 0; height: 120px; z-index: 0; pointer-events: none;
    background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--bg) 35%, transparent) 45%, color-mix(in srgb, var(--bg) 85%, transparent) 75%, var(--bg) 100%);
}
.q24-qhero__bg { position: absolute; inset: -40px; z-index: -1; background-size: cover; background-position: center; filter: blur(40px) saturate(1.4); opacity: .35; transform: scale(1.1); }
.q24-qhero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; align-items: center; }
@media (max-width: 960px) { .q24-qhero__inner { grid-template-columns: minmax(0, 1fr); gap: 32px; } .q24-qhero__art { max-width: 520px; width: 100%; margin: 0 auto; } }
.q24-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: rgba(255,255,255,.6); margin-bottom: 18px; }
.q24-crumbs a { color: rgba(255,255,255,.8); }
.q24-crumbs a:hover { color: #fff; }
.q24-qhero__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.q24-qhero__title { font-size: clamp(22px, 2.8vw, 32px); line-height: 1.3; margin: 12px 0 8px; color: #fff; font-weight: 800; }
.q24-qhero__lead { color: rgba(255,255,255,.78); font-size: 17px; max-width: 620px; }
.q24-qhero__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 26px; }
.q24-qhero__facts > div {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md);
    background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); backdrop-filter: blur(10px);
}
.q24-qhero__facts .q24-i { width: 22px; height: 22px; color: var(--accent); }
.q24-qhero__facts small { display: block; font-size: 12px; color: rgba(255,255,255,.6); line-height: 1.3; }
.q24-qhero__facts strong { display: block; font-size: 15px; line-height: 1.35; }
.q24-qhero__art { position: relative; transition: transform .45s var(--ease), opacity .8s var(--ease); }
.q24-qhero__art img { display: block; width: 100%; border-radius: var(--r-xl); box-shadow: 0 40px 90px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.12); }
.q24-qhero__art::after { content: ""; position: absolute; inset: auto 10% -18px; height: 40px; border-radius: 50%; background: var(--c1); filter: blur(30px); opacity: .6; z-index: -1; }

/* The quiz form sits on a card that overlaps the hero */
.q24-single { position: relative; z-index: 2; margin-top: -60px; padding-bottom: 0; background: transparent; }
.q24-single .qms-single-wrap { max-width: var(--container); padding: 0 20px; }
.q24-single .qms-hero { display: none; }
.q24-single .qms-section-card,
.q24-single .qms-sb-card { border-radius: var(--r-lg); box-shadow: var(--sh-md); border-color: var(--line); }
.q24-single .qms-section-head { font-size: 17px; margin-bottom: 12px; }
/* Slim quiz form */
.q24-single .qms-layout { gap: 20px; }
.q24-single .qms-main, .q24-single .qms-sidebar { gap: 16px; }
.q24-single .qms-section-card { padding: 14px; }
.q24-single .qms-fields-grid { gap: 12px 14px; }
.q24-single .qms-form-field > label { font-size: 14px; }
.q24-single .qms-input-wrap input:not([type="radio"]):not([type="checkbox"]),
.q24-single .qms-form-field select,
.q24-single .qms-form-field textarea { padding-top: 7px; padding-bottom: 7px; font-size: 15px; }
.q24-single .qms-questions-container { gap: 12px; }
.q24-single .qms-question { padding: 12px 14px; }
.q24-single .qms-question-header { margin-bottom: 10px; }
.q24-single .qms-question-text { font-size: 16px; }
.q24-single .qms-option { padding: 7px 10px; }
.q24-single .qms-sb-card { padding: 14px 16px; }
.q24-single .qms-sb-head { font-size: 16px; margin-bottom: 10px; }
.q24-single .qms-sb-body { font-size: 15px; line-height: 1.6; }
.q24-single .qms-sb-unit { padding-top: 6px; padding-bottom: 5px; }
.q24-single .qms-sb-unit .qms-cd-num { font-size: 21px; }
.q24-single .qms-sb-unit .qms-cd-lbl { font-size: 11px; }
.q24-single .qms-question { border-radius: var(--r-md); transition: border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.q24-single .qms-question:hover { border-color: #f2d68a; box-shadow: var(--sh-sm); }
.q24-single .qms-q-num { background: var(--grad-primary); color: var(--on-primary); box-shadow: 0 6px 14px rgba(214,160,20,.3); }
.q24-single .qms-option { border-radius: var(--r-md); transition: border-color .2s, background .2s, transform .2s var(--ease), box-shadow .2s; }
.q24-single .qms-option:hover { transform: translateY(-2px); box-shadow: var(--sh-sm); }
.q24-single .qms-option:has(input:checked) { box-shadow: 0 10px 24px rgba(214,160,20,.2); animation: q24-pop .35s var(--ease); }
.q24-single .qms-option:has(input:checked) .qms-option-letter,
.q24-single .qms-option:has(input:checked) .qms-option-check { background: var(--grad-primary); }
@keyframes q24-pop { 0% { transform: scale(.97); } 60% { transform: scale(1.02); } 100% { transform: scale(1); } }
.q24-single .qms-q-progress-wrap { position: sticky; top: calc(var(--header-h) - 6px); z-index: 3; padding: 12px 14px; margin: 0 -8px 18px; border-radius: var(--r-md); background: rgba(255,255,255,.92); backdrop-filter: blur(10px); box-shadow: var(--sh-sm); }
.admin-bar .q24-single .qms-q-progress-wrap { top: calc(var(--header-h) - 6px + var(--q24-adminbar, 32px)); }
.q24-single .qms-q-progress-bar { height: 10px; background: #f4e6bf; }
.q24-single .qms-q-progress-fill { background: var(--grad-primary); }
.q24-single .qms-q-progress-wrap.is-half .qms-q-progress-fill { background: var(--grad-accent); }
.q24-single .qms-q-progress-wrap.is-done .qms-q-progress-fill { background: linear-gradient(90deg, #34d399, #10b981); }
.q24-single .qms-submit-btn { border-radius: 999px; background: var(--grad-primary); color: var(--on-primary); box-shadow: var(--sh-glow); font-size: 16px; padding: 12px 20px; transition: transform .25s var(--ease), box-shadow .25s; }
.q24-single .qms-submit-btn:hover { transform: translateY(-2px); box-shadow: 0 24px 60px rgba(214,160,20,.5); }
.q24-single .qms-sb-timer { border-top: 0; background: radial-gradient(120% 120% at 0% 0%, var(--night-3), var(--night)); color: #fff; overflow: hidden; position: relative; }
.q24-single .qms-sb-timer .qms-sb-head { color: #fff; }
.q24-single .qms-sb-unit { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.q24-single .qms-sb-unit .qms-cd-num { color: #fff; font-family: var(--font-head); }
.q24-single .qms-sb-unit .qms-cd-lbl { color: rgba(255,255,255,.6); }
.q24-single .qms-sb-sep { color: rgba(255,255,255,.4); }
.q24-single .qms-timer-ended-label, .q24-single .qms-timer-ended-icon { color: #fff; }
.q24-single .qms-timer-ended-date { color: rgba(255,255,255,.6); }
.q24-single .qms-sb-timer.qms-warning .qms-sb-unit { background: rgba(255,71,87,.25); color: #fff; animation: q24-warn 1s ease-in-out infinite; }
@keyframes q24-warn { 50% { background: rgba(255,71,87,.45); } }
.q24-single .qms-sb-prize { background: linear-gradient(180deg, #fff6df, #fff 60%); border-color: #ffe2a8; }
.q24-single .qms-sb-body li { margin-bottom: 6px; }
.q24-single .qms-result-container { border-radius: var(--r-xl); box-shadow: var(--sh-lg); padding: 34px 20px; }
.q24-single .qms-success-icon { width: 84px; height: 84px; font-size: 40px; background: linear-gradient(135deg, #34d399, #10b981); color: #fff; box-shadow: 0 18px 40px rgba(16,185,129,.4); animation: q24-pop .6s var(--ease); }
.q24-single .qms-winners-card { background: linear-gradient(180deg, #fff6df, #fff 40%); }

/* Confetti canvas */
.q24-confetti { position: fixed; inset: 0; z-index: 200; pointer-events: none; }

/* ==========================================================================
   14. FOOTER
   ========================================================================== */
.q24-footer { position: relative; overflow: hidden; isolation: isolate; color: rgba(255,255,255,.7); background: var(--night); padding-top: var(--space-tight); }
.q24-footer a { color: rgba(255,255,255,.72); transition: color .2s; }
.q24-footer a:hover { color: #fff; }
.q24-footer__cta {
    position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    padding: 18px 24px; margin-bottom: var(--space-tight); border-radius: var(--r-xl);
    background: linear-gradient(120deg, rgba(214,160,20,.35), rgba(255,140,60,.18)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
    backdrop-filter: blur(10px);
}
.q24-footer__cta h2 { color: #fff; font-size: clamp(19px, 2.2vw, 24px); margin: 0 0 6px; font-weight: 800; }
.q24-footer__cta p { margin: 0; }
.q24-footer__grid { position: relative; z-index: 1; display: grid; gap: 36px; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; }
@media (max-width: 960px) { .q24-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
    /* Brand and contact full width; the two link lists sit side by side */
    .q24-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; }
    .q24-footer__brand, .q24-footer__grid > div:last-child { grid-column: 1 / -1; }
    .q24-footer ul { gap: 8px; }
    .q24-footer h3 { margin-bottom: 12px; }
    .q24-footer__cta { padding: 26px 22px; }
    .q24-footer__bottom { flex-direction: column; gap: 4px; margin-top: 36px; }
}
.q24-footer__brand p { margin: 16px 0 0; max-width: 340px; }
.q24-footer h3 { color: #fff; font-size: 18px; margin-bottom: 16px; }
.q24-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.q24-footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.q24-footer__contact .q24-i { width: 18px; height: 18px; margin-top: 4px; color: var(--accent); }
.q24-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.q24-social a { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); transition: transform .3s var(--ease), background .3s; }
.q24-social a:hover { transform: translateY(-4px); background: var(--primary); color: var(--on-primary); }
.q24-social .q24-i { width: 19px; height: 19px; }
.q24-social--light { margin-top: 10px; }
.q24-social--light a { color: var(--primary-ink); background: #fdf1cf; box-shadow: none; }
.q24-social--light a:hover { color: #fff; }
.q24-footer__bottom { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 24px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.08); font-size: 14px; }

.q24-totop {
    position: fixed; right: 20px; bottom: 20px; z-index: 50; width: 50px; height: 50px; border-radius: 16px; border: 0; cursor: pointer;
    display: grid; place-items: center; color: var(--on-primary); background: var(--grad-primary); box-shadow: var(--sh-glow);
    opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease);
}
.q24-totop .q24-i { width: 22px; height: 22px; transform: rotate(-90deg); }
.q24-totop.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* ==========================================================================
   15. MOTION PREFERENCES
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    [data-reveal] { opacity: 1; transform: none; }
}

/* Live-updated numbers flash briefly when the server reports a change */
.is-updated { animation: q24-flash 1.2s var(--ease); border-radius: 6px; }
@keyframes q24-flash { 0% { background: rgba(255,176,32,.55); } 100% { background: transparent; } }

/* ==========================================================================
   16. WINNERS LIST (finished quizzes) & QUIZ RESULTS BLOCK
   ========================================================================== */
.q24-rlist { display: flex; flex-direction: column; gap: 18px; }
.q24-rrow {
    --mx: 50%; --my: 50%;
    position: relative; isolation: isolate; overflow: hidden;
    display: grid; grid-template-columns: 250px minmax(0, 1fr) 250px; align-items: stretch;
    background: var(--surface); color: var(--ink); border-radius: var(--r-lg);
    box-shadow: var(--sh-md); border: 1px solid var(--line);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s, opacity .8s var(--ease);
}
.q24-rrow:hover { color: var(--ink); transform: translateY(-4px); box-shadow: 0 26px 60px rgba(30,24,8,.14); border-color: color-mix(in srgb, var(--c1) 35%, white); }
.q24-rrow::before { /* category colour edge */
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; z-index: 2;
    background: linear-gradient(180deg, var(--c1), var(--c2)); opacity: 0; transition: opacity .3s;
}
.q24-rrow:hover::before { opacity: 1; }

.q24-rrow__media { position: relative; overflow: hidden; min-height: 160px; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.q24-rrow__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.q24-rrow:hover .q24-rrow__media img { transform: scale(1.07); }
.q24-rrow__state {
    position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 700;
    background: rgba(255,255,255,.95); color: var(--success); box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.q24-rrow__state .q24-i { width: 15px; height: 15px; }
.q24-rrow--pending .q24-rrow__state { color: var(--upcoming); }

.q24-rrow__main { padding: 20px 24px; display: flex; flex-direction: column; justify-content: center; gap: 10px; min-width: 0; }
.q24-rrow__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.q24-rrow__date { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; font-weight: 600; }
.q24-rrow__date .q24-i { width: 16px; height: 16px; }
.q24-rrow__title { font-size: 22px; margin: 0; transition: color .25s; }
.q24-rrow:hover .q24-rrow__title { color: var(--primary-ink); }
.q24-rrow__facts { display: flex; flex-wrap: wrap; gap: 8px; }
.q24-rrow__facts span {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
    background: var(--bg); color: var(--muted); font-size: 14px;
}
.q24-rrow__facts strong { color: var(--ink); }
.q24-rrow__facts .q24-i { width: 16px; height: 16px; color: var(--c1); }

.q24-rrow__side {
    display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 20px 22px;
    border-left: 1px dashed var(--line); background: linear-gradient(180deg, #fffaf0, var(--surface));
}
.q24-rrow--pending .q24-rrow__side { background: linear-gradient(180deg, #fdf3d8, var(--surface)); }
.q24-rrow__winners { display: flex; align-items: center; gap: 12px; }
.q24-avatars--sm span { width: 34px; height: 34px; font-size: 12px; border-color: #fff; }
.q24-rrow__champ { min-width: 0; }
.q24-rrow__champ small { display: flex; align-items: center; gap: 4px; color: #a06a00; font-weight: 700; font-size: 12px; }
.q24-rrow__champ small .q24-i { width: 14px; height: 14px; }
.q24-rrow__champ strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q24-rrow__wait { margin: 0; color: var(--muted); font-weight: 600; }
.q24-rrow__cta {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
    font-weight: 700; color: var(--on-primary); background: var(--grad-primary); box-shadow: 0 10px 24px rgba(214,160,20,.3);
    transition: gap .3s var(--ease), box-shadow .3s;
}
.q24-rrow__cta .q24-i { width: 17px; height: 17px; }
.q24-rrow:hover .q24-rrow__cta { gap: 14px; box-shadow: 0 16px 34px rgba(214,160,20,.45); }

@media (max-width: 1000px) {
    .q24-rrow { grid-template-columns: 200px minmax(0, 1fr); }
    .q24-rrow__side { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; border-left: 0; border-top: 1px dashed var(--line); padding: 14px 20px; }
}
@media (max-width: 600px) {
    .q24-rrow { grid-template-columns: minmax(0, 1fr); }
    .q24-rrow__media { aspect-ratio: 16 / 8; min-height: 0; }
    .q24-rrow__main { padding: 16px 18px; }
    .q24-rrow__title { font-size: 19px; }
    .q24-rrow__side { flex-direction: column; align-items: stretch; }
}

/* Results block on a finished quiz page — dark "champion" card */
.q24-results-box {
    --gold: #ffc23d; --gold-2: #ff9f1a;
    position: relative; overflow: hidden; isolation: isolate; scroll-margin-top: calc(var(--header-h) + 20px);
    margin-bottom: 20px; padding: 26px 22px 22px; border-radius: 26px; color: #fff; text-align: center;
    background: radial-gradient(120% 70% at 50% 0%, #3b2f12 0%, #17120a 55%, #0c0a05 100%);
    box-shadow: 0 30px 70px -20px rgba(13,10,36,.55), inset 0 0 0 1px rgba(255,255,255,.07);
}
.q24-results-box__glow {
    position: absolute; z-index: -1; left: 50%; top: -120px; width: 420px; height: 300px; translate: -50% 0; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(255,194,61,.32), transparent); filter: blur(10px); pointer-events: none;
}
.q24-results-box.is-pending .q24-results-box__glow { background: radial-gradient(closest-side, rgba(79,176,255,.28), transparent); }

/* Header */
.q24-results-box__head { display: flex; flex-direction: column; align-items: center; }
.q24-results-box__trophy {
    width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; color: #3a2400;
    background: linear-gradient(145deg, #ffe08a, var(--gold-2));
    box-shadow: 0 10px 30px -6px rgba(255,170,40,.65), inset 0 1px 0 rgba(255,255,255,.7);
    animation: q24-bob 5s ease-in-out infinite;
}
.q24-results-box__trophy .q24-i { width: 28px; height: 28px; }
.q24-results-box.is-pending .q24-results-box__trophy { color: #06315c; background: linear-gradient(145deg, #bfe3ff, #4fb0ff); box-shadow: 0 10px 30px -6px rgba(79,176,255,.6); }
.q24-results-box__eyebrow {
    margin-top: 12px; padding: 3px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em;
    color: var(--gold); background: rgba(255,194,61,.12); box-shadow: inset 0 0 0 1px rgba(255,194,61,.3);
}
.q24-results-box.is-pending .q24-results-box__eyebrow { color: #8fd0ff; background: rgba(79,176,255,.12); box-shadow: inset 0 0 0 1px rgba(79,176,255,.3); }
.q24-results-box__head h2 { margin: 8px 0 2px; font-size: clamp(22px, 2.6vw, 28px); color: #fff; }
.q24-results-box__head p { margin: 0; font-size: 13.5px; color: rgba(255,255,255,.6); }

/* Stats: one slim glass bar */
.q24-results-box__stats {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 460px; margin: 16px auto 0;
    border-radius: 16px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
}
.q24-results-box__stats > div { padding: 10px 6px; }
.q24-results-box__stats > div + div { box-shadow: -1px 0 0 rgba(255,255,255,.1); }
.q24-results-box__stats strong { display: block; font: 800 19px/1.25 var(--font-head); color: #fff; font-variant-numeric: tabular-nums; }
.q24-results-box__stats span { display: block; font-size: 11.5px; color: rgba(255,255,255,.58); font-weight: 600; }

/* Podium (scoped to this card) */
.q24-results-box .q24-podium { max-width: 520px; margin: 8px auto 0; gap: 10px; padding-top: 44px; }
.q24-results-box .q24-podium__avatar {
    width: 64px; height: 64px; margin-bottom: 14px; font-size: 21px; color: #fff;
    background: linear-gradient(145deg, #6b5a2e, #3a2f14);
    box-shadow: 0 0 0 3px #17120a, 0 0 0 5px #c9cfdc, 0 12px 26px -6px rgba(0,0,0,.6);
}
.q24-results-box .q24-podium__col--1 .q24-podium__avatar {
    width: 80px; height: 80px; font-size: 26px; color: #3a2400; background: linear-gradient(145deg, #ffe08a, var(--gold-2));
    box-shadow: 0 0 0 3px #17120a, 0 0 0 5px var(--gold), 0 0 34px rgba(255,194,61,.55);
}
.q24-results-box .q24-podium__col--3 .q24-podium__avatar {
    background: linear-gradient(145deg, #ffb37a, #c4692b); box-shadow: 0 0 0 3px #17120a, 0 0 0 5px #e09a62, 0 12px 26px -6px rgba(0,0,0,.6);
}
.q24-results-box .q24-podium__avatar::after { /* rank medal on the ring */
    content: ""; position: absolute; left: 50%; bottom: -9px; translate: -50% 0; width: 22px; height: 22px; border-radius: 50%;
    display: grid; place-items: center; font: 800 12px/22px var(--font-head); color: #2b2f3a;
    background: linear-gradient(145deg, #f4f6fb, #aeb6c6); box-shadow: 0 0 0 2px #17120a;
}
.q24-results-box .q24-podium__col--1 .q24-podium__avatar::after { content: "১"; color: #3a2400; background: linear-gradient(145deg, #ffe08a, var(--gold-2)); }
.q24-results-box .q24-podium__col--2 .q24-podium__avatar::after { content: "২"; }
.q24-results-box .q24-podium__col--3 .q24-podium__avatar::after { content: "৩"; color: #3d1a00; background: linear-gradient(145deg, #ffcf9e, #d98a4a); }
.q24-results-box .q24-podium__crown { top: -32px; width: 30px; height: 30px; color: var(--gold); }
.q24-results-box .q24-podium__name { font-size: 14.5px; color: #fff; }
.q24-results-box .q24-podium__sub { font-size: 11.5px; color: rgba(255,255,255,.5); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.q24-results-box .q24-podium__block {
    padding: 10px 4px 8px; border-radius: 14px 14px 4px 4px; color: #fff; gap: 0;
    background: linear-gradient(180deg, rgba(201,207,220,.28), rgba(201,207,220,.06));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 0 0 1px rgba(255,255,255,.08);
}
.q24-results-box .q24-podium__col--1 .q24-podium__block { min-height: 96px; color: #fff; background: linear-gradient(180deg, rgba(255,194,61,.5), rgba(255,159,26,.08)); box-shadow: inset 0 1px 0 rgba(255,236,170,.8), inset 0 0 0 1px rgba(255,194,61,.25); }
.q24-results-box .q24-podium__col--2 .q24-podium__block { min-height: 74px; }
.q24-results-box .q24-podium__col--3 .q24-podium__block { min-height: 60px; background: linear-gradient(180deg, rgba(224,154,98,.42), rgba(224,154,98,.06)); box-shadow: inset 0 1px 0 rgba(255,210,170,.6), inset 0 0 0 1px rgba(224,154,98,.2); }
.q24-results-box .q24-podium__rank { display: none; }
.q24-results-box .q24-podium__value { font: 800 13.5px/1.3 var(--font-head); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.3); }
.q24-results-box .q24-podium__col--1 .q24-podium__value { font-size: 15px; color: #ffe7a3; }

/* Full list */
.q24-results-box__list { max-width: 520px; margin: 18px auto 0; text-align: left; }
.q24-results-box__list h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 2px 10px; font-size: 15px; color: #fff; }
.q24-results-box__list h3 small { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.5); }
.q24-results-box .q24-wlist { gap: 6px; }
.q24-results-box .q24-wlist__row {
    gap: 10px; padding: 8px 10px; border-radius: 14px; background: rgba(255,255,255,.05);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.q24-results-box .q24-wlist__row:nth-child(1) { background: linear-gradient(90deg, rgba(255,194,61,.16), rgba(255,255,255,.04)); box-shadow: inset 0 0 0 1px rgba(255,194,61,.28); }
.q24-results-box .q24-wlist__who strong { font-size: 14px; color: #fff; }
.q24-results-box .q24-wlist__who small { color: rgba(255,255,255,.5); font-size: 11.5px; }
.q24-results-box .q24-wlist__prize {
    padding: 3px 10px; border-radius: 999px; font-size: 12.5px; color: #ffe7a3;
    background: rgba(255,194,61,.12); box-shadow: inset 0 0 0 1px rgba(255,194,61,.25);
}
.q24-results-box .q24-medal { width: 28px; height: 28px; font-size: 13px; box-shadow: none; }
.q24-results-box .q24-medal--plain { color: rgba(255,255,255,.75); background: rgba(255,255,255,.08); }

/* Waiting state */
.q24-results-box__wait { max-width: 460px; margin: 16px auto 0; padding: 12px 16px; border-radius: 14px; background: rgba(79,176,255,.08); box-shadow: inset 0 0 0 1px rgba(79,176,255,.2); }
.q24-results-box__wait p { margin: 0; font-size: 14px; color: rgba(255,255,255,.72); }

.q24-results-box .q24-confetti-static i { opacity: .55; width: 7px; height: 12px; }
/* The theme shows winners above; hide the plugin's own winners card to avoid a duplicate */
.q24-single .qms-winners-card { display: none; }
@media (max-width: 600px) {
    .q24-results-box { padding: 22px 14px 16px; border-radius: 22px; }
    .q24-results-box .q24-podium { gap: 8px; }
    .q24-results-box .q24-podium__avatar { width: 56px; height: 56px; font-size: 18px; }
    .q24-results-box .q24-podium__col--1 .q24-podium__avatar { width: 70px; height: 70px; font-size: 22px; }
}

.q24-center { display: flex; justify-content: center; margin-top: 30px; }

/* ==========================================================================
   17. CONTACT: SOCIAL MEDIA CARDS
   ========================================================================== */
.q24-socials { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.q24-sc {
    position: relative; overflow: hidden; isolation: isolate;
    display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; gap: 18px 16px; align-items: center;
    padding: 20px; border-radius: var(--r-xl); color: #fff;
    background: linear-gradient(135deg, var(--c1), var(--c2));
    box-shadow: 0 18px 44px color-mix(in srgb, var(--c2) 35%, transparent);
    transition: transform .45s var(--ease), box-shadow .45s var(--ease), opacity .8s var(--ease);
}
.q24-sc:hover { color: #fff; box-shadow: 0 28px 64px color-mix(in srgb, var(--c2) 50%, transparent); }
.q24-sc--instagram { background: linear-gradient(135deg, #feda75, #f58529 22%, #dd2a7b 55%, #8134af 85%); }
.q24-sc--tiktok { background: linear-gradient(135deg, #111018, #26232f); box-shadow: 0 18px 44px rgba(0,0,0,.35); }
.q24-sc--tiktok .q24-sc__ic { color: #fff; filter: drop-shadow(2px 2px 0 #fe2c55) drop-shadow(-2px -2px 0 #25f4ee); }
.q24-sc::before { /* big watermark circle */
    content: ""; position: absolute; z-index: -1; width: 260px; height: 260px; right: -80px; top: -110px; border-radius: 50%;
    background: rgba(255,255,255,.12); transition: transform .7s var(--ease);
}
.q24-sc:hover::before { transform: scale(1.25); }
.q24-sc::after { /* shine sweep */
    content: ""; position: absolute; inset: 0; z-index: -1; transform: translateX(-120%) skewX(-20deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent); transition: transform .9s var(--ease);
}
.q24-sc:hover::after { transform: translateX(120%) skewX(-20deg); }
.q24-sc__glow { position: absolute; z-index: -1; inset: auto -40px -60px auto; width: 180px; height: 180px; border-radius: 50%; background: rgba(255,255,255,.08); }
.q24-sc__ic {
    width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center;
    background: rgba(255,255,255,.18); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); backdrop-filter: blur(6px);
    transition: transform .5s var(--ease);
}
.q24-sc:hover .q24-sc__ic { transform: rotate(-8deg) scale(1.08); }
.q24-sc__ic .q24-i { width: 32px; height: 32px; }
.q24-sc__text strong { display: block; font: 800 24px/1.2 var(--font-head); }
.q24-sc__text small { display: block; opacity: .85; font-size: 15px; font-weight: 600; word-break: break-all; }
.q24-sc__cta {
    grid-column: 1 / -1; justify-self: start;
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 999px;
    font-weight: 700; color: #fff; background: rgba(255,255,255,.18); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
    transition: background .3s ease, color .3s ease, gap .3s var(--ease);
}
.q24-sc__cta .q24-i { width: 18px; height: 18px; }
.q24-sc:hover .q24-sc__cta { background: #fff; color: var(--c2); gap: 14px; }
.q24-sc--tiktok:hover .q24-sc__cta { color: #111018; }

.q24-cinfo { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }

/* ==========================================================================
   18. BLOG: LISTING
   ========================================================================== */
.q24-chips--blog { margin-bottom: 32px; }
.q24-chip em { font-style: normal; font-size: 12px; padding: 0 7px; border-radius: 999px; background: var(--bg); color: var(--muted); }
.q24-chip.is-active em { background: rgba(255,255,255,.25); color: #fff; }

.q24-posts-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }

.bc {
    --mx: 50%; --my: 50%;
    position: relative; display: flex; flex-direction: column; overflow: hidden; isolation: isolate;
    background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-md);
    transition: transform .45s var(--ease), box-shadow .45s var(--ease), opacity .8s var(--ease);
}
.bc:hover { box-shadow: 0 30px 70px rgba(30,24,8,.16); }
.bc::after { /* cursor spotlight */
    content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
    background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--c1) 12%, transparent), transparent 45%);
    opacity: 0; transition: opacity .3s;
}
.bc:hover::after { opacity: 1; }
.bc__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.bc__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .9s var(--ease); }
.bc:hover .bc__media img { transform: scale(1.07); }
.bc__media::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(14,11,5,.35)); }
.bc__ph { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.bc__ph .q24-i { width: 60px; height: 60px; }
.bc__flag {
    position: absolute; top: 16px; left: 16px; z-index: 1; display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700;
    background: var(--grad-accent); color: #2b1600; box-shadow: 0 8px 20px rgba(255,160,40,.4);
}
.bc__flag .q24-i { width: 15px; height: 15px; }

.bc__body { position: relative; z-index: 3; display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; flex: 1; }
.bc__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.bc__cat {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700;
    color: var(--c1); background: color-mix(in srgb, var(--c1) 11%, white); transition: background .25s, color .25s;
}
.bc__cat:hover { color: #fff; background: var(--c1); }
.bc__cat .q24-i { width: 14px; height: 14px; }
.bc__read { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 13px; font-weight: 600; }
.bc__read .q24-i { width: 15px; height: 15px; }
.bc__title { font-size: 21px; line-height: 1.38; margin: 0; }
.bc__title a { color: var(--ink); background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: color .25s, background-size .4s var(--ease); }
.bc:hover .bc__title a { color: var(--primary-ink); background-size: 100% 2px; }
.bc__excerpt {
    margin: 0; color: var(--muted); font-size: 15px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.bc__meta { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 13px; }
.bc__author { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.bc__av { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--on-primary); background: var(--grad-primary); flex: 0 0 auto; }

/* Featured (latest) post */
.bc--featured { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); margin-bottom: 30px; border-radius: var(--r-xl); }
.bc--featured .bc__media { aspect-ratio: auto; min-height: 240px; }
.bc--featured .bc__body { padding: 20px 24px; justify-content: center; gap: 12px; }
.bc--featured .bc__title { font-size: clamp(20px, 2vw, 24px); line-height: 1.3; font-weight: 800; }
.bc--featured .bc__excerpt { font-size: 17px; -webkit-line-clamp: 4; }
.bc--featured .bc__meta { margin-top: 4px; }
.bc__cta { align-self: flex-start; margin-top: 6px; }
@media (max-width: 900px) {
    .bc--featured { grid-template-columns: minmax(0, 1fr); }
    .bc--featured .bc__media { min-height: 0; aspect-ratio: 16 / 9; }
    .bc--featured .bc__body { padding: 22px; }
}

/* ==========================================================================
   19. BLOG: SINGLE POST
   ========================================================================== */
.q24-post-hero {
    position: relative; overflow: hidden; isolation: isolate; color: #fff; text-align: center;
    background: radial-gradient(120% 90% at 50% 0%, var(--night-3) 0%, var(--night) 65%);
    padding: calc(var(--header-h) + var(--space-hero)) 0 calc(var(--space-hero) + 8px);
}
.q24-post-hero--cover { padding-bottom: calc(var(--cover-overlap) + 40px); }
.q24-post-hero__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; max-width: 900px; }
.q24-post-hero .q24-crumbs { justify-content: center; }
.q24-post-hero__cat { margin-bottom: 4px; }
.q24-post-hero__cat:hover { color: #fff; background: rgba(255,255,255,.2); }
.q24-post-hero__title { font-size: clamp(30px, 4.8vw, 54px); line-height: 1.28; margin: 14px 0 14px; color: #fff; font-weight: 800; }
.q24-post-hero__lead { color: rgba(255,255,255,.78); font-size: clamp(16px, 1.6vw, 19px); max-width: 720px; margin: 0 auto 18px; }
.q24-post-meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 22px; color: rgba(255,255,255,.75); font-size: 15px; }
.q24-post-meta > span { display: inline-flex; align-items: center; gap: 7px; }
.q24-post-meta .q24-i { width: 17px; height: 17px; color: var(--accent); }
.q24-post-meta__author { color: #fff; font-weight: 700; }

.q24-post-wrap { position: relative; z-index: 2; }
.q24-post-cover { margin: calc(var(--cover-overlap) * -1) auto clamp(22px, 3vw, 34px); max-width: 820px; aspect-ratio: 16 / 9; max-height: 440px; border-radius: var(--r-xl); overflow: hidden; box-shadow: 0 40px 90px rgba(14,11,5,.35); }
.q24-post-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .q24-post-cover { border-radius: var(--r-lg); } }
.q24-post-wrap > .q24-container > .q24-post-layout:first-child { margin-top: 48px; }

.q24-post-layout { display: grid; grid-template-columns: 64px minmax(0, 760px); justify-content: center; gap: 36px; }
@media (max-width: 900px) { .q24-post-layout { grid-template-columns: minmax(0, 1fr); } .q24-post-layout .q24-share-rail { display: none; } }
.q24-share-rail { position: sticky; top: calc(var(--header-h) + 30px); align-self: start; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.q24-share-rail__label { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.q24-share {
    --brand: var(--primary);
    width: 46px; height: 46px; border-radius: 14px; border: 0; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, white);
    font: 700 15px var(--font); transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s;
}
.q24-share .q24-i { width: 20px; height: 20px; }
.q24-share:hover { transform: translateY(-3px); color: #fff; background: var(--brand); box-shadow: 0 10px 22px color-mix(in srgb, var(--brand) 40%, transparent); }
.q24-share--facebook { --brand: #1877f2; }
.q24-share--whatsapp { --brand: #1fae54; }
.q24-share--telegram { --brand: #229ed9; }
.q24-share--copy { --brand: #865c00; }
.q24-share.is-copied { color: #fff; background: var(--success); }
.q24-share--wide { width: auto; padding: 0 18px; border-radius: 999px; }

/* Article typography */
.q24-article { font-size: 18px; line-height: 1.95; color: #2b2840; }
.q24-article > *:first-child { margin-top: 0; }
.q24-article p { margin: 0 0 1.35em; }
.q24-article h2 {
    position: relative; font-size: clamp(23px, 2.4vw, 29px); line-height: 1.4; color: var(--ink);
    margin: 1.9em 0 .7em; padding-left: 18px;
}
.q24-article h2::before { content: ""; position: absolute; left: 0; top: .25em; bottom: .25em; width: 5px; border-radius: 4px; background: linear-gradient(180deg, var(--primary), var(--pink)); }
.q24-article h3 { font-size: 21px; color: var(--ink); margin: 1.6em 0 .6em; }
.q24-article a { color: var(--primary-ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--primary) 35%, transparent); }
.q24-article a:hover { text-decoration-color: var(--primary); }
.q24-article strong { color: var(--ink); }
.q24-article ul, .q24-article ol { padding-left: 0; margin: 0 0 1.5em; list-style: none; counter-reset: q24li; }
.q24-article li { position: relative; padding-left: 38px; margin-bottom: .7em; }
.q24-article ul > li::before { content: ""; position: absolute; left: 10px; top: .78em; width: 9px; height: 9px; border-radius: 3px; transform: rotate(45deg); background: var(--grad-accent); }
.q24-article ol > li { counter-increment: q24li; }
.q24-article ol > li::before {
    content: counter(q24li); position: absolute; left: 0; top: .28em; width: 26px; height: 26px; border-radius: 8px;
    display: grid; place-items: center; font: 700 14px/1 var(--font-head); color: var(--on-primary); background: var(--grad-primary);
}
.q24-article blockquote {
    position: relative; margin: 1.8em 0; padding: 22px 26px 22px 30px; border-radius: var(--r-md);
    background: linear-gradient(135deg, #fdefc8, #fff9ec); font-size: 19px; color: var(--ink);
}
.q24-article blockquote::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 4px; background: linear-gradient(180deg, var(--primary), var(--accent)); }
.q24-article blockquote p:last-child { margin-bottom: 0; }
.q24-article img, .q24-article figure { max-width: 100%; height: auto; border-radius: var(--r-md); }
.q24-article figure { margin: 1.8em 0; }
.q24-article figcaption { text-align: center; font-size: 14px; color: var(--muted); margin-top: 8px; }
.q24-article table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 16px; }
.q24-article th, .q24-article td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.q24-article th { background: var(--bg); color: var(--ink); }
.q24-article hr { border: 0; height: 1px; background: var(--line); margin: 2.2em 0; }
.q24-article .wp-block-buttons { margin: 1.6em 0; }
.q24-article .wp-block-button__link {
    display: inline-flex; padding: 14px 26px; border-radius: 999px; color: #fff; text-decoration: none;
    background: var(--grad-primary); box-shadow: var(--sh-glow); font-weight: 700;
}

.q24-article__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2.2em; }
.q24-article__tags a { padding: 5px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--muted); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: color .2s, box-shadow .2s; }
.q24-article__tags a:hover { color: var(--primary-ink); box-shadow: inset 0 0 0 1.5px var(--primary); }
.q24-article__share {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    margin-top: 28px; padding: 20px 22px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-sm); border: 1px solid var(--line);
}
.q24-article__share strong { font-size: 17px; color: var(--ink); }
.q24-article__share > div { display: flex; flex-wrap: wrap; gap: 8px; }
.q24-article__share a { text-decoration: none; }

/* Previous / next */
.q24-postnav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 860px; margin: 48px auto 0; }
@media (max-width: 640px) { .q24-postnav { grid-template-columns: minmax(0, 1fr); } }
.q24-postnav__item {
    display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--r-lg); color: var(--ink);
    background: var(--surface); box-shadow: var(--sh-sm); border: 1px solid var(--line);
    transition: transform .35s var(--ease), box-shadow .35s, border-color .3s, opacity .8s var(--ease);
}
.q24-postnav__item:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--sh-md); border-color: #f2d68a; }
.q24-postnav__item--next { flex-direction: row-reverse; text-align: right; }
.q24-postnav__item img { width: 76px; height: 76px; object-fit: cover; border-radius: 12px; flex: 0 0 auto; }
.q24-postnav__item small { display: block; color: var(--primary-ink); font-weight: 700; font-size: 13px; }
.q24-postnav__item strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.45; }

/* Comfortable tap targets on touch screens (≥40px) */
@media (max-width: 760px) {
    .q24-link { min-height: 40px; padding: 6px 0; }
    .bc__cat { min-height: 36px; padding: 7px 14px; }
}

/* ==========================================================================
   MOBILE (≤640px) — centred, gap-free, app-like layout
   ========================================================================== */
@media (max-width: 640px) {
    :root { --space-section: 30px; --space-tight: 22px; --space-hero: 18px; }

    /* Centred hero */
    .q24-hero__copy { text-align: center; }
    .q24-hero__copy .q24-pill { margin-inline: auto; }
    .q24-hero__title { margin: 12px 0 10px; }
    .q24-hero__lead { margin: 0 auto 18px; font-size: 15px; }
    .q24-hero__actions { justify-content: center; gap: 10px; }
    .q24-hero__actions .q24-btn { flex: 1 1 0; min-width: 0; }
    .q24-trust { justify-content: center; margin-top: 16px; }
    .q24-hero__inner { padding-top: 18px; padding-bottom: 18px; gap: 26px; }
    .q24-hero { padding-bottom: 40px; }
    .q24-toast--win { margin-top: 14px; }

    /* Section heads: centred, link below */
    .q24-shead { flex-direction: column; align-items: center; text-align: center; gap: 6px; margin-bottom: 20px; }
    .q24-shead > div, .q24-shead__text { display: flex; flex-direction: column; align-items: center; }
    .q24-shead__sub { font-size: 15px; }
    .q24-shead .q24-link { min-height: 0; padding: 2px 0; font-size: 15px; }

    /* Stats: slim 2×2 strip directly under the hero (no overlap on phones) */
    .q24-hero { padding-bottom: 0; }
    .q24-stats { margin-top: 0; margin-bottom: 0; }
    .q24-stats__grid { margin-top: 14px; border-radius: 18px; }
    .q24-stat { flex-direction: row; justify-content: center; text-align: left; padding: 11px 10px; gap: 10px; }
    .q24-stat__ic { width: 32px; height: 32px; border-radius: 10px; box-shadow: none; }
    .q24-stat__ic .q24-i { width: 17px; height: 17px; }
    .q24-stat__num { font-size: 17px; }
    .q24-stat__label { font-size: 11.5px; line-height: 1.3; margin-top: 2px; }

    /* Categories: 2 columns, an odd last card spans the row */
    .q24-cats { gap: 10px; }
    .q24-cat { min-height: 92px; padding: 12px; border-radius: 16px; }
    .q24-cat:last-child:nth-child(odd) { grid-column: 1 / -1; min-height: 72px; }
    .q24-cat strong { font-size: 16px; margin-top: 8px; }
    .q24-cat__ic { width: 32px; height: 32px; border-radius: 10px; }
    .q24-cat__ic .q24-i { width: 17px; height: 17px; }

    /* Quiz lists on home + related: centred swipe carousel instead of a long stack */
    .home .q24-cards,
    .single-qms_quiz .q24-cards {
        display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 86%;
        gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory; scroll-padding-inline: 20px;
        margin-inline: -20px; padding: 4px 20px 16px;
        scrollbar-width: none; -webkit-overflow-scrolling: touch;
    }
    .home .q24-cards::-webkit-scrollbar,
    .single-qms_quiz .q24-cards::-webkit-scrollbar { display: none; }
    .home .q24-cards > *,
    .single-qms_quiz .q24-cards > * { scroll-snap-align: center; }
    .home .q24-cards:has(> .qc:only-child),
    .single-qms_quiz .q24-cards:has(> .qc:only-child) { grid-auto-columns: 100%; }

    /* Quiz card: tighter on phones */
    .qc__media { aspect-ratio: 16 / 8; }
    .qc__title { font-size: 16px; }

    /* Archive filters: one swipeable row each, centred */
    .q24-filters { gap: 10px; margin-bottom: 18px; align-items: center; }
    .q24-tabs, .q24-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
    .q24-tabs::-webkit-scrollbar, .q24-chips::-webkit-scrollbar { display: none; }
    .q24-tab, .q24-chip { flex: 0 0 auto; white-space: nowrap; }
    .q24-chips { width: calc(100% + 40px); margin-inline: -20px; padding: 2px 20px; }

    /* How-to steps: compact */
    .q24-steps { gap: 10px; }
    .q24-step { padding: 14px 14px; }
    .q24-step__ic { width: 40px; height: 40px; margin-bottom: 8px; border-radius: 12px; }
    .q24-step__ic .q24-i { width: 20px; height: 20px; }
    .q24-step__num { font-size: 24px; top: 10px; right: 12px; }
    .q24-step h3 { font-size: 17px; margin-bottom: 4px; }
    .q24-step p { font-size: 14px; margin: 0; }

    /* Result rows: short banner instead of a tall empty cover */
    .q24-rrow__media { aspect-ratio: auto; height: 84px; min-height: 0; }
    .q24-rrow__main { padding: 12px 14px; gap: 8px; }
    .q24-rrow__side { padding: 12px 14px; }

    /* Inner page heroes */
    .q24-phero { padding-bottom: 22px; }
    .q24-phero__sub { font-size: 14.5px; }

    /* Single quiz hero: centred text, no duplicate cover art */
    .q24-qhero { text-align: center; padding-bottom: calc(var(--space-hero) + 70px); }
    .q24-qhero__art { display: none; }
    .q24-crumbs, .q24-qhero__tags { justify-content: center; }
    .q24-qhero__lead { font-size: 15px; margin-inline: auto; }
    .q24-qhero__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; text-align: left; }
    .q24-qhero__facts > div { padding: 10px 12px; }
    .q24-single { margin-top: -54px; }
    .q24-single .qms-single-wrap { padding: 0 14px; }
    .q24-single .qms-options-list { gap: 8px; }

    /* About story */
    .q24-story { gap: 22px; text-align: center; }

    /* Footer: centred */
    .q24-footer__cta { text-align: center; }
    .q24-footer__cta .q24-btn { margin-inline: auto; }
    .q24-footer__grid { gap: 26px; text-align: center; }
    .q24-footer__brand p { margin-inline: auto; }
    .q24-footer__brand .q24-logo { justify-content: center; }
    .q24-footer [class*="social"] { justify-content: center; }
    .q24-footer__bottom { justify-content: center; text-align: center; margin-top: 20px; }
    .q24-footer__contact { display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%; padding: 0; }
    .q24-footer__contact > * { justify-content: center; text-align: center; }
    .q24-footer__grid > div:has(.q24-footer__contact) { display: flex; flex-direction: column; align-items: center; }

    /* Home "recently ended": swipe carousel too */
    .home .q24-rlist {
        display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 12px;
        overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px;
        margin-inline: -20px; padding: 4px 20px 16px; scrollbar-width: none;
    }
    .home .q24-rlist::-webkit-scrollbar { display: none; }
    .home .q24-rlist > * { scroll-snap-align: center; }
}

/* ==========================================================================
   9wQuiz gold palette (#f1c247) — contrast fixes
   ========================================================================== */
/* Highlight words on light sections: deeper gold so they read on cream/white */
.q24-grad { background-image: linear-gradient(100deg, #d69a12 0%, #a87300 100%); }
/* Dark sections keep the bright gold shine */
.q24-hero .q24-grad, .q24-phero .q24-grad, .q24-section--dark .q24-grad, .q24-qhero .q24-grad,
.q24-post-hero .q24-grad, .q24-footer .q24-grad, .q24-results-box .q24-grad { background-image: var(--grad-text); }
/* Buttons inside the footer must not inherit the footer link colour */
.q24-footer a.q24-btn--accent, .q24-footer a.q24-btn--accent:hover,
.q24-footer a.q24-btn--primary, .q24-footer a.q24-btn--primary:hover { color: var(--on-primary); }

/* ==========================================================================
   9wQuiz buttons — gold #f1c247 "metal" style
   ========================================================================== */
:root { --gold-edge: #b8850c; --gold-btn: linear-gradient(180deg, #ffe08a 0%, #f1c247 48%, #e0a71e 100%); }
.q24-btn--primary, .q24-btn--accent, .q24-single .qms-submit-btn, .q24-rrow__cta, .q24-tab.is-active,
.q24-pagination .page-numbers.current, .qms-track__copy {
    background: var(--gold-btn); color: var(--on-primary);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 -2px 0 var(--gold-edge), 0 10px 26px -8px rgba(214,160,20,.6);
    text-shadow: 0 1px 0 rgba(255,255,255,.35);
}
.q24-btn--primary:hover, .q24-btn--accent:hover, .q24-single .qms-submit-btn:hover, .q24-rrow:hover .q24-rrow__cta {
    color: var(--on-primary); filter: saturate(1.08) brightness(1.03);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.75), inset 0 -2px 0 var(--gold-edge), 0 16px 34px -8px rgba(214,160,20,.75);
}
.q24-btn--primary:active, .q24-btn--accent:active, .q24-single .qms-submit-btn:active { transform: translateY(1px); box-shadow: inset 0 2px 6px rgba(120,80,0,.35); }
/* Outline + glass partners */
.q24-btn--outline { color: var(--primary-ink); box-shadow: inset 0 0 0 2px var(--primary); background: rgba(241,194,71,.06); }
.q24-btn--outline:hover { background: var(--gold-btn); color: var(--on-primary); box-shadow: inset 0 -2px 0 var(--gold-edge); }
.q24-btn--glass { box-shadow: inset 0 0 0 1px rgba(241,194,71,.45); }
.q24-btn--glass:hover { background: rgba(241,194,71,.14); color: #ffe3a0; }
/* Quiz card round arrow: dark chip with gold arrow for a premium contrast */
.qc__go { background: var(--night-2) !important; color: var(--primary) !important; box-shadow: inset 0 0 0 1px rgba(241,194,71,.35), 0 8px 18px -6px rgba(14,11,5,.55) !important; }
.qc:hover .qc__go { background: var(--gold-btn) !important; color: var(--on-primary) !important; }
/* "All" chip/tab (no category colour) uses the gold button style with dark text */
.q24-chip.is-active:not([style*="--c1"]) { color: var(--on-primary); background: var(--gold-btn); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 -2px 0 var(--gold-edge), 0 8px 20px -8px rgba(214,160,20,.6); }
.q24-chip.is-active:not([style*="--c1"]) .q24-i { color: var(--on-primary); }
.q24-chip.is-active:not([style*="--c1"]) em, .q24-tab.is-active em { background: rgba(29,24,8,.12); color: var(--on-primary); }

/* ==========================================================================
   9wQuiz x agent9w palette: yellow #febe1e, cream #fff1cd, black #0c0c0c
   (overrides everything above; the earlier gold blocks are the base)
   ========================================================================== */
:root {
    --y: #febe1e; --y-2: #e7b225; --y-deep: #c98d00; --cream: #fff1cd; --black: #0c0c0c; --red: #d63300;
    --night: #0c0c0c; --night-2: #1c1c1c; --night-3: #262626;
    --bg: var(--cream); --surface: #ffffff; --ink: #111111; --muted: #4f4a3d; --line: #f1e1b4;
    --primary: var(--y); --primary-2: var(--y-2); --primary-ink: #111111; --on-primary: #111111;
    --accent: var(--y); --pink: var(--red);
    --grad-text: linear-gradient(100deg, #ffd765 0%, #febe1e 100%);
    --grad-primary: linear-gradient(180deg, #ffcd45 0%, #febe1e 60%, #f2ae0c 100%);
    --grad-accent: var(--grad-primary);
    --gold-btn: linear-gradient(180deg, #ffcd45 0%, #febe1e 60%, #f2ae0c 100%); --gold-edge: var(--y-deep);
    --sh-glow: 0 12px 28px -10px rgba(201,141,0,.55);
    --q24-primary-soft: #fff4d6;
}
body { background: var(--cream); }
a:hover { color: #000; }

/* Highlight words: black on a yellow marker (light bg) / solid yellow (dark bg) / white marker (yellow bg) */
.q24-grad {
    color: #111; background: linear-gradient(transparent 58%, var(--y) 58%, var(--y) 90%, transparent 90%);
    -webkit-background-clip: border-box; background-clip: border-box;
}
.q24-section--dark .q24-grad, .q24-qhero .q24-grad, .q24-results-box .q24-grad, .q24-footer__cta .q24-grad {
    color: var(--y); background: none;
}
.q24-hero .q24-grad, .q24-phero .q24-grad, .q24-post-hero .q24-grad {
    color: #111; background: linear-gradient(transparent 58%, rgba(255,255,255,.85) 58%, rgba(255,255,255,.85) 90%, transparent 90%);
}

/* ---- Header: solid yellow bar, black text ---- */
.q24-header, .q24-header.is-scrolled { background: var(--y); backdrop-filter: none; box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.q24-header.is-scrolled { box-shadow: 0 8px 24px -10px rgba(0,0,0,.35); }
.q24-logo, .q24-logo:hover { color: #111; }
.q24-logo__text span { background: none; color: var(--red); }
.q24-nav a { color: #111; }
.q24-nav a:hover { color: #000; background: rgba(0,0,0,.07); }
.q24-nav .current-menu-item > a, .q24-nav .current_page_item > a, .q24-nav .current-menu-parent > a { color: #fff; background: var(--black); }
.q24-menu-toggle { background: rgba(0,0,0,.08); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.q24-burger i { background: #111; }
@media (max-width: 960px) {
    .q24-nav, .q24-menu-open { background: var(--y); }
    .q24-nav { border-top: 1px solid rgba(0,0,0,.1); box-shadow: 0 30px 60px rgba(0,0,0,.25); }
}

/* ---- Yellow heroes (home, inner pages, blog posts) ---- */
.q24-hero, .q24-phero, .q24-post-hero {
    color: #111;
    background: radial-gradient(90% 70% at 85% 10%, #ffd45c 0%, transparent 60%), linear-gradient(180deg, var(--y) 0%, #fcc53a 100%);
}
.q24-hero .q24-aurora, .q24-phero .q24-aurora, .q24-post-hero .q24-aurora { display: none; }
.q24-grid-bg { background-image: linear-gradient(rgba(0,0,0,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,.06) 1px, transparent 1px); }
.q24-floaters span { color: rgba(0,0,0,.06); }
.q24-hero__title, .q24-phero__title, .q24-post-hero__title { color: #111; }
.q24-hero__lead, .q24-phero__sub, .q24-post-hero__lead { color: rgba(0,0,0,.72); }
.q24-trust p { color: rgba(0,0,0,.7); }
.q24-trust strong, .q24-hero-stats strong { color: #111; }
.q24-avatars span { border-color: var(--y); }
.q24-hero .q24-pill--glass, .q24-phero .q24-pill, .q24-post-hero .q24-pill { color: #111; background: rgba(255,255,255,.6); box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
.q24-hero-stats span { color: rgba(0,0,0,.7); background: rgba(255,255,255,.55); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.q24-post-hero .q24-crumbs, .q24-post-hero .q24-crumbs a, .q24-phero .q24-crumbs, .q24-phero .q24-crumbs a { color: rgba(0,0,0,.65); }
.q24-post-hero__cat:hover { color: #fff; background: #111; }
.q24-marquee { border-top-color: rgba(0,0,0,.1); background: rgba(0,0,0,.04); }
.q24-marquee span { color: #111; background: #fff; box-shadow: 0 2px 8px -4px rgba(0,0,0,.25); }
.q24-marquee .q24-i { filter: none; }
/* Buttons sitting on yellow: black pills (agent9w style) */
.q24-hero .q24-btn--primary, .q24-phero .q24-btn--primary, .q24-header .q24-btn--primary, .q24-header .q24-btn--accent {
    background: var(--black); color: #fff; text-shadow: none; box-shadow: 0 10px 24px -10px rgba(0,0,0,.6);
}
.q24-hero .q24-btn--primary:hover, .q24-phero .q24-btn--primary:hover, .q24-header .q24-btn--primary:hover, .q24-header .q24-btn--accent:hover { color: var(--y); background: #000; }
.q24-hero .q24-btn--glass, .q24-phero .q24-btn--glass { color: #111; background: transparent; box-shadow: inset 0 0 0 2px #111; backdrop-filter: none; }
.q24-hero .q24-btn--glass:hover, .q24-phero .q24-btn--glass:hover { color: #fff; background: #111; }
/* The spotlight card on the hero is white, so its button stays yellow */
.q24-hero .q24-spot .q24-btn--primary { background: var(--gold-btn); color: #111; box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 -2px 0 var(--gold-edge), 0 10px 26px -10px rgba(201,141,0,.6); }

/* ---- Black sections ---- */
.q24-section--dark { background: var(--black); }
.q24-section--dark .q24-pill { background: var(--y); color: #111; }

/* ---- Buttons on cream/white: yellow fill + black text; accent = black pill ---- */
.q24-btn--accent { background: var(--black); color: #fff; text-shadow: none; box-shadow: 0 10px 24px -10px rgba(0,0,0,.55); }
.q24-btn--accent:hover { background: #000; color: var(--y); filter: none; }
.q24-btn--outline { color: #111; box-shadow: inset 0 0 0 2px #111; background: transparent; }
.q24-btn--outline:hover { color: #fff; background: #111; box-shadow: none; }
.q24-section--dark .q24-btn--outline, .q24-results-box .q24-btn--outline { color: #fff; box-shadow: inset 0 0 0 2px var(--y); }
.q24-section--dark .q24-btn--outline:hover { color: #111; background: var(--y); }
.q24-pill { color: #111; background: var(--y); }
.q24-link { color: #111; }
.q24-link:hover { color: var(--red); }

/* ---- Footer: yellow, black text, black CTA card (like the agent9w complaint card) ---- */
.q24-footer { color: rgba(0,0,0,.78); background: var(--y); }
.q24-footer .q24-aurora, .q24-footer .q24-grid-bg { display: none; }
.q24-footer a { color: #111; }
.q24-footer a:hover { color: var(--red); }
.q24-footer h3 { color: #000; }
.q24-footer__contact .q24-i { color: #111; }
.q24-footer__bottom { border-top-color: rgba(0,0,0,.15); color: rgba(0,0,0,.75); }
.q24-footer__cta { background: var(--black); box-shadow: 0 24px 50px -24px rgba(0,0,0,.6); backdrop-filter: none; color: rgba(255,255,255,.75); }
.q24-footer__cta h2 { color: #fff; }
.q24-footer .q24-footer__cta a.q24-btn--accent, .q24-footer .q24-footer__cta a.q24-btn--primary { background: var(--gold-btn); color: #111; }
.q24-footer .q24-footer__cta a.q24-btn:hover { background: #fff; color: #111; }
.q24-social a { color: var(--y); background: var(--black); box-shadow: none; }
.q24-social a:hover { color: #111; background: #fff; }
.q24-social--light a { color: #111; background: var(--y); }
.q24-social--light a:hover { color: var(--y); background: #111; }

/* ---- Misc accents ---- */
.q24-totop { background: var(--black); color: var(--y); box-shadow: 0 10px 24px -8px rgba(0,0,0,.5); }
.q24-progress { background: var(--black); }
.q24-faq__item[open] { border-color: var(--y); }
.q24-faq__plus { background: var(--y); }
.q24-faq__plus::before, .q24-faq__plus::after { background: #111; }
.q24-faq__item[open] .q24-faq__plus { background: #111; }
.q24-faq__item[open] .q24-faq__plus::before, .q24-faq__item[open] .q24-faq__plus::after { background: var(--y); }
.q24-results-box { background: radial-gradient(120% 70% at 50% 0%, #2a2a2a 0%, #141414 55%, #0c0c0c 100%); }
/* Black section: pure black like agent9w, with one faint yellow glow */
.q24-section--dark { background: radial-gradient(60% 80% at 100% 0%, rgba(254,190,30,.10), transparent 60%), var(--black); }
.q24-section--dark .q24-aurora, .q24-section--dark .q24-grid-bg { display: none; }
.q24-step { background: #161616; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.q24-step:hover { box-shadow: inset 0 0 0 1px rgba(254,190,30,.5); }
/* 9wQuiz logo: "9" + cricket ball mark, wordmark with tagline */
.q24-logo { gap: 10px; }
.q24-logo__mark { width: 40px; height: 40px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.25)); }
.q24-logo:hover .q24-logo__mark { transform: rotate(-8deg) scale(1.05); }
.q24-logo__words { display: flex; flex-direction: column; line-height: 1; }
.q24-logo__text { font: 800 24px/1 var(--font-head); letter-spacing: -.6px; color: #0c0c0c; }
.q24-logo__text span { color: var(--red); background: none; }
.q24-logo__tag { margin-top: 3px; font: 700 8.5px/1 system-ui, -apple-system, 'Segoe UI', sans-serif; letter-spacing: .32em; color: rgba(0,0,0,.6); }
.q24-header.is-scrolled .q24-logo__mark { width: 36px; height: 36px; }
@media (max-width: 400px) { .q24-logo__text { font-size: 22px; } .q24-logo__mark { width: 36px; height: 36px; } }
