/* 1.11.3 — compact live-game typography and coloured answer tiles.
 * Scoped to the three game surfaces; the WordPress editor and portal keep
 * their own styling. No web font, remote image or external asset is needed.
 */
.s3ql-app:is(.s3ql-host-app, .s3ql-screen-app, .s3ql-join-app) {
  --s3ql-primary: #123f70;
  --s3ql-secondary: #1678c8;
  --s3ql-accent: #46a0e5;
  --s3ql-bg: #f3f8ff;
  --s3ql-text: #132b46;
  --s3ql-muted: #58718b;
  --s3ql-game-bg: #f3f8ff;
  --s3ql-game-font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--s3ql-game-font);
  background-color: var(--s3ql-game-bg);
  background-image: none;
  color: var(--s3ql-text);
  isolation: isolate;
}
.s3ql-app:is(.s3ql-host-app, .s3ql-screen-app, .s3ql-join-app) :is(h1, h2, h3, h4, button, input, select, textarea) {
  font-family: var(--s3ql-game-font);
  letter-spacing: normal;
  text-transform: none;
}
/* The final result dialog is attached to body, outside the application root. */
.s3ql-final-popup {
  --s3ql-primary: #123f70;
  --s3ql-secondary: #1678c8;
  --s3ql-accent: #46a0e5;
  --s3ql-game-font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--s3ql-game-font);
  line-height: 1.45;
  color: #132b46;
  background: rgb(3 27 54 / 82%);
}
.s3ql-final-popup .s3ql-final-popup-card { background: #f4f9ff; }
.s3ql-final-popup :is(h1, h2, h3, h4, button) { font-family: var(--s3ql-game-font); letter-spacing: normal; text-transform: none; }
.s3ql-final-popup .s3ql-final-popup-card :is(h1, h2) { font-size: clamp(22px, 2.1vw, 28px); line-height: 1.25; margin: 8px 0 16px; color: #123f70; }
.s3ql-final-popup .s3ql-final-popup-card h3 { font-size: 20px; line-height: 1.3; }
.s3ql-app.s3ql-host-app :is(.s3ql-host-card, .s3ql-host-panel) h1,
.s3ql-app.s3ql-join-app :is(h1, h2),
.s3ql-app.s3ql-host-app .s3ql-final-popup-card h2 {
  margin: 6px 0 16px;
  font-size: clamp(22px, 2.1vw, 28px);
  font-weight: 850;
  line-height: 1.25;
  color: var(--s3ql-primary);
  overflow-wrap: anywhere;
}
.s3ql-app.s3ql-host-app h2 { font-size: 22px; line-height: 1.25; }
.s3ql-app.s3ql-screen-app :is(.s3ql-screen-card h1, .s3ql-screen-title, .s3ql-final-popup-card h2) {
  margin: 6px 0 16px;
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 850;
  line-height: 1.23;
  color: var(--s3ql-primary);
  overflow-wrap: anywhere;
}
.s3ql-app.s3ql-screen-app h2 { font-size: 26px; line-height: 1.25; }
.s3ql-app.s3ql-host-app .s3ql-host-card--ranking h1,
.s3ql-app.s3ql-screen-app .s3ql-screen-card--ranking h1 { margin: 3px 0 6px; font-size: clamp(20px, 2vw, 28px); }
.s3ql-app:is(.s3ql-host-app, .s3ql-screen-app, .s3ql-join-app) h3 {
  font-size: 18px;
  line-height: 1.3;
}
.s3ql-app:is(.s3ql-host-app, .s3ql-screen-app, .s3ql-join-app) .s3ql-eyebrow,
.s3ql-app:is(.s3ql-host-app, .s3ql-screen-app, .s3ql-join-app) .s3ql-question-kicker {
  font-family: var(--s3ql-game-font);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .1em;
  font-weight: 800;
  text-transform: uppercase;
}

.s3ql-app.s3ql-screen-app .s3ql-screen-controls { background: rgb(6 41 78 / 96%); }

/* The trainer's control bar stays small so the question gets the space. */
.s3ql-host-app .s3ql-host-toolbar {
  min-height: 66px;
  padding: 9px 20px;
  border-bottom-color: #ffffff20;
  background: #06294e;
  box-shadow: 0 3px 12px #05284a25;
}
.s3ql-host-app .s3ql-brand-mini { color: #fff; font-size: 13px; }
.s3ql-host-app .s3ql-brand-mini img { width: 88px; height: 40px; padding: 4px; background: #fff; border-radius: 7px; }
.s3ql-host-app .s3ql-host-toolbar__actions { gap: 6px; }
.s3ql-host-app .s3ql-host-toolbar .s3ql-button {
  min-height: 38px;
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 12px;
  line-height: 1.2;
  box-shadow: none;
}
.s3ql-host-app .s3ql-host-toolbar .s3ql-button--secondary { background: #ffffff0d; border-color: #ffffff55; color: #fff; }
.s3ql-host-app .s3ql-host-toolbar .s3ql-button--primary { background: #fff; color: #06345f; border-color: #fff; }
.s3ql-host-app .s3ql-host-toolbar .s3ql-button--danger { background: #9d2944; color: #fff; border-color: #cc6d81; }
.s3ql-host-app .s3ql-host-layout { grid-template-columns: minmax(0, 1fr) minmax(330px, 340px); min-height: calc(100vh - 66px); }
.s3ql-host-app .s3ql-host-main { padding: clamp(16px, 2vw, 28px); }
.s3ql-host-app .s3ql-host-side { padding: 18px; background: #f3f8ff; border-left-color: #ffffff20; }
.s3ql-app.s3ql-host-app .s3ql-host-side h2 { font-size: 16px; }
.s3ql-host-app .s3ql-host-side .s3ql-side-card + .s3ql-side-card { margin-top: 22px; }
/* The sidebar has less width than a projected ranking: name then average. */
.s3ql-app.s3ql-host-app .s3ql-host-side .s3ql-leader-row {
  grid-template-columns: 20px 32px minmax(0, 1fr) !important;
  grid-template-rows: auto auto;
  gap: 2px 7px;
  min-height: 62px;
  padding: 10px 9px;
  border-radius: 10px;
  line-height: 1.2;
}
.s3ql-host-app .s3ql-host-side .s3ql-leader-rank { grid-column: 1; grid-row: 1 / 3; font-size: 14px; }
.s3ql-host-app .s3ql-host-side .s3ql-leader-row > :is(img, .s3ql-team-avatar) { grid-column: 2; grid-row: 1 / 3; width: 32px; height: 32px; font-size: 16px; }
.s3ql-host-app .s3ql-host-side .s3ql-leader-row > strong { grid-column: 3; grid-row: 1; min-width: 0; font-size: 13px; }
.s3ql-host-app .s3ql-host-side .s3ql-leader-points { grid-column: 3; grid-row: 2; min-width: 0; font-size: 12px; white-space: normal; overflow-wrap: anywhere; }
.s3ql-host-app .s3ql-host-side :is(.s3ql-rank-variation, .s3ql-player-status),
.s3ql-host-app .s3ql-host-side .s3ql-leader-row > strong > small { display: none; }
.s3ql-host-app .s3ql-host-card,
.s3ql-screen-app .s3ql-screen-card,
.s3ql-join-app .s3ql-panel {
  border: 1px solid #ffffff70;
  border-radius: 18px;
  padding: clamp(20px, 2.2vw, 32px);
  background: #fff;
  box-shadow: 0 14px 38px #04284a2b;
}
/* The ranking fitter reserves 28px below its rows; keep its lower inset small. */
.s3ql-app.s3ql-host-app[data-game-view="leaderboard"] .s3ql-host-card { padding: 12px; border-radius: 14px; }
.s3ql-screen-app .s3ql-screen-stage { padding: clamp(18px, 2.5vw, 38px); }
.s3ql-screen-app .s3ql-screen-card { width: min(1440px, 100%); }
.s3ql-join-app .s3ql-live-shell { background: transparent; padding: clamp(16px, 2.5vw, 32px); }
.s3ql-join-app .s3ql-live-shell::before,
.s3ql-join-app .s3ql-live-shell::after { display: none; }
.s3ql-join-app .s3ql-live-header { margin-bottom: 18px; color: #123f70; }
.s3ql-join-app .s3ql-live-header h1 { color: #123f70; margin: 0; font-size: clamp(20px, 2vw, 26px); }
.s3ql-join-app .s3ql-live-header .s3ql-eyebrow { color: #506d8b; }
.s3ql-join-app .s3ql-live-header > img { width: 92px; height: 48px; padding: 5px; border-radius: 8px; background: #fff; object-position: center; }
.s3ql-join-app:is([data-game-view="question"], [data-game-view="reveal"]) .s3ql-live-header { margin-bottom: 12px; }
.s3ql-join-app:is([data-game-view="question"], [data-game-view="reveal"]) .s3ql-live-header h1 { font-size: 18px; }
.s3ql-join-app:is([data-game-view="question"], [data-game-view="reveal"]) .s3ql-live-header > img { width: 76px; height: 38px; }

/* Question and answer areas are visually distinct, as on a quiz-show screen. */
.s3ql-host-app:is([data-game-view="question"], [data-game-view="reveal"]) .s3ql-host-card,
.s3ql-screen-app:is([data-game-view="question"], [data-game-view="reveal"]) .s3ql-screen-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.s3ql-host-app .s3ql-host-question-head,
.s3ql-screen-app .s3ql-screen-question-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  margin-bottom: 16px;
  border: 1px solid #ffffff70;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 0 #062a4c33;
}
.s3ql-host-app .s3ql-host-question-head h1,
.s3ql-screen-app .s3ql-screen-question-top h1 { margin: 5px 0 0; }
.s3ql-screen-app .s3ql-screen-question { gap: 16px; }
.s3ql-screen-app .s3ql-screen-question-top { margin: 0; }
.s3ql-join-app .s3ql-question-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; margin: 16px 0; }
.s3ql-join-app .s3ql-question-head h2 { margin: 5px 0 0; font-size: clamp(22px, 2.2vw, 28px); }
.s3ql-host-app .s3ql-turn-banner,
.s3ql-screen-app .s3ql-turn-banner {
  margin: 0 0 14px;
  padding: 10px 16px;
  gap: 6px 12px;
  background: #e7f2ff;
  border: 1px solid #bfdaf5;
  border-radius: 10px;
  color: #06345f;
}
.s3ql-screen-app .s3ql-screen-question > .s3ql-turn-banner { margin-bottom: 0; }
.s3ql-host-app .s3ql-turn-banner > strong,
.s3ql-screen-app .s3ql-turn-banner > strong { font-size: clamp(18px, 1.8vw, 24px); line-height: 1.25; }
.s3ql-host-app .s3ql-turn-banner > span,
.s3ql-screen-app .s3ql-turn-banner > span { font-size: 10px; }
.s3ql-host-app .s3ql-turn-banner > small,
.s3ql-screen-app .s3ql-turn-banner > small { font-size: 12px; }
.s3ql-app:is(.s3ql-host-app, .s3ql-screen-app) .s3ql-turn-source { margin: 3px 0; font-size: 12px; color: #506d8b; }
.s3ql-host-app .s3ql-turn-answer-fieldset legend { margin-bottom: 12px; color: #234a70; font-size: 13px; }
.s3ql-host-app:is([data-game-view="question"], [data-game-view="reveal"]) .s3ql-host-card > p,
.s3ql-screen-app .s3ql-screen-question > p { color: #234a70; font-size: 13px; }
.s3ql-host-app .s3ql-turn-text-label { color: #234a70; }
.s3ql-host-app .s3ql-turn-text-label input { color: var(--s3ql-text); }
.s3ql-app:is(.s3ql-host-app, .s3ql-screen-app, .s3ql-join-app) :is(.s3ql-explanation, .s3ql-correction-summary) { border-radius: 10px; background: #eff7ff; color: #234a70; }

/* One vocabulary of colour + shape + letter for all three interfaces.
 * The data token follows the answer when options have been shuffled. */
.s3ql-app:is(.s3ql-host-app, .s3ql-screen-app, .s3ql-join-app) :is(.s3ql-host-choices, .s3ql-screen-choices, .s3ql-choices) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}
.s3ql-app:is(.s3ql-host-app, .s3ql-screen-app, .s3ql-join-app) [data-answer-tone] { --answer-bg: #c61c3b; --answer-fg: #fff; }
.s3ql-app:is(.s3ql-host-app, .s3ql-screen-app, .s3ql-join-app) [data-answer-tone="1"] { --answer-bg: #1264bd; }
.s3ql-app:is(.s3ql-host-app, .s3ql-screen-app, .s3ql-join-app) [data-answer-tone="2"] { --answer-bg: #f3c33e; --answer-fg: #342600; }
.s3ql-app:is(.s3ql-host-app, .s3ql-screen-app, .s3ql-join-app) [data-answer-tone="3"] { --answer-bg: #18773b; }
.s3ql-app:is(.s3ql-host-app, .s3ql-screen-app, .s3ql-join-app) [data-answer-tone="4"] { --answer-bg: #284c94; }
.s3ql-app:is(.s3ql-host-app, .s3ql-screen-app, .s3ql-join-app) [data-answer-tone="5"] { --answer-bg: #087780; }
.s3ql-app:is(.s3ql-host-app, .s3ql-screen-app, .s3ql-join-app) :is(.s3ql-host-choice, .s3ql-screen-choice, .s3ql-choice-button)[data-answer-tone] {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 110px;
  gap: 16px;
  padding: 18px;
  margin: 0;
  border: 3px solid transparent;
  border-radius: 10px;
  background: var(--answer-bg);
  color: var(--answer-fg);
  box-shadow: inset 0 -5px 0 #00000024;
  font-size: clamp(16px, 1.5vw, 21px);
  font-weight: 750;
  line-height: 1.35;
  text-align: left;
  min-width: 0;
  overflow-wrap: anywhere;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.s3ql-app.s3ql-screen-app .s3ql-screen-choice[data-answer-tone] { min-height: 124px; font-size: clamp(18px, 1.8vw, 26px); padding: 22px; }
.s3ql-app:is(.s3ql-host-app, .s3ql-screen-app, .s3ql-join-app) [data-answer-tone] :is(strong, small, .s3ql-choice-copy, .s3ql-screen-choice-copy) { color: inherit; }
.s3ql-app:is(.s3ql-host-app, .s3ql-screen-app, .s3ql-join-app) [data-answer-tone] > :is(div, span):last-child { min-width: 0; flex: 1; }
.s3ql-app:is(.s3ql-host-app, .s3ql-screen-app, .s3ql-join-app) [data-answer-tone] small { display: block; margin-top: 6px; font-size: 12px; line-height: 1.4; }
.s3ql-app:is(.s3ql-host-app, .s3ql-screen-app, .s3ql-join-app) [data-answer-tone] .s3ql-choice-marker {
  display: flex;
  flex: 0 0 54px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 54px;
  height: auto;
  min-height: 58px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
}
.s3ql-app:is(.s3ql-host-app, .s3ql-screen-app, .s3ql-join-app) .s3ql-answer-letter { flex: 0 0 auto; font-size: 12px; line-height: 1; font-weight: 850; }
.s3ql-app:is(.s3ql-host-app, .s3ql-screen-app, .s3ql-join-app) .s3ql-answer-shape { display: block; flex: 0 0 29px; width: 29px; height: 29px; background: currentColor; }
.s3ql-app [data-answer-symbol="triangle"] .s3ql-answer-shape { clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.s3ql-app [data-answer-symbol="diamond"] .s3ql-answer-shape { clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.s3ql-app [data-answer-symbol="circle"] .s3ql-answer-shape { border-radius: 50%; }
.s3ql-app [data-answer-symbol="square"] .s3ql-answer-shape { border-radius: 2px; }
.s3ql-app [data-answer-symbol="hexagon"] .s3ql-answer-shape { clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
.s3ql-app [data-answer-symbol="pentagon"] .s3ql-answer-shape { clip-path: polygon(50% 0, 100% 38%, 82% 100%, 18% 100%, 0 38%); }
.s3ql-app [data-answer-symbol="star"] .s3ql-answer-shape { clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 94%, 50% 72%, 21% 94%, 32% 57%, 2% 35%, 39% 35%); }
.s3ql-app:is(.s3ql-host-app, .s3ql-screen-app, .s3ql-join-app) [data-answer-tone] .s3ql-distribution-bar { background: #00000025; }
.s3ql-app:is(.s3ql-host-app, .s3ql-screen-app, .s3ql-join-app) [data-answer-tone] .s3ql-distribution-bar span { background: currentColor; }
.s3ql-app:is(.s3ql-host-app, .s3ql-screen-app, .s3ql-join-app) [data-answer-tone] img { padding: 3px; border-radius: 6px; background: #fff; }
.s3ql-host-app .s3ql-turn-choice input { width: 22px; height: 22px; accent-color: #134f83; flex: 0 0 22px; }
.s3ql-app:is(.s3ql-host-app, .s3ql-screen-app, .s3ql-join-app) :is(button[data-answer-tone]:not(:disabled), label[data-answer-tone]):hover { transform: translateY(-2px); box-shadow: inset 0 -5px 0 #00000024, 0 5px 15px #052f5430; }
.s3ql-app:is(.s3ql-host-app, .s3ql-screen-app, .s3ql-join-app) [data-answer-tone]:is(.is-selected, :has(input:checked)) { border-color: #fff; box-shadow: 0 0 0 3px #062b50, inset 0 -5px 0 #00000030; }
.s3ql-app:is(.s3ql-host-app, .s3ql-screen-app, .s3ql-join-app) [data-answer-tone]:is(:focus-visible, :focus-within) { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 6px #082e55; }
.s3ql-app:is(.s3ql-host-app, .s3ql-screen-app, .s3ql-join-app) [data-answer-tone].is-correct {
  background: #e5f6ec !important;
  border-color: #1a7543 !important;
  color: #124f2d;
  box-shadow: inset 0 -5px 0 #1a754318;
}
.s3ql-app:is(.s3ql-host-app, .s3ql-screen-app, .s3ql-join-app) [data-answer-tone].is-wrong {
  background: #fff0f2 !important;
  border-color: #b42443 !important;
  color: #8e1832;
  opacity: 1;
  box-shadow: inset 0 -5px 0 #b4244315;
}
.s3ql-app:is(.s3ql-host-app, .s3ql-screen-app, .s3ql-join-app) .s3ql-answer-feedback { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 850; margin-top: 7px; }

.s3ql-app:is(.s3ql-host-app, .s3ql-screen-app, .s3ql-join-app) .s3ql-timer {
  width: 76px;
  height: 76px;
  flex-basis: 76px;
  border-radius: 50%;
  background: conic-gradient(#1677c8 calc(var(--progress, 1) * 1turn), #dcebf9 0);
}
.s3ql-app:is(.s3ql-host-app, .s3ql-screen-app, .s3ql-join-app) .s3ql-timer::before { inset: 6px; background: #f2f8ff; }
.s3ql-app:is(.s3ql-host-app, .s3ql-screen-app, .s3ql-join-app) .s3ql-timer strong { font-size: 25px; line-height: 1; color: #12558d; }
.s3ql-app:is(.s3ql-host-app, .s3ql-screen-app, .s3ql-join-app) .s3ql-timer small { position: relative; z-index: 1; color: #4e6b86; font-size: 10px; }
.s3ql-app:is(.s3ql-host-app, .s3ql-screen-app, .s3ql-join-app) .s3ql-timer.is-warning { background: conic-gradient(#a6600d calc(var(--progress, 1) * 1turn), #f1e6d5 0); }
.s3ql-app:is(.s3ql-host-app, .s3ql-screen-app, .s3ql-join-app) .s3ql-timer.is-danger { background: conic-gradient(#c61c3b calc(var(--progress, 1) * 1turn), #f4dce4 0); }
.s3ql-app.s3ql-screen-app .s3ql-screen-question .s3ql-timer { width: 86px; height: 86px; flex-basis: 86px; }
.s3ql-app.s3ql-screen-app .s3ql-screen-question .s3ql-timer strong { font-size: 29px; }
.s3ql-app.s3ql-screen-app .s3ql-screen-timer {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  width: 86px;
  height: 86px;
  border: 6px solid #1677c8;
  border-radius: 50%;
  background: #f2f8ff;
  color: #12558d;
  font-variant-numeric: tabular-nums;
}
.s3ql-app.s3ql-screen-app .s3ql-screen-timer strong { font-size: 29px; line-height: 1; }
.s3ql-app.s3ql-screen-app .s3ql-screen-timer small { font-size: 10px; line-height: 1; }
.s3ql-app.s3ql-screen-app .s3ql-screen-timer.is-warning { border-color: #a6600d; }
.s3ql-app.s3ql-screen-app .s3ql-screen-timer.is-danger { border-color: #c61c3b; color: #a71636; }
.s3ql-app:is(.s3ql-host-app, .s3ql-screen-app) .s3ql-score-ring { width: 86px; height: 86px; }
.s3ql-app:is(.s3ql-host-app, .s3ql-screen-app) .s3ql-score-ring strong { font-size: 24px; }
.s3ql-app:is(.s3ql-host-app, .s3ql-screen-app) .s3ql-score-ring small { font-size: 10px; }
.s3ql-host-app .s3ql-host-counter,
.s3ql-screen-app .s3ql-host-counter { padding: 10px 14px; margin-top: 14px; border-radius: 9px; background: #e7f2ff; color: #234a70; font-size: 13px; }
.s3ql-host-app .s3ql-host-counter strong,
.s3ql-screen-app .s3ql-host-counter strong { font-size: 21px; color: #123f70; }
.s3ql-join-app .s3ql-identity-card { margin-block: 12px; padding: 10px 12px; border-radius: 10px; background: #edf5ff; }
.s3ql-join-app .s3ql-identity-card img { width: 38px; height: 38px; }
.s3ql-join-app .s3ql-progress-track { height: 6px; }
.s3ql-join-app .s3ql-progress-head { font-size: 12px; }
.s3ql-app:is(.s3ql-host-app, .s3ql-screen-app, .s3ql-join-app) :is(.s3ql-question-media, .s3ql-host-question-media, .s3ql-screen-question-image) { max-height: min(30vh, 290px); margin: 14px auto; border-radius: 10px; }

@media (max-width: 1050px) {
  .s3ql-host-app .s3ql-host-layout { grid-template-columns: minmax(0, 1fr); }
  .s3ql-host-app .s3ql-host-side { border-left: 0; border-top: 1px solid #d8e6f3; }
  .s3ql-host-app .s3ql-host-toolbar { flex-wrap: wrap; }
  .s3ql-host-app .s3ql-host-toolbar__actions { justify-content: flex-start; }
}
@media (max-width: 768px) {
  .s3ql-app.s3ql-host-app :is(.s3ql-host-card, .s3ql-host-panel) h1,
  .s3ql-app.s3ql-host-app .s3ql-final-popup-card h2,
  .s3ql-app.s3ql-join-app :is(h1, h2),
  .s3ql-app.s3ql-join-app .s3ql-question-head h2 { font-size: 22px; }
  .s3ql-app.s3ql-screen-app :is(.s3ql-screen-card h1, .s3ql-screen-title, .s3ql-final-popup-card h2) { font-size: 26px; }
  .s3ql-app:is(.s3ql-host-app, .s3ql-screen-app, .s3ql-join-app) :is(.s3ql-host-choices, .s3ql-screen-choices, .s3ql-choices) { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .s3ql-app:is(.s3ql-host-app, .s3ql-screen-app, .s3ql-join-app) :is(.s3ql-host-choice, .s3ql-screen-choice, .s3ql-choice-button)[data-answer-tone] { min-height: 86px; padding: 14px; gap: 12px; font-size: 17px; }
  .s3ql-host-app .s3ql-host-question-head,
  .s3ql-screen-app .s3ql-screen-question-top { grid-template-columns: minmax(0, 1fr) auto; padding: 16px; gap: 12px; }
  .s3ql-host-app .s3ql-host-main,
  .s3ql-screen-app .s3ql-screen-stage { padding: 16px; }
  .s3ql-app:is(.s3ql-host-app, .s3ql-screen-app, .s3ql-join-app) .s3ql-timer,
  .s3ql-app.s3ql-screen-app .s3ql-screen-question .s3ql-timer,
  .s3ql-app.s3ql-screen-app .s3ql-screen-timer { width: 64px; height: 64px; flex-basis: 64px; }
  .s3ql-app:is(.s3ql-host-app, .s3ql-screen-app, .s3ql-join-app) .s3ql-timer strong,
  .s3ql-app.s3ql-screen-app .s3ql-screen-question .s3ql-timer strong,
  .s3ql-app.s3ql-screen-app .s3ql-screen-timer strong { font-size: 23px; }
  .s3ql-join-app .s3ql-live-header { gap: 12px; }
  .s3ql-host-app .s3ql-turn-banner > small,
  .s3ql-screen-app .s3ql-turn-banner > small { width: 100%; margin: 0; }
}
@media (max-width: 480px) {
  .s3ql-host-app .s3ql-host-main,
  .s3ql-screen-app .s3ql-screen-stage { padding: 12px; }
  .s3ql-join-app .s3ql-live-shell { padding: 12px; }
  .s3ql-join-app .s3ql-panel,
  .s3ql-host-app .s3ql-host-card,
  .s3ql-screen-app .s3ql-screen-card { padding: 18px; border-radius: 12px; }
  .s3ql-host-app .s3ql-host-question-head,
  .s3ql-screen-app .s3ql-screen-question-top { padding: 14px; gap: 10px; }
  .s3ql-host-app .s3ql-host-toolbar { padding: 9px 12px; gap: 8px; }
  .s3ql-host-app .s3ql-host-toolbar .s3ql-button { padding: 8px 10px; font-size: 11px; }
  .s3ql-app:is(.s3ql-host-app, .s3ql-screen-app, .s3ql-join-app) [data-answer-tone] .s3ql-choice-marker { flex-basis: 38px; width: 38px; }
  .s3ql-app:is(.s3ql-host-app, .s3ql-screen-app, .s3ql-join-app) .s3ql-answer-shape { width: 26px; height: 26px; flex-basis: 26px; }
  .s3ql-app:is(.s3ql-host-app, .s3ql-screen-app, .s3ql-join-app) :is(.s3ql-host-choice, .s3ql-screen-choice, .s3ql-choice-button)[data-answer-tone] { padding: 12px; gap: 9px; font-size: 16px; }
  .s3ql-host-app .s3ql-turn-choice input { width: 19px; height: 19px; flex-basis: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .s3ql-app:is(.s3ql-host-app, .s3ql-screen-app, .s3ql-join-app) [data-answer-tone] { transition: none; }
  .s3ql-app:is(.s3ql-host-app, .s3ql-screen-app, .s3ql-join-app) [data-answer-tone]:hover { transform: none; }
}

/* Surfaces de séance. Les couleurs, lettres et formes de chaque réponse restent définies par data-answer-tone. */
@media screen {
  .s3ql-app:is(.s3ql-host-app,.s3ql-screen-app,.s3ql-join-app),.s3ql-final-popup {
    --s3ql-primary:#adc6e9;--s3ql-secondary:#bcaad7;--s3ql-accent:#cf9cb1;--s3ql-bg:#141416;
    --s3ql-text:#f5f5f7;--s3ql-muted:#bdbdc5;--s3ql-border:#49494f;--s3ql-game-bg:#141416;
    color:#f5f5f7;color-scheme:dark;
  }
  .s3ql-app.s3ql-host-app,.s3ql-app.s3ql-join-app,.s3ql-app.s3ql-screen-app { background:#141416; }
  .s3ql-final-popup {background:rgb(10 10 12 / 88%)}
  .s3ql-final-popup .s3ql-final-popup-card,.s3ql-host-app .s3ql-host-card,.s3ql-host-app .s3ql-host-panel,
  .s3ql-screen-app .s3ql-screen-card,.s3ql-join-app .s3ql-panel {
    background:#1d1d20;color:#f5f5f7;border-color:#49494f;box-shadow:0 10px 26px #0003;
  }
  .s3ql-host-app .s3ql-host-toolbar,.s3ql-host-app .s3ql-host-side,.s3ql-app.s3ql-screen-app .s3ql-screen-controls {background:#1a1a1d;color:#f5f5f7;border-color:#49494f}
  .s3ql-app.s3ql-host-app .s3ql-host-question-head,.s3ql-app.s3ql-screen-app .s3ql-screen-question-top,
  .s3ql-join-app .s3ql-identity-card,.s3ql-join-app .s3ql-field :is(input,select,textarea),
  .s3ql-host-app .s3ql-turn-text-label input,.s3ql-app .s3ql-roster-actions,
  .s3ql-app .s3ql-screen-participant,.s3ql-app .s3ql-me-stats>div,.s3ql-app .s3ql-final-score,
  .s3ql-app .s3ql-leader-row,.s3ql-app .s3ql-identity-card,.s3ql-final-popup .s3ql-leader-row,
  .s3ql-app .s3ql-team-option,.s3ql-app .s3ql-avatar-option,.s3ql-app .s3ql-session-preview,.s3ql-app .s3ql-participant-menu {
    background:#28282c;color:#f5f5f7;border-color:#55555d;
  }
  .s3ql-app .s3ql-leader-row.is-me,.s3ql-final-popup .s3ql-leader-row.is-me,.s3ql-app .s3ql-team-option.is-selected,.s3ql-app .s3ql-avatar-option.is-selected {background:#2c2c34;border-color:#bcaad7}
  .s3ql-app.s3ql-host-app .s3ql-turn-banner,.s3ql-app.s3ql-screen-app .s3ql-turn-banner,
  .s3ql-app:is(.s3ql-host-app,.s3ql-screen-app,.s3ql-join-app) :is(.s3ql-explanation,.s3ql-correction-summary,.s3ql-host-counter),
  .s3ql-app .s3ql-mode-badge {background:#29282e;color:#e2deeb;border-color:#5a565f}
  .s3ql-app.s3ql-host-app .s3ql-turn-answer-fieldset legend,.s3ql-app.s3ql-host-app .s3ql-turn-text-label,
  .s3ql-app.s3ql-screen-app .s3ql-screen-question>p,.s3ql-app.s3ql-host-app:is([data-game-view="question"],[data-game-view="reveal"]) .s3ql-host-card>p,
  .s3ql-app:is(.s3ql-host-app,.s3ql-screen-app) .s3ql-turn-source,.s3ql-join-app .s3ql-live-header .s3ql-eyebrow,
  .s3ql-app .s3ql-leader-row strong small,.s3ql-app .s3ql-me-stats small {color:#c4c4ce}
  .s3ql-app .s3ql-host-counter strong,.s3ql-join-app .s3ql-live-header,.s3ql-join-app .s3ql-live-header h1,
  .s3ql-final-popup .s3ql-final-popup-card :is(h1,h2),.s3ql-final-popup .s3ql-leader-rank {color:#adc6e9}
  .s3ql-app .s3ql-button--primary,.s3ql-host-app .s3ql-host-toolbar .s3ql-button--primary,.s3ql-final-popup .s3ql-button--primary {background:#252b34;border-color:#657d9a;color:#87b0e8}
  .s3ql-app .s3ql-button--secondary,.s3ql-host-app .s3ql-host-toolbar .s3ql-button--secondary,.s3ql-final-popup .s3ql-button--secondary,.s3ql-screen-app .s3ql-screen-control {background:#303035;border-color:#686872;color:#f5f5f7}
  .s3ql-app .s3ql-field input::placeholder,.s3ql-app .s3ql-field textarea::placeholder {color:#b2b2bc;opacity:1}
  .s3ql-app .s3ql-qr-card {background:#f7f7f8;color:#1d2025}
  .s3ql-app .s3ql-qr-card :is(h2,h3,strong,span,p,code) {color:#1d2025}
  .s3ql-app .s3ql-message:not(.s3ql-message--error):not(.s3ql-message--success):not(.s3ql-message--warning) {background:#28282c;color:#e5e5ed;border-color:#55555d}
  .s3ql-app:is(.s3ql-host-app,.s3ql-screen-app,.s3ql-join-app) .s3ql-timer:not(.is-warning):not(.is-danger) {background:conic-gradient(#adc6e9 calc(var(--progress,1)*1turn),#424249 0)}
  .s3ql-app:is(.s3ql-host-app,.s3ql-screen-app,.s3ql-join-app) .s3ql-timer::before,.s3ql-app.s3ql-screen-app .s3ql-screen-timer {background:#252529;color:#adc6e9}
  .s3ql-app:is(.s3ql-host-app,.s3ql-screen-app,.s3ql-join-app) .s3ql-timer strong {color:#f5f5f7}
  .s3ql-app:is(.s3ql-host-app,.s3ql-screen-app,.s3ql-join-app) .s3ql-timer small {color:#bdbdc5}
  .s3ql-app.s3ql-screen-app .s3ql-screen-timer.is-danger {color:#f6b5bf}
  .s3ql-app.s3ql-screen-app .s3ql-screen-timer.is-warning {color:#ffd9a3}
  .s3ql-app :focus-visible,.s3ql-final-popup :focus-visible {outline-color:#d3e4ff}
}
@media screen {
  .s3ql-final-popup .s3ql-mini-podium-place,
  .s3ql-app .s3ql-mini-podium-place {color:#232329}
  .s3ql-final-popup .s3ql-mini-podium-place :is(strong,small,span),
  .s3ql-app .s3ql-mini-podium-place :is(strong,small,span) {color:inherit}
  .s3ql-final-popup .s3ql-final-popup-close,
  .s3ql-host-app [data-s3ql-host-side] .s3ql-roster-actions button {background:#34343a;border-color:#676771;color:#f5f5f7}
  .s3ql-final-popup .s3ql-leader-row strong small,
  .s3ql-join-app .s3ql-answer-progress {color:#bdbdc5}
  .s3ql-join-app .s3ql-button.s3ql-answer-submit,
  .s3ql-join-app .s3ql-panel .s3ql-button:not(.s3ql-button--secondary):not(.s3ql-button--danger){background:#252b34;color:#87b0e8;border-color:#657d9a}
  .s3ql-join-app .s3ql-field :is(input,textarea,select),.s3ql-host-app .s3ql-turn-text-label input {color:#f5f5f7;background:#18181a;border-color:#666672}
}
@media screen and (max-width:600px) {
  .s3ql-app.s3ql-join-app .s3ql-identity-card {display:grid;grid-template-columns:auto minmax(0,1fr);width:100%;gap:4px 10px}
  .s3ql-join-app .s3ql-identity-card>img {grid-row:1 / span 2}
  .s3ql-app.s3ql-join-app .s3ql-identity-card>b {grid-column:2;width:auto;text-align:left;margin:0}
}
/* Encres de lecture. Chaque titre conserve sa taille et la largeur disponible pour le retour à la ligne. */
@media screen {
  .s3ql-app:is(.s3ql-join-app,.s3ql-host-app,.s3ql-screen-app), .s3ql-final-popup {
    --s3ql-ink-main: #87b0e8; --s3ql-ink-sub: #dd88a4;
  }
  .s3ql-app:is(.s3ql-join-app,.s3ql-host-app,.s3ql-screen-app) :where(h1,h2,h3,h4,.s3ql-eyebrow),
  .s3ql-final-popup .s3ql-final-popup-card :is(h1,h2,h3,.s3ql-eyebrow) {
    max-width: 100%;
    color: var(--s3ql-ink-sub); text-shadow: none;
  }
  .s3ql-app:is(.s3ql-join-app,.s3ql-host-app,.s3ql-screen-app) h1,
  .s3ql-app:is(.s3ql-join-app,.s3ql-host-app,.s3ql-screen-app) :is(.s3ql-host-card,.s3ql-screen-card,.s3ql-host-panel,.s3ql-live-header,.s3ql-panel) h1,
  .s3ql-app.s3ql-join-app .s3ql-question-head h2,
  .s3ql-final-popup .s3ql-final-popup-card :is(h1,h2) {
    color: var(--s3ql-ink-main);
  }
  .s3ql-app:is(.s3ql-join-app,.s3ql-host-app,.s3ql-screen-app) :is(.s3ql-live-header,.s3ql-host-card,.s3ql-screen-card,.s3ql-panel) .s3ql-eyebrow { color: var(--s3ql-ink-sub); }
  .s3ql-app:is(.s3ql-join-app,.s3ql-host-app,.s3ql-screen-app) :is(.s3ql-button--primary,.s3ql-answer-submit),
  .s3ql-app.s3ql-host-app .s3ql-host-toolbar .s3ql-button--primary,
  .s3ql-app.s3ql-join-app .s3ql-panel .s3ql-button:not(.s3ql-button--secondary):not(.s3ql-button--danger),
  .s3ql-final-popup .s3ql-button--primary {
    background: #252b34; color: var(--s3ql-ink-main); border-color: #657d9a;
  }
  .s3ql-app:is(.s3ql-join-app,.s3ql-host-app,.s3ql-screen-app) :is(.s3ql-button--secondary,.s3ql-screen-control),
  .s3ql-app.s3ql-host-app .s3ql-host-toolbar .s3ql-button--secondary,
  .s3ql-final-popup :is(.s3ql-button--secondary,.s3ql-final-popup-close) {
    background: #2c252b; color: var(--s3ql-ink-sub); border-color: #8a6877;
  }
}

@media screen {
  .s3ql-app.s3ql-code-access .s3ql-panel { background:#1d1d20; color:#f5f5f7; border-color:#49494f; color-scheme:dark; }
  .s3ql-app.s3ql-code-access .s3ql-panel h2 { color:#87b0e8; }
  .s3ql-app.s3ql-code-access :is(.s3ql-lead,.s3ql-field>label) { color:#f5f5f7; }
  .s3ql-app.s3ql-code-access input { color:#f5f5f7; background:#18181b; border-color:#64646f; }
  .s3ql-app.s3ql-code-access .s3ql-panel .s3ql-button { color:#87b0e8; background:#252b34; border-color:#657d9a; }
}
