@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&family=Sora:wght@400;500;600;700&family=Unbounded:wght@400;500;600;700;800&display=swap');
:root {
  color-scheme: dark;
  --bg: #17091f;
  --panel: #1d1130;
  --panel-soft: #241736;
  --line: #392948;
  --text: #faf5ff;
  --muted: #b7a8c6;
  --amber: #ffb238;
  --cyan: #33e6d8;
  --magenta: #ff3d81;
  --green: #42e28f;
  --display: 'Unbounded', sans-serif;
  --body: 'Sora', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.6;
}
body:before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse at 75% 5%, #4a1c5429, transparent 45%),
    radial-gradient(ellipse at 0% 80%, #162f3729, transparent 40%);
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
.button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #281b3b;
  color: var(--text);
  padding: 11px 16px;
  font-weight: 500;
  transition:
    background 0.18s,
    transform 0.18s,
    border-color 0.18s;
}
button:hover,
.button:hover {
  background: #382647;
  border-color: #68507a;
}
button:active {
  transform: translateY(1px);
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}
a {
  color: inherit;
  text-decoration: none;
}
.primary {
  background: var(--amber);
  border-color: var(--amber);
  color: #25152a;
  font-weight: 700;
}
.primary:hover {
  background: #ffc363;
  border-color: #ffc363;
}
.primary span {
  margin-left: 20px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.mono,
.eyebrow {
  font-family: var(--mono);
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 500;
  text-transform: uppercase;
  margin: 0 0 8px;
  color: var(--muted);
}
.amber {
  color: var(--amber);
}
.cyan {
  color: var(--cyan);
}
.green {
  color: var(--green);
}
.error {
  color: #ff829f !important;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  line-height: 1.4;
}
h1 {
  font-family: var(--display);
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -1.8px;
  margin-bottom: 8px;
}
h2 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}
h3 {
  font-size: 14px;
}
p {
  margin-bottom: 12px;
}
[hidden] {
  display: none !important;
}
.brand {
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -1px;
  white-space: nowrap;
  display: flex;
  align-items: center;
}
.brand > span:last-child {
  color: var(--amber);
}
.brand-icon {
  font-size: 38px;
  color: var(--amber);
  margin-right: 12px;
  line-height: 1;
}
.brand .stardust-brand {
  display: flex;
  flex-direction: column;
  font-size: 10px;
  line-height: 1.25;
  letter-spacing: 1px;
  color: #f8d5e8;
}
.stardust-brand strong {
  font-size: 23px;
  letter-spacing: -1px;
  color: #ffcd70;
  text-shadow: 2px 2px #b52f79;
}
.topbar {
  height: 82px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 4vw;
  gap: 30px;
  background: #150c22b3;
}
.edition {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: #8d7b9f;
  border-left: 1px solid var(--line);
  padding-left: 28px;
}
.header-status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.status {
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  white-space: nowrap;
}
.status i,
.tiny-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--magenta);
}
.status.online i {
  background: var(--green);
  box-shadow: 0 0 9px #42e28f50;
}
.tiny-dot {
  background: var(--amber);
  margin-right: 7px;
  box-shadow: 0 0 10px #ffb23844;
}
.icon-button {
  border: 0;
  background: none;
  font-size: 21px;
  padding: 4px 8px;
}
.studio {
  max-width: 1500px;
  margin: auto;
  padding: 40px 4vw 0;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 34px;
}
.page-heading p:last-child {
  margin-bottom: 0;
  font-size: 12px;
}
.launch-actions {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 11px;
}
.subtle-link {
  font-size: 11px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.studio-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}
.tabs {
  display: flex;
  gap: 28px;
}
.tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  border-radius: 0;
  padding: 13px 0 17px;
  color: var(--muted);
  font-size: 12px;
}
.tabs button.active {
  color: var(--amber);
  border-bottom-color: var(--amber);
}
#save-status {
  font-size: 10px;
}
.live-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
}
.live-main,
.live-aside {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.panel {
  background: linear-gradient(135deg, #211530, var(--panel));
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 24px;
  min-width: 0;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.panel-heading h2,
.panel-heading p {
  margin-bottom: 0;
}
.panel-heading .eyebrow {
  margin-bottom: 5px;
}
.live-card {
  padding: 26px 28px 0;
  overflow: hidden;
}
.live-card > .panel-heading {
  font-size: 10px;
  color: var(--muted);
}
.question-meta {
  display: flex;
  gap: 8px;
  margin: 24px 0 18px;
}
.pill {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 1px;
  background: #ffb23812;
  color: var(--amber);
  border: 1px solid #ffb23838;
  border-radius: 5px;
  padding: 4px 8px;
}
.pill.example {
  color: var(--muted);
  border-color: var(--line);
  background: #ffffff05;
}
.current-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(19px, 2.1vw, 29px);
  line-height: 1.6;
  letter-spacing: -0.7px;
  max-width: 650px;
  margin-bottom: 24px;
}
.answer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.answer-choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid #493454;
  background: #2a1c3b;
  border-radius: 10px;
  min-height: 62px;
  overflow: hidden;
  transition:
    border-color 0.25s,
    background 0.25s,
    opacity 0.25s;
}
.choice-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: #ffffff09;
  border: 1px solid #ffffff12;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 12px;
  color: #c6b6d2;
}
.choice-text {
  overflow-wrap: anywhere;
}
.answer-choice.correct {
  background: #42e28f13;
  border-color: var(--green);
  box-shadow: 0 0 25px #42e28f0b;
}
.answer-choice.correct .choice-letter {
  background: var(--green);
  color: #173324;
}
.answer-choice.incorrect {
  opacity: 0.42;
}
.correct-mark {
  color: var(--green);
  margin-left: auto;
  font-size: 22px;
}
.answer-choice img {
  max-width: 65%;
  max-height: 100px;
  object-fit: contain;
  min-width: 0;
  /* Beaucoup de logos sont transparents : sans fond clair, ils disparaissent. */
  background: linear-gradient(180deg, #ffffff, #efe9f7);
  border-radius: 8px;
  padding: 6px;
}
.image-caption {
  font-size: 11px;
}
.reveal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 24px 0;
}
.reveal-bar > span {
  font-size: 11px;
  color: var(--muted);
}
.reveal-bar button {
  font-size: 12px;
}
.navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin: 0 -28px;
  padding: 18px 28px;
  background: #150c2233;
  gap: 12px;
}
.navigation button {
  font-size: 11px;
  background: none;
  padding: 9px 12px;
}
.navigation .mono {
  font-size: 9px;
}
.score-panel {
  padding-bottom: 12px;
}
.team-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.team-avatar {
  width: 35px;
  height: 35px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--team);
  background: color-mix(in srgb, var(--team) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--team) 30%, transparent);
}
.team-name {
  font-size: 12px;
  font-weight: 500;
  flex: 1;
  overflow-wrap: anywhere;
}
.score-adjust {
  display: flex;
  align-items: center;
  gap: 8px;
}
.score-adjust button {
  padding: 2px 9px;
  border-color: transparent;
  background: none;
  color: var(--muted);
  font-size: 18px;
}
.score-adjust strong {
  font-family: var(--mono);
  font-size: 23px;
  text-align: center;
  min-width: 34px;
}
.award-button {
  font-size: 10px;
  padding: 8px 10px;
  color: var(--green);
  border-color: #42e28f30;
  background: #42e28f0b;
}
.award-button:hover {
  background: #42e28f20;
  border-color: var(--green);
}
.question-strip {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 7px;
}
.question-strip button {
  padding: 9px 0;
  font-family: var(--mono);
  font-size: 10px;
  border-radius: 6px;
  color: #8f7f9f;
  background: #170f22;
}
.question-strip button.filled {
  background: #31223f;
  border-color: #584268;
  color: #e6daef;
}
.question-strip button.cued:after {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  margin: 3px auto 0;
  border-radius: 50%;
  background: var(--cyan);
}
.question-strip button.active {
  background: var(--amber);
  color: #281831;
  border-color: var(--amber);
}
.choice-image {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.choice-image input {
  flex: 1 1 200px;
  margin: 0;
}
.choice-image button {
  font-size: 10px;
  padding: 8px 10px;
}
.choice-image [data-upload-status] {
  flex-basis: 100%;
}
.stop-audio {
  width: 100%;
  margin-top: 10px;
  font-size: 11px;
  color: #ffb4c4;
  border-color: #ff3d8155;
  background: #ff3d8114;
}
.stop-audio:hover {
  border-color: var(--magenta);
  background: #ff3d8124;
}
.editor-jump {
  display: flex;
  align-items: center;
  gap: 10px;
}
.editor-jump button {
  font-size: 10px;
  padding: 7px 10px;
}
.editor-hint {
  margin: 10px 0 0;
}
.sequence-panel .panel-heading .mono {
  font-size: 9px;
}
.legend {
  display: flex;
  gap: 19px;
  font-size: 9px;
  color: var(--muted);
  margin-top: 15px;
}
.legend-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 2px;
}
.amber-bg {
  background: var(--amber);
}
.filled-bg {
  background: #816193;
}
.empty-bg {
  background: #42314f;
}
.projection-panel h2 {
  font-size: 14px;
}
.projection-panel .status {
  font-size: 10px;
}
.mini-stage {
  height: 136px;
  background: radial-gradient(ellipse at 50% 150%, #79294166, transparent 70%), #110b1d;
  border: 1px solid var(--line);
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  gap: 7px;
}
.mini-stage:before,
.mini-stage:after {
  content: '';
  width: 200px;
  height: 200px;
  border: 1px solid #a983bc15;
  border-radius: 50%;
  position: absolute;
  transform: rotate(-30deg) scaleX(1.9);
}
.mini-stage:after {
  width: 140px;
  height: 140px;
}
.mini-orbit {
  color: var(--amber);
  font-size: 25px;
}
.mini-stage strong {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 500;
}
.mini-stage .mono {
  font-size: 7px;
  color: #a087b4;
  letter-spacing: 2px;
}
.mode-buttons {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 4px;
  gap: 2px;
  margin: 15px 0;
}
.mode-buttons button {
  flex: 1;
  padding: 7px 3px;
  font-size: 10px;
  background: none;
  border: 0;
  border-radius: 4px;
  color: var(--muted);
}
.mode-buttons button.active {
  background: #3a284b;
  color: var(--text);
}
.projection-panel p:last-child {
  margin-bottom: 0;
  font-size: 10px;
}
kbd {
  font-family: var(--mono);
  border: 1px solid #665172;
  border-bottom-width: 2px;
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--text);
}
.star-glyph {
  font-size: 40px;
  color: var(--amber);
  line-height: 1;
}
.star-grid {
  display: grid;
  grid-template-columns: repeat(var(--star-columns, 6), minmax(0, 1fr));
  grid-template-rows: repeat(var(--star-rows, 5), minmax(0, 1fr));
  aspect-ratio: 16/9;
  background-position: center;
  background-size: cover;
  border: 1px solid #5b3f69;
  border-radius: 8px;
  gap: 0;
  padding: 0;
  perspective: 800px;
  isolation: isolate;
  overflow: hidden;
}
.star-protection .protection-tile {
  padding: 0;
  min-width: 0;
  min-height: 0;
  border: 1px solid #ffffff80;
  border-radius: 0;
  background: #00000015;
  color: white;
  font: 10px var(--mono);
  text-shadow: 0 1px 3px #000;
}
.star-protection .protection-tile[aria-pressed='true'] {
  background: #ffb23888;
  box-shadow: inset 0 0 0 2px var(--amber);
}
.star-protection .protection-tile:focus-visible {
  outline: 2px solid white;
  outline-offset: -3px;
}
.star-tile {
  padding: 0;
  min-width: 0;
  min-height: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c3a8d3;
  border: 1px solid #5a406d;
  border-radius: 0;
  background: linear-gradient(145deg, #382446, #281b36);
  font-family: var(--mono);
  font-size: 11px;
  transform-origin: center bottom;
  backface-visibility: hidden;
  transition:
    transform 0.9s cubic-bezier(0.33, 0.05, 0.65, 1),
    opacity 0.65s 0.18s,
    box-shadow 0.4s;
}
.star-tile:before {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid #ffffff06;
  border-radius: 2px;
  pointer-events: none;
}
.star-tile.fallen {
  transform: rotateX(-105deg) translateY(60%);
  opacity: 0;
  box-shadow: 0 -12px 28px #ffb23888;
  pointer-events: none;
}
.regie-page .star-tile.fallen {
  pointer-events: auto;
  transform: none;
  opacity: 1;
  background: transparent;
  border-color: #ffffff10;
  box-shadow: none;
}
.regie-page .star-tile.fallen span {
  opacity: 0;
}
.regie-page .star-tile.fallen:hover {
  background: #150c2299;
}
.regie-page .star-tile.fallen:hover span {
  opacity: 1;
}
.star-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 15px 0 8px;
  gap: 8px;
}
.star-caption .mono {
  font-size: 8px;
  color: var(--muted);
}
.text-button {
  padding: 0;
  background: none;
  border: 0;
  color: var(--amber);
  font-size: 10px;
}
.text-button:hover {
  background: none;
}
.star-panel > p {
  font-size: 10px;
  margin: 0;
}
.media-buttons {
  display: flex;
  gap: 8px;
}
.media-buttons button {
  flex: 1;
  font-size: 11px;
}
.media-panel p {
  font-size: 11px;
}
.studio-footer {
  display: flex;
  justify-content: space-between;
  padding: 32px 0;
  font-family: var(--mono);
  color: #8d7b9f;
  font-size: 8px;
  letter-spacing: 1px;
}
.studio-footer .amber {
  margin: 0 8px;
}
.notice {
  background: #ffb2380e;
  border: 1px solid #ffb23855;
  color: #ffe0ac;
  border-radius: 9px;
  padding: 14px 18px;
  font-size: 12px;
  margin-bottom: 24px;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: #3b294c;
  border: 1px solid #88709b;
  box-shadow: 0 12px 40px #0008;
  border-radius: 10px;
  padding: 14px 24px;
  max-width: min(90vw, 650px);
  font-size: 13px;
}
.config-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 30px 0;
}
.config-toolbar h2 {
  font-family: var(--display);
  font-size: 22px;
  margin-bottom: 6px;
}
.config-toolbar p {
  font-size: 12px;
  margin: 0;
}
.config-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 24px;
}
.config-layout > aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
label {
  display: block;
  font-size: 12px;
  color: #d9cce5;
  margin-bottom: 16px;
}
input:not([type='radio'], [type='checkbox'], [type='color']),
textarea,
select {
  display: block;
  width: 100%;
  border: 1px solid #4b375c;
  border-radius: 7px;
  background: #150d21;
  color: var(--text);
  padding: 11px 12px;
  margin-top: 7px;
  outline-offset: 2px;
}
input::placeholder,
textarea::placeholder {
  color: #8e7b9e;
  font-size: 11px;
}
textarea {
  resize: vertical;
}
input[type='radio'],
input[type='checkbox'] {
  accent-color: var(--amber);
}
.checkbox,
.radio {
  display: flex;
  align-items: center;
  gap: 8px;
}
.team-edit {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}
.team-edit input[type='color'] {
  width: 32px;
  height: 36px;
  background: none;
  border: 0;
  padding: 0;
  flex-shrink: 0;
}
.team-edit input[type='text'] {
  margin: 0;
  min-width: 0;
  font-size: 11px;
}
.team-edit button {
  padding: 3px 8px;
  background: none;
  border: 0;
  font-size: 20px;
  color: var(--muted);
}
.settings-panel h2 {
  margin-bottom: 20px;
}
.settings-panel select {
  font-size: 12px;
}
.settings-panel code {
  color: var(--cyan);
}
.backup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.backup-actions button,
.backup-actions .button {
  font-size: 11px;
  margin: 0;
}
.reset-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.reset-actions .danger {
  width: auto;
  margin-top: 0;
}
.danger {
  color: #ff8cae;
  border-color: #ff3d8133;
  background: #ff3d8109;
  width: 100%;
  font-size: 11px;
  margin-top: 10px;
}
.question-editor > .question-strip {
  margin-bottom: 28px;
}
.form-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}
.choices-heading {
  margin-top: 30px;
}
.choice-editor {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  margin: 12px 0;
  background: #190f26;
}
.choice-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.choice-editor-head .radio {
  margin: 0;
}
.choice-editor-head select {
  width: 105px;
  margin: 0;
  padding: 7px 10px;
  font-size: 11px;
}
.choice-editor > input {
  font-size: 12px;
}
.editor-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
}
.editor-navigation button {
  font-size: 12px;
}
.disconnected #live-panel button:not([data-mode]) {
  opacity: 0.5;
}
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 50% 20%, #352044 0, transparent 60%), var(--bg);
}
.login-card {
  width: min(440px, calc(100% - 40px));
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #1d1130dd;
}
.login-card .brand {
  margin-bottom: 36px;
}
.login-card h1 {
  font-size: 29px;
  letter-spacing: -1px;
}
.login-card .muted {
  font-size: 12px;
  line-height: 1.9;
  margin-bottom: 28px;
}
.login-card form button {
  width: 100%;
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
}
.login-card input {
  margin-bottom: 14px;
}
.login-footer {
  border-top: 1px solid var(--line);
  padding-top: 23px;
  color: var(--muted);
  font-size: 10px;
}
#login-error {
  font-size: 12px;
  color: #ff86a9;
  margin: 15px 0;
  min-height: 19px;
}
/* The public screen contains no interactive controls. */
.projection-page {
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 12% 10%, #df25852c, transparent 50%),
    radial-gradient(ellipse at 90% 85%, #8055cd32, transparent 50%), #17091f;
}
.projection-page.cursor-hidden,
.projection-page.cursor-hidden * {
  cursor: none !important;
}
.projection-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3vh 3.5vw;
  gap: 20px;
  flex-shrink: 0;
}
.projection-header .brand {
  font-size: clamp(15px, 1.7vw, 32px);
}
.projection-header .brand-icon {
  font-size: clamp(24px, 3vw, 52px);
}
.projection-header .stardust-brand {
  font-size: clamp(9px, 0.8vw, 16px);
}
.projection-header .stardust-brand strong {
  font-size: clamp(20px, 2vw, 38px);
}
.waiting-view .projection-header {
  padding: 1.5vh 3.5vw;
}
.waiting-view .projection-edition {
  color: #f5ce94;
}
.disco-waiting {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  min-height: 0;
  border-radius: 24px;
  background:
    radial-gradient(circle at 20% 23%, #ffdcab 0 1px, transparent 2px),
    radial-gradient(circle at 76% 35%, #ffdcab 0 1px, transparent 2px),
    radial-gradient(ellipse at 50% 20%, #85427655, transparent 55%),
    linear-gradient(160deg, #2d0e37, #170a23 60%, #41163d);
  background-size:
    121px 109px,
    193px 157px,
    auto,
    auto;
}
.disco-beams {
  position: absolute;
  inset: -50%;
  z-index: -1;
  background: repeating-conic-gradient(
    from 10deg at 50% 35%,
    transparent 0deg 18deg,
    #ff9bca12 20deg 30deg,
    transparent 33deg 60deg
  );
  animation: disco-lights 28s ease-in-out infinite alternate;
}
.disco-floor {
  position: absolute;
  z-index: -1;
  left: -30%;
  right: -30%;
  bottom: -22%;
  height: 47%;
  transform: perspective(450px) rotateX(58deg);
  background:
    linear-gradient(#ffbd7130 1px, transparent 1px),
    linear-gradient(90deg, #fb6abc30 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(transparent, #000 65%);
}
.disco-ball {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 19vh;
  height: 21vh;
  filter: drop-shadow(0 0 28px #ff8bb85c);
}
.stardust-welcome {
  position: relative;
  width: 95%;
  text-align: center;
  margin-top: 15vh;
}
.disco-kicker {
  color: #ffc9e7;
  font: 500 clamp(10px, 1.5vh, 20px) var(--mono);
  letter-spacing: 0.35em;
  margin-bottom: 2vh;
}
.disco-waiting h1 {
  margin: 0;
  line-height: 1.1;
}
.disco-waiting h1 span {
  display: block;
  font-family: var(--body);
  font-size: clamp(18px, 3vh, 40px);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #fff0e4;
}
.disco-waiting h1 strong {
  display: block;
  font:
    italic 900 clamp(60px, 12vw, 18vh) Georgia,
    serif;
  letter-spacing: -0.055em;
  color: #ffdb8b;
  text-shadow:
    2px 3px #d9568f,
    4px 6px #93376f,
    0 0 50px #ffa14b25;
}
.disco-tagline {
  margin: 2vh 0 3vh;
  color: #f4dceb;
  font-size: clamp(12px, 2vh, 28px);
}
.disco-badge {
  display: inline-flex;
  align-items: center;
  gap: 1.5vw;
  padding: 1vh 2vw;
  border: 1px solid #ffbf6c66;
  border-radius: 100px;
  font: 500 clamp(8px, 1.3vh, 18px) var(--mono);
  letter-spacing: 0.15em;
  color: #ffdb8b;
  background: #28102d99;
}
.disco-badge span {
  color: #ff8bc0;
}
@keyframes disco-lights {
  from {
    transform: rotate(-7deg);
  }
  to {
    transform: rotate(7deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .disco-beams {
    animation: none;
  }
}
.projection-edition {
  font-size: clamp(8px, 0.7vw, 16px);
  color: #b6a0c4;
  letter-spacing: 0.22em;
}
#projection-counter {
  font-size: clamp(11px, 1.2vw, 26px);
  color: var(--amber);
}
#stage {
  position: relative;
  flex: 1;
  min-height: 0;
  padding: 1vh 3.5vw 2vh;
  transition:
    opacity 0.2s,
    transform 0.3s;
}
.projection-scene {
  width: 100%;
  height: 100%;
  min-height: 0;
}
.projection-scene.scene-inactive {
  position: absolute;
  inset: 0;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
}
.answer-choice.selected:not(.correct):not(.chosen-wrong) {
  border-color: var(--amber);
  background: #ffb23822;
  box-shadow: inset 0 0 0 1px var(--amber);
}
.answer-choice.chosen-wrong,
.projected-choices .answer-choice.chosen-wrong {
  border-color: #ff4e77;
  background: #b5173b40;
  opacity: 1;
}
.wrong-mark {
  color: #ff6b8c;
  font-size: 1.5em;
}
.selected-mark {
  color: var(--amber);
}
.question-buzz-status {
  color: var(--amber);
  font: 500 clamp(13px, 1.4vw, 26px) var(--mono);
  margin: 0;
}
.answer-team-label {
  display: block;
  margin: 12px 0;
}
.answer-team-label select {
  width: 100%;
  min-height: 46px;
  margin-top: 5px;
}
#current-question button.answer-choice {
  text-align: left;
  width: 100%;
}
#current-question button.answer-choice:disabled {
  opacity: 1;
  cursor: default;
}
.live-controls {
  display: flex;
  align-items: stretch;
  gap: 16px;
  margin-bottom: 20px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #20112d;
}
.quick-scenes {
  display: flex;
  align-items: stretch;
  gap: 6px;
  flex: 1;
}
.quick-scenes button {
  flex: 1;
  min-height: 48px;
}
.quick-scenes button.active {
  border-color: var(--amber);
  color: var(--amber);
  background: #ffb23814;
}
.buzz-controls {
  display: flex;
  gap: 8px;
  flex: 1;
}
.buzz-button {
  flex: 1;
  min-height: 68px;
  background: #ff487b;
  border-color: #ff8bb0;
  color: #250619;
  font: 800 26px var(--display);
  box-shadow: 0 4px 0 #a91e51;
  touch-action: manipulation;
}
.buzz-button:hover {
  background: #ff7098;
  border-color: #ffb5ce;
}
.buzz-button span {
  display: block;
  margin-top: 5px;
  font: 500 11px var(--body);
}
.buzz-button.buzzed {
  background: #ffcb79;
  border-color: var(--amber);
}
#resume-music {
  min-width: 110px;
  border-color: #33e6d870;
  color: var(--cyan);
}
.stage-question {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22%;
  gap: 4vw;
}
/* Sans l'étoile, la question prend toute la largeur. */
.stage-question:not(:has(.projection-mystery)) {
  grid-template-columns: minmax(0, 1fr);
}
.projected-question {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  gap: 2.6vh;
  animation: question-in 0.5s both;
}
.projected-question h1 {
  font-size: clamp(22px, 3.3vw, 70px);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.projection-page .eyebrow {
  font-size: clamp(9px, 0.9vw, 20px);
  letter-spacing: 0.17em;
  color: var(--amber);
  margin-bottom: 1.4vh;
}
.question-heading .eyebrow span {
  color: var(--muted);
}
.projected-choices {
  gap: 1.6vh 1vw;
}
.projected-choices .answer-choice {
  font-size: clamp(16px, 1.7vw, 38px);
  min-height: 9.5vh;
  padding: 1.8vh 1.5vw;
  gap: 1.2vw;
  border-radius: 12px;
  border-width: 2px;
}
.projected-choices .choice-letter {
  width: 2.9vw;
  height: 2.9vw;
  min-width: 25px;
  min-height: 25px;
  font-size: clamp(12px, 1.2vw, 26px);
  border-radius: 7px;
}
.projected-choices .answer-choice img {
  /* Lisible du fond de la salle : l'image porte la réponse autant que le texte. */
  height: clamp(120px, 24vh, 360px);
  max-height: none;
  max-width: 76%;
  width: auto;
  flex: 0 0 auto;
  padding: 1vh 1vw;
  border-radius: 14px;
  box-shadow: 0 10px 30px #00000066;
}
/* Sur la projection, l'image est l'énigme : sa légende donnerait la réponse.
   La régie, elle, garde le texte pour que l'animateur sache ce qu'il montre. */
.projected-choices .image-caption {
  display: none;
}
.projected-choices .answer-choice:has(img) {
  justify-content: flex-start;
  gap: 1.5vw;
}
/* La lettre reste à gauche, l'image se centre dans la place qui reste. */
.projected-choices .answer-choice img {
  margin-inline: auto;
}
.projected-choices .correct-mark {
  font-size: 2.6vw;
}
.projected-choices .incorrect {
  opacity: 0.38;
}
.projection-mystery {
  border-left: 1px solid var(--line);
  padding-left: 2.5vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2vh;
  text-align: center;
}
.projection-mystery .eyebrow {
  font-size: clamp(9px, 0.8vw, 18px);
  margin: 0;
}
.projection-star {
  border-radius: 9px;
  gap: 0;
  padding: 0;
  flex-shrink: 0;
}
.projection-star .star-tile {
  font-size: clamp(13px, 1.2vw, 28px);
}
.star-progress {
  font-size: clamp(9px, 0.8vw, 20px);
  color: var(--muted);
}
.mystery-decoration {
  font-size: 8vw;
  line-height: 1;
  color: #ffb23844;
  margin-top: 1vh;
}
.scoreboard {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1vh 2.6vw;
  border-top: 1px solid var(--line);
  background: #10091855;
  padding: 2.1vh 3vw;
  flex-shrink: 0;
}
.projection-score {
  display: flex;
  align-items: center;
  gap: 1vw;
  font-size: clamp(12px, 1.4vw, 32px);
  min-width: 0;
  max-width: 23%;
  overflow-wrap: anywhere;
}
.projection-score > span:not(.score-dot) {
  line-height: 1.3;
}
.score-dot {
  background: var(--team);
  width: 0.55vw;
  height: 0.55vw;
  min-width: 6px;
  min-height: 6px;
  border-radius: 50%;
  box-shadow: 0 0 20px color-mix(in srgb, var(--team) 30%, transparent);
}
.projection-score strong {
  color: var(--team);
  font-family: var(--mono);
  font-size: clamp(20px, 2.3vw, 52px);
  margin-left: 0.7vw;
}
.question-media-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  max-height: 29vh;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0b0711;
  overflow: hidden;
}
.question-media-frame img,
.question-media-frame video {
  height: 100%;
  max-height: 29vh;
  width: 100%;
  object-fit: contain;
}
.projected-question.has-media {
  gap: 1.5vh;
}
.has-media h1 {
  font-size: clamp(20px, 2.7vw, 58px);
}
.has-media .projected-choices .answer-choice {
  min-height: 8vh;
  padding: 1vh 1.2vw;
  font-size: clamp(15px, 1.5vw, 32px);
}
.has-media .answer-choice img {
  height: 8vh;
  max-height: 8vh;
}
/* Sur la projection, une réponse en image doit rester lisible du fond de la salle,
   même quand la question porte déjà un extrait. */
.has-media .projected-choices .answer-choice img {
  height: clamp(120px, 21vh, 330px);
  max-height: none;
}
/* La vague prend moins de place quand les réponses sont des images. */
.projected-question:has(.projected-choices img) .audio-visual {
  min-height: 8vh;
  padding: 1.2vh 2vw;
}
.audio-visual {
  display: flex;
  align-items: center;
  gap: 2vw;
  min-height: 10vh;
  padding: 2vh 2vw;
  border: 1px solid #33e6d82f;
  border-radius: 12px;
  background: linear-gradient(100deg, #33e6d808, #33e6d802);
}
.audio-symbol {
  font-size: 3vw;
  color: var(--cyan);
}
.audio-visual .mono {
  font-size: 0.8vw;
  color: var(--cyan);
  letter-spacing: 2px;
}
.waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35vw;
  height: 6vh;
  flex: 1;
}
.waveform i {
  display: block;
  width: 0.35vw;
  height: var(--height);
  background: linear-gradient(180deg, #7ef7e6, var(--cyan) 55%, #2aa9c9);
  border-radius: 8px;
  opacity: 0.45;
  transform: scaleY(0.35);
  transition: transform 0.4s ease;
}
.playing .waveform i {
  animation:
    wave 0.75s var(--delay) cubic-bezier(0.4, 0, 0.5, 1) infinite alternate,
    waveGlow 2.4s var(--delay) ease-in-out infinite;
}
.audio-visual {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    border-color 0.5s ease,
    box-shadow 0.5s ease;
}
/* Lumières de boule à facettes : deux cônes de couleur qui tournent derrière la vague. */
.audio-visual.playing:before {
  content: '';
  position: absolute;
  inset: -60%;
  z-index: -2;
  background: conic-gradient(
    from 0deg,
    #ffb43a33,
    #ff3d8133,
    #8a5cff33,
    #33e6d833,
    #4dff9b33,
    #ffb43a33
  );
  filter: blur(28px);
  animation: discoSpin 9s linear infinite;
}
/* Balayage de projecteur, de gauche à droite. */
.audio-visual.playing:after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 35%, #ffffff14 50%, transparent 65%);
  animation: discoSweep 3.4s ease-in-out infinite;
}
.audio-visual.playing {
  border-color: #ffffff2e;
  animation: discoFrame 6s linear infinite;
}
.audio-visual.playing .audio-symbol {
  animation:
    pulse 0.75s ease-in-out infinite,
    discoHue 6s linear infinite;
}
.audio-visual.playing .mono {
  animation:
    breathe 2.6s ease-in-out infinite,
    discoHue 6s linear infinite;
}
/* La vague prend les couleurs de la piste de danse et les fait défiler. */
.playing .waveform {
  animation: discoHue 6s linear infinite;
}
.waveform i:nth-child(6n + 1) {
  background: linear-gradient(180deg, #ffd88a, var(--amber));
}
.waveform i:nth-child(6n + 2) {
  background: linear-gradient(180deg, #ff8fb8, var(--magenta));
}
.waveform i:nth-child(6n + 3) {
  background: linear-gradient(180deg, #c3a8ff, #8a5cff);
}
.waveform i:nth-child(6n + 4) {
  background: linear-gradient(180deg, #7ef7e6, var(--cyan));
}
.waveform i:nth-child(6n + 5) {
  background: linear-gradient(180deg, #a8ffcf, var(--green));
}
.waveform i:nth-child(6n) {
  background: linear-gradient(180deg, #ffc9a1, #ff8b3d);
}
.countdown {
  position: fixed;
  inset: 11vh 0 13vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: radial-gradient(circle, #30203fe8, #150c22f5 60%);
  gap: 2vh;
}
.countdown strong {
  font-family: var(--display);
  font-size: 20vh;
  line-height: 1.2;
  color: var(--amber);
}
.countdown > .mono {
  font-size: 1vw;
  letter-spacing: 0.3em;
  color: var(--muted);
}
#stage.transitioning {
  opacity: 0;
  transform: translateY(12px);
}
.star-stage {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1vh;
}
.star-stage h1 {
  font-size: clamp(16px, 2.4vh, 32px);
  margin: 0;
}
.star-view .projection-header {
  padding: 1vh 2vw;
}
.star-view .scoreboard {
  padding: 1vh 2vw;
}
.star-image-frame {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.star-stage .projection-star {
  width: 100%;
  max-width: none;
}
.star-stage .star-tile {
  font-size: clamp(18px, 2vw, 44px);
}
.podium-stage {
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2vh;
}
.podium-stage h1 {
  font-size: 3.7vw;
  margin: 0;
}
.podium {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 1.4vw;
  margin-top: 3vh;
  min-height: 0;
}
.podium-team {
  flex: 1;
  max-width: 24%;
  min-width: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--team) 10%, transparent), #261735);
  border: 1px solid color-mix(in srgb, var(--team) 45%, transparent);
  border-radius: 14px 14px 0 0;
  padding: 2vh 1vw 0;
  animation: podium-in 0.7s calc(var(--order) * 0.18s) both;
}
.podium-team.rank-1 {
  padding-top: 5vh;
  background: linear-gradient(180deg, #ffb23818, #291931);
  border-color: var(--amber);
}
.podium-team h2 {
  font-family: var(--display);
  font-size: clamp(12px, 1.5vw, 32px);
  margin: 1vh 0;
  overflow-wrap: anywhere;
}
.podium-team strong {
  font-family: var(--mono);
  font-size: clamp(25px, 4vw, 85px);
  color: var(--team);
  display: block;
  line-height: 1.4;
}
.podium-rank {
  font-size: 2.6vw;
  font-family: var(--mono);
  color: var(--team);
}
.rank-1 .podium-rank {
  color: var(--amber);
  font-size: 4.6vw;
}
.podium-team > .mono {
  font-size: 0.8vw;
  color: var(--muted);
}
.podium-base {
  margin: 2vh -1vw 0;
  padding: 1.5vh 0.4vw;
  background: #ffffff05;
  font-size: 0.7vw;
  font-family: var(--mono);
  letter-spacing: 0.1em;
}
.podium-thanks {
  font-size: 1.1vw;
  color: var(--muted);
  margin: 2vh 0 0;
}
.waiting-stage {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4vh;
  text-align: center;
}
.waiting-stage h1 {
  font-size: 5vw;
}
.waiting-stage .star-glyph {
  font-size: 8vw;
}
@keyframes question-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes podium-in {
  from {
    opacity: 0;
    transform: translateY(55px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes wave {
  from {
    transform: scaleY(0.3);
    opacity: 0.45;
  }
  to {
    transform: scaleY(1);
    opacity: 1;
  }
}
@keyframes discoSpin {
  to {
    transform: rotate(1turn);
  }
}
@keyframes discoSweep {
  0% {
    transform: translateX(-60%);
  }
  55%,
  100% {
    transform: translateX(60%);
  }
}
@keyframes discoHue {
  to {
    filter: hue-rotate(360deg);
  }
}
@keyframes discoFrame {
  0%,
  100% {
    box-shadow:
      0 0 26px #ffb43a2e,
      inset 0 0 44px #ffb43a14;
  }
  33% {
    box-shadow:
      0 0 26px #ff3d812e,
      inset 0 0 44px #ff3d8114;
  }
  66% {
    box-shadow:
      0 0 26px #33e6d82e,
      inset 0 0 44px #33e6d814;
  }
}
@keyframes waveGlow {
  0%,
  100% {
    filter: none;
  }
  50% {
    filter: drop-shadow(0 0 6px #33e6d8aa);
  }
}
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    text-shadow: none;
  }
  50% {
    transform: scale(1.14);
    text-shadow: 0 0 18px #33e6d8aa;
  }
}
@keyframes breathe {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}
@media (min-width: 1700px) {
  .studio {
    padding-left: 40px;
    padding-right: 40px;
  }
  .live-layout {
    grid-template-columns: minmax(0, 1fr) 370px;
  }
  .current-title {
    font-size: 30px;
  }
  .answer-choice {
    min-height: 75px;
  }
}
@media (max-width: 1100px) {
  .live-layout {
    grid-template-columns: minmax(0, 1fr) 295px;
    gap: 18px;
  }
  .panel {
    padding: 20px;
  }
  .live-card {
    padding: 22px 20px 0;
  }
  .navigation {
    margin: 0 -20px;
    padding: 15px 20px;
  }
  .award-button span {
    display: none;
  }
  .score-panel .panel-heading {
    align-items: flex-start;
  }
  .score-panel .panel-heading > .small {
    max-width: 120px;
    text-align: right;
  }
  .config-layout {
    grid-template-columns: 280px minmax(0, 1fr);
  }
  .topbar {
    padding: 0 3vw;
  }
  .studio {
    padding: 30px 3vw 0;
  }
  .reveal-bar {
    flex-wrap: wrap;
  }
  .launch-actions .primary {
    font-size: 11px;
  }
  .edition {
    font-size: 8px;
  }
}
@media (max-width: 800px) {
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
  }
  .launch-actions {
    align-items: flex-start;
  }
  .live-layout,
  .config-layout {
    grid-template-columns: 1fr;
  }
  .live-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .media-panel {
    grid-column: 1/-1;
  }
  .edition {
    display: none;
  }
  .studio {
    padding: 25px 20px 0;
  }
  .topbar {
    height: 70px;
    padding: 0 20px;
  }
  .header-status {
    gap: 10px;
  }
  .brand {
    font-size: 16px;
  }
  .status {
    font-size: 10px;
  }
  .config-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .studio-footer {
    gap: 18px;
  }
  .studio-footer > span:last-child {
    display: none;
  }
  .current-title {
    font-size: 24px;
  }
  .config-layout > aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .config-layout > aside > .panel:last-child {
    grid-column: 1/-1;
  }
  .projection-edition {
    display: none;
  }
  .projection-score {
    max-width: 45%;
  }
  .stage-question {
    gap: 2vw;
    grid-template-columns: minmax(0, 1fr) 20%;
  }
  .projected-choices .answer-choice {
    padding: 1vh 1vw;
  }
  .projection-header {
    padding: 2vh 3vw;
  }
}
@media (max-width: 500px) {
  h1 {
    font-size: 36px;
  }
  .live-aside,
  .config-layout > aside {
    display: flex;
    flex-direction: column;
  }
  .live-aside > .panel,
  .config-layout > aside > .panel {
    width: 100%;
  }
  .current-title {
    font-size: 20px;
  }
  .answer-grid {
    gap: 8px;
  }
  .answer-choice {
    gap: 8px;
    padding: 10px;
    font-size: 12px;
  }
  .choice-letter {
    width: 23px;
    height: 23px;
    font-size: 10px;
  }
  .navigation {
    flex-wrap: wrap;
  }
  .navigation .mono {
    display: none;
  }
  .team-row {
    gap: 8px;
  }
  .team-name {
    font-size: 11px;
  }
  .question-strip {
    gap: 4px;
  }
  .question-strip button {
    font-size: 9px;
  }
  .studio-tabs {
    gap: 10px;
  }
  .tabs {
    gap: 16px;
  }
  .tabs button {
    font-size: 10px;
  }
  #save-status {
    font-size: 8px;
    max-width: 100px;
    text-align: right;
  }
  .header-status .status {
    font-size: 0;
  }
  .header-status .status i {
    width: 8px;
    height: 8px;
  }
  .form-row {
    gap: 10px;
  }
  .reveal-bar .primary {
    width: 100%;
  }
  .score-panel .panel-heading > .small {
    font-size: 9px;
  }
  .projection-mystery {
    display: none;
  }
  .stage-question {
    grid-template-columns: 1fr;
  }
  .projected-question h1 {
    font-size: 5.2vw;
  }
  .projected-choices .answer-choice {
    font-size: 3.5vw;
  }
  .projection-header .brand {
    font-size: 12px;
  }
  .projection-score {
    font-size: 10px;
  }
  .podium {
    gap: 1vw;
    flex-wrap: wrap;
  }
  .podium-team {
    max-width: 45%;
    flex-basis: 40%;
  }
  .podium-team h2 {
    font-size: 12px;
  }
  .podium-base,
  .podium-team > .mono {
    font-size: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .star-tile.fallen {
    transform: none;
    opacity: 0;
  }
}

.regie-page .dense-star .star-tile {
  font-size: 8px;
}
.projection-mystery .dense-star .star-tile {
  font-size: clamp(8px, 0.65vw, 16px);
}
.star-stage .dense-star .star-tile {
  font-size: clamp(12px, 1.25vw, 26px);
}
#music-details {
  border-left: 2px solid var(--cyan);
  padding-left: 10px;
  color: var(--cyan);
}

.cue-panel {
  border-top: 1px solid var(--line);
  margin: 24px 0;
  padding-top: 20px;
}
.cue-load {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.cue-load p {
  margin: 0;
  flex: 1 1 220px;
}
#load-preview {
  font-size: 11px;
}
#editor-preview {
  /* YouTube refuse la lecture dans un lecteur de moins de 200 px : on reste au-dessus. */
  width: 100%;
  max-width: 480px;
  min-height: 270px;
  margin: 14px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #0d0716;
}
#editor-preview iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
#editor-preview:has(audio),
#editor-preview:empty {
  display: none;
}
#editor-preview {
  margin: 16px 0;
  width: 100%;
  min-width: 0;
}
#editor-preview:has(iframe),
#editor-preview:has(video) {
  aspect-ratio: 16/9;
  min-height: 200px;
}
#editor-preview video,
#editor-preview iframe,
#editor-preview audio {
  width: 100%;
  max-width: 100%;
  border: 0;
}
#editor-preview iframe,
#editor-preview video {
  height: 100%;
}
.youtube-frame {
  min-height: 200px;
  flex: none;
  height: 28vh;
}
#question-youtube,
#question-youtube iframe {
  width: 100%;
  height: 100%;
  border: 0;
  min-height: 200px;
}
.track-reveal {
  font-size: clamp(12px, 1.1vw, 25px);
  color: var(--green);
  margin: 0;
  text-align: center;
}

.cue-timeline {
  border: 1px solid #5a406d;
  border-radius: 12px;
  background: #120b1f;
  padding: 20px;
  margin: 20px 0;
}
.timeline-toolbar,
.timeline-transport,
.cue-lane-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.timeline-toolbar strong {
  font-size: 12px;
}
.timeline-toolbar .mono {
  font-size: 11px;
  color: var(--cyan);
  white-space: nowrap;
}
.timeline-transport {
  margin: 16px 0 12px;
  flex-wrap: wrap;
}
.timeline-transport button {
  font-size: 11px;
}
.timeline-transport .checkbox {
  font-size: 10px;
  margin: 0;
}
.timeline-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.timeline-modes button {
  font-size: 11px;
}
.timeline-modes [aria-pressed='true'] {
  border-color: currentColor;
  background: #ffffff12;
}
[data-cue-mode='question'] {
  color: var(--amber);
}
[data-cue-mode='solution'] {
  color: var(--cyan);
}
.timeline-ruler {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--muted);
  margin: 14px 12px 22px;
}
.cue-clips {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}
.cue-lane-label {
  font-size: 11px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--cue-color) 40%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--cue-color) 8%, transparent);
}
.cue-lane-label .checkbox {
  font-size: 10px;
  margin: 0;
  white-space: nowrap;
}
.cue-lane-label .mono {
  font-size: 9px;
}
.question-color {
  --cue-color: var(--amber);
  color: var(--amber);
}
.solution-color {
  --cue-color: var(--cyan);
  color: var(--cyan);
}
.cue-lane {
  --cue-color: var(--amber);
  height: 76px;
  touch-action: none;
  user-select: none;
  position: relative;
  margin: 0 12px 18px;
  background: repeating-linear-gradient(90deg, #ffffff0b 0 1px, transparent 1px 5%), #21142e;
  border: 1px solid #4a335c;
  border-radius: 5px;
  cursor: crosshair;
}
.cue-lane-label button {
  font-size: 10px;
  padding: 6px 8px;
}
.cue-lane-label .mono {
  margin-left: auto;
}
.cue-region {
  position: absolute;
  top: 0;
  bottom: 0;
  background: color-mix(in srgb, var(--cue-color) 22%, transparent);
  border-top: 3px solid var(--cue-color);
  pointer-events: none;
}
.cue-region.solution-color {
  border-top: 0;
  border-bottom: 3px solid var(--cue-color);
}
.cue-handle {
  position: absolute;
  top: -6px;
  bottom: calc(50% + 6px);
  width: 25px;
  padding: 0;
  transform: translateX(-50%);
  border: 0;
  background: transparent !important;
  border-radius: 0;
  touch-action: none;
  cursor: ew-resize;
  z-index: 3;
  transition: none;
}
.cue-handle.solution-color {
  top: calc(50% + 6px);
  bottom: -6px;
}
.cue-handle.solution-color span {
  top: auto;
  bottom: 0;
}
.cue-handle:before {
  content: '';
  position: absolute;
  width: 4px;
  inset: 0 auto 0 calc(50% - 2px);
  background: var(--cue-color);
  border-radius: 3px;
}
.cue-handle span {
  position: absolute;
  top: 0;
  left: calc(50% + 1px);
  padding: 1px 4px;
  background: var(--cue-color);
  color: #150c22;
  border-radius: 3px;
  font: 9px var(--mono);
  font-weight: 700;
}
.cue-handle.end span {
  left: auto;
  right: calc(50% + 1px);
}
.cue-handle.selected:before {
  box-shadow: 0 0 12px var(--cue-color);
}
.cue-handle:active {
  transform: translateX(-50%);
}
.cue-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #fff;
  box-shadow: 0 0 5px #fff9;
  z-index: 2;
  pointer-events: none;
}
[data-cue-region='solution'].disabled-solution {
  opacity: 0.2;
}
.timeline-fine {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.timeline-fine > .mono {
  font-size: 10px;
  color: var(--muted);
}
.timeline-fine > div {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.timeline-fine button {
  font-size: 10px;
  padding: 7px 10px;
}
.cue-timeline p:last-child {
  margin: 0;
  font-size: 10px;
}
@media (max-width: 500px) {
  .cue-timeline {
    padding: 14px;
  }
  .timeline-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .cue-lane-label {
    flex-wrap: wrap;
    gap: 3px;
  }
  .timeline-ruler {
    font-size: 8px;
  }
}

@media (max-width: 700px) {
  .regie-page .topbar {
    height: 64px;
    padding: 0 16px;
  }
  .regie-page .studio {
    padding: 16px 12px 32px;
  }
  .regie-page .page-heading {
    margin-bottom: 16px;
    gap: 12px;
  }
  .regie-page .page-heading h1 {
    font-size: 28px;
  }
  .regie-page .page-heading .eyebrow,
  .regie-page .page-heading p.muted,
  .regie-page .launch-actions > .primary {
    display: none;
  }
  .regie-page .launch-actions {
    align-items: flex-start;
  }
  .regie-page .studio-tabs {
    margin-bottom: 16px;
  }
  .regie-page .tabs button {
    min-height: 44px;
    font-size: 12px;
  }
  .regie-page .reset-actions {
    gap: 8px;
  }
  .regie-page #start-game {
    width: 100%;
    min-height: 48px;
  }
  .regie-page #reset-game-live {
    margin-left: auto;
    padding: 8px 10px;
  }
  .regie-page .live-controls {
    position: sticky;
    top: 0;
    z-index: 25;
    flex-direction: column;
    gap: 8px;
    padding: 8px;
    padding-top: max(8px, env(safe-area-inset-top));
    margin: 0 -4px 12px;
    box-shadow: 0 8px 18px #0007;
  }
  .regie-page .live-controls button {
    touch-action: manipulation;
  }
  .regie-page .quick-scenes button {
    padding: 9px 6px;
    min-height: 44px;
    font-size: 13px;
  }
  .regie-page .buzz-button {
    min-height: 64px;
  }
  .regie-page #resume-music {
    min-width: 104px;
    font-size: 13px;
  }
  .regie-page .live-layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .regie-page .panel {
    padding: 14px;
    margin-bottom: 12px;
  }
  .regie-page .live-card > .panel-heading {
    flex-wrap: wrap;
    gap: 6px;
  }
  .regie-page .live-card > .panel-heading .eyebrow {
    font-size: 9px;
  }
  .regie-page .current-title {
    font-size: 18px;
    line-height: 1.4;
    margin: 12px 0;
  }
  .regie-page .answer-instructions {
    font-size: 11px;
  }
  .regie-page #current-question .answer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .regie-page #current-question .answer-choice {
    min-height: 76px;
    font-size: 14px;
    padding: 10px 8px;
    scroll-margin-top: 180px;
  }
  .regie-page #answering-team,
  .regie-page #reveal {
    scroll-margin-top: 180px;
  }
  .regie-page #current-question .answer-choice img {
    max-width: 55%;
    max-height: 70px;
  }
  .regie-page .reveal-bar {
    gap: 10px;
    flex-wrap: wrap;
  }
  .regie-page #reveal {
    width: 100%;
    min-height: 48px;
  }
  .regie-page .navigation {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
  }
  .regie-page .navigation .mono {
    display: none;
  }
  .regie-page .navigation button {
    min-height: 46px;
    padding: 10px 8px;
    font-size: 12px;
  }
  .regie-page .team-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    padding: 12px 0;
    gap: 8px;
  }
  .regie-page .team-name {
    font-size: 13px;
  }
  .regie-page .score-adjust button {
    min-width: 42px;
    min-height: 44px;
  }
  .regie-page .award-button {
    grid-column: 2 / -1;
    min-height: 44px;
    font-size: 12px;
  }
  .regie-page .award-button span {
    display: inline;
  }
  .regie-page .question-strip {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .regie-page .question-strip button {
    min-height: 44px;
    font-size: 12px;
  }
  .regie-page input,
  .regie-page select,
  .regie-page textarea {
    font-size: 16px;
  }
}
