/* Common controls on the hosted quizzes. Game boards keep their own layout. */
.quiz-header {position:relative;z-index:5;background:#211c26;color:#fff5e9;border-bottom:4px solid #ab83c5}
.quiz-header .brand {display:inline-flex;align-items:center;gap:6px;color:#fff5e9;text-decoration:none}
.quiz-header .brand svg {display:block;width:clamp(90px,12vw,146px);height:auto;fill:currentColor}
.quiz-header .brand img.quiz-emblem {width:34px;height:34px;filter:none}
.quiz-header nav>.quiet {color:#fff5e9;display:inline-flex;align-items:center;min-height:44px;text-underline-offset:3px}
.quiz-header .nav-popover {font:400 1rem/1.45 system-ui,sans-serif}
.quiz-header .nav-popover p {max-width:54ch}
.quiz-header .theme-track {display:inline-block;position:relative;flex:none;width:30px;height:18px;border-radius:12px;background:#54495b;border:1px solid #ad9fb5}
.quiz-header .theme-track::after {content:"";position:absolute;top:2px;left:2px;width:12px;height:12px;border-radius:50%;background:#fff}
.quiz-header [aria-checked=true] .theme-track {background:#754d8c}
.quiz-header [aria-checked=true] .theme-track::after {left:14px}
.skip-link:not(:focus),.sr-only {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.skip-link:focus {position:absolute;z-index:20;inset:4px auto auto 4px;padding:10px;background:var(--panel);color:var(--ink)}
.quiz-header #help>summary {padding:12px;min-height:48px;font-weight:650;cursor:pointer}
.quiz-header #help p {padding:0 12px 12px}
html[data-quiz] dialog::backdrop {background:#17121bc9}
html[data-quiz] dialog {color:var(--ink);background:var(--panel);border:1px solid var(--line);border-top:4px solid var(--accent);max-height:88dvh;overflow:auto}
html[data-quiz] dialog :is(button,select,textarea):not(.primary),.quiz-header .tool-button {min-height:44px;font:inherit;background:var(--panel);color:var(--ink);border:1px solid var(--line);padding:6px 10px}
html[data-quiz] #feedback-dialog {width:min(470px,calc(100% - 24px))}
html[data-quiz] #feedback-form {display:grid;gap:8px}
html[data-quiz] #feedback-form :is(textarea,select) {width:100%}
html[data-quiz] .feedback-trap {position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
html[data-quiz] .mode-toolbar {margin-bottom:10px}
html[data-quiz] .quiz-header #mode-menu .game-selector {letter-spacing:normal}
html[data-quiz] .quiz-header #mode-menu .beta-tag {font-size:.75em}
html[data-quiz] .mode-toolbar + .install-bar[hidden] {display:none}
@media(max-width:700px) {
  html[data-quiz] .quiz-header .brand svg {width:clamp(75px,17vw,110px)}
}
