/* Settings button (gear) in the top bar, same look as the "Seiten" button. */
.cq-gear {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 42px; height: 42px; margin: 0; padding: 0; border: 0; border-radius: 0; cursor: pointer;
  color: #e6d6ff; background: #241b35;
  clip-path: var(--notch, polygon(0 4px, 4px 4px, 4px 0, calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 4px calc(100% - 4px), 0 calc(100% - 4px)));
  box-shadow: inset 0 0 0 2px #3f3060, inset 0 -4px 0 #0004;
  transition: background 0.15s, transform 0.15s;
}
.cq-gear:hover { background: #302142; }
.cq-gear:hover svg { transform: rotate(30deg); }
.cq-gear svg { display: block; transition: transform 0.3s; }
.cq-gear:focus-visible { outline: 2px solid #b98cff; outline-offset: 2px; }
/* Without the "Seiten" menu the gear sits right before the logo. */
.top-row > .cq-gear { margin-right: 12px; }
.cq-settings select.input { width: 100%; }
.cq-settings .muted { margin: 6px 0 18px; }
.cq-settings .cq-note { font-size: 13px; margin-bottom: 0; }
.stream-mode .cq-gear { display: none !important; }
@media (prefers-reduced-motion: reduce) { .cq-gear svg, .cq-gear:hover svg { transition: none; transform: none; } }
/* Narrow screens: the top bar wraps onto a second row. It used to keep its fixed height, so the second row slid under
   the navigation. Let it grow instead (only below 700 px, the width where it starts to wrap). */
@media (max-width: 700px) {
  .top-row { height: auto; min-height: 62px; padding: 10px 0; row-gap: 10px; }
}
@media (max-width: 420px) {
  .cq-gear { width: 38px; height: 38px; }
  .nm-lead { gap: 10px; }
}

/* Style choices and the Classic switch in the settings dialog. */
.cq-settings .cq-check { display: flex; align-items: center; gap: 10px; margin: 4px 0 0; cursor: pointer; }
.cq-settings .cq-check input { width: 20px; height: 20px; flex: none; accent-color: #b98cff; }
.cq-settings .cq-check input:disabled { cursor: not-allowed; }
/* The dialog grew with the style choices: on short screens it scrolls instead of running off the window. */
.cq-settings { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; }
/* "Mit PIN spielen" button under "Quiz starten" (pin-entry.js). */
.pin-start { width: 100%; margin-top: 10px; justify-content: space-between; text-align: left; }
.pin-start span { font-size: 11px; font-weight: 400; opacity: 0.75; }
/* The "Seiten" / Pages menu on the quiz site is only for owners (Dylan, 2026-11-17): settings.js
   removes it for everyone else and sets <html data-pages-menu> for owners. */
html:not([data-pages-menu]) .top-row .nm { display: none !important; }
