/* The quiz mascots set the palette: cream, cocoa, coral, mint and lavender.
   Scoped to play pages so the shared site navigation and hub keep their layout. */
.qz-play-page {
  --qz-ink: #40302b;
  --qz-text: #594740;
  --qz-muted: #78645c;
  --qz-bg: #fffaf2;
  --qz-card: #ffffff;
  --qz-line: #ebdfd2;
  --qz-radius: 20px;
  --header-text: var(--qz-ink);
  --header-text-muted: var(--qz-text);
  --header-hover-bg: var(--qz-soft);
  --primary: var(--qz-accent-dark);
  --primary-dark: var(--qz-accent-dark);
  --primary-light: var(--qz-accent);
  --footer-bg: #f5eee4;
  --footer-text: #78645c;
  --footer-text-light: #40302b;
  --footer-border: #e5d8c9;
  background: var(--qz-bg);
  color: var(--qz-text);
  accent-color: var(--qz-accent-dark);
  caret-color: var(--qz-accent-dark);
  scrollbar-color: var(--qz-accent) var(--qz-bg);
}
.qz-play-page ::selection { color: var(--qz-ink); background: var(--qz-soft); }
.qz-play-page :focus-visible { outline: 3px solid var(--qz-accent-dark); outline-offset: 4px; }
.qz-play-page a { text-underline-offset: 4px; }
.qz-play-page .game-top-header { background: #fffaf2; box-shadow: none; border-bottom: 1px solid var(--qz-line); font-family: 'Nunito', sans-serif; }
.qz-play-page .game-brand-name { color: var(--qz-ink); letter-spacing: 0; }
.qz-play-page .game-brand:hover { transform: none; text-shadow: none; }
.qz-play-page .game-lang-btn { color: var(--qz-ink); background: #fff; border-color: var(--qz-line); }
.qz-play-page .game-nav-item, .qz-play-page .game-nav-item:hover { color: var(--qz-ink); }
.qz-play-page .game-nav-item:hover { background: var(--qz-soft); }
.qz-play-page .game-btn-login, .qz-play-page .game-btn-login:hover { color: var(--qz-ink); border-color: var(--qz-line); background: #fff; }
.qz-play-page .game-btn-register, .qz-play-page .game-btn-register:hover { background: var(--qz-soft); color: var(--qz-accent-dark); box-shadow: none; }
.qz-play-page .game-lang-btn, .qz-play-page .game-btn-login, .qz-play-page .game-btn-register, .qz-play-page .game-nav-item { min-height: 44px; }
.qz-play-page .game-mobile-btn { color: var(--qz-ink); min-width: 44px; min-height: 44px; background: var(--qz-soft); }
.qz-play-page .game-mobile-drawer { background: var(--qz-bg); border-bottom: 1px solid var(--qz-line); box-shadow: none; }
.qz-play-page .game-mobile-item, .qz-play-page .game-mobile-item:hover { color: var(--qz-ink); background: var(--qz-soft); min-height: 44px; }
.qz-play-page .game-mobile-lang-title { color: var(--qz-muted); }
.qz-play-page h1, .qz-play-page h2, .qz-play-page h3 { font-weight: 500; text-wrap: balance; }
.qz-play-page .qz-wrap { max-width: 1040px; }
.qz-play-page .qz-narrow { max-width: 760px; }
.qz-play-page .qz-hero { padding: 32px 0 24px; }
.qz-play-page .qz-crumbs { font-size: 0.8rem; text-align: left; margin-bottom: 32px; }
.qz-play-page .qz-hero h1 { max-width: 760px; margin: auto; font-size: clamp(2.1rem, 5vw, 3.25rem); line-height: 1.1; letter-spacing: -0.025em; }
.qz-play-page .qz-hero-lead { font-size: 1rem; max-width: 590px; line-height: 1.7; margin-top: 16px; }
.qz-play-page .qz-chips { margin-top: 20px; gap: 0; }
.qz-play-page .qz-chips li { background: none; color: var(--qz-muted); border-radius: 0; padding: 0 15px; font-size: 0.85rem; }
.qz-play-page .qz-chips li + li { border-left: 1px solid var(--qz-line); }
.qz-play-page .qz-stage { padding: 0 0 50px; }
.qz-play-page .qz-app { max-width: 680px; margin: auto; min-height: 350px; padding: 30px; border: 1px solid var(--qz-line); border-radius: 24px; box-shadow: none; background: var(--qz-card); }
.qz-play-page .qz-app:has(.qz-screen--intro) { background: #fff5e6; padding: 24px 30px 30px; }
.qz-intro-logo { width: 160px; height: 160px; object-fit: contain; border-radius: 24px; }
.qz-play-page .qz-screen--intro { gap: 18px; }
.qz-play-page .qz-screen { animation: none; }
/* Keep the question and answers in the first mobile viewport during play. */
.qz-play-page:has(.qz-screen--question, .qz-screen--result) .qz-hero { padding-bottom: 22px; }
.qz-play-page:has(.qz-screen--question, .qz-screen--result) .qz-hero h1 { font-size: clamp(1.5rem, 4vw, 2rem); }
.qz-play-page:has(.qz-screen--question, .qz-screen--result) .qz-hero-lead,
.qz-play-page:has(.qz-screen--question, .qz-screen--result) .qz-chips { display: none; }
.qz-play-page:has(.qz-screen--question, .qz-screen--result) .qz-crumbs { margin-bottom: 20px; }
.qz-play-page .qz-intro-note { color: var(--qz-muted); font-size: 0.85rem; }
.qz-play-page .qz-btn { min-height: 48px; border-radius: 16px; transition: background 160ms ease, transform 160ms ease; }
.qz-play-page .qz-btn--primary { background: var(--qz-accent); color: #40302b; border-color: transparent; padding: 13px 30px; font-weight: 800; font-size: 1rem; }
.qz-play-page .qz-screen--intro .qz-btn--primary { min-width: 240px; }
.qz-play-page .qz-btn--primary:hover { background: color-mix(in srgb, var(--qz-accent) 85%, #fff); color: #40302b; }
.qz-play-page .qz-btn:active { transform: translateY(1px); }
.qz-play-page .qz-btn:disabled { opacity: 0.55; cursor: wait; transform: none; }
.qz-play-page .qz-progress { margin-bottom: 24px; }
.qz-play-page .qz-progress-label { font-size: 0.82rem; margin-bottom: 12px; color: var(--qz-muted); }
.qz-play-page .qz-progress-track { height: 8px; background: var(--qz-soft); }
.qz-play-page .qz-progress-fill { background: var(--qz-accent); }
.qz-play-page .qz-question { font-size: clamp(1.4rem, 4.5vw, 1.85rem); line-height: 1.35; margin-bottom: 24px; }
.qz-play-page .qz-options { counter-reset: answer; gap: 12px; }
.qz-play-page .qz-option { min-height: 58px; border: 1px solid var(--qz-line); border-radius: 14px; padding: 15px 18px; line-height: 1.5; font-size: 1rem; background: #fffdf9; }
.qz-play-page .qz-options:not(.qz-topics) > .qz-option { counter-increment: answer; display: flex; align-items: center; gap: 14px; }
.qz-play-page .qz-options:not(.qz-topics) > .qz-option::before { content: counter(answer, upper-alpha); display: grid; place-items: center; flex: 0 0 30px; height: 30px; border-radius: 10px; background: var(--qz-soft); color: var(--qz-accent-dark); font-size: 0.8rem; font-weight: 800; }
.qz-play-page .qz-option:hover { border-color: var(--qz-accent-dark); background: var(--qz-soft); }
.qz-play-page .qz-option.is-selected { border-color: var(--qz-accent-dark); background: var(--qz-soft); color: var(--qz-ink); }
.qz-play-page .qz-option.is-selected::before { background: var(--qz-accent); color: var(--qz-ink); }
.qz-play-page .qz-option.is-correct { background: #e2f2e5; border-color: #327046; color: #245836; }
.qz-play-page .qz-option.is-wrong { background: #fbe7e4; border-color: #a33838; color: #853030; }
.qz-play-page .qz-feedback.is-correct, .qz-play-page .qz-review strong { color: #327046; }
.qz-play-page .qz-feedback.is-wrong { color: #a33838; }
.qz-play-page .qz-link-btn, .qz-play-page .qz-text-link { min-height: 44px; }
.qz-play-page .qz-result-card { background: color-mix(in srgb, var(--qz-result) 8%, #fffaf2); border-radius: 16px; padding: 28px 18px; }
.qz-play-page .qz-result-kicker { letter-spacing: 0; text-transform: none; font-size: 0.9rem; margin-bottom: 14px; }
.qz-play-page .qz-result-name { color: color-mix(in srgb, var(--qz-result) 45%, #40302b); margin-top: 14px; }
.qz-play-page .qz-result-emoji { font-size: 3.5rem; }
.qz-play-page .qz-result-desc { font-size: 1rem; line-height: 1.75; }
.qz-play-page .qz-traits li { border: 0; background: #fffaf2; border-radius: 10px; }
.qz-play-page .qz-pair { border: 0; background: #fffaf2; }
.qz-play-page .qz-pair-label { text-transform: none; letter-spacing: 0; font-size: 0.8rem; }
.qz-play-page .qz-bar-value, .qz-play-page .qz-timer { font-variant-numeric: tabular-nums; }
.qz-play-page .qz-bar-track { height: 8px; }
.qz-play-page .qz-bar-fill { background: color-mix(in srgb, var(--qz-accent) 60%, var(--qz-result, var(--qz-accent))) !important; }
.qz-play-page .qz-section { padding: 40px 0; }
.qz-play-page .qz-section h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: 12px; }
.qz-play-page .qz-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 0 42px; }
.qz-play-page .qz-type { grid-template-columns: 42px minmax(0, 1fr); gap: 4px 16px; padding: 24px 0; }
.qz-play-page .qz-type-emoji { font-size: 1.9rem; }
.qz-play-page .qz-type:has(.qz-type-image) { grid-template-columns: 72px minmax(0, 1fr); }
.qz-type-image { display: block; width: 72px; height: 72px; object-fit: contain; }
.qz-result-art { display: block; width: 144px; height: 144px; object-fit: contain; margin: 0 auto; }
.qz-inline-art { display: inline-block; object-fit: contain; flex-shrink: 0; }
.qz-pair-value--image { display: flex; align-items: center; justify-content: center; gap: 8px; }
.qz-bar-label--image { display: flex; align-items: center; gap: 7px; min-width: 0; }
.qz-bar-label--image > span, .qz-pair-value--image > span { min-width: 0; overflow-wrap: anywhere; }
.qz-play-page .qz-type-tagline { color: color-mix(in srgb, var(--qz-result) 45%, #40302b); }
.qz-play-page .qz-card { border-radius: 16px; }
.qz-play-page .qz-card:hover { box-shadow: none; border-color: var(--qz-accent-dark); transform: translateY(-2px); }
.qz-play-page .qz-card-logo { background: #fff5e6 !important; height: 132px; }
.qz-play-page .qz-card-logo img { border-radius: 16px; box-shadow: none; }
.qz-play-page .qz-input { border-width: 1px; background: #fffdf9; border-radius: 14px; min-height: 50px; }
.qz-play-page .qz-input:focus { outline: 3px solid var(--qz-accent-dark); outline-offset: 2px; }
.qz-play-page .qz-input::placeholder { color: var(--qz-muted); opacity: 1; }
.qz-play-page .qz-faq summary { min-height: 48px; }
.qz-play-page .qz-disclaimer { color: var(--qz-muted); font-size: 0.85rem; }
@media (max-width: 560px) {
  .qz-play-page .qz-hero { padding: 20px 0 22px; }
  .qz-play-page .qz-crumbs { margin-bottom: 26px; line-height: 1.6; }
  .qz-play-page .qz-wrap { padding: 0 18px; }
  .qz-play-page .qz-hero-lead { font-size: 0.96rem; }
  .qz-play-page .qz-app { padding: 24px 18px; min-height: 320px; border-radius: 20px; }
  .qz-play-page .qz-app:has(.qz-screen--intro) { padding: 20px 18px 26px; }
  .qz-intro-logo { width: 140px; height: 140px; }
  .qz-play-page .qz-screen--intro .qz-btn--primary { width: 100%; min-width: 0; }
  .qz-play-page .qz-chips li { padding: 0 10px; }
  .qz-play-page .qz-option { padding: 13px; font-size: 0.95rem; }
  .qz-play-page .qz-options:not(.qz-topics) > .qz-option { gap: 10px; }
  .qz-play-page .qz-stage { padding-bottom: 32px; }
  .qz-play-page .qz-section { padding: 30px 0; }
  .qz-play-page .qz-result-card { padding: 24px 12px; }
  .qz-play-page .qz-pairs { grid-template-columns: 1fr; }
  .qz-play-page .qz-bar { grid-template-columns: minmax(85px, 40%) 1fr 38px; gap: 8px; font-size: 0.85rem; }
}
@media (prefers-reduced-motion: reduce) {
  .qz-play-page *, .qz-play-page *::before, .qz-play-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
