/*
Theme Name: The Quiz Show
Theme URI: https://thequizshow.tv
Author: Maneki Neko Productions Inc.
Version: 5.13.0
Text Domain: thequizshow
*/

/*
  PHILOSOPHY: The thumbnails are the colour. The site is the frame.
  Dark, structured, content-first. Bright, bold, fun. Kids 8-15. Energy, colour, excitement.
*/

:root {
    --accent:       #FF0000;
    --accent-dark:  #CC0000;
    --accent-glow:  rgba(255,0,0,0.1);
    --yellow:       #FFD600;
    --red:          #FF0000;

    --bg:           #FFFFFF;
    --bg-card:      #FFFFFF;
    --bg-elevated:  #F8F9FF;
    --border:       #E2E8F0;
    --border-hover: #CBD5E1;

    --text-primary:   #0D0D14;
    --text-secondary: #475569;
    --text-muted:     #94A3B8;

    --font-display: 'Roboto', sans-serif;
    --font-body:    'Roboto', sans-serif;

    --nav-h:   56px;
    --max-w:   1280px;
    --pad:     clamp(1rem, 3vw, 2rem);
    --r:       8px;
    --r-lg:    12px;
    --ease:    cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── RESET ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 17px; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.site-main    { flex: 1; }
.w { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad); }

/* ─── NAV ──────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 500;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    height: 80px;
}
.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--pad);
    height: 100%;
    display: flex;
    align-items: center;
    overflow: visible;
}

/* Logo — 100×100, bleeds slightly */
.nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: 2rem;
    margin-top: -10px;
    margin-bottom: -10px;
    transition: opacity 0.15s;
}
.nav-logo:hover { opacity: 0.85; }
.nav-logo img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.15));
}
.nav-logo-text { display: none; }

/* Nav links — centered in remaining space */
.nav-links {
    display: flex;
    align-items: stretch;
    height: 100%;
    gap: 0;
    flex: 1;
    justify-content: center;
}
.nav-links > a,
.nav-item > a {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    height: 100%;
    padding: 0 1rem;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}
.nav-links > a:hover,
.nav-item > a:hover,
.nav-item.active > a {
    color: #000;
    border-bottom-color: var(--accent);
}
.nav-item { position: relative; display: flex; align-items: stretch; }
.nav-chevron { font-size: 1rem; opacity: 0.5; }

/* Dropdown */
.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid var(--border);
    border-top: 2px solid var(--accent);
    border-radius: 0 0 var(--r) var(--r);
    padding: 0.5rem 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.nav-item:hover .nav-dropdown { display: block; }
.nav-dropdown a {
    display: block;
    padding: 0.5rem 1.25rem;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: color 0.12s, background 0.12s;
}
.nav-dropdown a:hover { color: #000; background: #f5f5f5; }

/* Right side — social icons */
.nav-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}
.nav-yt,
.nav-ig {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    color: #555;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
    font-size: 0;
}
.nav-yt svg, .nav-ig svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-yt:hover { color: #FF0000; border-color: #FF0000; background: #fff5f5; }
.nav-ig:hover { color: #E1306C; border-color: #E1306C; background: #fff0f5; }
/* override the old border-bottom hack */
.nav-yt { border-bottom: 1.5px solid var(--border) !important; }
.nav-yt:hover { border-bottom-color: #FF0000 !important; }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.4rem;
    margin-left: 0.5rem;
}

/* ─── PAGE LAYOUT ────────────────────────────── */
.page-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: start;
    padding: 2rem 0 4rem;
}
.main-col   { min-width: 0; }
.sidebar-col { position: sticky; top: calc(var(--nav-h) + 1.25rem); }

/* ─── SECTION HEADERS ────────────────────────── */
.sec-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.sec-head h2 {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2vw, 1.15rem);
    font-weight: 900;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.sec-head h2::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 1em;
    background: var(--accent);
    border-radius: 2px;
}
.sec-link {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    transition: color 0.15s;
    white-space: nowrap;
}
.sec-link:hover { color: var(--text-primary); }

/* ─── VIDEO CAROUSEL ─────────────────────────── */
/* Minecraft-style: horizontal scroll with prev/next arrows */
.video-carousel-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.video-carousel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}
.carousel-arrows {
    display: flex;
    gap: 0.375rem;
}
.carousel-btn {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.carousel-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-glow);
}
.carousel-btn:disabled { opacity: 0.3; cursor: default; }

.video-carousel-track-outer {
    overflow: hidden;
}
.video-carousel-track {
    display: flex;
    gap: 0.875rem;
    transition: transform 0.4s var(--ease);
}
.vcard {
    flex: 0 0 calc(25% - 0.66rem);
    min-width: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
    display: block;
    transition: border-color 0.2s, transform 0.2s var(--ease);
}
.vcard:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
}
.vcard-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #0d0f14;
}
.vcard-thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s var(--ease);
}
.vcard:hover .vcard-thumb img { transform: scale(1.04); }
.vcard-duration {
    position: absolute; bottom: 0.4rem; right: 0.4rem;
    background: rgba(0,0,0,0.85);
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.9rem; font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
}
.vcard-body { padding: 0.625rem 0.75rem 0.75rem; }
.vcard-title {
    font-family: var(--font-display);
    font-size: 1.05rem; font-weight: 800;
    color: var(--text-primary);
    line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
    margin-bottom: 0.25rem;
}
.vcard-meta { font-size: 1.05rem; color: var(--text-muted); font-weight: 500; }

/* ─── QUIZ SECTION ───────────────────────────── */
.quiz-section { margin-bottom: 2rem; }

.quiz-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.875rem;
}

/* ─── QUIZ CARDS ─────────────────────────────── */
.qcard {
    background: var(--bg-card);
    border: none;
    border-radius: var(--r);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: opacity 0.15s;
}
.qcard:hover { opacity: 0.9; }

.qcard-img {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f0f0f0;
    flex-shrink: 0;
    border-radius: var(--r);
}
.qcard-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.3s var(--ease);
}
.qcard:hover .qcard-img img { transform: scale(1.03); }

.qcard-img.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: #e8e8e8;
}

/* Pill — hidden */
.qcard-pill { display: none; }

.coming-soon-badge {
    position: absolute; top: 0.5rem; right: 0.5rem;
    background: rgba(0,0,0,0.75);
    color: #fff;
    font-size: 1rem;
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
    padding: 0.2rem 0.55rem; border-radius: 3px;
}

.qcard-body {
    padding: 0.6rem 0.25rem 0.5rem;
}
.qcard-title {
    font-family: var(--font-display);
    font-size: 1rem; font-weight: 500;
    line-height: 1.4;
    color: var(--text-primary);
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
/* Hide everything below the title */
.qcard-desc   { display: none; }
.qcard-footer { display: none; }

/* ─── SIDEBAR ─────────────────────────────────── */
.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}
.sidebar-title {
    font-family: var(--font-display);
    font-size: 1.05rem; font-weight: 900;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1rem; padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border);
}
.sidebar-quiz-list { display: flex; flex-direction: column; gap: 0.75rem; }
.sidebar-quiz-item a {
    display: flex; align-items: center; gap: 0.6rem;
    text-decoration: none; transition: opacity 0.15s;
}
.sidebar-quiz-item a:hover { opacity: 0.75; }
.sidebar-quiz-thumb {
    width: 52px; height: 52px; border-radius: 6px;
    overflow: hidden; flex-shrink: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
}
.sidebar-quiz-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-quiz-item span {
    font-family: var(--font-display);
    font-size: 0.9rem; font-weight: 800;
    color: var(--text-primary); line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}

/* Ad slots */
.sidebar-ad { padding: 0; }
.sidebar-ad-label {
    font-size: 1rem; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--text-muted);
    margin-bottom: 0.5rem; text-align: center;
}
.sidebar-ad-slot {
    background: var(--bg-elevated);
    border: 1px dashed rgba(255,255,255,0.1);
    border-radius: var(--r);
    height: 250px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 0.25rem;
}
.sidebar-ad-slot span { font-size: 1rem; font-weight: 700; color: var(--text-muted); }
.sidebar-ad-slot small { font-size: 1.05rem; color: var(--text-muted); opacity: 0.5; }

/* Newsletter */
.sidebar-newsletter {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    border-color: rgba(61,191,191,0.3);
}
.sidebar-nl-title {
    font-family: var(--font-display);
    font-size: 1.1rem; font-weight: 900;
    letter-spacing: -0.01em;
    margin-bottom: 0.3rem; color: var(--accent);
}
.sidebar-nl-desc {
    font-size: 0.9rem; color: rgba(255,255,255,0.55);
    margin-bottom: 1rem; font-weight: 500;
}
.sidebar-nl-form { display: flex; flex-direction: column; gap: 0.5rem; }
.sidebar-nl-form input {
    padding: 0.6rem 0.75rem;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--r);
    font-family: var(--font-body); font-size: 1.05rem;
    background: rgba(255,255,255,0.07); color: var(--text-primary);
    outline: none; transition: border-color 0.15s;
}
.sidebar-nl-form input::placeholder { color: rgba(255,255,255,0.3); }
.sidebar-nl-form input:focus { border-color: var(--accent); }
.sidebar-nl-form button {
    padding: 0.65rem;
    background: var(--accent); color: #fff;
    font-family: var(--font-display); font-size: 1.05rem; font-weight: 900;
    border: none; border-radius: var(--r); cursor: pointer;
    transition: background 0.15s;
    letter-spacing: 0.03em;
}
.sidebar-nl-form button:hover { background: var(--accent-dark); }
.sidebar-nl-note {
    font-size: 1.05rem; color: rgba(255,255,255,0.3);
    margin-top: 0.5rem; text-align: center;
}

/* ─── SUBSCRIBE STRIP ────────────────────────── */
.subscribe-strip {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 3rem var(--pad);
    text-align: center;
}
.subscribe-strip h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 900; letter-spacing: -0.02em;
    color: var(--text-primary); margin-bottom: 0.35rem;
}
.subscribe-strip h2 span { color: var(--accent); }
.subscribe-strip p {
    color: var(--text-secondary); font-size: 1.05rem;
    margin-bottom: 1.5rem; font-weight: 500;
    max-width: 400px; margin-left: auto; margin-right: auto;
}

/* ─── BUTTONS ────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.65rem 1.5rem; border-radius: var(--r);
    font-family: var(--font-display); font-weight: 900; font-size: 1.05rem;
    cursor: pointer; border: 1.5px solid transparent;
    transition: all 0.15s;
    text-decoration: none; letter-spacing: 0.03em;
}
.btn-accent  { background: var(--accent);     color: #fff; border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent-glow); }
.btn-dark    { background: var(--bg-elevated); color: var(--text-primary); border-color: var(--border); }
.btn-dark:hover { border-color: var(--border-hover); }
/* Legacy */
.btn-teal    { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-teal:hover { background: var(--accent-dark); }
.btn-yellow  { background: var(--yellow); color: #000; border-color: var(--yellow); }
.btn-white   { background: #fff; color: #000; }

/* ─── FOOTER ──────────────────────────────────── */
.site-footer {
    background: #0A0B0E;
    border-top: 1px solid var(--border);
    padding: 3rem var(--pad) 2rem;
    color: var(--text-muted);
}
.footer-inner {
    max-width: var(--max-w); margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem; margin-bottom: 2.5rem;
}
.footer-logo-wrap { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.75rem; }
.footer-logo-img  { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.footer-logo-img img { width: 100%; height: 100%; object-fit: cover; }
.footer-brand-name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 900; color: var(--text-primary); }
.footer-brand p { font-size: 1.05rem; line-height: 1.65; max-width: 200px; color: var(--text-muted); }
.footer-col h4 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col ul li a { font-size: 1.05rem; color: var(--text-muted); transition: color .15s; }
.footer-col ul li a:hover { color: var(--text-primary); }
.footer-bottom {
    max-width: var(--max-w); margin: 0 auto;
    border-top: 1px solid var(--border); padding-top: 1.5rem;
    display: flex; justify-content: space-between; align-items: center;
    gap: 1rem; flex-wrap: wrap; font-size: 1rem;
}
.footer-bottom a { color: var(--text-muted); transition: color .15s; }
.footer-bottom a:hover { color: var(--text-primary); }

/* ─── QUIZ PAGE ───────────────────────────────── */
.quiz-page-wrap { max-width: var(--max-w); margin: 0 auto; padding: 2rem var(--pad) 5rem; }
.quiz-breadcrumb { font-size: 1rem; color: var(--text-muted); margin-bottom: 1.5rem; font-weight: 600; }
.quiz-breadcrumb a { color: var(--text-muted); transition: color .15s; }
.quiz-breadcrumb a:hover { color: var(--accent); }
.quiz-page-title { font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 900; letter-spacing: -0.02em; margin-bottom: 0.4rem; }
.quiz-page-desc { color: var(--text-secondary); margin-bottom: 2rem; font-weight: 500; }
.quiz-empty { text-align: center; padding: 3rem; color: var(--text-secondary); border: 1px dashed var(--border); border-radius: var(--r-lg); }
.quiz-back { text-align: center; margin-top: 2rem; font-size: 1rem; font-weight: 700; color: var(--text-muted); }
.quiz-back a { color: var(--accent); }
.quiz-back a:hover { color: var(--text-primary); }

/* ─── QUIZ ENGINE ─────────────────────────────── */
.quiz-meta-bar { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.qpill { display: inline-flex; align-items: center; font-family: var(--font-display); font-size: 1.05rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.07em; padding: 0.22rem 0.65rem; border-radius: 4px; }
.qpill.easy   { background: rgba(0,200,83,0.15);  color: #00c853; border: 1px solid rgba(0,200,83,0.3); }
.qpill.medium { background: rgba(255,214,0,0.1);  color: var(--yellow); border: 1px solid rgba(255,214,0,0.25); }
.qpill.hard   { background: rgba(255,59,59,0.1);  color: var(--red); border: 1px solid rgba(255,59,59,0.25); }

.q-progress { height: 4px; background: var(--border); border-radius: 100px; overflow: hidden; margin-bottom: 0.4rem; }
.q-progress-fill { height: 100%; background: var(--accent); border-radius: 100px; transition: width 0.5s var(--ease); }
.q-counter { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--text-muted); display: flex; justify-content: space-between; margin-bottom: 1.25rem; }
.q-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.75rem; margin-bottom: 0.75rem; animation: slideUp 0.3s var(--ease); }
@keyframes slideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.q-image { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--r); margin-bottom: 1.25rem; border: 1px solid var(--border); }
.q-text { font-family: var(--font-display); font-size: clamp(1.1rem, 2.5vw, 1.4rem); font-weight: 900; line-height: 1.3; letter-spacing: -0.02em; color: var(--text-primary); margin-bottom: 1.25rem; }
.q-options { display: grid; gap: 0.55rem; }
.q-options.tf { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.q-options.image-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }

.q-opt { display: flex; align-items: center; gap: 0.75rem; padding: 0.8rem 1rem; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--r); cursor: pointer; font-family: var(--font-display); font-size: 1rem; font-weight: 800; color: var(--text-primary); text-align: left; width: 100%; transition: all 0.15s var(--ease); animation: fadeIn 0.2s ease both; }
.q-opt:nth-child(1){animation-delay:.04s} .q-opt:nth-child(2){animation-delay:.09s} .q-opt:nth-child(3){animation-delay:.14s} .q-opt:nth-child(4){animation-delay:.19s}
@keyframes fadeIn { from { opacity: 0; transform: translateX(-5px); } to { opacity: 1; transform: translateX(0); } }
.q-opt:hover:not(.disabled) { border-color: var(--accent); background: var(--accent-glow); }
.q-opt-letter { width: 26px; height: 26px; border-radius: 6px; background: var(--border); font-size: 0.7rem; font-weight: 900; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border: 1px solid rgba(255,255,255,0.08); }
.q-opt.selected { border-color: var(--accent); background: var(--accent-glow); }
.q-opt.correct  { border-color: #00c853; background: rgba(0,200,83,0.1); }
.q-opt.wrong    { border-color: var(--red); background: rgba(255,59,59,0.1); }
.q-opt.disabled { cursor: not-allowed; }
.q-opt.selected .q-opt-letter { background: var(--accent); color: #fff; border-color: var(--accent); }
.q-opt.correct  .q-opt-letter { background: #00c853; color: #fff; }
.q-opt.wrong    .q-opt-letter { background: var(--red);   color: #fff; }
.q-options.tf .q-opt { flex-direction: column; justify-content: center; text-align: center; padding: 1.5rem; font-size: 1.1rem; }
.q-options.tf .q-opt-letter { display: none; }
.q-options.image-grid .q-opt { flex-direction: column; padding: 0; overflow: hidden; gap: 0; align-items: stretch; }
.q-opt-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.q-opt-label { padding: 0.5rem 0.75rem; display: flex; align-items: center; gap: 0.4rem; }
.q-feedback { border-radius: var(--r); padding: 0.7rem 1rem; font-family: var(--font-display); font-weight: 800; font-size: 1rem; margin-bottom: 0.75rem; display: none; animation: slideUp 0.25s var(--ease); border: 1px solid; }
.q-feedback.show { display: block; }
.q-feedback.ok  { background: rgba(0,200,83,0.1);  color: #00c853; border-color: rgba(0,200,83,0.3); }
.q-feedback.err { background: rgba(255,59,59,0.1);  color: var(--red); border-color: rgba(255,59,59,0.3); }
.q-next { width: 100%; padding: 0.9rem; background: var(--accent); color: #fff; font-family: var(--font-display); font-size: 1.05rem; font-weight: 900; border: none; border-radius: var(--r); cursor: pointer; display: none; transition: background 0.15s; }
.q-next:hover { background: var(--accent-dark); }
.q-results { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 2.5rem 2rem; text-align: center; display: none; animation: slideUp 0.4s var(--ease); }
.q-results-ring { width: 100px; height: 100px; border-radius: 50%; background: var(--accent-glow); border: 2px solid var(--accent); display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 0 auto 1.5rem; }
.q-results-num { font-family: var(--font-display); font-size: 2.2rem; font-weight: 900; color: var(--accent); line-height: 1; }
.q-results-of  { font-size: 0.9rem; font-weight: 700; color: var(--text-muted); }
.q-results h2 { font-family: var(--font-display); font-size: 1.8rem; font-weight: 900; letter-spacing: -0.02em; margin-bottom: 0.4rem; }
.q-results p  { color: var(--text-secondary); margin-bottom: 1.75rem; font-weight: 500; }
.q-results-actions { display: flex; gap: 0.625rem; justify-content: center; flex-wrap: wrap; }

/* ─── WYR PLAYER ──────────────────────────────── */
#wyr-player { max-width: 900px; margin: 0 auto; }
.wyr-progress-wrap { margin-bottom: 1.75rem; }
.wyr-progress-bar { height: 4px; background: var(--border); border-radius: 100px; overflow: hidden; margin-bottom: 0.4rem; }
.wyr-progress-fill { height: 100%; background: var(--accent); border-radius: 100px; transition: width 0.5s var(--ease); }
.wyr-progress-label { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--text-muted); text-align: right; }
.wyr-stage { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: stretch; opacity: 0; transform: translateY(8px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.wyr-stage--in { opacity: 1; transform: translateY(0); }
.wyr-or-badge { display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 0.9rem; font-weight: 900; color: var(--accent); border: 1.5px solid var(--accent); border-radius: 50%; width: 44px; height: 44px; flex-shrink: 0; align-self: center; background: var(--accent-glow); }
.wyr-opt { background: var(--bg-card); border: 1.5px solid var(--border); border-radius: var(--r-lg); overflow: hidden; cursor: pointer; padding: 0; display: flex; flex-direction: column; text-align: left; transition: border-color 0.2s, transform 0.2s var(--ease); width: 100%; }
.wyr-opt:hover:not(:disabled) { border-color: var(--accent); transform: translateY(-2px); }
.wyr-opt:disabled { cursor: default; }
.wyr-opt-img-wrap { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-elevated); }
.wyr-opt-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.wyr-opt:hover:not(:disabled) .wyr-opt-img-wrap img { transform: scale(1.04); }
.wyr-opt-img-placeholder { width: 100%; height: 100%; background: var(--bg-elevated); }
.wyr-opt-label { padding: 0.875rem 1rem; font-family: var(--font-display); font-size: 1.1rem; font-weight: 900; color: var(--text-primary); line-height: 1.3; flex: 1; }
.wyr-opt--chosen { border-color: var(--accent) !important; }
.wyr-opt--other  { opacity: 0.4; }
.wyr-vote-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 0.75rem; opacity: 0; transition: opacity 0.3s var(--ease); }
.wyr-vote-overlay--show { opacity: 1; }
.wyr-vote-bar { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(61,191,191,0.4); height: 0%; transition: height 0.7s var(--ease); }
.wyr-vote-pct { position: relative; z-index: 1; font-family: var(--font-display); font-size: 2.8rem; font-weight: 900; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.6); letter-spacing: -0.02em; }
.wyr-next { display: none; width: 100%; margin-top: 1.25rem; padding: 0.9rem; background: var(--accent); color: #fff; font-family: var(--font-display); font-size: 1.1rem; font-weight: 900; border: none; border-radius: var(--r); cursor: pointer; align-items: center; justify-content: center; transition: background 0.15s; }
.wyr-next:hover { background: var(--accent-dark); }
.wyr-results { text-align: center; padding: 3rem 2rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); animation: slideUp 0.4s var(--ease); }
.wyr-results-icon { font-size: 3rem; margin-bottom: 1rem; }
.wyr-results-title { font-family: var(--font-display); font-size: 2.4rem; font-weight: 900; letter-spacing: -0.02em; margin-bottom: 0.4rem; }
.wyr-results-sub { color: var(--text-secondary); margin-bottom: 2rem; font-weight: 600; }
.wyr-results-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.wyr-btn-primary { padding: 0.8rem 1.75rem; background: var(--accent); color: #fff; font-family: var(--font-display); font-weight: 900; font-size: 0.9rem; border: none; border-radius: var(--r); cursor: pointer; transition: background 0.15s; }
.wyr-btn-primary:hover { background: var(--accent-dark); }
.wyr-btn-ghost { padding: 0.8rem 1.75rem; background: transparent; color: var(--text-primary); font-family: var(--font-display); font-weight: 900; font-size: 0.9rem; border: 1px solid var(--border); border-radius: var(--r); text-decoration: none; display: inline-flex; align-items: center; transition: border-color 0.15s; }
.wyr-btn-ghost:hover { border-color: var(--border-hover); }

/* ─── MCQ PLAYER ──────────────────────────────── */
#mcq-player { max-width: 680px; margin: 0 auto; }
.mcq-progress-wrap { margin-bottom: 1.5rem; }
.mcq-progress-bar { height: 4px; background: var(--border); border-radius: 100px; overflow: hidden; margin-bottom: 0.4rem; }
.mcq-progress-fill { height: 100%; background: var(--accent); border-radius: 100px; transition: width 0.5s var(--ease); }
.mcq-progress-label { display: flex; justify-content: space-between; font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--text-muted); }
.mcq-score-live strong { color: var(--accent); }
.mcq-question-img { border-radius: var(--r); overflow: hidden; aspect-ratio: 16/9; margin-bottom: 1.25rem; background: var(--bg-elevated); border: 1px solid var(--border); }
.mcq-question-img img { width: 100%; height: 100%; object-fit: cover; }
.mcq-question-text { font-family: var(--font-display); font-size: clamp(1.1rem, 3vw, 1.5rem); font-weight: 900; letter-spacing: -0.02em; line-height: 1.3; margin-bottom: 1.25rem; color: var(--text-primary); }
.mcq-options { display: flex; flex-direction: column; gap: 0.55rem; opacity: 0; transform: translateY(6px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.mcq-options--in { opacity: 1; transform: translateY(0); }
.mcq-opt { display: flex; align-items: center; gap: 0.875rem; width: 100%; padding: 0.85rem 1rem; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--r); cursor: pointer; text-align: left; transition: all 0.15s var(--ease); font-family: var(--font-display); }
.mcq-opt:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-glow); transform: translateX(4px); }
.mcq-opt:disabled { cursor: default; }
.mcq-opt-letter { width: 32px; height: 32px; border-radius: 6px; background: rgba(255,255,255,0.06); color: var(--text-muted); font-family: var(--font-display); font-size: 0.9rem; font-weight: 900; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border: 1px solid rgba(255,255,255,0.08); transition: all 0.15s; }
.mcq-opt-text { font-size: 0.92rem; font-weight: 800; color: var(--text-primary); line-height: 1.35; }
.mcq-opt--correct { border-color: #00c853 !important; background: rgba(0,200,83,0.1) !important; }
.mcq-opt--correct .mcq-opt-letter { background: #00c853; color: #fff; border-color: #00c853; }
.mcq-opt--wrong   { border-color: var(--red)   !important; background: rgba(255,59,59,0.1) !important; }
.mcq-opt--wrong .mcq-opt-letter   { background: var(--red);  color: #fff; border-color: var(--red); }
.mcq-opt--dim { opacity: 0.35; }
.mcq-feedback { display: flex; align-items: center; gap: 0.75rem; padding: 0.8rem 1rem; border-radius: var(--r); margin-top: 0.875rem; font-family: var(--font-display); font-weight: 800; font-size: 1rem; animation: slideUp 0.3s var(--ease); border: 1px solid; }
.mcq-feedback--correct { background: rgba(0,200,83,0.1); border-color: rgba(0,200,83,0.3); color: #00c853; }
.mcq-feedback--wrong   { background: rgba(255,59,59,0.1); border-color: rgba(255,59,59,0.3); color: var(--red); }
.mcq-fb-icon { font-size: 1.1rem; }
.mcq-fb-stat { margin-left: auto; font-size: 1rem; font-weight: 700; opacity: 0.7; }
.mcq-next { display: none; width: 100%; margin-top: 1rem; padding: 0.9rem; background: var(--accent); color: #fff; font-family: var(--font-display); font-size: 1.05rem; font-weight: 900; border: none; border-radius: var(--r); cursor: pointer; align-items: center; justify-content: center; transition: background 0.15s; }
.mcq-next:hover { background: var(--accent-dark); }
.mcq-results { text-align: center; padding: 2.5rem 1.5rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); animation: slideUp 0.4s var(--ease); }
.mcq-results-ring { position: relative; width: 130px; height: 130px; margin: 0 auto 1.5rem; }
.mcq-ring-svg { width: 100%; height: 100%; }
.mcq-ring-bg   { stroke: var(--border); }
.mcq-ring-fill { stroke: var(--accent); transition: stroke-dashoffset 1s cubic-bezier(0.16,1,0.3,1); }
.mcq-ring-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.mcq-ring-score { font-family: var(--font-display); font-size: 1.9rem; font-weight: 900; letter-spacing: -0.02em; line-height: 1; }
.mcq-ring-pct { font-size: 1rem; font-weight: 700; color: var(--text-muted); margin-top: 2px; }
.mcq-results-title { font-family: var(--font-display); font-size: 2rem; font-weight: 900; letter-spacing: -0.02em; margin-bottom: 0.4rem; }
.mcq-results-sub { color: var(--text-secondary); margin-bottom: 1.75rem; font-weight: 500; }
.mcq-results-actions { display: flex; gap: 0.625rem; justify-content: center; flex-wrap: wrap; }
.mcq-btn-primary { padding: 0.75rem 1.75rem; background: var(--accent); color: #fff; font-family: var(--font-display); font-weight: 900; font-size: 1rem; border: none; border-radius: var(--r); cursor: pointer; transition: background 0.15s; text-decoration: none; display: inline-flex; align-items: center; }
.mcq-btn-primary:hover { background: var(--accent-dark); }
.mcq-btn-share { padding: 0.75rem 1.75rem; font-family: var(--font-display); font-weight: 900; font-size: 1rem; border: 1px solid var(--border); border-radius: var(--r); cursor: pointer; transition: border-color 0.15s; text-decoration: none; display: inline-flex; align-items: center; }
.mcq-btn-wa { background: #25D366; color: #fff; border-color: #25D366; }
.mcq-btn-copy { background: var(--bg-elevated); color: var(--text-primary); }
.mcq-btn-share:hover { border-color: var(--border-hover); }
.mcq-btn-ghost { padding: 0.75rem 1.75rem; background: transparent; color: var(--text-primary); font-family: var(--font-display); font-weight: 900; font-size: 1rem; border: 1px solid var(--border); border-radius: var(--r); text-decoration: none; display: inline-flex; align-items: center; transition: border-color 0.15s; }
.mcq-btn-ghost:hover { border-color: var(--border-hover); }

/* Personality */
.personality-card { background: rgba(124,58,255,0.1); border: 1px solid rgba(124,58,255,0.3); border-radius: var(--r-lg); padding: 1.25rem; margin-bottom: 1.5rem; text-align: left; }
.personality-card h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 900; margin-bottom: 0.3rem; color: #a78bfa; }
.personality-card p  { color: var(--text-secondary); margin: 0; font-size: 1rem; }

/* ─── RESPONSIVE ──────────────────────────────── */
@media (max-width: 1024px) {
    .page-with-sidebar { grid-template-columns: 1fr 260px; gap: 1.5rem; }
    .quiz-grid   { grid-template-columns: repeat(2, 1fr); }
    .vcard { flex: 0 0 calc(33.33% - 0.58rem); }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-links { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; background: #0d0e12; border-bottom: 1px solid var(--border); padding: 0.75rem 0; flex-direction: column; align-items: stretch; height: auto; z-index: 400; }
    .nav-links.is-open { display: flex; }
    .nav-links > a, .nav-item > a { height: 44px; padding: 0 var(--pad); }
    .nav-dropdown { position: static; border: none; border-top: 1px solid var(--border); padding-left: var(--pad); background: transparent; box-shadow: none; display: block; }
    .nav-right { gap: 0.375rem; }
    .page-with-sidebar { grid-template-columns: 1fr; }
    .sidebar-col { position: static; }
    .quiz-grid   { grid-template-columns: repeat(2, 1fr); }
    .vcard { flex: 0 0 calc(50% - 0.44rem); }
    .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .wyr-stage { grid-template-columns: 1fr; }
    .wyr-or-badge { justify-self: center; }
}
@media (max-width: 480px) {
    .quiz-grid   { grid-template-columns: 1fr; }
    .vcard { flex: 0 0 calc(100% - 0.875rem); }
    .mcq-results-actions, .wyr-results-actions { flex-direction: column; align-items: stretch; }
}

/* ─── QUIZ INTRO SCREEN ──────────────────────── */
.quiz-intro {
    max-width: 720px;
    margin: 1rem auto 2rem;
    text-align: center;
    padding: 0;
}
.quiz-intro-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: var(--r-lg);
    margin-bottom: 1.5rem;
}
.quiz-intro-title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
    margin-bottom: 0.75rem;
}
.quiz-intro-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}
.quiz-intro-meta {
    font-size: 1.05rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 1.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.quiz-intro-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    padding: 0.875rem 2.5rem;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.15s;
}
.quiz-intro-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
