/*
 * Arcade Musicale 8.3.26
 * Direction artistique partagée avec adrienhauquin.com : papier ivoire,
 * encre brune, accents sourds et scènes musicales ponctuellement sombres.
 */

:where(.atlas-musical, .arcade-musicale-live) {
  --music-paper: #f2ede4;
  --music-paper-soft: #f8f4ed;
  --music-paper-strong: #fffdf8;
  --music-ink: #332820;
  --music-brown: #544236;
  --music-brown-deep: #342a24;
  --music-muted: #685c52;
  --music-line: rgba(84, 66, 54, .18);
  --music-line-strong: rgba(84, 66, 54, .32);
  --music-gold: #77581e;
  --music-gold-soft: #f2e1b9;
  --music-sage: #52654f;
  --music-sage-soft: #e8eee5;
  --music-clay: #8c503f;
  --music-clay-soft: #f4e4dd;
  --music-slate: #6d7f96;
  --music-slate-soft: #e5eaf0;
  --music-violet: #695a88;
  --music-violet-soft: #ebe7f2;
  --music-teal: #376c6b;
  --music-teal-soft: #e0eeee;
  --music-shadow-sm: 0 8px 22px rgba(64, 48, 34, .07);
  --music-shadow: 0 18px 48px rgba(64, 48, 34, .10);
  --music-shadow-lg: 0 30px 80px rgba(64, 48, 34, .14);
  --music-radius-sm: 9px;
  --music-radius: 13px;
  --music-radius-lg: 18px;
  color: var(--music-ink);
  font-family: Merriweather, Georgia, "Times New Roman", serif;
}

:where(.atlas-musical, .arcade-musicale-live) *,
:where(.atlas-musical, .arcade-musicale-live) *::before,
:where(.atlas-musical, .arcade-musicale-live) *::after { box-sizing: border-box; }

:where(.atlas-musical, .arcade-musicale-live) :is(button, input, select, textarea) { font: inherit; }
:where(.atlas-musical, .arcade-musicale-live) :is(h1, h2, h3, h4, strong, button, .am-button, .aml-button) { font-family: Georgia, "Times New Roman", serif; }
:where(.atlas-musical, .arcade-musicale-live) :is(button, a, input, select, summary):focus-visible {
  outline: 3px solid var(--music-teal) !important;
  outline-offset: 3px !important;
}
.atlas-musical .am-mode-gate:focus { outline: 0 !important; }

.arcade-musicale-live :is(h1, h2, h3)[tabindex="-1"]:focus { outline: 0 !important; }

.am-ui-icon,
.aml-ui-icon {
  display: block;
  flex: 0 0 auto;
  height: 1.35em;
  width: 1.35em;
}

body.atlas-musical-page,
body.atlas-musical-live-page,
body.atlas-musical-page #page,
body.atlas-musical-live-page #page,
body.atlas-musical-page .site,
body.atlas-musical-live-page .site,
body.atlas-musical-page .site-inner,
body.atlas-musical-live-page .site-inner,
body.atlas-musical-page .site-content,
body.atlas-musical-live-page .site-content,
body.atlas-musical-page .content-area,
body.atlas-musical-live-page .content-area,
body.atlas-musical-page main.site-main,
body.atlas-musical-live-page main.site-main,
body.atlas-musical-page article.page,
body.atlas-musical-live-page article.page,
body.atlas-musical-page .entry-content,
body.atlas-musical-live-page .entry-content,
body.atlas-musical-page .post-content,
body.atlas-musical-live-page .post-content,
body.atlas-musical-page .page-content,
body.atlas-musical-live-page .page-content,
body.atlas-musical-page .wp-block-post-content,
body.atlas-musical-live-page .wp-block-post-content {
  background: var(--music-paper, #f2ede4) !important;
  background-color: var(--music-paper, #f2ede4) !important;
}

body.atlas-musical-page,
body.atlas-musical-live-page { overflow-x: hidden !important; }

/* -------------------------------------------------------------------------- */
/* Choix du mode                                                              */
/* -------------------------------------------------------------------------- */

.atlas-musical .am-mode-gate {
  background:
    linear-gradient(rgba(253, 250, 245, .78), rgba(242, 237, 228, .9)),
    repeating-linear-gradient(90deg, rgba(84, 66, 54, .018) 0 1px, transparent 1px 5px),
    var(--music-paper);
  color: var(--music-ink);
  padding: clamp(16px, 3vw, 42px);
}

.atlas-musical .am-mode-panel {
  background: var(--music-paper-strong);
  border: 1px solid var(--music-line);
  border-radius: var(--music-radius-lg);
  box-shadow: var(--music-shadow-lg);
  max-width: 1160px;
  padding: clamp(34px, 5vw, 64px);
}

.atlas-musical .am-mode-panel::before {
  background: linear-gradient(90deg, var(--music-teal), var(--music-gold) 52%, var(--music-clay));
  height: 4px;
}

.atlas-musical .am-mode-kicker {
  color: var(--music-brown);
  font-family: Georgia, "Times New Roman", serif;
  font-size: .78rem;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.atlas-musical .am-mode-kicker i { background: var(--music-line-strong); }

.atlas-musical .am-mode-panel h1 {
  color: var(--music-brown-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.75rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1;
}

.atlas-musical .am-mode-panel > p {
  color: var(--music-muted);
  font-size: clamp(.98rem, 1.5vw, 1.08rem);
  line-height: 1.7;
}

.atlas-musical .am-mode-options { gap: clamp(14px, 2vw, 22px); margin-block: clamp(28px, 4vw, 44px) 20px; }

.atlas-musical .am-mode-option,
.atlas-musical-v6 .am-mode-option,
.atlas-musical .am-mode-option.is-live {
  --am-mode-accent: 59, 112, 111;
  background-color: var(--music-paper-strong) !important;
  background-image: linear-gradient(145deg, rgba(var(--am-mode-accent), .09), transparent 62%) !important;
  border: 1px solid var(--music-line) !important;
  border-radius: var(--music-radius);
  box-shadow: var(--music-shadow-sm);
  color: var(--music-ink) !important;
  min-height: 224px;
  padding: clamp(24px, 3vw, 32px);
}

.atlas-musical .am-mode-option.is-live { --am-mode-accent: 107, 93, 141; }
.atlas-musical .am-mode-option::before { background: rgb(var(--am-mode-accent)); height: 3px; }
.atlas-musical .am-mode-option:hover {
  border-color: rgba(var(--am-mode-accent), .62) !important;
  box-shadow: var(--music-shadow);
  transform: translateY(-3px);
}

.atlas-musical .am-mode-icon {
  background: rgba(var(--am-mode-accent), .1);
  border: 1px solid rgba(var(--am-mode-accent), .28);
  border-radius: 12px;
  color: rgb(var(--am-mode-accent));
  height: 58px;
  width: 58px;
}

.atlas-musical .am-mode-option small { color: rgb(var(--am-mode-accent)); }
.atlas-musical .am-mode-option strong { color: var(--music-brown-deep); font-size: clamp(1.55rem, 2.4vw, 2rem); }
.atlas-musical .am-mode-option em { color: var(--music-muted); }
.atlas-musical .am-mode-option > b {
  background: rgba(var(--am-mode-accent), .1);
  border: 1px solid rgba(var(--am-mode-accent), .25);
  color: rgb(var(--am-mode-accent));
}

.atlas-musical .am-mode-tags > span {
  background: rgba(var(--am-mode-accent), .075);
  border: 1px solid rgba(var(--am-mode-accent), .17);
  color: var(--music-brown);
}
.atlas-musical .am-mode-note { color: var(--music-muted); }

/* -------------------------------------------------------------------------- */
/* Coquille et accueil solo                                                    */
/* -------------------------------------------------------------------------- */

.atlas-musical-v6 {
  background: var(--music-paper) !important;
  color: var(--music-ink) !important;
  font-family: Merriweather, Georgia, "Times New Roman", serif !important;
}

.atlas-musical-v6 .am-ambient { display: none !important; }

.atlas-musical-v6 .am-topbar {
  align-items: center !important;
  background: rgba(253, 250, 245, .97) !important;
  border-bottom: 1px solid var(--music-line) !important;
  box-shadow: 0 6px 22px rgba(64, 48, 34, .05) !important;
  column-gap: 18px !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-rows: auto !important;
  min-height: 76px !important;
  padding-block: 11px !important;
  row-gap: 0 !important;
}

.atlas-musical-v6[data-am-current-view] .am-topbar {
  column-gap: 18px !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-rows: auto !important;
  row-gap: 0 !important;
}

.atlas-musical-v6 .am-brand { color: var(--music-brown-deep) !important; }
.atlas-musical-v6 .am-brand-mark {
  background: var(--music-brown) !important;
  border: 1px solid var(--music-brown) !important;
  border-radius: 11px !important;
  box-shadow: 0 8px 18px rgba(84, 66, 54, .16) !important;
  color: var(--music-paper-strong) !important;
}
.atlas-musical-v6 .am-brand-copy strong { color: var(--music-brown-deep) !important; font-family: Georgia, "Times New Roman", serif !important; }
.atlas-musical-v6 .am-brand-copy small { color: var(--music-muted) !important; }

.atlas-musical-v6 .am-mode-change {
  background: var(--music-paper-strong) !important;
  border-color: var(--music-line) !important;
  border-radius: 999px !important;
  color: var(--music-brown) !important;
  font-family: Georgia, "Times New Roman", serif !important;
}

.atlas-musical-v6 .am-primary-nav {
  background: rgba(255, 253, 248, .9) !important;
  border: 1px solid var(--music-line) !important;
  border-radius: var(--music-radius) !important;
  box-shadow: var(--music-shadow-sm) !important;
  gap: 5px !important;
  margin: 18px auto 0 !important;
  max-width: 1180px !important;
  padding: 6px !important;
  width: calc(100% - 32px) !important;
}

.atlas-musical-v6[data-am-current-view] .am-primary-nav {
  background: rgba(255, 253, 248, .96) !important;
  color: var(--music-ink) !important;
}

.atlas-musical-v6 .am-primary-nav :is(button, a) {
  background: transparent !important;
  border: 0 !important;
  border-radius: 9px !important;
  color: var(--music-muted) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  min-height: 46px !important;
}

.atlas-musical-v6 .am-primary-nav :is(button, a):hover { background: rgba(84, 66, 54, .07) !important; color: var(--music-brown-deep) !important; }
.atlas-musical-v6 .am-primary-nav :is(button.is-active, [aria-current="page"]) { background: var(--music-brown) !important; color: #fffdf8 !important; }
.atlas-musical-v6 .am-nav-icon svg {
  fill: none;
  height: 19px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  width: 19px;
}

.atlas-musical-v6 .am-main {
  background: transparent !important;
  color: var(--music-ink) !important;
  margin-inline: auto !important;
  max-width: 1220px !important;
  padding: clamp(20px, 3vw, 38px) 16px 48px !important;
}

.atlas-musical-v6 [data-am-content]:focus { outline: 0 !important; }

.atlas-musical-v6 .am-v611-lobby { gap: 18px !important; }
.atlas-musical-v6 .am-v611-hud {
  background: var(--music-paper-strong) !important;
  border: 1px solid var(--music-line) !important;
  border-radius: var(--music-radius) !important;
  box-shadow: var(--music-shadow-sm) !important;
  color: var(--music-ink) !important;
  min-height: 84px !important;
  padding: 13px 16px !important;
}

.atlas-musical-v6 .am-v611-level,
.atlas-musical-v6 .am-v611-stat {
  background: var(--music-paper-soft) !important;
  border: 1px solid var(--music-line) !important;
  border-radius: 10px !important;
  color: var(--music-brown) !important;
}

.atlas-musical-v6 .am-v611-avatar {
  background: var(--music-gold-soft) !important;
  color: var(--music-brown) !important;
}
.atlas-musical-v6 .am-v611-avatar .am-ui-icon { height: 22px; width: 22px; }
.atlas-musical-v6 .am-v611-level :is(strong, small),
.atlas-musical-v6 .am-v611-stat :is(strong, small) { color: inherit !important; }
.atlas-musical-v6 .am-v611-stat > span { color: var(--music-clay) !important; }
.atlas-musical-v6 .am-v611-stat .am-ui-icon { height: 18px; width: 18px; }

.atlas-musical-v6 .am-v611-xp { color: var(--music-brown) !important; }
.atlas-musical-v6 .am-v611-xp strong { color: var(--music-brown-deep) !important; }
.atlas-musical-v6 .am-v611-xp small { color: var(--music-muted) !important; }
.atlas-musical-v6 .am-v611-xp-track { background: rgba(84, 66, 54, .1) !important; }
.atlas-musical-v6 .am-v611-xp-track i { background: linear-gradient(90deg, var(--music-teal), var(--music-gold)) !important; }

.atlas-musical-v6 .am-custom-session {
  background: var(--music-paper-strong) !important;
  border: 1px solid var(--music-line) !important;
  border-radius: var(--music-radius-lg) !important;
  box-shadow: var(--music-shadow) !important;
  color: var(--music-ink) !important;
  gap: clamp(24px, 4vw, 52px) !important;
  overflow: hidden !important;
  padding: clamp(26px, 4vw, 48px) !important;
  position: relative;
}

.atlas-musical-v6 .am-custom-session::before {
  background: linear-gradient(90deg, var(--music-teal), var(--music-gold), var(--music-clay));
  content: '';
  height: 4px;
  inset: 0 0 auto;
  position: absolute;
}

.atlas-musical-v6 .am-custom-intro { color: var(--music-ink) !important; }
.atlas-musical-v6 .am-custom-kicker { color: var(--music-teal) !important; letter-spacing: .11em !important; }
.atlas-musical-v6 .am-custom-kicker b { background: var(--music-teal-soft) !important; color: var(--music-teal) !important; }
.atlas-musical-v6 .am-custom-kicker .am-ui-icon { height: 20px; width: 20px; }
.atlas-musical-v6 .am-custom-intro h1 {
  color: var(--music-brown-deep) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(2.35rem, 4.8vw, 4.2rem) !important;
  letter-spacing: -.045em !important;
  line-height: 1.02 !important;
}
.atlas-musical-v6 .am-custom-intro > p { color: var(--music-muted) !important; font-size: .98rem !important; line-height: 1.7 !important; }
.atlas-musical-v6 .am-custom-benefits { border-top-color: var(--music-line) !important; }
.atlas-musical-v6 .am-custom-benefits span { background: var(--music-paper-soft) !important; border-color: var(--music-line) !important; color: var(--music-muted) !important; }
.atlas-musical-v6 .am-custom-benefits b { color: var(--music-brown) !important; }

.atlas-musical-v6 .am-custom-form {
  background: var(--music-paper-soft) !important;
  border: 1px solid var(--music-line) !important;
  border-radius: var(--music-radius) !important;
  box-shadow: none !important;
  color: var(--music-ink) !important;
  padding: clamp(18px, 2.5vw, 28px) !important;
}
.atlas-musical-v6 .am-custom-form fieldset { border-color: var(--music-line) !important; }
.atlas-musical-v6 .am-custom-form legend { color: var(--music-brown-deep) !important; }
.atlas-musical-v6 .am-custom-form legend > span { background: var(--music-brown) !important; color: #fffdf8 !important; }
.atlas-musical-v6 .am-custom-selection-actions button {
  background: var(--music-paper-strong) !important;
  border: 1px solid var(--music-line) !important;
  color: var(--music-brown) !important;
}

.atlas-musical-v6 .am-custom-game {
  background: var(--music-paper-strong) !important;
  border: 1px solid var(--music-line) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  color: var(--music-brown-deep) !important;
  min-height: 76px !important;
}
.atlas-musical-v6 .am-custom-game:hover { border-color: var(--music-line-strong) !important; transform: translateY(-1px); }
.atlas-musical-v6 .am-custom-game.is-selected { background: var(--music-teal-soft) !important; border-color: rgba(77, 137, 136, .48) !important; box-shadow: inset 3px 0 var(--music-teal) !important; }
.atlas-musical-v6 .am-custom-game.is-world.is-selected { background: var(--music-sage-soft) !important; border-color: rgba(132, 151, 127, .52) !important; box-shadow: inset 3px 0 var(--music-sage) !important; }
.atlas-musical-v6 .am-custom-game.is-timeline.is-selected { background: #f5ead5 !important; border-color: rgba(197, 154, 74, .55) !important; box-shadow: inset 3px 0 var(--music-gold) !important; }
.atlas-musical-v6 .am-custom-game.is-odd.is-selected { background: var(--music-clay-soft) !important; border-color: rgba(173, 111, 91, .48) !important; box-shadow: inset 3px 0 var(--music-clay) !important; }
.atlas-musical-v6 .am-custom-game.is-hunter.is-selected { background: var(--music-slate-soft) !important; border-color: rgba(109, 127, 150, .48) !important; box-shadow: inset 3px 0 var(--music-slate) !important; }
.atlas-musical-v6 .am-custom-game.is-orchestra.is-selected { background: #eee8df !important; border-color: rgba(84, 66, 54, .34) !important; box-shadow: inset 3px 0 var(--music-brown) !important; }
.atlas-musical-v6 .am-custom-game-icon { color: var(--music-brown) !important; }
.atlas-musical-v6 .am-custom-game-icon .am-ui-icon { height: 24px; width: 24px; }
.atlas-musical-v6 .am-custom-game-copy strong { color: var(--music-brown-deep) !important; }
.atlas-musical-v6 .am-custom-game-copy small { color: var(--music-muted) !important; }
.atlas-musical-v6 .am-custom-game > i {
  background: transparent !important;
  border-color: var(--music-line-strong) !important;
  color: transparent !important;
}
.atlas-musical-v6 .am-custom-game.is-selected > i,
.atlas-musical-v6 .am-custom-game input:checked ~ i {
  background: var(--music-teal) !important;
  border-color: var(--music-teal) !important;
  color: #fff !important;
}

.atlas-musical-v6 .am-custom-round-option span {
  background: var(--music-paper-strong) !important;
  border-color: var(--music-line) !important;
  color: var(--music-brown) !important;
}
.atlas-musical-v6 .am-custom-round-option input:checked + span { background: var(--music-brown) !important; border-color: var(--music-brown) !important; color: #fffdf8 !important; }
.atlas-musical-v6 .am-custom-start {
  background: var(--music-brown) !important;
  border: 1px solid var(--music-brown) !important;
  border-radius: 10px !important;
  box-shadow: 0 10px 24px rgba(84, 66, 54, .18) !important;
  color: #fffdf8 !important;
  letter-spacing: .01em !important;
  text-transform: none !important;
}
.atlas-musical-v6 .am-custom-start:hover { background: var(--music-brown-deep) !important; transform: translateY(-1px); }
.atlas-musical-v6 .am-custom-start .am-ui-icon { height: 21px; width: 21px; }
.atlas-musical-v6 .am-custom-status { color: var(--music-muted) !important; }

.atlas-musical-v6 .am-v611-dashboard { gap: 12px !important; }
.atlas-musical-v6 .am-v611-profile,
.atlas-musical-v6 .am-v611-coming {
  background: var(--music-paper-strong) !important;
  border: 1px solid var(--music-line) !important;
  border-radius: var(--music-radius) !important;
  box-shadow: var(--music-shadow-sm) !important;
  color: var(--music-ink) !important;
}
.atlas-musical-v6 .am-v611-profile-icon { background: var(--music-gold-soft) !important; color: var(--music-brown) !important; }
.atlas-musical-v6 .am-v611-profile-icon .am-ui-icon { height: 22px; width: 22px; }
.atlas-musical-v6 .am-v611-profile :is(small, strong, em, b) { color: var(--music-brown) !important; }
.atlas-musical-v6 .am-v611-profile em { color: var(--music-muted) !important; }
.atlas-musical-v6 .am-v611-coming { color: var(--music-muted) !important; }
.atlas-musical-v6 .am-v611-coming small { color: var(--music-teal) !important; }
.atlas-musical-v6 .am-v611-coming .am-ui-icon { display: inline-block; height: 17px; margin-right: 5px; vertical-align: -3px; width: 17px; }

.atlas-musical-v6 .am-footer {
  background: var(--music-paper-soft) !important;
  border-top: 1px solid var(--music-line) !important;
  color: var(--music-muted) !important;
}
.atlas-musical-v6 .am-footer :is(a, button, strong) { color: var(--music-brown) !important; }

/* Le profil conserve la même grammaire éditoriale que l’accueil. */
.atlas-musical-v6 :is(.am-v72-hero, .am-v72-section, .am-v72-stats, .am-v72-xp-card, .am-v72-universe, .am-v72-goal, .am-v72-badge-layout, .am-v72-next-badge) {
  background-color: var(--music-paper-strong) !important;
  border-color: var(--music-line) !important;
  color: var(--music-ink) !important;
}
.atlas-musical-v6 .am-v72-hero,
.atlas-musical-v6 .am-v72-section { border-radius: var(--music-radius-lg) !important; box-shadow: var(--music-shadow-sm) !important; }
.atlas-musical-v6 :is(.am-v72-hero-copy h1, .am-v72-section h2, .am-v72-xp-card strong, .am-v72-universe strong, .am-v72-goal strong) { color: var(--music-brown-deep) !important; }
.atlas-musical-v6 :is(.am-v72-hero-copy p, .am-v72-section p, .am-v72-universe em, .am-v72-goal small) { color: var(--music-muted) !important; }

/* Les mini-jeux restent des scènes immersives, mais sont encadrés proprement. */
.atlas-musical-v6[data-am-current-view="game"] .am-main { max-width: 1280px !important; padding-top: 18px !important; }
.atlas-musical-v6[data-am-current-view="game"] [data-am-content] > :first-child {
  border-radius: var(--music-radius-lg) !important;
  box-shadow: var(--music-shadow) !important;
  overflow: hidden;
}

/* Scène de jeu : immersion sombre, mais dans la matière brune du site. */
.atlas-musical-v6[data-am-current-view="game"] .am-game-shell {
  background: transparent !important;
  color: var(--music-ink) !important;
}
.atlas-musical-v6[data-am-current-view="game"] .am-game-top {
  background: var(--music-paper-strong) !important;
  border: 1px solid var(--music-line) !important;
  border-radius: var(--music-radius) !important;
  box-shadow: var(--music-shadow-sm) !important;
  color: var(--music-ink) !important;
  padding: 10px 12px !important;
}
.atlas-musical-v6[data-am-current-view="game"] .am-game-exit,
.atlas-musical-v6[data-am-current-view="game"] .am-game-score {
  background: var(--music-paper-soft) !important;
  border-color: var(--music-line) !important;
  color: var(--music-brown) !important;
}
.atlas-musical-v6[data-am-current-view="game"] .am-game-title > span:first-child {
  background: var(--music-gold-soft) !important;
  border-color: rgba(197, 154, 74, .34) !important;
  box-shadow: none !important;
  color: var(--music-brown) !important;
}
.atlas-musical-v6[data-am-current-view="game"] .am-game-title small { color: var(--music-teal) !important; }
.atlas-musical-v6[data-am-current-view="game"] .am-game-title strong,
.atlas-musical-v6[data-am-current-view="game"] .am-game-score strong { color: var(--music-brown-deep) !important; font-family: Georgia, "Times New Roman", serif !important; }
.atlas-musical-v6[data-am-current-view="game"] .am-game-score span { color: var(--music-muted) !important; }
.atlas-musical-v6[data-am-current-view="game"] .am-game-progress { background: rgba(84, 66, 54, .12) !important; }
.atlas-musical-v6[data-am-current-view="game"] .am-game-progress > span { background: linear-gradient(90deg, var(--music-teal), var(--music-gold), var(--music-clay)) !important; }

.atlas-musical-v6[data-am-current-view="game"] .am-game-stage {
  background:
    radial-gradient(circle at 14% 0, rgba(197, 154, 74, .18), transparent 27rem),
    radial-gradient(circle at 92% 18%, rgba(77, 137, 136, .11), transparent 24rem),
    linear-gradient(145deg, #3a3029, #251f1b) !important;
  border: 1px solid rgba(255, 253, 248, .14) !important;
  box-shadow: 0 24px 64px rgba(52, 42, 36, .24) !important;
  color: #f8f1e7 !important;
}
.atlas-musical-v6[data-am-current-view="game"] .am-game-stage :is(h1, h2, h3) {
  color: #fffdf8 !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-weight: 700 !important;
  letter-spacing: -.035em !important;
  text-transform: none !important;
}
.atlas-musical-v6[data-am-current-view="game"][data-am-game-phase] .am-game-stage h1 {
  color: #fffdf8 !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(2rem, 4vw, 3.3rem) !important;
  font-weight: 700 !important;
  letter-spacing: -.04em !important;
  line-height: 1.02 !important;
  text-transform: none !important;
}
.atlas-musical-v6[data-am-current-view="game"] .am-game-stage :is(p, small, .am-game-step, .am-game-question > p) { color: #d8cec4 !important; }
.atlas-musical-v6[data-am-current-view="game"] .am-game-stage :is(.am-game-step strong, .am-game-kicker, .am-odd-round-head > span) { color: #e6c47e !important; }
.atlas-musical-v6[data-am-current-view="game"] .am-game-listen-box {
  background: rgba(255, 253, 248, .07) !important;
  border-color: rgba(255, 253, 248, .16) !important;
  box-shadow: none !important;
  color: #fffdf8 !important;
}
.atlas-musical-v6[data-am-current-view="game"] .am-game-listen-main strong { color: #fffdf8 !important; font-family: Georgia, "Times New Roman", serif !important; }
.atlas-musical-v6[data-am-current-view="game"] .am-game-audio-toggle {
  background: var(--music-gold-soft) !important;
  border-color: rgba(197, 154, 74, .34) !important;
  color: var(--music-brown-deep) !important;
}
.atlas-musical-v6[data-am-current-view="game"] .am-game-choice {
  background: rgba(255, 253, 248, .075) !important;
  border-color: rgba(255, 253, 248, .16) !important;
  box-shadow: none !important;
  color: #fffdf8 !important;
}
.atlas-musical-v6[data-am-current-view="game"] .am-game-choice:hover:not(:disabled) {
  background: rgba(197, 154, 74, .14) !important;
  border-color: rgba(230, 196, 126, .64) !important;
}
.atlas-musical-v6[data-am-current-view="game"] .am-game-choice :is(strong, b) { color: #fffdf8 !important; font-family: Georgia, "Times New Roman", serif !important; }
.atlas-musical-v6[data-am-current-view="game"] .am-game-choice-letter,
.atlas-musical-v6[data-am-current-view="game"] .am-game-choice-state {
  background: rgba(197, 154, 74, .13) !important;
  border-color: rgba(230, 196, 126, .34) !important;
  color: #e6c47e !important;
}

.atlas-musical-v6[data-am-current-view="game"] .am-bt-stage .am-game-listen-icon {
  background: var(--music-clay) !important;
  color: #fffdf8 !important;
}
.atlas-musical-v6[data-am-current-view="game"] .am-bt-stage .am-game-listen-label { color: #e6c47e !important; }
.atlas-musical-v6[data-am-current-view="game"] .am-bt-stage .am-game-audio-progress { background: rgba(255, 253, 248, .12) !important; }
.atlas-musical-v6[data-am-current-view="game"] .am-bt-stage .am-game-audio-progress span { background: linear-gradient(90deg, var(--music-clay), var(--music-gold), var(--music-teal)) !important; }

.atlas-musical-v6[data-am-current-view="game"] .am-tm-card {
  background: rgba(255, 253, 248, .075) !important;
  border-color: rgba(255, 253, 248, .16) !important;
  box-shadow: none !important;
  color: #fffdf8 !important;
}
.atlas-musical-v6[data-am-current-view="game"] .am-tm-card:hover:not(:disabled) { background: rgba(197, 154, 74, .14) !important; border-color: rgba(230, 196, 126, .58) !important; }
.atlas-musical-v6[data-am-current-view="game"] .am-tm-card :is(strong, b) { color: #fffdf8 !important; font-family: Georgia, "Times New Roman", serif !important; }
.atlas-musical-v6[data-am-current-view="game"] :is(.am-tm-card-index, .am-tm-card-clock) { background: rgba(77, 137, 136, .18) !important; color: #c8e0dd !important; }

.atlas-musical-v6[data-am-current-view="game"] .am-odd-common-rule {
  background: linear-gradient(135deg, rgba(197, 154, 74, .24), rgba(20, 27, 49, .96)) !important;
  border-color: rgba(240, 207, 130, .8) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 253, 248, .1) !important;
  color: #fffdf8 !important;
}
.atlas-musical-v6[data-am-current-view="game"] .am-odd-common-rule strong { color: #fffdf8 !important; }
.atlas-musical-v6[data-am-current-view="game"] .am-odd-case {
  background: rgba(255, 253, 248, .07) !important;
  border-color: rgba(255, 253, 248, .16) !important;
  box-shadow: none !important;
  color: #fffdf8 !important;
}
.atlas-musical-v6[data-am-current-view="game"] .am-odd-case:hover:not(:disabled) { background: rgba(77, 137, 136, .14) !important; border-color: rgba(126, 183, 181, .58) !important; }
.atlas-musical-v6[data-am-current-view="game"] .am-odd-case strong { color: #fffdf8 !important; font-family: Georgia, "Times New Roman", serif !important; }
.atlas-musical-v6[data-am-current-view="game"] .am-odd-case-scan { color: #e6c47e !important; }
.atlas-musical-v6[data-am-current-view="game"] .am-hunter-choice {
  background: rgba(255, 253, 248, .075) !important;
  border-color: rgba(255, 253, 248, .16) !important;
  box-shadow: none !important;
  color: #fffdf8 !important;
}
.atlas-musical-v6[data-am-current-view="game"] .am-hunter-choice:hover:not(:disabled) {
  background: rgba(197, 154, 74, .14) !important;
  border-color: rgba(230, 196, 126, .64) !important;
}
.atlas-musical-v6[data-am-current-view="game"] .am-hunter-choice > strong { color: #fffdf8 !important; font-family: Georgia, "Times New Roman", serif !important; }
.atlas-musical-v6[data-am-current-view="game"] .am-hunter-choice > small { color: #c8bdb2 !important; }
.atlas-musical-v6[data-am-current-view="game"] :is(.am-hunter-target-dot, .am-hunter-mechanism-icon) {
  background: rgba(77, 137, 136, .14) !important;
  border-color: rgba(126, 183, 181, .3) !important;
  color: #a9d0cc !important;
}

/* Orchestra Builder : pupitre et scène prolongent la matière brune commune. */
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-bench {
  background: rgba(255, 253, 248, .065) !important;
  border-color: rgba(255, 253, 248, .15) !important;
  box-shadow: inset 0 1px rgba(255, 253, 248, .035) !important;
}
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-bench-title span,
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-stage-label { color: #e6c47e !important; }
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-bench-title small,
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-bench-empty { color: #c8bdb2 !important; }
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-token {
  background: rgba(255, 253, 248, .075) !important;
  border-color: rgba(255, 253, 248, .16) !important;
  box-shadow: none !important;
  color: #fffdf8 !important;
}
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-token:hover,
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-token.is-selected {
  background: rgba(197, 154, 74, .15) !important;
  border-color: rgba(230, 196, 126, .7) !important;
  box-shadow: 0 0 0 2px rgba(230, 196, 126, .07) !important;
}
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-token i,
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-placed i {
  background: rgba(197, 154, 74, .13) !important;
  border: 1px solid rgba(230, 196, 126, .28) !important;
  color: #f2e1b9 !important;
}
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-token strong,
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-placed strong { color: #fffdf8 !important; }
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-token small { color: #c8bdb2 !important; }
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-bench-actions button:first-child {
  background: rgba(255, 253, 248, .07) !important;
  border-color: rgba(255, 253, 248, .16) !important;
  color: #eee5da !important;
}
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-bench-actions button:last-child {
  background: linear-gradient(105deg, #e6c47e, #c98865) !important;
  color: #332820 !important;
}
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-bench-actions button:disabled {
  background: rgba(255, 253, 248, .09) !important;
  color: #b9aea4 !important;
  filter: none !important;
  opacity: .62 !important;
}
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-label {
  align-items: center !important;
  background: rgba(255, 253, 248, .055) !important;
  border: 1px solid rgba(255, 253, 248, .15) !important;
  border-radius: 12px !important;
  box-sizing: border-box !important;
  color: #fffdf8 !important;
  display: grid !important;
  gap: 8px !important;
  grid-template-columns: 34px minmax(0, 1fr) auto !important;
  min-height: 50px !important;
  min-width: 0 !important;
  padding: 6px 8px !important;
  text-align: left !important;
  touch-action: manipulation !important;
  width: 100% !important;
}
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-label-icon {
  align-items: center !important;
  background: rgba(197, 154, 74, .13) !important;
  border-radius: 10px !important;
  display: flex !important;
  font-size: 1.1rem !important;
  height: 34px !important;
  justify-content: center !important;
  width: 34px !important;
}
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-label-copy { min-width: 0 !important; }
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-label-copy strong,
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-label-copy small { display: block !important; }
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-label-copy strong {
  font-size: .75rem !important;
  line-height: 1.15 !important;
  overflow-wrap: anywhere !important;
}
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-label-copy small {
  color: #c8bdb2 !important;
  font-size: .75rem !important;
  margin-top: 2px !important;
}
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-label-state {
  color: #e6c47e !important;
  font-size: .75rem !important;
  font-weight: 900 !important;
  letter-spacing: .03em !important;
  text-align: right !important;
}
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-label.is-selected {
  background: rgba(100, 216, 255, .13) !important;
  border-color: #64d8ff !important;
  box-shadow: inset 0 0 0 1px rgba(100, 216, 255, .16) !important;
}
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-label:focus-visible {
  outline: 3px solid #ffe096 !important;
  outline-offset: 2px !important;
}
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-stage-label {
  box-sizing: border-box !important;
  left: 8px !important;
  right: 8px !important;
  text-align: center !important;
  transform: none !important;
  white-space: normal !important;
}
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-placement-help {
  align-items: center !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-bench-title small {
  text-align: right !important;
}
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-stage-map {
  background:
    radial-gradient(ellipse at 50% 112%, rgba(197, 154, 74, .16), transparent 52%),
    linear-gradient(180deg, rgba(255, 253, 248, .07), rgba(255, 253, 248, .025)) !important;
  border-color: rgba(230, 196, 126, .25) !important;
}
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-stage-map::after {
  background: repeating-radial-gradient(ellipse at 50% 112%, transparent 0 48px, rgba(230, 196, 126, .085) 49px 50px, transparent 51px 82px) !important;
}
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-zone {
  background: rgba(32, 26, 22, .54) !important;
  border-color: rgba(255, 253, 248, .2) !important;
  color: #fffdf8 !important;
}
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-zone:hover:not(:disabled),
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-zone.is-drag-over {
  background: rgba(77, 137, 136, .18) !important;
  border-color: rgba(126, 183, 181, .74) !important;
}
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-zone.is-locked {
  background: rgba(132, 151, 127, .18) !important;
  border-color: rgba(166, 188, 159, .68) !important;
}
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-zone.has-token .am-orchestra-placed {
  cursor: pointer !important;
}
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-zone.has-token:hover .am-orchestra-placed strong {
  text-decoration: underline dotted !important;
  text-underline-offset: 3px !important;
}
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-zone-meta b { color: #e6c47e !important; }
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-zone-meta small,
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-empty { color: #c8bdb2 !important; }
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-placed small { color: #a9d0cc !important; }
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-conductor { color: #e6c47e !important; }
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-conductor i {
  background: #e6c47e !important;
  color: #332820 !important;
}
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-rescue,
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-result {
  background: rgba(255, 253, 248, .07) !important;
  border-color: rgba(255, 253, 248, .16) !important;
  color: #fffdf8 !important;
}
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-result.is-correct {
  background: linear-gradient(100deg, rgba(132, 151, 127, .2), rgba(77, 137, 136, .1)) !important;
  border-color: rgba(166, 188, 159, .58) !important;
}
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-result-copy :is(h2, p),
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-rescue :is(strong, p) { color: #eee5da !important; }

@media (max-width: 900px) {
  .atlas-musical .am-mode-options { grid-template-columns: 1fr; max-width: 700px; }
  .atlas-musical .am-mode-option,
  .atlas-musical .am-mode-option.is-live { min-height: 224px; }
  .atlas-musical-v6 .am-primary-nav { overflow-x: auto; }
  .atlas-musical-v6 .am-custom-session { grid-template-columns: 1fr !important; }
  .atlas-musical-v6 .am-custom-intro { max-width: 760px !important; }
}

@media (max-width: 620px) {
  .atlas-musical .am-mode-gate { padding: max(10px, env(safe-area-inset-top)) 8px max(10px, env(safe-area-inset-bottom)); }
  .atlas-musical .am-mode-panel { border-radius: 14px; padding: 28px 14px 22px; }
  .atlas-musical .am-mode-panel h1 { font-size: clamp(2.35rem, 12vw, 3.2rem); }
  .atlas-musical .am-mode-option,
  .atlas-musical .am-mode-option.is-live { grid-template-columns: auto minmax(0, 1fr); min-height: 190px !important; padding: 17px 15px; }
  .atlas-musical .am-mode-option > b { display: none; }
  .atlas-musical .am-mode-tags { display: none; }
  .atlas-musical-v6 .am-primary-nav { border-radius: 10px !important; margin-top: 10px !important; width: calc(100% - 16px) !important; }
  .atlas-musical-v6 .am-primary-nav :is(button, a) { min-width: max-content; padding-inline: 12px !important; }
  .atlas-musical-v6 .am-main { padding-inline: 8px !important; }
  .atlas-musical-v6 .am-v611-hud { grid-template-columns: auto 1fr !important; }
  .atlas-musical-v6 .am-v611-stat { display: none !important; }
  .atlas-musical-v6 .am-custom-session { border-radius: 13px !important; padding: 24px 12px !important; }
  .atlas-musical-v6 .am-custom-game-grid { grid-template-columns: 1fr !important; }
  .atlas-musical-v6 .am-custom-form { padding: 14px !important; }
  .atlas-musical-v6 .am-v611-dashboard { grid-template-columns: minmax(0, 1fr) !important; }
  .atlas-musical-v6[data-am-current-view="home"] :is(.am-v611-profile, .am-v611-coming) {
    max-width: 100% !important;
    min-width: 0 !important;
    width: 100% !important;
  }
  .atlas-musical-v6[data-am-current-view="home"] .am-v611-profile { grid-template-columns: auto minmax(0, 1fr) !important; }
  .atlas-musical-v6[data-am-current-view="home"] .am-v611-profile > span { min-width: 0 !important; }
  .atlas-musical-v6[data-am-current-view="home"] .am-v611-profile :is(strong, em, b) { overflow-wrap: anywhere; }
  .atlas-musical-v6[data-am-current-view="home"] .am-v611-coming { overflow: hidden !important; }
  .atlas-musical-v6[data-am-current-view="home"] .am-v611-coming > span {
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-wrap: anywhere;
    width: auto !important;
  }
}

/* -------------------------------------------------------------------------- */
/* Arcade Live                                                                */
/* -------------------------------------------------------------------------- */

.arcade-musicale-live {
  --aml-bg: var(--music-paper);
  --aml-surface: var(--music-paper-strong);
  --aml-surface-2: var(--music-paper-soft);
  --aml-surface-3: #ece4d8;
  --aml-ink: var(--music-ink);
  --aml-muted: var(--music-muted);
  --aml-line: var(--music-line);
  --aml-line-strong: var(--music-line-strong);
  --aml-violet: var(--music-violet);
  --aml-violet-strong: #62577f;
  --aml-cyan: var(--music-teal);
  --aml-green: var(--music-sage);
  --aml-yellow: var(--music-gold);
  --aml-red: var(--music-clay);
  background: var(--music-paper) !important;
  color: var(--music-ink) !important;
  font-family: Merriweather, Georgia, "Times New Roman", serif !important;
}

.arcade-musicale-live .aml-ambient { display: none !important; }
.arcade-musicale-live [hidden] { display: none !important; }

.arcade-musicale-live .aml-header {
  background: rgba(253, 250, 245, .97) !important;
  border-bottom: 1px solid var(--music-line) !important;
  box-shadow: 0 6px 22px rgba(64, 48, 34, .05) !important;
  min-height: 76px;
}
.arcade-musicale-live .aml-brand { color: var(--music-brown-deep) !important; }
.arcade-musicale-live .aml-brand-mark {
  background: var(--music-brown) !important;
  border: 1px solid var(--music-brown) !important;
  border-radius: 11px !important;
  box-shadow: 0 8px 18px rgba(84, 66, 54, .16) !important;
}
.arcade-musicale-live .aml-brand strong { color: var(--music-brown-deep) !important; font-family: Georgia, "Times New Roman", serif !important; }
.arcade-musicale-live .aml-brand small { color: var(--music-muted) !important; }
.arcade-musicale-live .aml-capacity { background: var(--music-sage-soft) !important; border-color: rgba(132, 151, 127, .38) !important; color: #52654f !important; }
.arcade-musicale-live .aml-capacity-dot { color: var(--music-sage) !important; }

.arcade-musicale-live .aml-main {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--music-ink) !important;
  margin: 0 auto !important;
  max-width: 1320px !important;
  min-height: calc(100svh - 150px) !important;
  padding: clamp(28px, 4vw, 58px) 18px 48px !important;
  width: 100% !important;
}
.arcade-musicale-live .aml-shell { max-width: 1180px !important; }

.arcade-musicale-live .aml-live-hero { margin-inline: auto; max-width: 760px; padding: 0; text-align: center; }
.arcade-musicale-live .aml-live-hero .aml-eyebrow {
  color: var(--music-teal) !important;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.arcade-musicale-live .aml-live-hero h1 {
  color: var(--music-brown-deep) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(3rem, 6vw, 5.1rem) !important;
  font-weight: 700 !important;
  letter-spacing: -.05em !important;
  line-height: .98 !important;
}
.arcade-musicale-live .aml-live-hero p { color: var(--music-muted) !important; font-size: clamp(.98rem, 1.4vw, 1.08rem) !important; line-height: 1.7 !important; }

.arcade-musicale-live .aml-entry-switch {
  background: rgba(255, 253, 248, .82);
  border: 1px solid var(--music-line);
  border-radius: var(--music-radius);
  box-shadow: var(--music-shadow-sm);
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 24px auto 18px;
  max-width: 660px;
  padding: 6px;
  width: 100%;
}
.arcade-musicale-live .aml-entry-switch-button {
  align-items: center;
  background: transparent !important;
  border: 0 !important;
  border-radius: 9px !important;
  color: var(--music-muted) !important;
  cursor: pointer;
  display: grid;
  gap: 1px 10px;
  grid-template-columns: auto 1fr;
  min-height: 60px;
  padding: 9px 14px !important;
  text-align: left;
}
.arcade-musicale-live .aml-entry-switch-button > span { grid-row: 1 / 3; }
.arcade-musicale-live .aml-entry-switch-button .aml-ui-icon { height: 24px; width: 24px; }
.arcade-musicale-live .aml-entry-switch-button strong { color: inherit; font-size: 1rem; }
.arcade-musicale-live .aml-entry-switch-button small { color: inherit; font-size: .75rem; opacity: 1; }
.arcade-musicale-live .aml-entry-switch-button.is-active { background: var(--music-brown) !important; color: #fffdf8 !important; }

.arcade-musicale-live .aml-entry-grid {
  display: block !important;
  margin-inline: auto;
  max-width: 780px !important;
}
.arcade-musicale-live .aml-entry-panel { animation: aml-paper-in .26s ease both; }

@keyframes aml-paper-in {
  from { opacity: 1; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.arcade-musicale-live .aml-card {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: var(--music-paper-strong) !important;
  border: 1px solid var(--music-line) !important;
  border-radius: var(--music-radius-lg) !important;
  box-shadow: var(--music-shadow) !important;
  color: var(--music-ink) !important;
}
.arcade-musicale-live .aml-player-entry,
.arcade-musicale-live .aml-host-entry { border-top: 4px solid var(--music-teal) !important; padding: clamp(24px, 4vw, 42px) !important; }
.arcade-musicale-live .aml-host-entry { border-top-color: var(--music-violet) !important; }
.arcade-musicale-live .aml-entry-heading h2 { color: var(--music-brown-deep) !important; font-family: Georgia, "Times New Roman", serif !important; font-size: clamp(1.7rem, 3vw, 2.35rem) !important; }
.arcade-musicale-live .aml-entry-label { color: var(--music-teal) !important; letter-spacing: .12em !important; }
.arcade-musicale-live .aml-host-entry .aml-entry-label { color: var(--music-violet) !important; }
.arcade-musicale-live .aml-entry-heading + p,
.arcade-musicale-live .aml-card > p { color: var(--music-muted) !important; line-height: 1.65 !important; }
.arcade-musicale-live .aml-card-badge {
  background: var(--music-teal-soft) !important;
  border: 1px solid rgba(77, 137, 136, .26) !important;
  border-radius: 10px !important;
  color: var(--music-teal) !important;
}
.arcade-musicale-live .aml-host-entry .aml-card-badge { background: var(--music-violet-soft) !important; border-color: rgba(120, 107, 154, .24) !important; color: var(--music-violet) !important; }
.arcade-musicale-live .aml-card-badge .aml-ui-icon { height: 25px; width: 25px; }

.arcade-musicale-live .aml-field > span,
.arcade-musicale-live .aml-fieldset legend,
.arcade-musicale-live .aml-fixed-setting > span { color: var(--music-brown) !important; font-family: Georgia, "Times New Roman", serif !important; }
.arcade-musicale-live .aml-field :is(input, select) {
  background: #fff !important;
  border: 1px solid var(--music-line-strong) !important;
  border-radius: 9px !important;
  box-shadow: inset 0 1px 2px rgba(64, 48, 34, .03) !important;
  color: var(--music-ink) !important;
}
.arcade-musicale-live .aml-field :is(input, select)::placeholder { color: #a2978e !important; opacity: 1 !important; }
.arcade-musicale-live .aml-code-input { color: var(--music-brown-deep) !important; letter-spacing: .16em !important; }
.arcade-musicale-live .aml-field > small { color: var(--music-muted) !important; }
.arcade-musicale-live .aml-field :is(input, select)[aria-invalid="true"] { border-color: #8c503f !important; box-shadow: 0 0 0 3px rgba(140, 80, 63, .16) !important; }
.arcade-musicale-live .aml-inline-error { background: #fae9e6 !important; border-color: rgba(145, 68, 70, .42) !important; color: #742f39 !important; }

.arcade-musicale-live .aml-fieldset { border-color: var(--music-line) !important; }
.arcade-musicale-live .aml-game-check {
  background: var(--music-paper-soft) !important;
  border: 1px solid var(--music-line) !important;
  border-radius: 9px !important;
  color: var(--music-brown) !important;
}
.arcade-musicale-live .aml-game-check:has(input:checked) { background: var(--music-violet-soft) !important; border-color: rgba(120, 107, 154, .36) !important; }
.arcade-musicale-live .aml-game-check input { accent-color: var(--music-violet); }
.arcade-musicale-live .aml-game-check .aml-ui-icon { display: inline-block; height: 17px; margin-right: 5px; vertical-align: -3px; width: 17px; }
.arcade-musicale-live .aml-fixed-setting,
.arcade-musicale-live .aml-host-player-choice { background: var(--music-paper-soft) !important; border-color: var(--music-line) !important; color: var(--music-muted) !important; }
.arcade-musicale-live .aml-fixed-setting strong { color: var(--music-brown-deep) !important; }

.arcade-musicale-live .aml-audio-primer,
.arcade-musicale-live .aml-privacy-note {
  background: var(--music-teal-soft) !important;
  border: 1px solid rgba(77, 137, 136, .2) !important;
  border-radius: 10px !important;
  color: #456f6e !important;
}
.arcade-musicale-live .aml-audio-primer strong { color: #456f6e !important; }
.arcade-musicale-live .aml-audio-primer small { color: var(--music-muted) !important; }
.arcade-musicale-live .aml-privacy-note { background: var(--music-paper-soft) !important; border-color: var(--music-line) !important; color: var(--music-muted) !important; }
.arcade-musicale-live :is(.aml-audio-primer, .aml-privacy-note) .aml-ui-icon { height: 22px; width: 22px; }

.arcade-musicale-live .aml-button {
  border-radius: 9px !important;
  font-family: Georgia, "Times New Roman", serif !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
.arcade-musicale-live .aml-button-primary {
  background: var(--music-brown) !important;
  border-color: var(--music-brown) !important;
  box-shadow: 0 9px 22px rgba(84, 66, 54, .16) !important;
  color: #fffdf8 !important;
}
.arcade-musicale-live .aml-button-primary:hover { background: var(--music-brown-deep) !important; transform: translateY(-1px); }
.arcade-musicale-live .aml-button-secondary {
  background: var(--music-paper-strong) !important;
  border-color: var(--music-line-strong) !important;
  color: var(--music-brown) !important;
}
.arcade-musicale-live .aml-button-danger { background: transparent !important; border-color: rgba(173, 111, 91, .42) !important; color: #8c503f !important; }
.arcade-musicale-live .aml-stop-game { background: var(--music-clay-soft) !important; border-color: rgba(173, 111, 91, .46) !important; color: #824838 !important; min-width: 44px; }
.arcade-musicale-live .aml-button .aml-ui-icon { display: inline-block; height: 18px; margin-right: 6px; vertical-align: -4px; width: 18px; }

/* Salle d’attente et barre de partie. */
.arcade-musicale-live .aml-roombar {
  background: var(--music-paper-strong) !important;
  border: 1px solid var(--music-line) !important;
  border-radius: var(--music-radius) !important;
  box-shadow: var(--music-shadow-sm) !important;
  color: var(--music-ink) !important;
}
.arcade-musicale-live .aml-room-code span { color: var(--music-muted) !important; }
.arcade-musicale-live .aml-room-code strong { color: var(--music-brown-deep) !important; }
.arcade-musicale-live .aml-room-phase { background: var(--music-teal-soft) !important; border-color: rgba(77, 137, 136, .24) !important; color: #456f6e !important; }
.arcade-musicale-live .aml-code-stage > .aml-room-phase-confirmed {
  align-items: center;
  background: #d5e9e7 !important;
  border-color: #7fa9a7 !important;
  box-shadow: 0 5px 16px rgba(22, 68, 67, .12);
  color: #28504e !important;
  display: inline-flex;
  font-size: .78rem;
  gap: 6px;
  letter-spacing: .01em;
}
.arcade-musicale-live .aml-room-progress { background: var(--music-violet-soft) !important; border-color: rgba(120, 107, 154, .26) !important; color: var(--music-violet) !important; }

.arcade-musicale-live .aml-lobby-grid { gap: 18px !important; grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr) !important; }
.arcade-musicale-live .aml-code-stage {
  background:
    radial-gradient(circle at 84% 5%, rgba(197, 154, 74, .2), transparent 18rem),
    var(--music-brown-deep) !important;
  border-color: rgba(255, 253, 248, .12) !important;
  color: #fffdf8 !important;
}
.arcade-musicale-live .aml-code-stage > span,
.arcade-musicale-live .aml-code-stage > p { color: #ded4ca !important; }
.arcade-musicale-live .aml-code-stage > strong { color: #fffdf8 !important; font-family: Georgia, "Times New Roman", serif !important; }
.arcade-musicale-live .aml-code-stage .aml-button-secondary { background: rgba(255, 253, 248, .08) !important; border-color: rgba(255, 253, 248, .2) !important; color: #fffdf8 !important; }
.arcade-musicale-live .aml-qr-button { background: #fff !important; border: 1px solid rgba(255, 253, 248, .22) !important; border-radius: 12px !important; color: var(--music-brown) !important; }
.arcade-musicale-live .aml-player-head h2 { color: var(--music-brown-deep) !important; }
.arcade-musicale-live .aml-player-head small { color: var(--music-muted) !important; }
.arcade-musicale-live .aml-count { background: var(--music-paper-soft) !important; color: var(--music-brown) !important; }
.arcade-musicale-live .aml-player-list :is(li, button) { background: var(--music-paper-soft) !important; border-color: var(--music-line) !important; color: var(--music-brown) !important; }
.arcade-musicale-live .aml-player-list button:hover,
.arcade-musicale-live .aml-player-list button:focus-visible { background: var(--music-clay-soft) !important; color: #7a3f31 !important; }
.arcade-musicale-live .aml-player-list button:hover > span:first-child,
.arcade-musicale-live .aml-player-list button:focus-visible > span:first-child { color: #7a3f31 !important; text-decoration-color: currentColor; }
.arcade-musicale-live .aml-player-audio .aml-ui-icon { height: 18px; width: 18px; }

.arcade-musicale-live .aml-sound-card,
.arcade-musicale-live .aml-lobby-action { box-shadow: var(--music-shadow-sm) !important; }
.arcade-musicale-live .aml-sound-status > span,
.arcade-musicale-live .aml-sound-lock-icon { background: var(--music-teal-soft) !important; color: var(--music-teal) !important; }
.arcade-musicale-live .aml-sound-status .aml-ui-icon,
.arcade-musicale-live .aml-sound-lock-icon .aml-ui-icon { height: 24px; width: 24px; }
.arcade-musicale-live .aml-sound-status strong { color: var(--music-brown-deep) !important; }
.arcade-musicale-live .aml-sound-status small { color: var(--music-muted) !important; }
.arcade-musicale-live .aml-audio-readiness,
.arcade-musicale-live .aml-ready-state { background: var(--music-paper-soft) !important; border-color: var(--music-line) !important; color: var(--music-muted) !important; }
.arcade-musicale-live .aml-audio-readiness strong,
.arcade-musicale-live .aml-ready-state strong { color: var(--music-brown-deep) !important; }

.arcade-musicale-live .aml-qr-dialog {
  background: var(--music-paper-strong) !important;
  border: 1px solid var(--music-line) !important;
  border-radius: var(--music-radius-lg) !important;
  box-shadow: 0 30px 100px rgba(30, 23, 18, .28) !important;
  color: var(--music-ink) !important;
}
.arcade-musicale-live .aml-qr-dialog::backdrop { background: rgba(35, 28, 23, .72) !important; backdrop-filter: blur(5px); }
.arcade-musicale-live .aml-qr-code-label { color: var(--music-brown) !important; }
.arcade-musicale-live .aml-qr-dialog h2 { color: var(--music-brown-deep) !important; }

/* Décompte, questions et réponses. */
.arcade-musicale-live .aml-preflight {
  background:
    radial-gradient(circle at 50% 8%, rgba(197, 154, 74, .22), transparent 19rem),
    var(--music-brown-deep) !important;
  border-color: rgba(255, 253, 248, .12) !important;
  color: #fffdf8 !important;
}
.arcade-musicale-live .aml-preflight h1 { color: #fffdf8 !important; }
.arcade-musicale-live .aml-preflight p { color: #dcd1c7 !important; }
.arcade-musicale-live .aml-preflight-kicker { color: var(--music-gold-soft) !important; }
.arcade-musicale-live .aml-preflight-count { background: rgba(255, 253, 248, .06) !important; border-color: var(--music-gold) !important; color: #fffdf8 !important; }
.arcade-musicale-live .aml-preflight-shield { background: rgba(255, 253, 248, .08) !important; border-color: rgba(255, 253, 248, .16) !important; color: #e5dbd1 !important; }

.arcade-musicale-live .aml-question-layout { gap: 18px !important; grid-template-columns: minmax(0, 1fr) minmax(250px, 310px) !important; }
.arcade-musicale-live .aml-question-card { padding: clamp(22px, 3.5vw, 42px) !important; }
.arcade-musicale-live .aml-game-progress { background: rgba(84, 66, 54, .09) !important; }
.arcade-musicale-live .aml-game-progress span { background: linear-gradient(90deg, var(--music-teal), var(--music-gold)) !important; }
.arcade-musicale-live .aml-question-kicker { color: var(--music-teal) !important; }
.arcade-musicale-live .aml-question-kicker > span { background: var(--music-teal-soft) !important; border-radius: 8px; color: var(--music-teal) !important; padding: 6px; }
.arcade-musicale-live .aml-question-kicker .aml-ui-icon { height: 18px; width: 18px; }
.arcade-musicale-live .aml-progress-label { color: var(--music-muted) !important; }
.arcade-musicale-live .aml-timer {
  background: var(--music-brown-deep) !important;
  border-color: var(--music-brown-deep) !important;
  border-radius: 10px !important;
  color: #fffdf8 !important;
}
.arcade-musicale-live .aml-timer-label { color: var(--music-muted) !important; }
.arcade-musicale-live .aml-question-card h1 { color: var(--music-brown-deep) !important; font-family: Georgia, "Times New Roman", serif !important; letter-spacing: -.035em !important; }
.arcade-musicale-live .aml-context { background: #f7edda !important; border-color: rgba(197, 154, 74, .34) !important; color: var(--music-brown) !important; }
.arcade-musicale-live .aml-context span { color: #8d6f35 !important; }
.arcade-musicale-live .aml-context strong { color: var(--music-brown-deep) !important; }

.arcade-musicale-live .aml-audio-box {
  background: var(--music-paper-soft) !important;
  border: 1px solid var(--music-line) !important;
  border-radius: 11px !important;
  color: var(--music-brown) !important;
}
.arcade-musicale-live .aml-audio-box > span { background: var(--music-teal-soft) !important; color: var(--music-teal) !important; }
.arcade-musicale-live .aml-audio-box .aml-ui-icon { height: 24px; width: 24px; }
.arcade-musicale-live .aml-audio-copy strong { color: var(--music-brown-deep) !important; }
.arcade-musicale-live .aml-audio-copy small { color: var(--music-muted) !important; }

.arcade-musicale-live .aml-choice {
  background: var(--music-paper-soft) !important;
  border: 1px solid var(--music-line) !important;
  border-radius: 11px !important;
  box-shadow: none !important;
  color: var(--music-brown-deep) !important;
}
.arcade-musicale-live .aml-choice:nth-child(4n + 1) { background: var(--music-clay-soft) !important; border-color: rgba(173, 111, 91, .35) !important; }
.arcade-musicale-live .aml-choice:nth-child(4n + 2) { background: var(--music-slate-soft) !important; border-color: rgba(109, 127, 150, .35) !important; }
.arcade-musicale-live .aml-choice:nth-child(4n + 3) { background: #f5ead5 !important; border-color: rgba(197, 154, 74, .4) !important; }
.arcade-musicale-live .aml-choice:nth-child(4n + 4) { background: var(--music-violet-soft) !important; border-color: rgba(120, 107, 154, .34) !important; }
.arcade-musicale-live .aml-choice:hover:not(:disabled) { border-color: var(--music-brown) !important; box-shadow: var(--music-shadow-sm) !important; transform: translateY(-2px); }
.arcade-musicale-live .aml-choice.is-selected { box-shadow: 0 0 0 3px rgba(77, 137, 136, .28) !important; border-color: var(--music-teal) !important; }
.arcade-musicale-live .aml-choice-index { background: var(--music-brown) !important; color: #fffdf8 !important; }
.arcade-musicale-live .aml-choice-copy strong { color: var(--music-brown-deep) !important; }
.arcade-musicale-live .aml-choice-copy small { color: var(--music-muted) !important; }

.arcade-musicale-live .aml-answered {
  background: var(--music-slate-soft) !important;
  border: 1px solid rgba(109, 127, 150, .38) !important;
  border-radius: 12px !important;
  color: var(--music-brown-deep) !important;
  display: block !important;
}
.arcade-musicale-live .aml-answered strong { color: var(--music-brown-deep) !important; }
.arcade-musicale-live .aml-answered-question,
.arcade-musicale-live .aml-waiting-pulse { color: #546379 !important; }
.arcade-musicale-live .aml-answered b { background: rgba(255, 255, 255, .64) !important; border-color: rgba(109, 127, 150, .3) !important; color: var(--music-brown-deep) !important; }
.arcade-musicale-live .aml-answered b small { color: #435267 !important; }
.arcade-musicale-live .aml-waiting-pulse i { background: var(--music-slate) !important; }

.arcade-musicale-live .aml-stopped-notice { background: #f7edda !important; border-color: rgba(197, 154, 74, .4) !important; color: var(--music-brown-deep) !important; box-shadow: var(--music-shadow-sm) !important; }

.arcade-musicale-live .aml-stat-card { box-shadow: var(--music-shadow-sm) !important; }
.arcade-musicale-live .aml-stat-card > span { color: var(--music-muted) !important; }
.arcade-musicale-live .aml-stat-card strong { color: var(--music-brown-deep) !important; }
.arcade-musicale-live .aml-stat-card small { color: var(--music-muted) !important; }

.arcade-musicale-live .aml-question-sound-lock { background: var(--music-clay-soft) !important; border-color: rgba(173, 111, 91, .32) !important; color: var(--music-brown) !important; }

/* Correction, classement et bilan. */
.arcade-musicale-live .aml-reveal-card { border-left: 5px solid var(--music-gold) !important; text-align: left !important; }
.arcade-musicale-live .aml-reveal-card .aml-result-mark { background: var(--music-gold-soft) !important; color: #8b6b30 !important; }
.arcade-musicale-live .aml-reveal-card .aml-eyebrow,
.arcade-musicale-live .aml-podium .aml-eyebrow { color: var(--music-gold) !important; }
.arcade-musicale-live .aml-reveal-card h1,
.arcade-musicale-live .aml-podium h1 { color: var(--music-brown-deep) !important; font-family: Georgia, "Times New Roman", serif !important; }
.arcade-musicale-live .aml-learning { background: var(--music-paper-soft) !important; border-color: var(--music-line) !important; color: var(--music-brown) !important; }
.arcade-musicale-live .aml-personal-result { background: var(--music-sage-soft) !important; border-color: rgba(132, 151, 127, .34) !important; color: #4f604b !important; }
.arcade-musicale-live .aml-personal-result > span:first-child { background: rgba(255, 255, 255, .7) !important; color: var(--music-sage) !important; }
.arcade-musicale-live .aml-personal-result .aml-ui-icon { height: 24px; width: 24px; }
.arcade-musicale-live .aml-phase-cue { background: var(--music-brown) !important; border-color: var(--music-brown) !important; color: #fffdf8 !important; }
.arcade-musicale-live .aml-card > p.aml-phase-cue { color: #fffdf8 !important; }

.arcade-musicale-live .aml-ranking-caption { color: var(--music-muted) !important; }
.arcade-musicale-live .aml-ranking li,
.arcade-musicale-live .aml-mini-ranking li { background: var(--music-paper-soft) !important; border-color: var(--music-line) !important; color: var(--music-brown) !important; }
.arcade-musicale-live .aml-ranking li.is-me { background: var(--music-teal-soft) !important; border-color: rgba(77, 137, 136, .38) !important; }
.arcade-musicale-live .aml-rank { background: var(--music-gold-soft) !important; color: #7d602b !important; }
.arcade-musicale-live .aml-ranking-copy strong,
.arcade-musicale-live .aml-score { color: var(--music-brown-deep) !important; }
.arcade-musicale-live .aml-ranking-copy small { color: var(--music-muted) !important; }

.arcade-musicale-live .aml-final-stage {
  background:
    radial-gradient(circle at 50% 5%, rgba(197, 154, 74, .22), transparent 22rem),
    var(--music-brown-deep) !important;
  border-color: rgba(255, 253, 248, .12) !important;
  color: #fffdf8 !important;
}
.arcade-musicale-live .aml-final-stage h1 { color: #fffdf8 !important; }
.arcade-musicale-live .aml-final-stage > p { color: #ded4ca !important; }
.arcade-musicale-live .aml-final-stage .aml-eyebrow { color: var(--music-gold-soft) !important; }
.arcade-musicale-live .aml-podium-medal { color: var(--music-gold-soft) !important; }
.arcade-musicale-live .aml-podium-medal .aml-ui-icon { height: 34px; width: 34px; }
.arcade-musicale-live .aml-podium-place > strong { color: #fffdf8 !important; }
.arcade-musicale-live .aml-podium-place > small { color: #ded4ca !important; }
.arcade-musicale-live .aml-podium-step { background: var(--music-slate) !important; border-color: rgba(255, 255, 255, .2) !important; color: #fff !important; }
.arcade-musicale-live .aml-podium-place.is-slot-1 .aml-podium-step { background: linear-gradient(#e0b85f, #b7862f) !important; }
.arcade-musicale-live .aml-podium-place.is-slot-2 .aml-podium-step { background: linear-gradient(#9ba7b4, #6f7e8e) !important; }
.arcade-musicale-live .aml-podium-place.is-slot-3 .aml-podium-step { background: linear-gradient(#b9876a, #8d604b) !important; }
.arcade-musicale-live .aml-final-personal { background: #f7edda !important; border-color: rgba(197, 154, 74, .35) !important; color: var(--music-brown) !important; }
.arcade-musicale-live .aml-report-grid .aml-card,
.arcade-musicale-live .aml-results > .aml-card { box-shadow: var(--music-shadow-sm) !important; }
.arcade-musicale-live .aml-metric,
.arcade-musicale-live .aml-review { background: var(--music-paper-soft) !important; border-color: var(--music-line) !important; color: var(--music-brown) !important; }
.arcade-musicale-live .aml-metric .aml-ui-icon,
.arcade-musicale-live .aml-review-icon .aml-ui-icon { display: inline-block; height: 19px; vertical-align: -4px; width: 19px; }
.arcade-musicale-live .aml-review-title strong,
.arcade-musicale-live .aml-metric strong { color: var(--music-brown-deep) !important; }
.arcade-musicale-live .aml-review-title small,
.arcade-musicale-live .aml-metric small { color: var(--music-muted) !important; }
.arcade-musicale-live .aml-review-status.is-ok { background: var(--music-sage-soft) !important; color: #52654f !important; }
.arcade-musicale-live .aml-review-status.is-review { background: var(--music-clay-soft) !important; color: #8c503f !important; }
.arcade-musicale-live .aml-review-body {
  background: var(--music-paper-strong) !important;
  border-top-color: var(--music-line) !important;
  color: var(--music-brown) !important;
  font-size: .82rem;
  gap: 10px;
  padding: 14px 15px;
}
.arcade-musicale-live .aml-review-body p { color: var(--music-brown) !important; line-height: 1.55; }
.arcade-musicale-live .aml-review-answer {
  background: var(--music-paper-soft) !important;
  border: 1px solid var(--music-line);
  border-radius: 10px;
  display: grid;
  gap: 3px;
  padding: 10px 12px;
}
.arcade-musicale-live .aml-review-answer.is-user.is-review { background: var(--music-clay-soft) !important; border-color: rgba(140, 80, 63, .3); }
.arcade-musicale-live .aml-review-answer.is-user.is-ok { background: var(--music-sage-soft) !important; border-color: rgba(82, 101, 79, .28); }
.arcade-musicale-live .aml-review-answer.is-expected { background: var(--music-teal-soft) !important; border-color: rgba(59, 112, 111, .28); }
.arcade-musicale-live .aml-review-answer-label {
  color: #4d4037 !important;
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.arcade-musicale-live .aml-review-answer-value { color: var(--music-brown-deep) !important; font-size: .86rem; line-height: 1.5; overflow-wrap: anywhere; }
.arcade-musicale-live .aml-review-learning { color: #544236 !important; }
.arcade-musicale-live .aml-review-meta,
.arcade-musicale-live .aml-review-meta span { color: #544236 !important; }
.arcade-musicale-live .aml-review-points strong { color: var(--music-teal) !important; }

.arcade-musicale-live .aml-footer { background: var(--music-paper-soft) !important; border-top-color: var(--music-line) !important; color: var(--music-muted) !important; }
.arcade-musicale-live .aml-footer :is(a, strong) { color: var(--music-brown) !important; }

.arcade-musicale-live.is-presentation,
.arcade-musicale-live:fullscreen { background: var(--music-paper) !important; }
.arcade-musicale-live.is-presentation .aml-main,
.arcade-musicale-live:fullscreen .aml-main { max-width: 1600px !important; padding: clamp(10px, 2vw, 24px) !important; }

@media (max-width: 940px) {
  .arcade-musicale-live .aml-question-layout,
  .arcade-musicale-live .aml-lobby-grid { grid-template-columns: 1fr !important; }
  .arcade-musicale-live .aml-side-stack { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .arcade-musicale-live .aml-side-stack > :only-child { grid-column: 1 / -1; }
  .arcade-musicale-live .aml-lobby-side { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .arcade-musicale-live .aml-lobby-side > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .arcade-musicale-live .aml-header { min-height: 66px; padding-block: 8px !important; }
  .arcade-musicale-live .aml-capacity-prefix { display: none; }
  .arcade-musicale-live .aml-main { padding: 22px 8px 34px !important; }
  .arcade-musicale-live .aml-live-hero h1 { font-size: clamp(2.55rem, 13vw, 3.7rem) !important; }
  .arcade-musicale-live .aml-entry-switch { margin-top: 18px; }
  .arcade-musicale-live .aml-entry-switch-button { min-height: 56px; padding-inline: 10px !important; }
  .arcade-musicale-live .aml-player-entry,
  .arcade-musicale-live .aml-host-entry { border-radius: 13px !important; padding: 20px 14px !important; }
  .arcade-musicale-live .aml-game-checks { grid-template-columns: 1fr !important; }
  .arcade-musicale-live .aml-form-row,
  .arcade-musicale-live .aml-side-stack,
  .arcade-musicale-live .aml-lobby-side { grid-template-columns: 1fr !important; }
  .arcade-musicale-live .aml-roombar { align-items: flex-start !important; border-radius: 11px !important; padding: 11px !important; }
  .arcade-musicale-live .aml-room-code strong { font-size: 1.3rem !important; }
  .arcade-musicale-live .aml-question-card { border-radius: 13px !important; padding: 20px 12px !important; }
  .arcade-musicale-live .aml-choice-grid { grid-template-columns: 1fr !important; }
  .arcade-musicale-live .aml-choice { min-height: 66px !important; }
  .arcade-musicale-live .aml-code-stage { border-radius: 13px !important; }
  .arcade-musicale-live .aml-final-stage { border-radius: 13px !important; }
}

@media (max-width: 390px) {
  .arcade-musicale-live .aml-entry-switch-button small { display: none; }
  .arcade-musicale-live .aml-entry-switch-button { grid-template-columns: auto 1fr; min-height: 50px; }
  .arcade-musicale-live .aml-entry-switch-button > span { grid-row: auto; }
  .arcade-musicale-live .aml-brand small { display: none; }
  .arcade-musicale-live .aml-capacity { font-size: .75rem !important; }
  .arcade-musicale-live .aml-question-head { align-items: flex-start !important; }
  .arcade-musicale-live .aml-progress-label { font-size: .75rem !important; }
}

@media (prefers-reduced-motion: reduce) {
  .arcade-musicale-live .aml-entry-panel { animation: none; }
}

/* -------------------------------------------------------------------------- */
/* 8.3.2 — rythme, densité et cohérence multi-écrans                          */
/* -------------------------------------------------------------------------- */

/* Le choix du mode garde deux propositions de même poids visuel. */
.atlas-musical .am-mode-panel {
  max-width: 1080px;
  padding: clamp(30px, 4vw, 52px);
}
.atlas-musical .am-mode-panel h1 {
  font-size: clamp(2.65rem, 4.5vw, 4.25rem);
  line-height: 1.02;
  margin-inline: auto;
  max-width: 16ch;
  text-wrap: balance;
}
.atlas-musical .am-mode-panel > p {
  margin-inline: auto;
  max-width: 58ch;
  text-wrap: balance;
}
.atlas-musical .am-mode-options {
  gap: clamp(14px, 1.8vw, 20px);
  margin-block: clamp(22px, 3vw, 32px) 16px;
}
.atlas-musical .am-mode-option,
.atlas-musical-v6 .am-mode-option,
.atlas-musical .am-mode-option.is-live {
  min-height: 202px;
  padding: clamp(21px, 2.4vw, 28px);
}
.atlas-musical .am-mode-option:focus-visible {
  box-shadow: 0 0 0 4px rgba(var(--am-mode-accent), .16), var(--music-shadow-sm);
  outline: 2px solid rgba(var(--am-mode-accent), .78);
  outline-offset: 2px;
}

/* L’accueil Solo tient dans le premier écran sur ordinateur et reste scannable. */
.atlas-musical-v6 .am-topbar { min-height: 68px !important; padding-block: 8px !important; }
.atlas-musical-v6 .am-brand-mark { height: 41px !important; width: 41px !important; }
.atlas-musical-v6 .am-primary-nav { margin-top: 12px !important; }
.atlas-musical-v6 .am-primary-nav :is(button, a) { min-height: 42px !important; }
.atlas-musical-v6 .am-main { min-height: 0 !important; padding: clamp(15px, 2vw, 24px) 16px 38px !important; }
.atlas-musical-v6 .am-v611-lobby { gap: 13px !important; }
.atlas-musical-v6 .am-v611-hud { min-height: 72px !important; padding: 10px 13px !important; }
.atlas-musical-v6 .am-custom-session {
  gap: clamp(22px, 3vw, 34px) !important;
  grid-template-columns: minmax(270px, .76fr) minmax(500px, 1.24fr) !important;
  padding: clamp(22px, 3vw, 32px) !important;
}
.atlas-musical-v6 .am-custom-intro {
  align-content: center !important;
  padding: 0 !important;
}
.atlas-musical-v6 .am-custom-kicker { margin-bottom: 12px !important; }
.atlas-musical-v6 .am-custom-intro h1 {
  font-size: clamp(2.35rem, 3.7vw, 3.45rem) !important;
  line-height: 1.03 !important;
  margin-bottom: 13px !important;
  max-width: 11ch;
  text-wrap: balance;
}
.atlas-musical-v6 .am-custom-intro > p { line-height: 1.62 !important; max-width: 45ch; }
.atlas-musical-v6 .am-custom-benefits { margin-top: 18px !important; }
.atlas-musical-v6 .am-custom-benefits > span { border-radius: 9px !important; padding: 8px 9px !important; }
.atlas-musical-v6 .am-custom-benefits small { color: var(--music-muted) !important; }
.atlas-musical-v6 .am-custom-form { padding: clamp(17px, 2vw, 22px) !important; }
.atlas-musical-v6 .am-custom-selection-actions button {
  border-radius: 999px !important;
  font-size: .75rem !important;
  min-height: 34px !important;
  padding: 6px 10px !important;
  text-decoration: none !important;
}
.atlas-musical-v6 .am-custom-game { min-height: 62px !important; padding: 8px 10px !important; }
.atlas-musical-v6 .am-custom-game-icon {
  background: var(--music-paper-soft) !important;
  border-color: var(--music-line) !important;
  height: 35px !important;
  width: 35px !important;
}
.atlas-musical-v6 .am-custom-launch { margin-top: 13px !important; }
.atlas-musical-v6 .am-custom-round-option input:checked + span { box-shadow: 0 6px 14px rgba(84, 66, 54, .14) !important; }
.atlas-musical-v6 .am-v611-dashboard { gap: 10px !important; }
.atlas-musical-v6 .am-v611-coming > span {
  background: var(--music-teal-soft) !important;
  border: 1px solid rgba(77, 137, 136, .22) !important;
  border-radius: 9px !important;
  color: #456f6e !important;
}
.atlas-musical-v6 .am-footer { padding-block: 16px !important; }

/* En direct : même coquille que le Solo, sans grande zone vide avant l’action. */
.arcade-musicale-live .aml-header { min-height: 68px; padding-block: 8px !important; }
.arcade-musicale-live .aml-brand-mark { height: 41px; width: 41px; }
.arcade-musicale-live .aml-main {
  min-height: calc(100svh - 128px) !important;
  padding: clamp(18px, 2.3vw, 28px) 16px 34px !important;
}
.arcade-musicale-live .aml-intro { gap: 14px; }
.arcade-musicale-live .aml-live-hero { max-width: 700px; }
.arcade-musicale-live .aml-live-hero .aml-eyebrow { margin-bottom: 8px; }
.arcade-musicale-live .aml-live-hero h1 {
  font-size: clamp(2.6rem, 4.6vw, 4rem) !important;
  line-height: 1.02 !important;
  margin-bottom: 10px;
  text-wrap: balance;
}
.arcade-musicale-live .aml-live-hero p {
  font-size: clamp(.94rem, 1.25vw, 1.04rem) !important;
  line-height: 1.58 !important;
  max-width: 60ch;
  text-wrap: balance;
}
.arcade-musicale-live .aml-entry-switch {
  margin-block: 10px 12px;
  max-width: 610px;
}
.arcade-musicale-live .aml-entry-switch-button { min-height: 52px; padding-block: 7px !important; }
.arcade-musicale-live .aml-entry-grid { max-width: 830px !important; }
.arcade-musicale-live .aml-player-entry,
.arcade-musicale-live .aml-host-entry { padding: clamp(22px, 2.8vw, 30px) !important; }
.arcade-musicale-live .aml-entry-heading { gap: 12px; }
.arcade-musicale-live .aml-entry-heading .aml-card-badge { flex-basis: 43px; height: 43px; width: 43px; }
.arcade-musicale-live .aml-entry-heading h2 { font-size: clamp(1.55rem, 2.3vw, 2rem) !important; }
.arcade-musicale-live .aml-player-entry > p,
.arcade-musicale-live .aml-host-entry > p { margin-top: 11px; }
.arcade-musicale-live .aml-form { gap: 12px; margin-top: 16px; }
.arcade-musicale-live .aml-player-entry .aml-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.arcade-musicale-live .aml-player-entry .aml-form > :is(.aml-audio-primer, .aml-privacy-note, .aml-join-button, .aml-inline-error) { grid-column: 1 / -1; }
.arcade-musicale-live .aml-field input,
.arcade-musicale-live .aml-field select { min-height: 50px; }
.arcade-musicale-live .aml-code-input { min-height: 54px !important; }
.arcade-musicale-live .aml-audio-primer,
.arcade-musicale-live .aml-privacy-note { margin: 0; padding: 9px 11px; }
.arcade-musicale-live .aml-join-button { min-height: 50px; }
.arcade-musicale-live .aml-footer { min-height: 62px; padding-block: 12px; }

/* Salle, question et bilans : composants plus compacts, titres sans césure. */
.arcade-musicale-live .aml-room { gap: 13px; }
.arcade-musicale-live .aml-roombar { min-height: 62px; padding: 10px 14px; }
.arcade-musicale-live .aml-room-code span { font-size: .75rem; text-transform: none; }
.arcade-musicale-live .aml-room-code strong { font-size: 1.55rem; }
.arcade-musicale-live .aml-roombar .aml-button { min-height: 44px; }
.arcade-musicale-live .aml-room-progress { min-height: 38px; padding-block: 6px; }
.arcade-musicale-live .aml-lobby-grid { gap: 13px !important; }
.arcade-musicale-live .aml-lobby-side { gap: 13px; }
.arcade-musicale-live .aml-code-stage { min-height: 286px; padding: 24px !important; }
.arcade-musicale-live .aml-code-stage > strong { font-size: clamp(3rem, 8vw, 5.2rem); margin-block: 10px 14px; }
.arcade-musicale-live .aml-code-stage > p { margin-bottom: 14px; }
.arcade-musicale-live .aml-lobby-action,
.arcade-musicale-live .aml-sound-card { padding: 17px !important; }
.arcade-musicale-live .aml-question-layout { gap: 13px !important; }
.arcade-musicale-live .aml-question-card {
  min-height: 0;
  padding: clamp(19px, 2.6vw, 30px) !important;
}
.arcade-musicale-live .aml-question-head { margin-bottom: 15px; }
.arcade-musicale-live .aml-timer-wrap { margin-bottom: 14px; }
.arcade-musicale-live .aml-timer { min-height: 50px; min-width: 100px; }
.arcade-musicale-live .aml-question-card h1 {
  font-size: clamp(1.75rem, 3.25vw, 2.7rem) !important;
  hyphens: none;
  line-height: 1.08 !important;
  margin-bottom: 11px;
  overflow-wrap: normal;
  text-wrap: balance;
  word-break: normal;
}
.arcade-musicale-live .aml-context { margin-bottom: 15px; }
.arcade-musicale-live .aml-audio-box { margin-bottom: 13px; }
.arcade-musicale-live .aml-choice-grid { gap: 9px; }
.arcade-musicale-live .aml-choice { min-height: 60px; padding: 9px 11px; }
.arcade-musicale-live .aml-answered {
  min-height: 0;
  margin-top: 13px;
  padding: 14px 16px;
}
.arcade-musicale-live .aml-answered > div > strong { font-size: clamp(1.05rem, 2.3vw, 1.35rem); }
.arcade-musicale-live .aml-answered b { padding: 8px 10px; }
.arcade-musicale-live .aml-side-stack { gap: 13px; }
.arcade-musicale-live .aml-stat-card { padding: 18px !important; }

.arcade-musicale-live .aml-reveal-card { min-height: 0; padding-block: clamp(27px, 4vw, 42px); }
.arcade-musicale-live .aml-reveal-card h1,
.arcade-musicale-live .aml-live-ranking h1 {
  hyphens: none;
  line-height: 1.06;
  overflow-wrap: normal;
  text-wrap: balance;
  word-break: normal;
}
.arcade-musicale-live .aml-learning { margin-top: 14px; }
.arcade-musicale-live .aml-ranking { margin-top: 15px; }
.arcade-musicale-live .aml-ranking li { min-height: 54px; }
.arcade-musicale-live .aml-final-stage { min-height: 410px; padding: 30px 22px 0; }
.arcade-musicale-live .aml-final-stage h1 { font-size: clamp(2rem, 4.2vw, 3.45rem); }
.arcade-musicale-live .aml-final-podium { margin-top: clamp(24px, 4vw, 38px); }
.arcade-musicale-live .aml-podium-place { animation-duration: .58s; animation-delay: 0s; }
.arcade-musicale-live .aml-podium-place.is-slot-2 { animation-delay: .06s; }
.arcade-musicale-live .aml-podium-place.is-slot-1 { animation-delay: .13s; }
.arcade-musicale-live .aml-podium-place.is-slot-3 { animation-delay: .2s; }
.arcade-musicale-live .aml-podium-medal { animation-delay: .12s; }
.arcade-musicale-live .aml-report-grid { gap: 13px; }
.arcade-musicale-live .aml-results { gap: 13px; }

@keyframes aml-podium-rise {
  from { opacity: 1; transform: translateY(28px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes aml-medal-pop {
  from { opacity: 1; transform: scale(.82) rotate(-6deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}

@media (max-width: 900px) {
  .atlas-musical .am-mode-option,
  .atlas-musical .am-mode-option.is-live { min-height: 190px; }
  .atlas-musical-v6 .am-custom-session {
    gap: 20px !important;
    grid-template-columns: 1fr !important;
    padding: 24px !important;
  }
  .atlas-musical-v6 .am-custom-intro { max-width: 680px !important; }
  .atlas-musical-v6 .am-custom-intro h1 { max-width: 14ch; }
  .arcade-musicale-live .aml-lobby-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 680px) {
  .atlas-musical .am-mode-gate { align-items: flex-start; overflow-y: auto; padding: max(8px, env(safe-area-inset-top)) 7px max(8px, env(safe-area-inset-bottom)); }
  .atlas-musical .am-mode-panel { border-radius: 13px; padding: 22px 12px 17px; }
  .atlas-musical .am-mode-kicker { font-size: .75rem; }
  .atlas-musical .am-mode-panel h1 { font-size: clamp(2.2rem, 10vw, 2.9rem); margin-top: 12px; }
  .atlas-musical .am-mode-panel > p { font-size: .9rem; line-height: 1.52; }
  .atlas-musical .am-mode-options { gap: 10px; margin-block: 17px 11px; }
  .atlas-musical .am-mode-option,
  .atlas-musical .am-mode-option.is-live {
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 154px !important;
    padding: 14px 13px;
  }
  .atlas-musical .am-mode-icon { height: 46px; width: 46px; }
  .atlas-musical .am-mode-option strong { font-size: 1.4rem; }
  .atlas-musical .am-mode-option em { font-size: .77rem; line-height: 1.45; }

  .atlas-musical-v6 .am-topbar { min-height: 58px !important; padding-block: 7px !important; }
  .atlas-musical-v6 .am-brand-mark { height: 37px !important; width: 37px !important; }
  .atlas-musical-v6 .am-primary-nav { margin-top: 7px !important; }
  .atlas-musical-v6 .am-primary-nav :is(button, a) { min-height: 40px !important; }
  .atlas-musical-v6 .am-main { padding: 11px 8px 28px !important; }
  .atlas-musical-v6 .am-v611-hud { min-height: 62px !important; padding: 8px 10px !important; }
  .atlas-musical-v6 .am-custom-session { gap: 16px !important; padding: 18px 12px !important; }
  .atlas-musical-v6 .am-custom-kicker { margin-bottom: 9px !important; }
  .atlas-musical-v6 .am-custom-intro h1 { font-size: clamp(2.1rem, 10vw, 2.7rem) !important; margin-bottom: 10px !important; max-width: 13ch; }
  .atlas-musical-v6 .am-custom-intro > p { font-size: .84rem !important; line-height: 1.55 !important; }
  .atlas-musical-v6 .am-custom-benefits { margin-top: 13px !important; }
  .atlas-musical-v6 .am-custom-benefits > span { padding: 7px !important; }
  .atlas-musical-v6 .am-custom-form { padding: 13px !important; }
  .atlas-musical-v6 .am-custom-game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .atlas-musical-v6 .am-custom-game { gap: 7px !important; min-height: 56px !important; padding: 7px !important; }
  .atlas-musical-v6 .am-custom-game-icon { height: 31px !important; width: 31px !important; }
  .atlas-musical-v6 .am-custom-game-copy small { display: none; }
  .atlas-musical-v6 .am-custom-launch { margin-top: 10px !important; }

  .arcade-musicale-live .aml-header { min-height: 58px; padding-block: 6px !important; }
  .arcade-musicale-live .aml-brand-mark { height: 37px; width: 37px; }
  .arcade-musicale-live .aml-main { min-height: calc(100svh - 112px) !important; padding: 10px 7px 24px !important; }
  .arcade-musicale-live .aml-intro { gap: 10px; }
  .arcade-musicale-live .aml-live-hero .aml-eyebrow { font-size: .75rem; margin-bottom: 5px; }
  .arcade-musicale-live .aml-live-hero h1 { font-size: clamp(2.15rem, 10.5vw, 2.75rem) !important; margin-bottom: 6px; }
  .arcade-musicale-live .aml-live-hero p { font-size: .86rem !important; line-height: 1.48 !important; }
  .arcade-musicale-live .aml-entry-switch { margin-block: 7px 9px; padding: 4px; }
  .arcade-musicale-live .aml-entry-switch-button { min-height: 48px; padding: 6px 8px !important; }
  .arcade-musicale-live .aml-entry-switch-button .aml-ui-icon { height: 20px; width: 20px; }
  .arcade-musicale-live .aml-player-entry,
  .arcade-musicale-live .aml-host-entry { border-radius: 12px !important; padding: 16px 13px !important; }
  .arcade-musicale-live .aml-entry-heading .aml-card-badge { flex-basis: 39px; height: 39px; width: 39px; }
  .arcade-musicale-live .aml-entry-heading h2 { font-size: 1.45rem !important; }
  .arcade-musicale-live .aml-player-entry > p,
  .arcade-musicale-live .aml-host-entry > p { font-size: .82rem; line-height: 1.5 !important; margin-top: 8px; }
  .arcade-musicale-live .aml-form { gap: 10px; margin-top: 12px; }
  .arcade-musicale-live .aml-player-entry .aml-form { grid-template-columns: 1fr; }
  .arcade-musicale-live .aml-player-entry .aml-form > * { grid-column: 1; }
  .arcade-musicale-live .aml-field input,
  .arcade-musicale-live .aml-field select,
  .arcade-musicale-live .aml-code-input { min-height: 48px !important; }
  .arcade-musicale-live .aml-audio-primer,
  .arcade-musicale-live .aml-privacy-note { font-size: .75rem; padding: 8px 9px; }
  .arcade-musicale-live .aml-footer { min-height: 54px; padding-block: 10px; }

  .arcade-musicale-live .aml-room { gap: 9px; }
  .arcade-musicale-live .aml-roombar {
    align-items: center !important;
    display: grid;
    gap: 7px 10px;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 56px;
    padding: 8px 9px !important;
  }
  .arcade-musicale-live .aml-roombar-main { align-items: flex-start; display: grid; gap: 3px; }
  .arcade-musicale-live .aml-room-code { align-items: baseline; flex-direction: row; gap: 6px; }
  .arcade-musicale-live .aml-room-code strong { font-size: 1.13rem !important; letter-spacing: .1em; }
  .arcade-musicale-live .aml-room-phase { font-size: .75rem; justify-self: start; max-width: 100%; padding: 4px 6px; text-align: left; }
  .arcade-musicale-live .aml-roombar-actions { justify-self: end; }
  .arcade-musicale-live .aml-code-stage { min-height: 250px; padding: 18px 13px !important; }
  .arcade-musicale-live .aml-code-stage > strong { font-size: clamp(2.35rem, 13vw, 3.55rem); margin-block: 8px 11px; }
  .arcade-musicale-live .aml-lobby-action,
  .arcade-musicale-live .aml-sound-card { padding: 14px !important; }
  .arcade-musicale-live .aml-question-card { padding: 17px 11px !important; }
  .arcade-musicale-live .aml-question-head { margin-bottom: 10px; }
  .arcade-musicale-live .aml-timer-wrap { margin-bottom: 9px; }
  .arcade-musicale-live .aml-timer { min-height: 44px; min-width: 86px; }
  .arcade-musicale-live .aml-question-card h1 { font-size: clamp(1.45rem, 7vw, 1.9rem) !important; line-height: 1.1 !important; margin-bottom: 9px; }
  .arcade-musicale-live .aml-context { margin-bottom: 10px; padding: 9px 10px; }
  .arcade-musicale-live .aml-audio-box { margin-bottom: 9px; }
  .arcade-musicale-live .aml-choice { min-height: 56px !important; padding: 8px 9px; }
  .arcade-musicale-live .aml-answered { gap: 9px; margin-top: 9px; padding: 12px; }
  .arcade-musicale-live .aml-stat-card { padding: 14px !important; }
  .arcade-musicale-live .aml-reveal-card { padding-block: 24px; }
  .arcade-musicale-live .aml-reveal-card h1 { font-size: clamp(1.55rem, 7vw, 2rem); }
  .arcade-musicale-live .aml-live-ranking { padding: 18px 12px !important; }
  .arcade-musicale-live .aml-live-ranking h1 { font-size: clamp(1.65rem, 7vw, 2.15rem); }
  .arcade-musicale-live .aml-ranking li { min-height: 52px; }
  .arcade-musicale-live .aml-final-stage { min-height: 350px; padding: 22px 10px 0; }
  .arcade-musicale-live .aml-final-stage h1 { font-size: clamp(1.8rem, 8vw, 2.35rem); }
  .arcade-musicale-live .aml-final-podium { margin-top: 24px; }
  .arcade-musicale-live .aml-report-grid > .aml-card { padding: 15px !important; }
}

@media (max-width: 390px) {
  .atlas-musical .am-mode-panel h1 { font-size: clamp(2rem, 10.5vw, 2.5rem); }
  .atlas-musical .am-mode-option,
  .atlas-musical .am-mode-option.is-live { min-height: 144px !important; }
  .arcade-musicale-live .aml-live-hero h1 { font-size: 2.2rem !important; }
  .arcade-musicale-live .aml-entry-switch-button strong { font-size: .89rem; }
  .arcade-musicale-live .aml-entry-switch-button small { display: block; font-size: .75rem; }
  .arcade-musicale-live .aml-question-kicker { max-width: 67%; }
}

@media (max-width: 340px) {
  .atlas-musical-v6 .am-custom-game-grid { grid-template-columns: 1fr !important; }
  .arcade-musicale-live .aml-entry-switch-button small { display: none; }
  .arcade-musicale-live .aml-entry-switch-button { grid-template-columns: auto 1fr; }
}

@media (max-height: 560px) and (orientation: landscape) and (min-width: 620px) {
  .atlas-musical .am-mode-gate { align-items: flex-start; overflow-y: auto; padding: 8px; }
  .atlas-musical .am-mode-panel { padding: 18px 22px; }
  .atlas-musical .am-mode-panel h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-top: 8px; }
  .atlas-musical .am-mode-panel > p { font-size: .84rem; line-height: 1.4; }
  .atlas-musical .am-mode-options { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-block: 13px 8px; }
  .atlas-musical .am-mode-option,
  .atlas-musical .am-mode-option.is-live { min-height: 132px !important; padding: 12px 14px; }
  .atlas-musical .am-mode-icon { height: 42px; width: 42px; }
  .atlas-musical .am-mode-tags { display: none; }
  .atlas-musical-v6 .am-main { padding-top: 9px !important; }
  .atlas-musical-v6 .am-v611-hud { display: none !important; }
  .atlas-musical-v6 .am-custom-session {
    gap: 16px !important;
    grid-template-columns: minmax(220px, .7fr) minmax(420px, 1.3fr) !important;
    padding: 15px !important;
  }
  .atlas-musical-v6 .am-custom-intro h1 { font-size: 2.1rem !important; }
  .atlas-musical-v6 .am-custom-benefits { display: none; }
  .atlas-musical-v6 .am-custom-form { padding: 12px !important; }
  .atlas-musical-v6 .am-custom-game { min-height: 48px !important; }
  .arcade-musicale-live .aml-main { padding-top: 8px !important; }
  .arcade-musicale-live .aml-live-hero { display: none; }
  .arcade-musicale-live .aml-entry-switch { margin-top: 0; }
  .arcade-musicale-live .aml-question-card { padding: 14px !important; }
  .arcade-musicale-live .aml-question-head,
  .arcade-musicale-live .aml-timer-wrap { margin-bottom: 6px; }
  .arcade-musicale-live .aml-question-card h1 { font-size: 1.3rem !important; margin-bottom: 6px; }
  .arcade-musicale-live .aml-choice { min-height: 50px !important; }
}

/* -------------------------------------------------------------------------- */
/* 8.3.4 · états de jeu, Orchestra Builder, classements et bilans             */
/* -------------------------------------------------------------------------- */

/* Les pictogrammes gardent une couleur maîtrisée même face aux styles SVG du thème. */
.arcade-musicale-live .aml-ui-icon {
  color: inherit !important;
  fill: none !important;
  stroke: currentColor !important;
}
.arcade-musicale-live .aml-ui-icon :is(path, circle, rect, line, polyline, polygon) {
  fill: none !important;
  stroke: currentColor !important;
}

/* Orchestra Builder : choix tactiles clairs et véritable plan de scène. */
.arcade-musicale-live .aml-orchestra-stage-map {
  background: linear-gradient(180deg, #faf6ef 0%, #ece5da 100%);
  border: 1px solid var(--music-line);
  border-radius: 15px;
  box-shadow: inset 0 1px rgba(255, 255, 255, .8);
  margin: 14px auto 16px;
  max-width: 930px;
  overflow: hidden;
  padding: 14px;
}
.arcade-musicale-live .aml-orchestra-stage-map > header {
  align-items: baseline;
  display: flex;
  gap: 9px;
  justify-content: space-between;
  margin-bottom: 10px;
}
.arcade-musicale-live .aml-orchestra-stage-map > header span {
  color: var(--music-teal);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .12em;
}
.arcade-musicale-live .aml-orchestra-stage-map > header strong {
  color: var(--music-muted);
  font-size: .76rem;
  font-weight: 700;
}
.arcade-musicale-live .aml-orchestra-stage-shell {
  align-items: center;
  background:
    radial-gradient(ellipse at 50% 108%, rgba(197, 154, 74, .18), transparent 34%),
    linear-gradient(180deg, rgba(255, 253, 248, .78), rgba(237, 230, 219, .72));
  border: 1px solid rgba(84, 66, 54, .14);
  border-radius: 80px 80px 13px 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 230px;
  padding: 15px 12px 11px;
  position: relative;
}
.arcade-musicale-live .aml-orchestra-stage-zone {
  align-items: center;
  background: rgba(255, 253, 248, .9);
  border: 1px solid rgba(84, 66, 54, .16);
  border-radius: 60px 60px 10px 10px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(88px, .38fr) minmax(0, 1fr);
  min-height: 42px;
  padding: 6px 12px;
  width: 68%;
}
.arcade-musicale-live .aml-orchestra-stage-zone:nth-child(1) { background: #f2e4dc; border-color: rgba(173, 111, 91, .28); }
.arcade-musicale-live .aml-orchestra-stage-zone:nth-child(2) { background: #e8eaf0; border-color: rgba(120, 107, 154, .25); width: 76%; }
.arcade-musicale-live .aml-orchestra-stage-zone:nth-child(3) { background: #e3edef; border-color: rgba(77, 137, 136, .25); width: 84%; }
.arcade-musicale-live .aml-orchestra-stage-zone:nth-child(4) { background: #f5ead5; border-color: rgba(197, 154, 74, .3); width: 92%; }
.arcade-musicale-live .aml-orchestra-zone-copy :is(b, small) { display: block; }
.arcade-musicale-live .aml-orchestra-zone-copy b { color: var(--music-brown-deep); font-size: .75rem; letter-spacing: .08em; }
.arcade-musicale-live .aml-orchestra-zone-copy small { color: var(--music-muted); font-size: .75rem; margin-top: 1px; }
.arcade-musicale-live .aml-orchestra-zone-instruments {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
}
.arcade-musicale-live .aml-orchestra-zone-instruments > span {
  align-items: center;
  background: rgba(255, 255, 255, .84);
  border: 1px solid rgba(84, 66, 54, .14);
  border-radius: 999px;
  color: var(--music-brown-deep);
  display: inline-flex;
  font-size: .75rem;
  gap: 5px;
  padding: 4px 8px;
}
.arcade-musicale-live .aml-orchestra-zone-instruments i { font-size: 1rem; font-style: normal; }
.arcade-musicale-live .aml-orchestra-zone-instruments em { color: var(--music-muted); font-size: .75rem; font-style: normal; }
.arcade-musicale-live .aml-orchestra-conductor {
  align-items: center;
  color: var(--music-brown-deep);
  display: flex;
  flex-direction: column;
  font-size: .75rem;
  gap: 0;
  letter-spacing: .12em;
  margin-top: 1px;
}
.arcade-musicale-live .aml-orchestra-conductor span {
  align-items: center;
  background: var(--music-brown);
  border-radius: 50%;
  color: #fffdf8;
  display: flex;
  font-size: 1rem;
  height: 29px;
  justify-content: center;
  width: 29px;
}
.arcade-musicale-live .aml-orchestra-list {
  gap: 10px !important;
  margin: 0 auto !important;
  max-width: 930px !important;
}
.arcade-musicale-live .aml-orchestra-row {
  background: var(--music-paper-strong) !important;
  border: 1px solid var(--music-line) !important;
  border-radius: 13px !important;
  display: block !important;
  margin: 0;
  min-width: 0;
  padding: 11px !important;
}
.arcade-musicale-live .aml-orchestra-row legend {
  align-items: center;
  color: var(--music-brown-deep);
  display: flex;
  font-size: .88rem;
  gap: 7px;
  margin: 0 0 8px;
  padding: 0 3px;
}
.arcade-musicale-live .aml-orchestra-row legend > span { font-size: 1.15rem; }
.arcade-musicale-live .aml-orchestra-zone-options {
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.arcade-musicale-live .aml-orchestra-zone-choice {
  background: var(--music-paper-soft) !important;
  border: 1px solid var(--music-line) !important;
  border-radius: 9px !important;
  color: var(--music-brown) !important;
  cursor: pointer;
  min-height: 48px;
  padding: 6px 5px !important;
  text-align: center;
}
.arcade-musicale-live .aml-orchestra-zone-choice :is(strong, small) { display: block; }
.arcade-musicale-live .aml-orchestra-zone-choice strong { color: inherit !important; font-size: .75rem; letter-spacing: .04em; }
.arcade-musicale-live .aml-orchestra-zone-choice small { color: var(--music-muted) !important; font-size: .75rem; line-height: 1.25; margin-top: 2px; }
.arcade-musicale-live .aml-orchestra-zone-choice:hover:not(:disabled) { border-color: var(--music-teal) !important; transform: translateY(-1px); }
.arcade-musicale-live .aml-orchestra-zone-choice.is-selected {
  background: var(--music-teal) !important;
  border-color: var(--music-teal) !important;
  box-shadow: 0 5px 14px rgba(77, 137, 136, .2) !important;
  color: #fffdf8 !important;
}
.arcade-musicale-live .aml-orchestra-zone-choice.is-selected small { color: #eaf6f5 !important; }
.arcade-musicale-live .aml-orchestra-selection {
  color: var(--music-teal);
  display: block;
  font-size: .75rem;
  font-weight: 800;
  margin: 7px 2px 0;
}

/* Correction : états juste, faux et temps écoulé volontairement distincts. */
.arcade-musicale-live .aml-reveal-card {
  border-left-width: 6px !important;
  overflow: hidden;
  padding: clamp(22px, 3.5vw, 38px) !important;
}
.arcade-musicale-live .aml-reveal-card.is-correct { background: linear-gradient(135deg, #fbfdf9, #eef4eb) !important; border-left-color: var(--music-sage) !important; }
.arcade-musicale-live .aml-reveal-card.is-wrong { background: linear-gradient(135deg, #fffdf9, #f7e9e3) !important; border-left-color: var(--music-clay) !important; }
.arcade-musicale-live .aml-reveal-card.is-timeout { background: linear-gradient(135deg, #fffdf8, #f7edd9) !important; border-left-color: var(--music-gold) !important; }
.arcade-musicale-live .aml-reveal-card.is-neutral { background: var(--music-paper-strong) !important; border-left-color: var(--music-teal) !important; }
.arcade-musicale-live .aml-feedback-status {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin: 0 auto;
  max-width: 960px;
}
.arcade-musicale-live .aml-feedback-status .aml-result-mark {
  border: 0 !important;
  box-shadow: none !important;
  height: 58px;
  margin: 0 !important;
  width: 58px;
}
.arcade-musicale-live .aml-feedback-status .aml-result-mark .aml-ui-icon { height: 28px; width: 28px; }
.arcade-musicale-live .aml-reveal-card.is-correct .aml-result-mark { background: var(--music-sage) !important; color: #fffdf8 !important; }
.arcade-musicale-live .aml-reveal-card.is-wrong .aml-result-mark { background: var(--music-clay) !important; color: #fffdf8 !important; }
.arcade-musicale-live .aml-reveal-card.is-timeout .aml-result-mark { background: var(--music-gold) !important; color: #fffdf8 !important; }
.arcade-musicale-live .aml-reveal-card.is-neutral .aml-result-mark { background: var(--music-teal) !important; color: #fffdf8 !important; }
.arcade-musicale-live .aml-feedback-status .aml-eyebrow { display: block; margin-bottom: 3px; }
.arcade-musicale-live .aml-reveal-card.is-correct .aml-eyebrow { color: #5c7557 !important; }
.arcade-musicale-live .aml-reveal-card.is-wrong .aml-eyebrow { color: #8c503f !important; }
.arcade-musicale-live .aml-reveal-card.is-timeout .aml-eyebrow { color: #8b6b30 !important; }
.arcade-musicale-live .aml-feedback-status h1 { font-size: clamp(1.65rem, 3.5vw, 2.65rem) !important; margin: 0 0 3px !important; }
.arcade-musicale-live .aml-reveal-card.is-wrong .aml-feedback-status h1 { color: #7f4637 !important; }
.arcade-musicale-live .aml-feedback-status p { color: var(--music-muted); margin: 0; }
.arcade-musicale-live .aml-feedback-points {
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--music-line);
  border-radius: 12px;
  color: var(--music-brown-deep);
  font-size: 1.35rem;
  min-width: 92px;
  padding: 9px 11px;
  text-align: center;
}
.arcade-musicale-live .aml-feedback-points small { color: var(--music-muted); display: block; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.arcade-musicale-live .aml-question-recap {
  align-items: baseline;
  background: rgba(255, 255, 255, .6);
  border: 1px solid var(--music-line);
  border-radius: 11px;
  display: flex;
  gap: 9px;
  margin: 18px auto 12px !important;
  max-width: 960px;
  padding: 9px 12px;
}
.arcade-musicale-live .aml-question-recap span { color: var(--music-muted); flex: 0 0 auto; font-size: .75rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.arcade-musicale-live .aml-question-recap strong { color: var(--music-brown-deep); font-size: .82rem; }
.arcade-musicale-live .aml-answer-comparison {
  display: grid;
  gap: 11px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 960px;
}
.arcade-musicale-live .aml-answer-comparison.is-single { grid-template-columns: 1fr; }
.arcade-musicale-live .aml-answer-panel {
  background: rgba(255, 255, 255, .74);
  border: 1px solid var(--music-line);
  border-radius: 13px;
  min-width: 0;
  padding: 14px 15px;
}
.arcade-musicale-live .aml-answer-panel > span { align-items: center; display: flex; font-size: .75rem; font-weight: 900; gap: 6px; letter-spacing: .08em; text-transform: uppercase; }
.arcade-musicale-live .aml-answer-panel > span .aml-ui-icon { height: 17px; width: 17px; }
.arcade-musicale-live .aml-answer-panel > strong { color: var(--music-brown-deep); display: block; font-size: clamp(.98rem, 2vw, 1.25rem); line-height: 1.3; margin-top: 7px; overflow-wrap: anywhere; }
.arcade-musicale-live .aml-answer-panel > small { color: var(--music-muted); display: block; font-size: .75rem; margin-top: 5px; }
.arcade-musicale-live .aml-answer-panel.is-correct { background: var(--music-sage-soft); border-color: rgba(132, 151, 127, .42); box-shadow: inset 4px 0 var(--music-sage); }
.arcade-musicale-live .aml-answer-panel.is-correct > span { color: #53664f; }
.arcade-musicale-live .aml-answer-panel.is-user-wrong { background: var(--music-clay-soft); border-color: rgba(173, 111, 91, .38); box-shadow: inset 4px 0 var(--music-clay); }
.arcade-musicale-live .aml-answer-panel.is-user-wrong > span { color: #8a4e3d; }
.arcade-musicale-live .aml-answer-panel.is-user-timeout { background: #f7edda; border-color: rgba(197, 154, 74, .4); box-shadow: inset 4px 0 var(--music-gold); }
.arcade-musicale-live .aml-answer-panel.is-user-timeout > span { color: #80632d; }
.arcade-musicale-live .aml-reveal-card .aml-learning { margin-top: 13px; max-width: 960px; }
.arcade-musicale-live .aml-reveal-card .aml-source { margin-inline: auto; max-width: 960px; }

/* Classement intermédiaire : podium compact, top 5 et position personnelle. */
.arcade-musicale-live .aml-live-ranking {
  background: linear-gradient(155deg, #fffdf8 0%, #eee8df 100%) !important;
  border-top: 5px solid var(--music-violet) !important;
  max-width: 980px !important;
  padding: clamp(20px, 3.5vw, 34px) !important;
  text-align: left !important;
}
.arcade-musicale-live .aml-ranking-head {
  align-items: center;
  display: grid;
  gap: 15px;
  grid-template-columns: minmax(0, 1fr) auto;
}
.arcade-musicale-live .aml-ranking-head .aml-eyebrow { color: var(--music-violet) !important; }
.arcade-musicale-live .aml-ranking-head h1 { font-size: clamp(1.8rem, 4vw, 3rem) !important; margin: 3px 0 5px; }
.arcade-musicale-live .aml-ranking-head p { color: var(--music-muted); margin: 0; }
.arcade-musicale-live .aml-ranking-my-position {
  background: var(--music-teal-soft);
  border: 1px solid rgba(77, 137, 136, .3);
  border-radius: 999px;
  color: #456f6e;
  display: inline-flex;
  font-size: .75rem;
  gap: 4px;
  margin-top: 8px;
  padding: 5px 9px;
}
.arcade-musicale-live .aml-ranking-my-position strong { color: var(--music-brown-deep); }
.arcade-musicale-live .aml-ranking-countdown {
  align-items: center;
  background: var(--music-brown-deep);
  border-radius: 50%;
  color: #fffdf8;
  display: flex;
  flex-direction: column;
  height: 78px;
  justify-content: center;
  width: 78px;
}
.arcade-musicale-live .aml-ranking-countdown strong { font-size: 1.75rem; line-height: .9; }
.arcade-musicale-live .aml-ranking-countdown small { color: #ded4ca; font-size: .75rem; margin-top: 5px; text-transform: uppercase; }
.arcade-musicale-live .aml-live-leaders {
  align-items: end;
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 32px 0 14px;
}
.arcade-musicale-live .aml-live-leader {
  align-items: center;
  background: rgba(255, 255, 255, .78);
  border: 1px solid var(--music-line);
  border-radius: 14px;
  box-shadow: var(--music-shadow-sm);
  display: flex;
  flex-direction: column;
  min-height: 132px;
  min-width: 0;
  padding: 14px 10px 0;
  position: relative;
}
.arcade-musicale-live .aml-live-leader.is-slot-1 { background: linear-gradient(180deg, #fffaf0, #f4e4bc); border-color: rgba(197, 154, 74, .4); grid-column: 2; grid-row: 1; min-height: 152px; }
.arcade-musicale-live .aml-live-leader.is-slot-2 { background: linear-gradient(180deg, #fbfcfd, #e4e9ee); grid-column: 1; grid-row: 1; }
.arcade-musicale-live .aml-live-leader.is-slot-3 { background: linear-gradient(180deg, #fffaf7, #edddd3); grid-column: 3; grid-row: 1; }
.arcade-musicale-live .aml-live-leader.is-me { box-shadow: 0 0 0 3px rgba(77, 137, 136, .28), var(--music-shadow-sm); }
.arcade-musicale-live .aml-live-leader-medal {
  align-items: center;
  background: var(--music-paper-strong);
  border: 1px solid var(--music-line);
  border-radius: 50%;
  color: var(--music-violet);
  display: flex;
  height: 38px;
  justify-content: center;
  margin-bottom: 7px;
  width: 38px;
}
.arcade-musicale-live .aml-live-leader.is-slot-1 .aml-live-leader-medal { background: var(--music-gold); border-color: var(--music-gold); color: #fffdf8; }
.arcade-musicale-live .aml-live-leader.is-slot-2 .aml-live-leader-medal { background: var(--music-slate); border-color: var(--music-slate); color: #fff; }
.arcade-musicale-live .aml-live-leader.is-slot-3 .aml-live-leader-medal { background: var(--music-clay); border-color: var(--music-clay); color: #fff; }
.arcade-musicale-live .aml-live-leader-medal .aml-ui-icon { height: 20px; width: 20px; }
.arcade-musicale-live .aml-live-leader > strong { color: var(--music-brown-deep); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arcade-musicale-live .aml-live-leader > small { color: var(--music-muted); font-size: .75rem; margin-top: 2px; }
.arcade-musicale-live .aml-live-leader-rank {
  align-items: baseline;
  background: var(--music-brown-deep);
  border-radius: 10px 10px 0 0;
  color: #fffdf8;
  display: flex;
  font-size: 1.45rem;
  justify-content: center;
  margin-top: auto;
  min-height: 43px;
  padding-top: 8px;
  width: min(112px, 78%);
}
.arcade-musicale-live .aml-live-leader-rank sup { font-size: .75rem; margin-left: 1px; }
.arcade-musicale-live .aml-ranking-following > span { color: var(--music-muted); display: block; font-size: .75rem; font-weight: 900; letter-spacing: .1em; margin: 0 0 -7px 2px; text-transform: uppercase; }
.arcade-musicale-live .aml-ranking li.is-rank-1 .aml-rank { background: var(--music-gold) !important; color: #fffdf8 !important; }
.arcade-musicale-live .aml-ranking li.is-rank-2 .aml-rank { background: var(--music-slate) !important; color: #fff !important; }
.arcade-musicale-live .aml-ranking li.is-rank-3 .aml-rank { background: var(--music-clay) !important; color: #fff !important; }
.arcade-musicale-live .aml-ranking li.is-me { box-shadow: inset 4px 0 var(--music-teal) !important; }
.arcade-musicale-live .aml-live-ranking > .aml-phase-cue { display: flex !important; margin-top: 15px !important; width: fit-content; }

/* Podium et bilans : pictogrammes lisibles et cartes qui ne s’étirent plus. */
.arcade-musicale-live .aml-podium-medal {
  align-items: center;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  color: #fffdf8 !important;
  display: flex;
  filter: none !important;
  height: 50px;
  justify-content: center;
  width: 50px;
}
.arcade-musicale-live .aml-podium-medal.is-medal-1 { background: var(--music-gold); border-color: #f1d08a; color: #fff !important; }
.arcade-musicale-live .aml-podium-medal.is-medal-2 { background: var(--music-slate); border-color: #b9c4d0; color: #fff !important; }
.arcade-musicale-live .aml-podium-medal.is-medal-3 { background: var(--music-clay); border-color: #d8a692; color: #fff !important; }
.arcade-musicale-live .aml-podium-medal .aml-ui-icon { height: 26px !important; width: 26px !important; }
.arcade-musicale-live .aml-report-grid { align-items: start; }
.arcade-musicale-live .aml-report-grid > .aml-card { align-self: start; width: 100%; }
.arcade-musicale-live .aml-report-heading {
  align-items: flex-start;
  display: flex;
  gap: 11px;
}
.arcade-musicale-live .aml-report-heading-icon {
  align-items: center;
  background: var(--music-teal);
  border-radius: 11px;
  color: #fffdf8 !important;
  display: flex;
  flex: 0 0 42px;
  height: 42px;
  justify-content: center;
}
.arcade-musicale-live .aml-report-heading-icon .aml-ui-icon { height: 22px; width: 22px; }
.arcade-musicale-live .aml-report-heading > div > span { color: var(--music-teal); display: block; font-size: .75rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.arcade-musicale-live .aml-report-heading h2 { margin: 2px 0 3px; }
.arcade-musicale-live .aml-report-heading p { color: var(--music-muted); margin: 0; }
.arcade-musicale-live .aml-metric { border-left-width: 4px !important; }
.arcade-musicale-live .aml-metric.is-strong { background: var(--music-sage-soft) !important; border-left-color: var(--music-sage) !important; }
.arcade-musicale-live .aml-metric.is-mixed { background: #f7edda !important; border-left-color: var(--music-gold) !important; }
.arcade-musicale-live .aml-metric.is-low { background: var(--music-clay-soft) !important; border-left-color: var(--music-clay) !important; }
.arcade-musicale-live .aml-metric-label { align-items: center; display: flex !important; gap: 7px; }
.arcade-musicale-live .aml-metric-label > i {
  align-items: center;
  background: rgba(255, 255, 255, .72);
  border-radius: 8px;
  color: var(--music-teal) !important;
  display: flex;
  font-style: normal;
  height: 29px;
  justify-content: center;
  width: 29px;
}
.arcade-musicale-live .aml-metric-label > i .aml-ui-icon { height: 17px !important; width: 17px !important; }
.arcade-musicale-live .aml-review { border-left: 4px solid var(--music-line) !important; }
.arcade-musicale-live .aml-review.is-ok { border-left-color: var(--music-sage) !important; }
.arcade-musicale-live .aml-review.is-review { border-left-color: var(--music-clay) !important; }
.arcade-musicale-live .aml-review-icon {
  background: var(--music-teal-soft) !important;
  color: var(--music-teal) !important;
}
.arcade-musicale-live .aml-review.is-review .aml-review-icon { background: var(--music-clay-soft) !important; color: var(--music-clay) !important; }
.arcade-musicale-live .aml-review.is-ok .aml-review-icon { background: var(--music-sage-soft) !important; color: #5f765a !important; }
.arcade-musicale-live .aml-final-ranking .aml-eyebrow { color: var(--music-teal) !important; }
.arcade-musicale-live .aml-final-ranking h2 { margin-top: 3px; }

@media (max-width: 760px) {
  .arcade-musicale-live .aml-orchestra-stage-map > header { align-items: flex-start; flex-direction: column; gap: 2px; }
  .arcade-musicale-live .aml-orchestra-stage-shell { border-radius: 48px 48px 11px 11px; min-height: 218px; padding-inline: 5px; }
  .arcade-musicale-live .aml-orchestra-stage-zone { gap: 5px; grid-template-columns: minmax(62px, .4fr) minmax(0, 1fr); padding-inline: 7px; width: 76%; }
  .arcade-musicale-live .aml-orchestra-stage-zone:nth-child(2) { width: 83%; }
  .arcade-musicale-live .aml-orchestra-stage-zone:nth-child(3) { width: 90%; }
  .arcade-musicale-live .aml-orchestra-stage-zone:nth-child(4) { width: 97%; }
  .arcade-musicale-live .aml-orchestra-zone-copy small { display: none; }
  .arcade-musicale-live .aml-orchestra-zone-instruments > span { font-size: .75rem; padding: 3px 6px; }
  .arcade-musicale-live .aml-orchestra-list { grid-template-columns: 1fr !important; }
  .arcade-musicale-live .aml-feedback-status { align-items: flex-start; grid-template-columns: auto minmax(0, 1fr); }
  .arcade-musicale-live .aml-feedback-points { grid-column: 2; justify-self: start; }
  .arcade-musicale-live .aml-answer-comparison { grid-template-columns: 1fr; }
  .arcade-musicale-live .aml-question-recap { align-items: flex-start; flex-direction: column; gap: 3px; }
  .arcade-musicale-live .aml-live-leaders { margin-top: 24px; }
  .arcade-musicale-live .aml-live-leader { min-height: 122px; padding-inline: 6px; }
  .arcade-musicale-live .aml-live-leader.is-slot-1 { min-height: 139px; }
}

@media (max-width: 480px) {
  .arcade-musicale-live .aml-orchestra-stage-map { margin-inline: -3px; padding: 8px; }
  .arcade-musicale-live .aml-orchestra-stage-shell { min-height: 202px; }
  .arcade-musicale-live .aml-orchestra-stage-zone { min-height: 38px; width: 79%; }
  .arcade-musicale-live .aml-orchestra-stage-zone:nth-child(2) { width: 85%; }
  .arcade-musicale-live .aml-orchestra-stage-zone:nth-child(3) { width: 91%; }
  .arcade-musicale-live .aml-orchestra-stage-zone:nth-child(4) { width: 97%; }
  .arcade-musicale-live .aml-orchestra-zone-options { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .arcade-musicale-live .aml-orchestra-zone-choice { min-height: 46px; }
  .arcade-musicale-live .aml-orchestra-zone-choice small { display: none; }
  .arcade-musicale-live .aml-feedback-status .aml-result-mark { height: 46px; width: 46px; }
  .arcade-musicale-live .aml-feedback-status .aml-result-mark .aml-ui-icon { height: 23px; width: 23px; }
  .arcade-musicale-live .aml-feedback-status h1 { font-size: 1.55rem !important; }
  .arcade-musicale-live .aml-feedback-points { font-size: 1.05rem; min-width: 78px; padding: 7px 9px; }
  .arcade-musicale-live .aml-answer-panel { padding: 12px; }
  .arcade-musicale-live .aml-ranking-head { align-items: flex-start; }
  .arcade-musicale-live .aml-ranking-head h1 { font-size: 1.48rem !important; line-height: 1.08; }
  .arcade-musicale-live .aml-ranking-countdown { height: 62px; width: 62px; }
  .arcade-musicale-live .aml-ranking-countdown strong { font-size: 1.4rem; }
  .arcade-musicale-live .aml-ranking-countdown small { font-size: 0; margin-top: 2px; }
  .arcade-musicale-live .aml-ranking-countdown small::after { content: "s"; font-size: .75rem; text-transform: none; }
  .arcade-musicale-live .aml-ranking-head p { font-size: .75rem; }
  .arcade-musicale-live .aml-ranking-head > div { min-width: 0; }
  .arcade-musicale-live .aml-ranking-head:has(> .aml-manual-badge) > div {
    grid-column: 1 / -1;
    width: 100%;
  }
  .arcade-musicale-live .aml-ranking-head > .aml-manual-badge {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .arcade-musicale-live .aml-live-leaders { gap: 5px; }
  .arcade-musicale-live .aml-live-leader { border-radius: 11px; min-height: 112px; padding-top: 9px; }
  .arcade-musicale-live .aml-live-leader.is-slot-1 { min-height: 129px; }
  .arcade-musicale-live .aml-live-leader-medal { height: 31px; width: 31px; }
  .arcade-musicale-live .aml-live-leader-medal .aml-ui-icon { height: 17px; width: 17px; }
  .arcade-musicale-live .aml-live-leader > strong { font-size: .75rem; }
  .arcade-musicale-live .aml-live-leader > small { font-size: .75rem; }
  .arcade-musicale-live .aml-live-leader-rank { font-size: 1.15rem; min-height: 36px; width: 76%; }
  .arcade-musicale-live .aml-report-heading-icon { flex-basis: 36px; height: 36px; }
}

@media (max-width: 340px) {
  .arcade-musicale-live .aml-orchestra-zone-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .arcade-musicale-live .aml-orchestra-zone-choice small { display: block; }
}

/* -------------------------------------------------------------------------- */
/* 8.3.5 · contraste et densité des petits écrans                             */
/* -------------------------------------------------------------------------- */

/* Le thème du site applique une grande marge supérieure aux titres d’article.
   Les scènes Live doivent conserver leur propre rythme, y compris après un
   focus automatique sur la correction ou le classement. */
.arcade-musicale-live .aml-live-hero h1,
.arcade-musicale-live .aml-entry-heading h2,
.arcade-musicale-live .aml-question-card h1,
.arcade-musicale-live .aml-preflight h1,
.arcade-musicale-live .aml-reveal-card h1,
.arcade-musicale-live .aml-live-ranking h1,
.arcade-musicale-live .aml-final-stage h1 {
  margin-block-start: 0 !important;
}

.arcade-musicale-live .aml-preflight h1,
.arcade-musicale-live .aml-reveal-card h1,
.arcade-musicale-live .aml-live-ranking h1,
.arcade-musicale-live .aml-final-stage h1 {
  scroll-margin-top: 128px;
}

@media (max-width: 700px) {
  .arcade-musicale-live .aml-live-hero h1 { margin-bottom: 6px !important; }
  .arcade-musicale-live .aml-preflight h1,
  .arcade-musicale-live .aml-reveal-card h1,
  .arcade-musicale-live .aml-live-ranking h1,
  .arcade-musicale-live .aml-final-stage h1 { scroll-margin-top: 104px; }
}

@media (max-width: 420px) {
  /* La marque reste lisible ; le changement de mode devient une commande
     compacte sans perdre son nom accessible. */
  .atlas-musical-v6 .am-brand-copy { min-width: 0; }
  .atlas-musical-v6 .am-brand-copy strong {
    display: block;
    font-size: .94rem !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .atlas-musical-v6 .am-mode-change {
    flex: 0 0 42px;
    font-size: 0 !important;
    height: 42px;
    justify-content: center;
    padding: 0 !important;
    width: 42px;
  }
  .atlas-musical-v6 .am-mode-change > span { font-size: 1.05rem; }

  /* Quatre destinations explicites et de largeur égale, sans libellé coupé
     hors écran ni défilement horizontal invisible. */
  .atlas-musical-v6 .am-primary-nav.am-v6-nav {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(68px, 1fr));
    overflow: visible !important;
    padding: 4px !important;
  }
  .atlas-musical-v6 .am-primary-nav.am-v6-nav :is(button, a) {
    flex-direction: column;
    font-size: .75rem !important;
    gap: 2px !important;
    justify-content: center;
    line-height: 1.08;
    min-width: 0 !important;
    padding: 6px 3px !important;
    text-align: center;
    white-space: normal;
  }
  .atlas-musical-v6 .am-primary-nav.am-v6-nav .am-nav-label {
    display: block !important;
    overflow-wrap: anywhere;
  }

  /* Les sous-titres des deux onglets n’apportent plus d’information utile sur
     320–420 px et provoquaient trois lignes dans une cible tactile. */
  .arcade-musicale-live .aml-entry-switch-button {
    align-items: center;
    display: flex;
    gap: 7px;
    justify-content: center;
    min-height: 48px;
    padding: 7px 6px !important;
    text-align: center;
  }
  .arcade-musicale-live .aml-entry-switch-button > span { grid-row: auto; }
  .arcade-musicale-live .aml-entry-switch-button small { display: none !important; }
  .arcade-musicale-live .aml-entry-switch-button strong { font-size: .88rem; }

  /* Orchestra Builder garde le repère visuel, mais les quatre pupitres sont
     organisés en deux colonnes pour limiter fortement le défilement. */
  .arcade-musicale-live .aml-orchestra-stage-shell {
    gap: 3px;
    min-height: 174px;
    padding-block: 9px 7px;
  }
  .arcade-musicale-live .aml-orchestra-stage-zone { min-height: 32px; padding-block: 4px; }
  .arcade-musicale-live .aml-orchestra-conductor span { height: 24px; width: 24px; }
  .arcade-musicale-live .aml-orchestra-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }
  .arcade-musicale-live .aml-orchestra-row { padding: 8px !important; }
  .arcade-musicale-live .aml-orchestra-row legend { font-size: .75rem; margin-bottom: 6px; }
  .arcade-musicale-live .aml-orchestra-row legend > span { font-size: .95rem; }
  .arcade-musicale-live .aml-orchestra-zone-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .arcade-musicale-live .aml-orchestra-zone-choice { min-height: 44px; padding-inline: 3px !important; }
  .arcade-musicale-live .aml-orchestra-zone-choice strong { font-size: .75rem; }
}

@media (max-width: 340px) {
  .atlas-musical-v6 .am-primary-nav.am-v6-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .arcade-musicale-live .aml-orchestra-list { grid-template-columns: 1fr !important; }
}

/* 8.3.6 · ouverture progressive et finitions tactiles                       */
.atlas-musical .am-mode-status {
  color: var(--music-muted);
  display: block;
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.45;
  margin: 16px auto 0;
  max-width: 620px;
  min-height: 1.45em;
  text-align: center;
}
.atlas-musical .am-mode-status:empty { margin-top: 0; min-height: 0; }
.atlas-musical .am-mode-status.is-error {
  background: var(--music-clay-soft);
  border: 1px solid rgba(173, 111, 91, .42);
  border-radius: 10px;
  color: #713f32;
  padding: 10px 12px;
}
.atlas-musical .am-mode-option.is-loading { cursor: progress; opacity: .78; }
.atlas-musical .am-mode-option.is-loading .am-mode-arrow { animation: am-mode-loading .8s linear infinite; }
@keyframes am-mode-loading { to { transform: rotate(360deg); } }

body.atlas-musical-live-page #ahc-manage-cookies,
body.atlas-musical-page #ahc-manage-cookies {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
}

@media (max-width: 430px) {
  body.atlas-musical-page #ahc-cookie-banner,
  body.atlas-musical-live-page #ahc-cookie-banner {
    bottom: max(8px, env(safe-area-inset-bottom)) !important;
    width: calc(100% - 16px) !important;
  }
  body.atlas-musical-page #ahc-cookie-banner .ahc-cookie-banner-content,
  body.atlas-musical-live-page #ahc-cookie-banner .ahc-cookie-banner-content { padding: 13px !important; }
  body.atlas-musical-page #ahc-cookie-banner .ahc-cookie-actions,
  body.atlas-musical-live-page #ahc-cookie-banner .ahc-cookie-actions {
    display: grid !important;
    gap: 8px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    margin-top: 10px !important;
  }
  body.atlas-musical-page #ahc-cookie-banner :is(#ahc-accept-all, #ahc-refuse-all, #ahc-customize),
  body.atlas-musical-live-page #ahc-cookie-banner :is(#ahc-accept-all, #ahc-refuse-all, #ahc-customize) {
    min-height: 44px !important;
    width: 100% !important;
  }
  body.atlas-musical-page #ahc-cookie-banner #ahc-customize,
  body.atlas-musical-live-page #ahc-cookie-banner #ahc-customize { grid-column: 1 / -1 !important; }
}

/* 8.3.9 · parité Solo/Live -------------------------------------------------- */
.atlas-musical-v6[data-am-current-view="game"] .am-mt-round.is-live-aligned {
  display: grid !important;
  gap: 18px !important;
  grid-template-columns: 1fr !important;
  margin-inline: auto !important;
  max-width: 920px !important;
}
.atlas-musical-v6[data-am-current-view="game"] .am-mt-round.is-live-aligned .am-mt-round-copy {
  margin: 0 !important;
  padding: 4px 8px !important;
  text-align: center !important;
}
.atlas-musical-v6[data-am-current-view="game"] .am-mt-choice-grid {
  display: grid !important;
  gap: 10px !important;
  grid-area: auto !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  margin: 0 auto !important;
  max-width: 880px !important;
  width: 100% !important;
}

.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-workspace {
  display: grid !important;
  gap: 14px !important;
  grid-template-columns: 1fr !important;
  margin: 12px auto 0 !important;
  max-width: 1000px !important;
}
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-bench {
  min-height: 0 !important;
  padding: 14px !important;
}
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-list {
  display: grid !important;
  gap: 10px !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-list-empty {
  align-items: center !important;
  background: rgba(255, 255, 255, .04) !important;
  border: 1px dashed rgba(255, 255, 255, .2) !important;
  border-radius: 12px !important;
  color: #dce6e1 !important;
  display: flex !important;
  grid-column: 1 / -1 !important;
  justify-content: center !important;
  margin: 0 !important;
  min-height: 42px !important;
  padding: 8px 10px !important;
  text-align: center !important;
}
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-row {
  background: rgba(255, 255, 255, .045) !important;
  border: 1px solid rgba(255, 255, 255, .1) !important;
  border-radius: 13px !important;
  display: block !important;
  margin: 0 !important;
  min-width: 0 !important;
  padding: 11px !important;
}
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-row legend {
  align-items: center !important;
  color: #fff !important;
  display: flex !important;
  font-size: .9rem !important;
  gap: 7px !important;
  margin: 0 0 8px !important;
  padding: 0 3px !important;
}
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-row legend > span { font-size: 1.2rem !important; }
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-row legend > small {
  color: #9aaabc !important;
  font-size: .75rem !important;
  margin-left: auto !important;
}
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-zone-options {
  display: grid !important;
  gap: 6px !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-zone-choice {
  background: #151f2e !important;
  border: 1px solid rgba(255, 255, 255, .13) !important;
  border-radius: 9px !important;
  color: #f7f3ea !important;
  min-height: 54px !important;
  padding: 7px 6px !important;
  text-align: center !important;
}
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-zone-choice :is(strong, small) { display: block !important; }
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-zone-choice strong { color: inherit !important; font-size: .75rem !important; }
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-zone-choice small { color: #9eafc0 !important; font-size: .75rem !important; margin-top: 2px !important; }
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-zone-choice.is-selected {
  background: #3f8585 !important;
  border-color: #78c2bd !important;
  box-shadow: 0 5px 16px rgba(40, 128, 128, .28) !important;
  color: #fff !important;
}
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-zone-choice.is-selected small { color: #edfafa !important; }
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-zone-choice.is-unavailable:disabled,
.arcade-musicale-live .aml-orchestra-zone-choice.is-unavailable:disabled {
  cursor: not-allowed !important;
  filter: grayscale(.65) !important;
  opacity: .38 !important;
}
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-selection {
  color: #79d2cc !important;
  display: block !important;
  font-size: .75rem !important;
  font-weight: 800 !important;
  margin: 7px 2px 0 !important;
}

.arcade-musicale-live .aml-timeline-duel {
  margin: 22px auto 0;
  max-width: 920px;
}
.arcade-musicale-live .aml-timeline-cards {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.arcade-musicale-live .aml-timeline-card {
  align-items: center;
  background: linear-gradient(150deg, #fffdf8, #f0e9dc) !important;
  border: 2px solid rgba(113, 91, 70, .23) !important;
  border-radius: 17px !important;
  color: var(--music-brown-deep) !important;
  display: grid;
  gap: 7px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 132px;
  padding: 17px !important;
  text-align: left;
}
.arcade-musicale-live .aml-timeline-card:hover:not(:disabled),
.arcade-musicale-live .aml-timeline-card:focus-visible { border-color: var(--music-teal) !important; transform: translateY(-2px); }
.arcade-musicale-live .aml-timeline-card-index {
  align-items: center;
  background: var(--music-teal);
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-weight: 900;
  grid-column: 1;
  grid-row: 1 / 3;
  height: 38px;
  justify-content: center;
  width: 38px;
}
.arcade-musicale-live .aml-timeline-card-year {
  background: var(--music-brown-deep);
  border-radius: 999px;
  color: #fffdf8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 800;
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  padding: 5px 10px;
}
.arcade-musicale-live .aml-timeline-card > strong { color: var(--music-brown-deep) !important; font-family: Georgia, "Times New Roman", serif; font-size: 1.17rem; grid-column: 2; grid-row: 1; line-height: 1.15; min-width: 0; }
.arcade-musicale-live .aml-timeline-card > small { color: var(--music-muted) !important; font-size: .78rem; grid-column: 2; grid-row: 2; min-width: 0; }
.arcade-musicale-live .aml-timeline-card > i { color: var(--music-teal); font-size: .75rem; font-style: normal; font-weight: 900; grid-column: 3; grid-row: 2; justify-self: end; letter-spacing: .08em; }
.arcade-musicale-live .aml-timeline-rail {
  align-items: center;
  color: #b7c0d0;
  display: grid;
  font-size: .75rem;
  font-weight: 900;
  gap: 8px;
  grid-template-columns: auto 1fr auto 1fr auto;
  letter-spacing: .08em;
  margin: 15px auto 0;
  max-width: 760px;
}
.arcade-musicale-live .aml-timeline-rail i { border-top: 1px solid rgba(113, 212, 220, .5); }
.arcade-musicale-live .aml-timeline-rail b { align-items: center; border: 1px solid rgba(113, 212, 220, .55); border-radius: 50%; color: #71d4dc; display: flex; height: 28px; justify-content: center; width: 28px; }
.arcade-musicale-live .aml-timeline-reveal {
  background: #f7f1e7;
  border: 1px solid var(--music-line);
  border-radius: 17px;
  margin: 20px auto;
  max-width: 960px;
  padding: clamp(15px, 3vw, 24px);
}
.arcade-musicale-live .aml-timeline-reveal header { color: var(--music-brown-deep); text-align: center; }
.arcade-musicale-live .aml-timeline-reveal header span { color: var(--music-teal); display: block; font-size: .75rem; font-weight: 900; letter-spacing: .1em; }
.arcade-musicale-live .aml-timeline-reveal header strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; margin-top: 3px; }
.arcade-musicale-live .aml-timeline-axis { align-items: stretch; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); margin-top: 16px; }
.arcade-musicale-live .aml-timeline-axis article { background: #fffdf8; border: 1px solid var(--music-line); border-radius: 13px; color: var(--music-brown-deep); display: grid; gap: 4px; padding: 15px; }
.arcade-musicale-live .aml-timeline-axis time { color: var(--music-clay); font-family: Georgia, "Times New Roman", serif; font-size: 1.5rem; font-weight: 800; }
.arcade-musicale-live .aml-timeline-axis article > strong { color: var(--music-brown-deep) !important; font-family: Georgia, "Times New Roman", serif; font-size: 1.05rem; }
.arcade-musicale-live .aml-timeline-axis article > small { color: var(--music-muted) !important; }
.arcade-musicale-live .aml-timeline-axis article > b { align-self: end; color: var(--music-teal); font-size: .75rem; letter-spacing: .08em; margin-top: 8px; }
.arcade-musicale-live .aml-timeline-gap { align-self: center; color: var(--music-brown-deep); display: grid; justify-items: center; min-width: 72px; text-align: center; }
.arcade-musicale-live .aml-timeline-gap strong { color: var(--music-clay); font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; }
.arcade-musicale-live .aml-timeline-gap small { color: var(--music-muted); font-size: .75rem; }

@media (max-width: 700px) {
  .atlas-musical-v6[data-am-current-view="game"] .am-mt-choice-grid,
  .atlas-musical-v6[data-am-current-view="game"] .am-orchestra-list { grid-template-columns: 1fr !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-orchestra-zone-options { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .arcade-musicale-live .aml-timeline-cards { grid-template-columns: 1fr; }
  .arcade-musicale-live .aml-timeline-axis { grid-template-columns: 1fr; }
  .arcade-musicale-live .aml-timeline-gap { grid-auto-flow: column; justify-content: center; }
  .arcade-musicale-live .aml-timeline-rail { font-size: .75rem; }
}

@media (pointer: coarse) and (orientation: landscape) and (max-height: 560px) and (min-width: 560px) {
  .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage {
    grid-template-areas: "step step" "listen round" !important;
    grid-template-columns: minmax(190px, .72fr) minmax(0, 1.28fr) !important;
  }
  .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-game-listen-box { grid-area: listen !important; }
  .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-round.is-live-aligned { display: grid !important; gap: 6px !important; grid-area: round !important; grid-template-columns: minmax(0, 1fr) !important; min-width: 0 !important; width: 100% !important; }
  .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-round.is-live-aligned .am-mt-round-copy { grid-area: auto !important; margin: 0 !important; text-align: left !important; }
  .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-choice-grid { grid-area: auto !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-choice-grid .am-game-choice { grid-template-columns: auto minmax(0, 1fr) auto !important; min-width: 0 !important; }
  .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-choice-grid .am-game-choice strong { min-width: 0 !important; overflow-wrap: anywhere !important; }
  .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-list { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* L’en-tête d’une manche distribue son espace entre les trois blocs.
   Le titre peut passer sur deux lignes pour rester entièrement lisible. */
@media (max-width: 560px) {
  .atlas-musical-v6[data-am-current-view="game"] .am-game-top {
    gap: 6px !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
  }
  .atlas-musical-v6[data-am-current-view="game"] .am-game-title {
    justify-self: stretch !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    width: 100% !important;
  }
  .atlas-musical-v6[data-am-current-view="game"] .am-game-title > span:last-child {
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    width: 100% !important;
  }
  .atlas-musical-v6[data-am-current-view="game"] .am-game-title small {
    display: block !important;
    line-height: 1.05 !important;
    min-width: 0 !important;
    overflow: visible !important;
    text-align: center !important;
    text-overflow: clip !important;
    white-space: normal !important;
  }
}

/* Les écrans de couverture de 280 à 320 px ont besoin d’une composition
   réellement mono-colonne : aucun titre ni contrôle ne doit être rogné. */
@media (max-width: 350px) {
  .atlas-musical-v6[data-am-current-view="game"],
  .atlas-musical-v6[data-am-current-view="game"] .am-main,
  .atlas-musical-v6[data-am-current-view="game"] [data-am-content],
  .atlas-musical-v6[data-am-current-view="game"] .am-game-shell,
  .atlas-musical-v6[data-am-current-view="game"] .am-game-stage,
  .atlas-musical-v6[data-am-current-view="game"] :is(.am-tm-round, .am-tm-cards, .am-orchestra-round, .am-orchestra-workspace, .am-orchestra-bench, .am-orchestra-stage-map, .am-orchestra-row, .am-orchestra-zone-options) {
    box-sizing: border-box !important;
    max-width: 100% !important;
    min-width: 0 !important;
    width: 100% !important;
  }
  .atlas-musical-v6[data-am-current-view="game"] .am-game-shell { padding-inline: 7px !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-game-top {
    gap: 5px !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    padding-inline: 6px !important;
  }
  .atlas-musical-v6[data-am-current-view="game"] .am-game-title {
    justify-self: stretch !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }
  .atlas-musical-v6[data-am-current-view="game"] .am-game-title > span:first-child,
  .atlas-musical-v6[data-am-current-view="game"] .am-game-title strong { display: none !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-game-title small {
    display: block !important;
    line-height: 1.05 !important;
    min-width: 0 !important;
    overflow: visible !important;
    text-align: center !important;
    text-overflow: clip !important;
    white-space: normal !important;
  }
  .atlas-musical-v6[data-am-current-view="game"] .am-game-exit { padding-inline: 9px !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-game-score { min-width: 54px !important; padding-inline: 7px !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-tm-cards { grid-template-columns: minmax(0, 1fr) !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-tm-card { min-height: 118px !important; min-width: 0 !important; padding: 13px !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-tm-card strong { overflow-wrap: anywhere !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-tm-rail { grid-template-columns: auto minmax(10px, 1fr) auto minmax(10px, 1fr) auto !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-orchestra-list,
  .atlas-musical-v6[data-am-current-view="game"] .am-orchestra-zone-options,
  .atlas-musical-v6[data-am-current-view="game"] .am-orchestra-bench-actions { grid-template-columns: minmax(0, 1fr) !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-orchestra-stage-map { padding-inline: 10px !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-orchestra-zone { grid-template-columns: minmax(72px, .9fr) minmax(0, 1.1fr) !important; }
}

/* Sur téléphone, Time Machine donne une ligne pleine à chaque information.
   Cela évite que les noms de compositeurs soient comprimés entre l’index et
   l’action, tout en alignant la composition Solo sur celle du Live. */
@media (max-width: 480px) {
  .atlas-musical-v6[data-am-current-view="game"] .am-tm-cards,
  .atlas-musical-v6[data-am-current-view="game"] .am-tm-axis,
  .arcade-musicale-live .aml-timeline-cards,
  .arcade-musicale-live .aml-timeline-axis { grid-template-columns: minmax(0, 1fr) !important; }

  .atlas-musical-v6[data-am-current-view="game"] .am-tm-card,
  .arcade-musicale-live .aml-timeline-card {
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    grid-template-rows: auto auto auto auto !important;
  }
  .atlas-musical-v6[data-am-current-view="game"] .am-tm-card-index,
  .arcade-musicale-live .aml-timeline-card-index { grid-column: 1 !important; grid-row: 1 !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-tm-card-clock,
  .arcade-musicale-live .aml-timeline-card-year { grid-column: 3 !important; grid-row: 1 !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-tm-card > strong,
  .arcade-musicale-live .aml-timeline-card > strong { grid-column: 1 / 4 !important; grid-row: 2 !important; min-width: 0 !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-tm-card > small,
  .arcade-musicale-live .aml-timeline-card > small { grid-column: 1 / 4 !important; grid-row: 3 !important; justify-self: stretch !important; min-width: 0 !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-tm-card > i,
  .arcade-musicale-live .aml-timeline-card > i { grid-column: 1 / 4 !important; grid-row: 4 !important; justify-self: end !important; }

  .atlas-musical-v6[data-am-current-view="game"] .am-tm-gap,
  .arcade-musicale-live .aml-timeline-gap {
    align-items: baseline !important;
    gap: 6px !important;
    grid-auto-flow: column !important;
    justify-content: center !important;
    min-width: 0 !important;
  }
  .atlas-musical-v6[data-am-current-view="game"] .am-tm-axis > div,
  .arcade-musicale-live .aml-timeline-axis > article { min-width: 0 !important; width: 100% !important; }
}

/* Les thèmes WordPress ne doivent jamais imposer une césure lettre par lettre
   aux œuvres ou aux compositeurs, dans les cartes comme dans la correction. */
.atlas-musical-v6[data-am-current-view="game"] .am-tm-card > :is(strong, small),
.atlas-musical-v6[data-am-current-view="game"] .am-tm-axis > div > :is(strong, small),
.arcade-musicale-live .aml-timeline-card > :is(strong, small),
.arcade-musicale-live .aml-timeline-axis > article > :is(strong, small) {
  hyphens: none !important;
  min-width: 0 !important;
  overflow-wrap: normal !important;
  white-space: normal !important;
  word-break: normal !important;
}

/* L’état de chargement Solo ne doit pas redistribuer la porte de choix. La
   ligne de statut est réservée avant le clic et le bouton garde son état natif
   actif afin d’échapper aux surcharges :disabled des thèmes WordPress. */
.atlas-musical .am-mode-status,
.atlas-musical .am-mode-status:empty {
  margin-top: 16px;
  min-height: 1.45em;
}
.atlas-musical .am-mode-status:empty { visibility: hidden; }
.atlas-musical .am-mode-option.is-loading > b { animation: am-mode-loading .8s linear infinite; }

/* 8.3.14 — choix de configuration Live et conduite en salle. */
.arcade-musicale-live .aml-create-settings { gap: 15px; }
.arcade-musicale-live .aml-audio-mode-fieldset {
  background: linear-gradient(145deg, #fbf7ef, #f4ecdf) !important;
  border: 1px solid var(--music-line) !important;
  border-radius: 14px !important;
  padding: clamp(14px, 2.5vw, 20px) !important;
}
.arcade-musicale-live .aml-audio-mode-fieldset legend {
  color: var(--music-brown-deep) !important;
  font-size: .93rem !important;
  padding-inline: 7px;
}
.arcade-musicale-live .aml-step-number {
  background: var(--music-brown) !important;
  color: #fffdf8 !important;
  font-family: system-ui, sans-serif !important;
}
.arcade-musicale-live .aml-fieldset-intro,
.arcade-musicale-live .aml-audio-mode-summary { color: var(--music-muted) !important; }
.arcade-musicale-live .aml-audio-mode-card {
  background: rgba(255, 253, 248, .88) !important;
  border-color: var(--music-line) !important;
  border-radius: 11px !important;
  box-shadow: 0 5px 15px rgba(63, 48, 36, .045);
  color: var(--music-ink) !important;
}
.arcade-musicale-live .aml-audio-mode-card:hover { border-color: rgba(77, 137, 136, .55) !important; box-shadow: 0 9px 22px rgba(63, 48, 36, .08); }
.arcade-musicale-live .aml-audio-mode-card:focus-within { box-shadow: 0 0 0 3px rgba(77, 137, 136, .19) !important; }
.arcade-musicale-live .aml-audio-mode-card:has(input:checked) {
  background: #eef6f3 !important;
  border-color: var(--music-teal) !important;
  box-shadow: inset 0 0 0 1px var(--music-teal), 0 8px 20px rgba(77, 137, 136, .11) !important;
}
.arcade-musicale-live .aml-audio-mode-card > input { accent-color: var(--music-teal) !important; }
.arcade-musicale-live .aml-audio-mode-visual { background: var(--music-teal-soft) !important; color: var(--music-teal) !important; }
.arcade-musicale-live .aml-audio-mode-copy > small { color: var(--music-teal) !important; }
.arcade-musicale-live .aml-audio-mode-copy > strong { color: var(--music-brown-deep) !important; font-family: Georgia, "Times New Roman", serif; font-size: 1.02rem; }
.arcade-musicale-live .aml-audio-mode-copy > span { color: var(--music-muted) !important; }
.arcade-musicale-live .aml-audio-mode-check { background: var(--music-teal) !important; color: #fff !important; }
.arcade-musicale-live .aml-audio-mode-summary { font-weight: 750; }

.arcade-musicale-live .aml-room-audio-mode {
  background: var(--music-violet-soft) !important;
  border-color: rgba(120, 107, 154, .28) !important;
  color: #625480 !important;
}
.arcade-musicale-live .aml-room-audio-mode.is-individual {
  background: var(--music-teal-soft) !important;
  border-color: rgba(77, 137, 136, .25) !important;
  color: #456f6e !important;
}
.arcade-musicale-live .aml-sound-card.is-shared,
.arcade-musicale-live .aml-audio-box.is-shared {
  background: var(--music-violet-soft) !important;
  border-color: rgba(120, 107, 154, .25) !important;
}
.arcade-musicale-live .aml-sound-card.is-shared .aml-sound-status > span,
.arcade-musicale-live .aml-audio-box.is-shared > span { color: var(--music-violet) !important; }
.arcade-musicale-live .aml-audio-box.is-source { background: var(--music-teal-soft) !important; border-color: rgba(77, 137, 136, .28) !important; }
.arcade-musicale-live .aml-choice-grid.is-display-only .aml-choice:hover,
.arcade-musicale-live .aml-timeline-duel.is-display-only .aml-timeline-card:hover { box-shadow: none !important; transform: none !important; }

.arcade-musicale-live .aml-manual-control {
  background: linear-gradient(145deg, #f4eef9, #eee7f5) !important;
  border-color: rgba(120, 107, 154, .28) !important;
  box-shadow: 0 8px 20px rgba(71, 56, 91, .08) !important;
}
.arcade-musicale-live .aml-manual-control > .aml-eyebrow { color: var(--music-violet) !important; }
.arcade-musicale-live .aml-manual-control > strong { color: var(--music-brown-deep) !important; font-family: Georgia, "Times New Roman", serif; }
.arcade-musicale-live .aml-manual-control > small { color: var(--music-muted) !important; }
.arcade-musicale-live .aml-manual-control .aml-button-primary,
.arcade-musicale-live .aml-manual-phase-action .aml-button-primary { background: var(--music-violet) !important; border-color: var(--music-violet) !important; }
.arcade-musicale-live .aml-manual-phase-action,
.arcade-musicale-live .aml-manual-phase-note {
  background: #f5f0f9 !important;
  border-color: rgba(120, 107, 154, .3) !important;
  color: var(--music-brown-deep) !important;
}
.arcade-musicale-live .aml-manual-phase-action span > strong { color: var(--music-brown-deep) !important; font-family: Georgia, "Times New Roman", serif; }
.arcade-musicale-live .aml-manual-phase-action span > small,
.arcade-musicale-live .aml-manual-phase-note { color: var(--music-muted) !important; }
.arcade-musicale-live .aml-manual-badge { background: var(--music-violet-soft) !important; border-color: rgba(120, 107, 154, .3) !important; color: #625480 !important; }
.arcade-musicale-live .aml-manual-reconnect > .aml-sound-card { box-shadow: 0 8px 20px rgba(71, 56, 91, .08) !important; }
.arcade-musicale-live .aml-manual-phase-action.is-locked .aml-button:disabled { background: #817c84 !important; border-color: #817c84 !important; color: #fff !important; opacity: 1 !important; }

@media (max-width: 680px) {
  .arcade-musicale-live .aml-audio-mode-options { grid-template-columns: minmax(0, 1fr) !important; }
  .arcade-musicale-live .aml-audio-mode-card { min-height: 88px; padding: 11px !important; }
  .arcade-musicale-live .aml-room-audio-mode { font-size: .76rem; justify-self: start; max-width: 100%; }
  .arcade-musicale-live .aml-manual-phase-action { align-items: stretch; }
}

@media (max-width: 350px) {
  .arcade-musicale-live .aml-audio-mode-fieldset { padding: 11px 8px !important; }
  .arcade-musicale-live .aml-audio-mode-card { min-height: 82px; }
  .arcade-musicale-live .aml-manual-control { padding: 13px !important; }
  .arcade-musicale-live .aml-roombar { grid-template-columns: minmax(0, 1fr); }
  .arcade-musicale-live .aml-roombar-main,
  .arcade-musicale-live .aml-roombar-actions {
    grid-column: 1;
    min-width: 0;
    width: 100%;
  }
  .arcade-musicale-live .aml-roombar-actions {
    justify-content: flex-end;
    justify-self: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .arcade-musicale-live .aml-audio-mode-card,
  .arcade-musicale-live .aml-audio-mode-check { transition: none !important; }
}

@media (forced-colors: active) {
  .arcade-musicale-live .aml-audio-mode-card:has(input:checked) { outline: 3px solid Highlight !important; }
  .arcade-musicale-live .aml-room-audio-mode,
  .arcade-musicale-live .aml-manual-badge { border: 1px solid CanvasText !important; }
}

/* 8.3.17 · intégration au bouton Accueil fixe du thème WordPress.
   Sur téléphone, il conserve sa propre rangée devant l’en-tête Solo et cesse
   de flotter au-dessus du bandeau Live quand une étape est recentrée. */
@media (max-width: 700px) {
  body.atlas-musical-page .ah-home-return,
  body.atlas-musical-live-page .ah-home-return {
    position: absolute !important;
  }

  body.atlas-musical-page .atlas-musical:not(.is-choosing-mode) .am-topbar {
    margin-top: 36px !important;
  }

  body.atlas-musical-page .am-mode-gate {
    padding-top: max(68px, calc(env(safe-area-inset-top) + 60px)) !important;
  }

  body.admin-bar.atlas-musical-page .am-mode-gate {
    padding-top: max(114px, calc(env(safe-area-inset-top) + 106px)) !important;
  }
}

/* 8.3.19 · une manche complète tient dans l’écran des tablettes. */
@media (min-width: 600px) and (min-height: 700px) {
  .atlas-musical-v6[data-am-current-view="game"] {
    display: flex !important;
    flex-direction: column !important;
    margin-block: 0 !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
  }
  .atlas-musical-v6[data-am-current-view="game"] .am-topbar { display: none !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-primary-nav,
  .atlas-musical-v6[data-am-current-view="game"] .am-footer { display: none !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-main {
    align-items: center !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex: 1 1 auto !important;
    justify-content: center !important;
    margin: 0 auto !important;
    min-height: 0 !important;
    padding: 8px 14px !important;
    width: 100% !important;
  }
  .atlas-musical-v6[data-am-current-view="game"] [data-am-content] {
    box-sizing: border-box !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .atlas-musical-v6[data-am-current-view="game"] .am-game-shell[class*="is-"] {
    box-sizing: border-box !important;
    margin: 0 auto !important;
    max-height: 100% !important;
    padding: 7px 9px !important;
    width: 100% !important;
  }
  .atlas-musical-v6[data-am-current-view="game"] .am-game-top {
    gap: 10px !important;
    margin-bottom: 7px !important;
    padding: 7px 9px !important;
  }
  .atlas-musical-v6[data-am-current-view="game"] .am-game-title > span:first-child {
    height: 42px !important;
    width: 42px !important;
  }
  .atlas-musical-v6[data-am-current-view="game"] .am-game-score { padding: 6px 9px !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-game-progress {
    height: 6px !important;
    margin-bottom: 8px !important;
  }
  .atlas-musical-v6[data-am-current-view="game"] .am-game-stage {
    box-sizing: border-box !important;
    min-height: 0 !important;
    padding: clamp(11px, 1.8vh, 18px) clamp(14px, 2.4vw, 28px) !important;
  }
  .atlas-musical-v6[data-am-current-view="game"] .am-game-step {
    font-size: .75rem !important;
    margin: 0 0 3px !important;
  }
  .atlas-musical-v6[data-am-current-view="game"] .am-game-listen-box {
    border-radius: 15px !important;
    gap: 10px !important;
    grid-template-columns: 44px minmax(0, 1fr) auto !important;
    margin: 8px auto !important;
    padding: 8px 11px !important;
  }
  .atlas-musical-v6[data-am-current-view="game"] .am-game-listen-icon {
    border-radius: 12px !important;
    font-size: 1.25rem !important;
    height: 44px !important;
    width: 44px !important;
  }
  .atlas-musical-v6[data-am-current-view="game"] .am-game-listen-main small { margin-bottom: 4px !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-game-listen-main audio { height: 34px !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-game-stage :is(.am-game-question h1, .am-mt-round-copy h1, .am-tm-round-head h1, .am-hunter-round-head h1, .am-orchestra-round-head h1) {
    font-size: clamp(1.65rem, 4.2vh, 2.6rem) !important;
    line-height: 1.04 !important;
    margin-block: 3px !important;
  }
  .atlas-musical-v6[data-am-current-view="game"] .am-game-question { margin: 8px auto !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-game-question-emoji { font-size: 1.55rem !important; margin-bottom: 4px !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-game-question p,
  .atlas-musical-v6[data-am-current-view="game"] .am-mt-round-copy > p,
  .atlas-musical-v6[data-am-current-view="game"] .am-tm-round-head > p,
  .atlas-musical-v6[data-am-current-view="game"] .am-hunter-round-head > p,
  .atlas-musical-v6[data-am-current-view="game"] .am-orchestra-round-head > p { font-size: .75rem !important; margin: 4px auto !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-game-choices,
  .atlas-musical-v6[data-am-current-view="game"] .am-mt-choice-grid { gap: 8px !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-game-choice {
    border-radius: 14px !important;
    gap: 9px !important;
    grid-template-columns: 32px minmax(0, 1fr) 26px !important;
    min-height: 56px !important;
    padding: 8px 10px !important;
  }
  .atlas-musical-v6[data-am-current-view="game"] .am-game-choice-letter { height: 32px !important; width: 32px !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-game-feedback {
    border-radius: 16px !important;
    gap: 9px !important;
    grid-template-columns: 44px minmax(0, 1fr) auto !important;
    margin-top: 8px !important;
    padding: 10px !important;
  }
  .atlas-musical-v6[data-am-current-view="game"] .am-game-feedback-burst { height: 44px !important; width: 44px !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-game-feedback-copy h2 { font-size: clamp(1.2rem, 2.8vh, 1.8rem) !important; margin: 2px 0 !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-game-feedback-copy p { font-size: .75rem !important; line-height: 1.35 !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-game-feedback-lessons { gap: 6px !important; margin-top: 6px !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-game-feedback-lesson { padding: 7px 8px !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-game-feedback-actions { gap: 5px !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-game-feedback-actions .am-button { min-height: 46px !important; min-width: 120px !important; padding: 8px 10px !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-game-retry-audio { min-height: 46px !important; }

  .atlas-musical-v6[data-am-current-view="game"] .am-mt-round.is-live-aligned { gap: 8px !important; margin: 0 auto !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-mt-round-copy { margin: 0 auto !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-mt-round-kicker { font-size: .75rem !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-mt-choice-grid .am-game-choice { min-height: 56px !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-mt-rescue,
  .atlas-musical-v6[data-am-current-view="game"] .am-game-second-chance,
  .atlas-musical-v6[data-am-current-view="game"] .am-hunter-rescue,
  .atlas-musical-v6[data-am-current-view="game"] .am-orchestra-rescue { margin-block: 6px !important; padding: 8px 10px !important; }

  .atlas-musical-v6[data-am-current-view="game"] .am-tm-round-head { margin: 0 auto 6px !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-tm-cards,
  .atlas-musical-v6[data-am-current-view="game"] .am-tm-axis { gap: 8px !important; margin: 8px auto !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-tm-card { min-height: 70px !important; padding: 10px 12px !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-tm-reveal { gap: 8px !important; margin-top: 7px !important; padding: 10px !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-tm-axis > div { min-height: 58px !important; padding: 8px 10px !important; }

  .atlas-musical-v6[data-am-current-view="game"] .am-odd-stage .am-game-step { margin-bottom: 3px !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-odd-round-head > span { font-size: .75rem !important; margin-bottom: 2px !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-odd-round-head h1 { font-size: clamp(1.65rem, 4.2vh, 2.6rem) !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-odd-round-head p { font-size: .75rem !important; margin: 4px auto !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-odd-common-rule {
    gap: 4px !important;
    margin: 8px auto !important;
    min-height: 68px !important;
    padding: 10px 13px !important;
  }
  .atlas-musical-v6[data-am-current-view="game"] .am-odd-common-rule span { font-size: .75rem !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-odd-common-rule strong { font-size: clamp(1.1rem, 1.1vw, 1.35rem) !important; line-height: 1.22 !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-odd-board-grid { gap: 8px !important; margin-top: 6px !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-odd-case { min-height: 68px !important; padding: 8px 10px !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-odd-round.is-answered .am-odd-case { min-height: 58px !important; }

  .atlas-musical-v6[data-am-current-view="game"] .am-hunter-round { margin-top: 0 !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-hunter-round-head > span { font-size: .75rem !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-hunter-round-head h1 { font-size: clamp(1.55rem, 4vh, 2.45rem) !important; margin: 3px 0 !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-hunter-choice-grid { gap: 8px !important; margin-top: 7px !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-hunter-choice { min-height: 72px !important; padding: 7px !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-hunter-target-dot { height: 34px !important; width: 34px !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-hunter-reveal { gap: 9px !important; margin-top: 7px !important; padding: 9px !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-hunter-reveal-copy h2 { font-size: 1.2rem !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-hunter-lessons { gap: 6px !important; margin-top: 5px !important; }

  .atlas-musical-v6[data-am-current-view="game"] .am-orchestra-round-head > span { font-size: .75rem !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-orchestra-round-head h1 { font-size: clamp(1.45rem, 3.8vh, 2.2rem) !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-orchestra-workspace {
    align-items: stretch !important;
    gap: 12px !important;
    grid-template-columns: minmax(0, 1.08fr) minmax(230px, .92fr) !important;
    margin: 8px auto 0 !important;
    max-width: 1100px !important;
  }
  .atlas-musical-v6[data-am-current-view="game"] .am-orchestra-stage-map {
    box-sizing: border-box !important;
    min-height: 290px !important;
    padding: 31px 16px 40px !important;
  }
  .atlas-musical-v6[data-am-current-view="game"] .am-orchestra-stage-label {
    font-size: .75rem !important;
    letter-spacing: .06em !important;
    line-height: 1.2 !important;
    left: 8px !important;
    right: 8px !important;
    text-align: center !important;
    transform: none !important;
    white-space: normal !important;
  }
  .atlas-musical-v6[data-am-current-view="game"] .am-orchestra-zones { gap: 5px !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-orchestra-zone {
    box-sizing: border-box !important;
    grid-template-columns: minmax(72px, .8fr) minmax(0, 1.2fr) !important;
    min-height: 50px !important;
    padding: 5px 8px !important;
  }
  .atlas-musical-v6[data-am-current-view="game"] .am-orchestra-zone-meta b { font-size: .75rem !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-orchestra-zone-meta small { font-size: .75rem !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-orchestra-placed {
    gap: 5px !important;
    grid-template-columns: 32px minmax(0, 1fr) !important;
  }
  .atlas-musical-v6[data-am-current-view="game"] .am-orchestra-placed i { height: 32px !important; width: 32px !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-orchestra-placed strong { font-size: .75rem !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-orchestra-zone:focus-visible,
  .atlas-musical-v6[data-am-current-view="game"] .am-orchestra-label:focus-visible { outline: 3px solid #ffe096 !important; outline-offset: 2px !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-orchestra-bench {
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    min-height: 0 !important;
    padding: 12px !important;
  }
  .atlas-musical-v6[data-am-current-view="game"] .am-orchestra-bench-title { margin-bottom: 7px !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-orchestra-bench-title span { font-size: .75rem !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-orchestra-bench-title small { font-size: .75rem !important; margin-top: 3px !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-orchestra-list { display: grid !important; gap: 7px !important; grid-template-columns: minmax(0, 1fr) !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-orchestra-label {
    align-items: center !important;
    background: rgba(255, 253, 248, .055) !important;
    border: 1px solid rgba(255, 255, 255, .14) !important;
    border-radius: 12px !important;
    color: #fffdf8 !important;
    display: grid !important;
    gap: 8px !important;
    grid-template-columns: 36px minmax(0, 1fr) auto !important;
    min-height: 50px !important;
    padding: 6px 8px !important;
    text-align: left !important;
    touch-action: manipulation !important;
  }
  .atlas-musical-v6[data-am-current-view="game"] .am-orchestra-label-icon {
    align-items: center !important;
    background: rgba(255, 207, 102, .12) !important;
    border-radius: 10px !important;
    display: flex !important;
    font-size: 1.1rem !important;
    height: 34px !important;
    justify-content: center !important;
    width: 34px !important;
  }
  .atlas-musical-v6[data-am-current-view="game"] .am-orchestra-label-copy strong,
  .atlas-musical-v6[data-am-current-view="game"] .am-orchestra-label-copy small { display: block !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-orchestra-label-copy strong { font-size: .75rem !important; line-height: 1.15 !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-orchestra-label-copy small { color: #c0b7a8 !important; font-size: .75rem !important; margin-top: 2px !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-orchestra-label-state { color: #f0cf82 !important; font-size: .75rem !important; font-weight: 950 !important; letter-spacing: .04em !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-orchestra-label.is-selected {
    background: rgba(100, 216, 255, .16) !important;
    border-color: #64d8ff !important;
    box-shadow: inset 0 0 0 1px rgba(100, 216, 255, .18) !important;
  }
  .atlas-musical-v6[data-am-current-view="game"] .am-orchestra-label.is-locked { border-color: rgba(88, 219, 155, .5) !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-orchestra-label:disabled { cursor: default !important; opacity: .72 !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-orchestra-placement-help {
    align-items: center !important;
    color: #e6c47e !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    font-size: .75rem !important;
    line-height: 1.35 !important;
    margin: 7px 0 0 !important;
  }
  .atlas-musical-v6[data-am-current-view="game"] .am-orchestra-bench-actions {
    gap: 7px !important;
    margin-top: auto !important;
    padding-top: 8px !important;
  }
  .atlas-musical-v6[data-am-current-view="game"] .am-orchestra-bench-actions button {
    font-size: .75rem !important;
    min-height: 44px !important;
    padding: 8px 10px !important;
  }
  .atlas-musical-v6[data-am-current-view="game"] .am-orchestra-result {
    gap: 8px !important;
    grid-template-columns: 40px minmax(0, 1fr) auto !important;
    margin-top: 7px !important;
    padding: 8px 10px !important;
  }
  .atlas-musical-v6[data-am-current-view="game"] .am-orchestra-result-icon { height: 40px !important; width: 40px !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-orchestra-result-actions .am-button { min-height: 44px !important; }

  .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="finish"] .am-game-finish {
    min-height: 0 !important;
    padding: clamp(18px, 3vh, 30px) clamp(18px, 4vw, 42px) !important;
  }
  .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="finish"] .am-game-finish-medal { font-size: 2.5rem !important; margin: 8px 0 !important; }
  .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="finish"] .am-game-finish h1 { font-size: clamp(2rem, 5vh, 3rem) !important; margin-bottom: 8px !important; }
  .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="finish"] .am-game-finish-stats { margin-top: 14px !important; }
  .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="finish"] .am-game-finish-stats div { padding: 10px !important; }
  .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="finish"] .am-game-finish-actions { margin-top: 12px !important; }
}

@media (min-width: 600px) and (min-height: 700px) and (max-height: 900px) {
  .atlas-musical-v6[data-am-current-view="game"] :is(.am-bt-intro, .am-mt-intro, .am-tm-intro, .am-odd-intro, .am-hunter-intro, .am-orchestra-intro) {
    box-sizing: border-box !important;
    min-height: 0 !important;
    padding: 16px 22px !important;
  }
  .atlas-musical-v6[data-am-current-view="game"] :is(.am-bt-intro-art, .am-mt-intro-art, .am-tm-intro-art, .am-odd-intro-art, .am-hunter-intro-art, .am-orchestra-intro-art) { display: none !important; }
  .atlas-musical-v6[data-am-current-view="game"] :is(.am-bt-intro-grid, .am-mt-intro-grid, .am-tm-intro-grid, .am-odd-intro-grid, .am-hunter-intro-grid, .am-orchestra-intro-grid) {
    grid-template-columns: minmax(0, 1fr) !important;
    margin-top: 0 !important;
    min-height: 0 !important;
  }
  .atlas-musical-v6[data-am-current-view="game"] :is(.am-bt-intro-copy, .am-mt-intro-copy, .am-tm-intro-copy, .am-odd-intro-copy, .am-hunter-intro-copy, .am-orchestra-intro-copy) { padding: 0 !important; }
  .atlas-musical-v6[data-am-current-view="game"] :is(.am-bt-intro, .am-mt-intro, .am-tm-intro, .am-odd-intro, .am-hunter-intro, .am-orchestra-intro) h1 {
    font-size: clamp(1.9rem, 5vh, 3rem) !important;
    line-height: .98 !important;
    margin: 5px 0 8px !important;
  }
  .atlas-musical-v6[data-am-current-view="game"] :is(.am-bt-rules, .am-mt-rules, .am-tm-rules, .am-odd-rules, .am-hunter-rules, .am-orchestra-rules) { margin: 10px 0 !important; }
  .atlas-musical-v6[data-am-current-view="game"] :is(.am-bt-start, .am-mt-start, .am-tm-start, .am-odd-start, .am-hunter-start, .am-orchestra-start) { min-height: 46px !important; }
}

/* Écrans 720p : préserver les cibles tactiles tout en rendant quelques pixels
   au cadre du jeu pour que les états d’Orchestra Builder restent entièrement visibles. */
@media (min-width: 1200px) and (min-height: 700px) and (max-height: 740px) {
  .atlas-musical-v6[data-am-current-view="game"] .am-main { padding-block: 2px !important; }
  .atlas-musical-v6[data-am-current-view="game"] .am-game-shell[class*="is-"] { padding-block: 4px !important; }
}

@media (min-width: 600px) and (min-height: 700px) {
  .atlas-musical-v6[data-am-current-view="game"] [data-am-content] :is(button, [role="button"], summary, .am-button):not(#am-ui-tap-floor) { min-height: 46px !important; }
}

/* Règle de l’intrus et banque d’étiquettes harmonisées avec le mode Solo. */
.arcade-musicale-live .aml-common-rule {
  align-items: center;
  background: linear-gradient(110deg, #fff6df, #fffdf7 70%);
  border: 2px solid rgba(197, 154, 74, .55);
  border-left: 7px solid #c59a4a;
  border-radius: 12px;
  box-shadow: 0 5px 16px rgba(82, 60, 29, .1);
  color: var(--music-brown-deep);
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 0 auto 14px;
  max-width: 900px;
  padding: 13px 17px;
  text-align: left;
}
.arcade-musicale-live .aml-common-rule > span {
  background: #c59a4a;
  border-radius: 999px;
  color: #fffdf8;
  flex: 0 0 auto;
  font-size: .75rem;
  font-weight: 950;
  letter-spacing: .11em;
  padding: 7px 10px;
}
.arcade-musicale-live .aml-common-rule > strong { color: var(--music-brown-deep) !important; font-size: clamp(1rem, 1.6vw, 1.15rem); line-height: 1.35; }

.arcade-musicale-live .aml-orchestra-workspace {
  align-items: stretch;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1.6fr) minmax(190px, .8fr);
  grid-template-rows: minmax(0, 1fr) auto;
  margin: 0 auto;
  max-width: 1080px;
}
.arcade-musicale-live .aml-orchestra-workspace .aml-orchestra-stage-map {
  display: flex;
  flex-direction: column;
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  max-width: none;
  min-height: 0;
}
.arcade-musicale-live .aml-orchestra-workspace .aml-orchestra-stage-shell { flex: 1 1 auto; min-height: 210px; }
.arcade-musicale-live .aml-orchestra-bank {
  background: #f6f0e6;
  border: 1px solid var(--music-line);
  border-radius: 15px;
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  padding: 12px;
}
.arcade-musicale-live .aml-orchestra-bank > header { display: grid; gap: 3px; margin-bottom: 9px; }
.arcade-musicale-live .aml-orchestra-bank > header strong { color: var(--music-brown-deep); font-size: .75rem; letter-spacing: .12em; }
.arcade-musicale-live .aml-orchestra-bank > header small { color: var(--music-muted); font-size: .76rem; line-height: 1.3; }
.arcade-musicale-live .aml-orchestra-bank-list { display: grid; gap: 7px; }
.arcade-musicale-live .aml-orchestra-bank-empty { background: rgba(77, 137, 136, .08); border: 1px dashed rgba(77, 137, 136, .32); border-radius: 10px; color: var(--music-muted); font-size: .76rem; grid-column: 1 / -1; line-height: 1.35; margin: 0; padding: 8px 10px; text-align: center; }
.arcade-musicale-live .aml-orchestra-bank-token {
  align-items: center;
  background: #fffdf8 !important;
  border: 1px solid rgba(84, 66, 54, .22) !important;
  border-radius: 11px !important;
  color: var(--music-brown-deep) !important;
  cursor: pointer;
  display: grid;
  gap: 0 8px;
  grid-template-columns: 30px minmax(0, 1fr);
  min-height: 54px;
  padding: 7px 9px !important;
  text-align: left;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.arcade-musicale-live .aml-orchestra-bank-token:not(:disabled):hover { border-color: var(--music-teal) !important; transform: translateY(-1px); }
.arcade-musicale-live .aml-orchestra-bank-token.is-selected { background: #dfeeed !important; border: 2px solid var(--music-teal) !important; box-shadow: 0 3px 11px rgba(77, 137, 136, .15); }
.arcade-musicale-live .aml-orchestra-bank-token.is-placed:not(.is-selected) { background: #f4eee5 !important; }
.arcade-musicale-live .aml-orchestra-bank-token.is-static { cursor: default; }
.arcade-musicale-live .aml-orchestra-bank-emoji { font-size: 1.2rem; grid-row: 1 / 3; text-align: center; }
.arcade-musicale-live .aml-orchestra-bank-token strong { color: inherit !important; font-size: .84rem; line-height: 1.2; }
.arcade-musicale-live .aml-orchestra-bank-token small { color: var(--music-muted) !important; font-size: .75rem; line-height: 1.2; margin-top: 2px; }
.arcade-musicale-live .aml-orchestra-workspace-bottom { align-items: center; display: flex; gap: 10px; grid-column: 1 / -1; justify-content: space-between; }
.arcade-musicale-live .aml-orchestra-instruction { color: var(--music-muted); font-size: .78rem; line-height: 1.35; margin: 0; }
.arcade-musicale-live .aml-orchestra-workspace .aml-answer-submit { margin: 0; }
.arcade-musicale-live .aml-orchestra-drop,
.arcade-musicale-live .aml-orchestra-placed {
  align-items: center;
  background: rgba(255, 255, 255, .76) !important;
  border: 1px dashed rgba(84, 66, 54, .3) !important;
  border-radius: 9px !important;
  color: var(--music-brown-deep) !important;
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  justify-content: center;
  min-height: 44px;
  padding: 4px 8px !important;
  text-align: center;
  width: 100%;
}
.arcade-musicale-live .aml-orchestra-drop > span { color: var(--music-teal); font-size: 1.1rem; font-weight: 900; }
.arcade-musicale-live .aml-orchestra-drop small { color: var(--music-muted) !important; font-size: .75rem; line-height: 1.2; }
.arcade-musicale-live .aml-orchestra-drop.is-selected:not(:disabled) { background: #e4f1ef !important; border-color: var(--music-teal) !important; }
.arcade-musicale-live .aml-orchestra-drop:disabled { cursor: default; opacity: .9; }
.arcade-musicale-live .aml-orchestra-placed { background: #fffdf8 !important; border: 1px solid rgba(77, 137, 136, .42) !important; }
.arcade-musicale-live .aml-orchestra-placed:not(:disabled):hover { background: #e4f1ef !important; border-color: var(--music-teal) !important; }
.arcade-musicale-live .aml-orchestra-placed i { font-size: .95rem; font-style: normal; }
.arcade-musicale-live .aml-orchestra-placed b { font-size: .76rem; }
.arcade-musicale-live .aml-orchestra-placed small { flex-basis: 100%; color: var(--music-teal) !important; font-size: .75rem; }
.arcade-musicale-live .aml-orchestra-stage-zone:focus-within { outline: 2px solid var(--music-teal); outline-offset: 1px; }

@media (max-width: 680px) {
  .arcade-musicale-live .aml-orchestra-workspace { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; }
  .arcade-musicale-live .aml-orchestra-workspace .aml-orchestra-stage-map { grid-column: 1; grid-row: 1; }
  .arcade-musicale-live .aml-orchestra-bank { grid-column: 1; grid-row: 2; }
  .arcade-musicale-live .aml-orchestra-bank-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .arcade-musicale-live .aml-orchestra-workspace-bottom { grid-column: 1; grid-row: 3; }
}

/* Pendant une question, les tablettes gardent le jeu entier à l’écran. */
@media (min-width: 560px) and (min-height: 620px) {
  body.atlas-musical-live-question { overflow: hidden !important; }
  body.atlas-musical-live-question .ah-home-return { display: none !important; }
  .arcade-musicale-live.is-live-question {
    height: 100vh;
    height: 100dvh;
    inset: 0;
    margin: 0;
    max-width: none;
    overflow: hidden;
    position: fixed;
    width: 100vw;
    z-index: 2147482500;
  }
  .arcade-musicale-live.is-live-question .aml-header,
  .arcade-musicale-live.is-live-question .aml-footer { display: none !important; }
  .arcade-musicale-live.is-live-question .aml-main {
    box-sizing: border-box;
    height: 100%;
    margin: 0 auto;
    max-width: 1600px;
    min-height: 0 !important;
    overflow: hidden;
    padding: clamp(9px, 1.5vh, 16px) clamp(12px, 2vw, 24px) !important;
    width: 100%;
  }
  .arcade-musicale-live.is-live-question .aml-shell { height: 100%; max-width: none; }
  .arcade-musicale-live.is-live-question .aml-room { gap: 8px; grid-template-rows: auto minmax(0, 1fr); height: 100%; min-height: 0; }
  .arcade-musicale-live.is-live-question .aml-roombar { gap: 8px; min-height: 0; padding: 6px 10px; }
  .arcade-musicale-live.is-live-question .aml-roombar-main { gap: 8px; }
  .arcade-musicale-live.is-live-question .aml-room-code strong { font-size: 1.2rem; }
  .arcade-musicale-live.is-live-question .aml-room-phase { font-size: .78rem; }
  .arcade-musicale-live.is-live-question .aml-room-audio-mode { font-size: .75rem; padding: 5px 8px; }
  .arcade-musicale-live.is-live-question .aml-roombar-actions { flex-wrap: wrap; gap: 5px; }
  .arcade-musicale-live.is-live-question .aml-roombar-actions > .aml-button { min-height: 44px; padding: 5px 8px; }
  .arcade-musicale-live.is-live-question .aml-question-layout { grid-template-columns: minmax(0, 1fr) !important; height: 100%; min-height: 0; }
  .arcade-musicale-live.is-live-question .aml-side-stack { display: none !important; }
  .arcade-musicale-live.is-live-question .aml-question-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0 !important;
    overflow: hidden;
    padding: clamp(10px, 1.5vh, 16px) clamp(14px, 2vw, 24px) !important;
  }
  .arcade-musicale-live.is-live-question .aml-game-progress { flex: 0 0 4px; margin-bottom: 7px; }
  .arcade-musicale-live.is-live-question .aml-question-head { margin-bottom: 4px; }
  .arcade-musicale-live.is-live-question .aml-question-kicker { font-size: .75rem; }
  .arcade-musicale-live.is-live-question .aml-progress-label { font-size: .75rem; }
  .arcade-musicale-live.is-live-question .aml-timer-wrap { gap: 6px; margin-bottom: 4px; }
  .arcade-musicale-live.is-live-question .aml-timer { font-size: 1rem; min-height: 34px; padding: 5px 10px; }
  .arcade-musicale-live.is-live-question .aml-timer-label { font-size: .75rem; }
  .arcade-musicale-live.is-live-question .aml-question-card h1 { font-size: clamp(1.3rem, 3vh, 2rem) !important; line-height: 1.08 !important; margin: 2px auto 7px; }
  .arcade-musicale-live.is-live-question .aml-context { margin-bottom: 7px; }
  .arcade-musicale-live.is-live-question .aml-common-rule { gap: 8px; padding: 7px 10px; }
  .arcade-musicale-live.is-live-question .aml-common-rule > span { font-size: .75rem; padding: 5px 7px; }
  .arcade-musicale-live.is-live-question .aml-common-rule > strong { font-size: 1rem; }
  .arcade-musicale-live.is-live-question .aml-audio-box { margin: 0 auto 7px; padding: 8px 10px; }
  .arcade-musicale-live.is-live-question .aml-choice-grid { flex: 1 1 auto; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; min-height: 0; }
  .arcade-musicale-live.is-live-question .aml-choice { min-height: 54px !important; padding: 7px 10px !important; }
  .arcade-musicale-live.is-live-question .aml-choice-copy strong { font-size: .88rem; }
  .arcade-musicale-live.is-live-question .aml-choice-copy small { font-size: .75rem; }
  .arcade-musicale-live.is-live-question .aml-timeline-cards { gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .arcade-musicale-live.is-live-question .aml-orchestra-workspace { flex: 1 1 auto; gap: 8px; grid-template-columns: minmax(0, 1.6fr) minmax(190px, .8fr); grid-template-rows: minmax(0, 1fr) auto; min-height: 0; }
  .arcade-musicale-live.is-live-question .aml-orchestra-workspace .aml-orchestra-stage-map { grid-column: 1; grid-row: 1; }
  .arcade-musicale-live.is-live-question .aml-orchestra-bank { grid-column: 2; grid-row: 1; }
  .arcade-musicale-live.is-live-question .aml-orchestra-workspace-bottom { grid-column: 1 / -1; grid-row: 2; }
  .arcade-musicale-live.is-live-question .aml-orchestra-workspace .aml-orchestra-stage-map { padding: 8px; }
  .arcade-musicale-live.is-live-question .aml-orchestra-stage-map > header { margin-bottom: 5px; }
  .arcade-musicale-live.is-live-question .aml-orchestra-stage-map > header span { font-size: .75rem; }
  .arcade-musicale-live.is-live-question .aml-orchestra-stage-map > header strong { font-size: .75rem; }
  .arcade-musicale-live.is-live-question .aml-orchestra-workspace .aml-orchestra-stage-shell { gap: 4px; min-height: 0; padding: 7px; }
  .arcade-musicale-live.is-live-question .aml-orchestra-stage-zone { flex: 1 1 0; min-height: 44px; padding: 4px 8px; }
  .arcade-musicale-live.is-live-question .aml-orchestra-zone-copy b { font-size: .75rem; }
  .arcade-musicale-live.is-live-question .aml-orchestra-zone-copy small { font-size: .75rem; }
  .arcade-musicale-live.is-live-question .aml-orchestra-bank { padding: 8px; }
  .arcade-musicale-live.is-live-question .aml-orchestra-bank > header { margin-bottom: 5px; }
  .arcade-musicale-live.is-live-question .aml-orchestra-bank > header small { font-size: .75rem; }
  .arcade-musicale-live.is-live-question .aml-orchestra-bank-list { grid-template-columns: minmax(0, 1fr); }
  .arcade-musicale-live.is-live-question .aml-orchestra-bank-list { gap: 5px; }
  .arcade-musicale-live.is-live-question .aml-orchestra-bank-token { min-height: 46px; padding: 5px 7px !important; }
  .arcade-musicale-live.is-live-question .aml-orchestra-bank-token strong { font-size: .76rem; }
  .arcade-musicale-live.is-live-question .aml-orchestra-bank-token small { font-size: .75rem; }
  .arcade-musicale-live.is-live-question .aml-orchestra-workspace-bottom { gap: 8px; }
  .arcade-musicale-live.is-live-question .aml-orchestra-instruction { font-size: .75rem; }
  .arcade-musicale-live.is-live-question .aml-answer-submit .aml-button { min-height: 44px; padding: 7px 13px; }
  .arcade-musicale-live.is-live-question .aml-preflight { align-self: stretch; display: flex; flex-direction: column; justify-content: center; min-height: 0; padding: 18px; }
  .arcade-musicale-live.is-live-question .aml-preflight-count { height: 112px; margin-block: 8px; width: 112px; }
  .arcade-musicale-live.is-live-question .aml-preflight-count strong { font-size: 4rem; }
}

.arcade-musicale-live .aml-shared-volume {
  align-items: center;
  background: rgba(77, 137, 136, .12);
  border: 1px solid rgba(77, 137, 136, .32);
  border-radius: 11px;
  color: var(--music-brown-deep);
  display: flex;
  gap: 5px;
  min-height: 44px;
  padding: 3px 6px;
}
.arcade-musicale-live .aml-shared-volume-title { align-items: center; color: var(--music-teal); display: flex; font-size: .75rem; font-weight: 850; gap: 4px; white-space: nowrap; }
.arcade-musicale-live .aml-shared-volume-title .aml-ui-icon { height: 17px; width: 17px; }
.arcade-musicale-live .aml-shared-volume input[type="range"] { accent-color: #4d8988; cursor: pointer; min-height: 44px; width: clamp(68px, 8vw, 104px); }
.arcade-musicale-live .aml-volume-step { background: #fffdf8 !important; border: 1px solid rgba(77, 137, 136, .3) !important; border-radius: 8px !important; color: var(--music-teal) !important; cursor: pointer; font-size: 1.05rem; font-weight: 900; height: 44px; line-height: 1; padding: 0 !important; width: 44px; }
.arcade-musicale-live .aml-shared-volume output { color: var(--music-brown-deep); font-size: .75rem; font-variant-numeric: tabular-nums; font-weight: 850; min-width: 3.1em; text-align: right; }

/* Sur les écrans de 280 px, les boutons d’introduction doivent rester dans
   leur carte sans réduire leur hauteur tactile. */
@media (max-width: 350px) {
  .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="intro"] .am-tm-intro-grid {
    display: block !important;
    max-width: 100% !important;
    min-width: 0 !important;
    width: 100% !important;
  }
  .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="intro"] .am-tm-intro-copy {
    box-sizing: border-box !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding-inline: 8px !important;
    width: 100% !important;
  }
  .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="intro"] .am-tm-rules {
    display: grid !important;
    gap: 4px !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    width: 100% !important;
  }
  .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="intro"] .am-tm-rules span {
    box-sizing: border-box !important;
    min-width: 0 !important;
    padding-inline: 4px !important;
  }
  .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="intro"] .am-tm-rules small {
    font-size: .75rem !important;
    hyphens: none !important;
    letter-spacing: 0 !important;
    line-height: 1.2 !important;
    overflow-wrap: normal !important;
    white-space: normal !important;
    word-break: normal !important;
  }
  .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="intro"] :is(.am-bt-start, .am-mt-start, .am-tm-start, .am-odd-start, .am-hunter-start, .am-orchestra-start) {
    box-sizing: border-box !important;
    gap: 8px !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding-inline: 10px !important;
    width: 100% !important;
  }
}

/* Les moteurs attendent ces jetons avant d’afficher l’interface. */
/* 8.3.26 — titres lisibles et repères dégagés sur les écrans étroits. */
@media (min-width: 701px) {
  body.atlas-musical-page .atlas-musical:not(.is-choosing-mode) .am-v6-topbar .am-brand {
    margin-left: clamp(112px, 8vw, 148px) !important;
  }
}

@media (max-width: 700px) {
  .atlas-musical-v6 .am-v6-topbar {
    gap: 8px !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    padding-inline: 12px !important;
  }

  .atlas-musical-v6 .am-v6-topbar .am-brand,
  .atlas-musical-v6 .am-v6-topbar .am-brand-copy {
    min-width: 0 !important;
  }

  body.atlas-musical-page .atlas-musical:not(.is-choosing-mode) .am-v6-topbar .am-mode-change {
    flex: 0 0 auto !important;
    font-size: .75rem !important;
    letter-spacing: 0 !important;
    min-width: 0 !important;
    padding: 7px 8px !important;
    white-space: nowrap !important;
    width: auto !important;
  }

  body.atlas-musical-page .atlas-musical:not(.is-choosing-mode) .am-v6-topbar .am-mode-change > span {
    flex: 0 0 auto !important;
    font-size: .85rem !important;
  }

  @media (max-width: 350px) {
    body.atlas-musical-page .atlas-musical:not(.is-choosing-mode) .am-v6-topbar .am-mode-change > span {
      display: none !important;
    }
  }

  .atlas-musical-v6[data-am-current-view="game"] .am-game-title small {
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }
}

.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-bench-title {
  align-items: flex-start !important;
  flex-direction: column !important;
  gap: 4px !important;
  justify-content: flex-start !important;
}

.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-bench-title > span {
  display: block !important;
  font-size: .78rem !important;
  letter-spacing: .08em !important;
  line-height: 1.2 !important;
  max-width: 100% !important;
  overflow-wrap: normal !important;
  white-space: normal !important;
  word-break: normal !important;
}

.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-bench-title > small {
  display: block !important;
  font-size: .75rem !important;
  line-height: 1.35 !important;
  max-width: 100% !important;
  text-align: left !important;
}

.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-bench-actions {
  display: grid !important;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) !important;
}

.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-bench-actions button {
  min-width: 0 !important;
  text-wrap: balance;
  white-space: normal !important;
}

/* En paysage, le lien du site ne doit pas recouvrir « Quitter ».
   La barre Arcade reprend sa place au retour au lobby. */
@media (min-width: 600px) and (orientation: landscape) {
  body.atlas-musical-page.atlas-musical-game-active .ah-home-return {
    display: none !important;
  }
}

/* En paysage compact, le contenu se recentre légèrement vers le haut pour
   garder la bordure basse dans les 720 px. */
@media (min-width: 600px) and (min-height: 700px) and (max-height: 760px) and (orientation: landscape) {
  .atlas-musical-v6[data-am-current-view="game"] .am-main {
    padding-bottom: 6px !important;
    padding-top: 0 !important;
  }
}

/* Les notifications restent compactes sur téléphone et gardent une largeur
   liée à leur texte au lieu de former une bannière qui masque la scène. */
.atlas-musical-v6 .am-toast-region {
  max-width: min(420px, calc(100vw - 24px));
}

.atlas-musical-v6 .am-toast {
  box-sizing: border-box;
  line-height: 1.35;
  max-width: min(420px, calc(100vw - 24px));
  padding: 10px 14px !important;
  text-align: center;
  width: fit-content;
}

@media (max-width: 700px) {
  .atlas-musical-v6 .am-toast-region {
    left: 12px;
    right: 12px;
  }

  .atlas-musical-v6 .am-toast {
    justify-self: center;
    max-width: 100%;
  }
}

.atlas-musical { --am-final-css-ready: 83260; }
.arcade-musicale-live { --aml-final-css-ready: 83260; }

/* 8.3.43 — couleur fixe par réponse, commune à Solo et Live. */
.atlas-musical-v6 [data-am-choice-index="0"] { --am-choice-color: 224, 129, 112; --aml-choice: 224, 129, 112; }
.atlas-musical-v6 [data-am-choice-index="1"] { --am-choice-color: 104, 163, 211; --aml-choice: 104, 163, 211; }
.atlas-musical-v6 [data-am-choice-index="2"] { --am-choice-color: 220, 174, 78; --aml-choice: 220, 174, 78; }
.atlas-musical-v6 [data-am-choice-index="3"] { --am-choice-color: 173, 136, 202; --aml-choice: 173, 136, 202; }

.atlas-musical-v6 :is(.am-game-choice, .am-tm-card, .am-odd-case, .am-hunter-choice, .am-orchestra-label, .am-orchestra-placed)[data-am-choice-index] {
  background: linear-gradient(135deg, rgba(var(--am-choice-color), .24), rgba(25, 29, 39, .94)) !important;
  border-color: rgba(var(--am-choice-color), .62) !important;
  box-shadow: inset 4px 0 0 rgb(var(--am-choice-color)), 0 8px 22px rgba(0, 0, 0, .12) !important;
  color: #fffdf8 !important;
}
.atlas-musical-v6 :is(.am-game-choice, .am-tm-card, .am-odd-case, .am-hunter-choice, .am-orchestra-label)[data-am-choice-index]:hover:not(:disabled),
.atlas-musical-v6 :is(.am-game-choice, .am-tm-card, .am-odd-case, .am-hunter-choice, .am-orchestra-label)[data-am-choice-index]:focus-visible:not(:disabled) {
  background: linear-gradient(135deg, rgba(var(--am-choice-color), .34), rgba(27, 31, 42, .97)) !important;
  border-color: rgb(var(--am-choice-color)) !important;
  box-shadow: inset 5px 0 0 rgb(var(--am-choice-color)), 0 12px 28px rgba(0, 0, 0, .22) !important;
}
.atlas-musical-v6 .am-game-choice[data-am-choice-index] { grid-template-columns: minmax(0, 1fr) 32px !important; }
.atlas-musical-v6 .am-game-choice[data-am-choice-index] > :is(.am-game-choice-copy, strong) { grid-column: 1 !important; min-width: 0 !important; width: 100% !important; }
.atlas-musical-v6 .am-game-choice[data-am-choice-index] > .am-game-choice-state { grid-column: 2 !important; }
.atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] [data-am-content] .am-game-choice[data-am-choice-index] { grid-template-columns: minmax(0, 1fr) 32px !important; }
.atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] [data-am-content] .am-game-choice[data-am-choice-index] > :is(.am-game-choice-copy, strong) { grid-column: 1 !important; min-width: 0 !important; width: 100% !important; }
.atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] [data-am-content] .am-game-choice[data-am-choice-index] > .am-game-choice-state { grid-column: 2 !important; }
.atlas-musical-v6 .am-game-choice[data-am-choice-index] .am-game-choice-state { color: rgb(var(--am-choice-color)) !important; }
.atlas-musical-v6 .am-game-choice.is-correct[data-am-choice-index],
.atlas-musical-v6 .am-tm-card.is-correct[data-am-choice-index],
.atlas-musical-v6 .am-odd-case.is-correct[data-am-choice-index],
.atlas-musical-v6 .am-hunter-choice.is-correct[data-am-choice-index] {
  background: linear-gradient(135deg, rgba(var(--am-choice-color), .25), rgba(26, 86, 61, .78)) !important;
  border-color: #58db9b !important;
}
.atlas-musical-v6 .am-game-choice.is-wrong[data-am-choice-index],
.atlas-musical-v6 .am-tm-card.is-wrong[data-am-choice-index],
.atlas-musical-v6 .am-odd-case.is-wrong[data-am-choice-index],
.atlas-musical-v6 .am-hunter-choice.is-wrong[data-am-choice-index] {
  background: linear-gradient(135deg, rgba(var(--am-choice-color), .2), rgba(92, 35, 48, .78)) !important;
  border-color: #ef8792 !important;
}
.atlas-musical-v6 .am-game-choice.is-muted[data-am-choice-index],
.atlas-musical-v6 .am-tm-card.is-muted[data-am-choice-index],
.atlas-musical-v6 .am-odd-case.is-group[data-am-choice-index],
.atlas-musical-v6 .am-hunter-choice.is-muted[data-am-choice-index] { opacity: .68; }
.atlas-musical-v6 .am-odd-case[data-am-choice-index] {
  align-items: center !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 7px !important;
  justify-content: center !important;
  min-height: 92px !important;
  padding: 14px 12px !important;
  text-align: center !important;
}
.atlas-musical-v6 .am-odd-case[data-am-choice-index] > strong,
.atlas-musical-v6 .am-odd-case[data-am-choice-index] > small { align-self: center !important; text-align: center !important; width: 100% !important; }
.atlas-musical-v6 .am-hunter-choice[data-am-choice-index] { min-height: 82px !important; }
.atlas-musical-v6 .am-orchestra-label[data-am-choice-index] { border-radius: 14px !important; }
.atlas-musical-v6 .am-orchestra-placed[data-am-choice-index] {
  border: 1px solid rgba(var(--am-choice-color), .72) !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, rgba(var(--am-choice-color), .26), rgba(25, 29, 39, .92)) !important;
  padding: 5px 8px !important;
}

.arcade-musicale-live [data-am-choice-index="0"] { --aml-choice: 224, 129, 112; }
.arcade-musicale-live [data-am-choice-index="1"] { --aml-choice: 104, 163, 211; }
.arcade-musicale-live [data-am-choice-index="2"] { --aml-choice: 220, 174, 78; }
.arcade-musicale-live [data-am-choice-index="3"] { --aml-choice: 173, 136, 202; }
.arcade-musicale-live :is(.aml-choice, .aml-timeline-card, .aml-orchestra-bank-token, .aml-orchestra-placed)[data-am-choice-index] {
  background: linear-gradient(135deg, rgba(var(--aml-choice), .31), rgba(255, 253, 248, .96)) !important;
  border-color: rgba(var(--aml-choice), .74) !important;
  box-shadow: inset 4px 0 0 rgb(var(--aml-choice)), 0 5px 15px rgba(67, 49, 31, .08) !important;
  color: #30271f !important;
}
.arcade-musicale-live :is(.aml-choice, .aml-timeline-card, .aml-orchestra-bank-token, .aml-orchestra-placed)[data-am-choice-index]:hover:not(:disabled),
.arcade-musicale-live :is(.aml-choice, .aml-timeline-card, .aml-orchestra-bank-token, .aml-orchestra-placed)[data-am-choice-index]:focus-visible:not(:disabled) {
  background: linear-gradient(135deg, rgba(var(--aml-choice), .42), rgba(255, 253, 248, .98)) !important;
  border-color: rgb(var(--aml-choice)) !important;
  box-shadow: inset 5px 0 0 rgb(var(--aml-choice)), 0 8px 20px rgba(67, 49, 31, .13) !important;
}
.arcade-musicale-live .aml-choice[data-am-choice-index] { gap: 0 !important; }
.arcade-musicale-live .aml-choice-copy { width: 100%; }
.arcade-musicale-live .aml-choice-copy strong { color: #30271f !important; }
.arcade-musicale-live .aml-timeline-card[data-am-choice-index] {
  align-content: center !important;
  align-items: center !important;
  grid-template-columns: minmax(0, 1fr) !important;
  justify-items: center !important;
}
.arcade-musicale-live .aml-timeline-card[data-am-choice-index] > :is(strong, small) {
  color: #30271f !important;
  grid-column: 1 !important;
  text-align: center !important;
}
.arcade-musicale-live .aml-orchestra-bank-token[data-am-choice-index],
.arcade-musicale-live .aml-orchestra-placed[data-am-choice-index] { border-radius: 12px !important; }
.arcade-musicale-live .aml-orchestra-placed[data-am-choice-index] { padding: 7px 10px !important; }
.atlas-musical { --am-final-css-ready: 83260; }
.arcade-musicale-live { --aml-final-css-ready: 83260; }

/* 8.3.27 — les nombres et libellés de progression restent distincts et nets. */
.atlas-musical-v6 .am-v611-stat {
  column-gap: 8px !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  min-width: 144px;
  padding: 7px 10px !important;
}
.atlas-musical-v6 .am-v611-stat > span { grid-row: 1 / 3; }
.atlas-musical-v6 .am-v611-stat strong {
  font-size: .98rem !important;
  font-variant-numeric: tabular-nums;
  line-height: 1.1 !important;
  white-space: nowrap;
}
.atlas-musical-v6 .am-v611-stat small {
  font-size: .75rem !important;
  letter-spacing: .01em !important;
  line-height: 1.15;
  text-transform: none !important;
  white-space: nowrap;
}
.atlas-musical .am-mode-panel h1 {
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}

/* Sur une tablette en paysage, garder l’action d’entrée dans le premier écran. */
@media (min-width: 701px) and (min-height: 620px) and (max-height: 860px) {
  .arcade-musicale-live .aml-main {
    padding-bottom: 14px !important;
    padding-top: 12px !important;
  }
  .arcade-musicale-live .aml-intro { gap: 8px !important; }
  .arcade-musicale-live .aml-live-hero .aml-eyebrow { margin-bottom: 5px !important; }
  .arcade-musicale-live .aml-live-hero h1 {
    font-size: clamp(2.3rem, 4vw, 3.25rem) !important;
    line-height: 1 !important;
    margin-bottom: 5px !important;
  }
  .arcade-musicale-live .aml-live-hero p {
    font-size: .94rem !important;
    line-height: 1.42 !important;
  }
  .arcade-musicale-live .aml-entry-switch { margin-block: 5px 7px !important; }
  .arcade-musicale-live .aml-entry-switch-button { min-height: 46px !important; }
  .arcade-musicale-live .aml-player-entry,
  .arcade-musicale-live .aml-host-entry { padding: 16px !important; }
  .arcade-musicale-live .aml-entry-heading h2 { font-size: 1.45rem !important; }
  .arcade-musicale-live .aml-player-entry > p,
  .arcade-musicale-live .aml-host-entry > p { line-height: 1.42 !important; margin-top: 6px !important; }
  .arcade-musicale-live .aml-form { gap: 8px !important; margin-top: 10px !important; }
  .arcade-musicale-live .aml-field input,
  .arcade-musicale-live .aml-field select { min-height: 42px !important; }
  .arcade-musicale-live .aml-code-input { min-height: 46px !important; }
  .arcade-musicale-live .aml-join-button { min-height: 44px !important; }
}

/* 8.3.36 — la règle commune de L’Intrus reste centrée et lisible en Live. */
.arcade-musicale-live.is-live-question .aml-common-rule {
  align-items: center !important;
  border-left-width: 2px !important;
  gap: 0 !important;
  justify-content: center !important;
  text-align: center !important;
}
.arcade-musicale-live.is-live-question .aml-common-rule > strong:not(#am-ui-leaf-type-floor) {
  color: var(--music-brown-deep) !important;
  display: block !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(1rem, 1.55vw, 1.3rem) !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
  text-align: center !important;
  width: 100% !important;
}

/* 8.3.36 — détacher visuellement la règle commune des réponses et garder
   les quatre choix centrés dans les deux modes d’affichage Live. */
.arcade-musicale-live .aml-question-card.is-odd-question .aml-common-rule {
  background: linear-gradient(135deg, #493719, #352a20) !important;
  border: 2px solid rgba(235, 194, 105, .88) !important;
  border-left: 2px solid rgba(235, 194, 105, .88) !important;
  box-shadow: inset 5px 0 0 #e8bd5f, inset 0 1px rgba(255, 241, 206, .1), 0 8px 22px rgba(71, 49, 19, .12) !important;
}
.arcade-musicale-live .aml-question-card.is-odd-question .aml-common-rule > strong:not(#am-ui-leaf-type-floor) {
  color: #ffdf8e !important;
  font-size: clamp(1.12rem, 2.25vw, 1.45rem) !important;
  font-weight: 900 !important;
  line-height: 1.35 !important;
}
.arcade-musicale-live .aml-question-card.is-odd-question {
  align-self: stretch !important;
  min-height: 0 !important;
}
.arcade-musicale-live .aml-question-card.is-odd-question .aml-choice-grid {
  align-content: stretch !important;
  align-items: stretch !important;
  flex: 1 1 auto !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  width: 100% !important;
}
.arcade-musicale-live .aml-question-card.is-odd-question .aml-choice {
  align-items: center !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  min-height: 86px !important;
  padding: 12px !important;
  text-align: center !important;
}
.arcade-musicale-live .aml-question-card.is-odd-question .aml-choice-index {
  flex: 0 0 28px !important;
  height: 28px !important;
  margin: 0 auto !important;
  min-width: 28px !important;
  position: static !important;
  width: 28px !important;
}
.arcade-musicale-live .aml-question-card.is-odd-question .aml-choice-copy {
  align-self: stretch !important;
  max-width: 100% !important;
  text-align: center !important;
  width: 100% !important;
}
.arcade-musicale-live .aml-question-card.is-odd-question .aml-choice-copy > strong,
.arcade-musicale-live .aml-question-card.is-odd-question .aml-choice-copy > small {
  overflow-wrap: anywhere !important;
  text-align: center !important;
}
@media (orientation: landscape) and (max-height: 480px) {
  .arcade-musicale-live .aml-question-card.is-odd-question .aml-choice {
    min-height: 64px !important;
    padding: 8px !important;
  }
  .arcade-musicale-live .aml-question-card.is-odd-question .aml-choice-index {
    display: flex !important;
  }
}
@media (max-width: 700px) and (orientation: portrait) {
  .arcade-musicale-live .aml-question-card.is-odd-question .aml-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .arcade-musicale-live .aml-question-card.is-odd-question .aml-choice {
    min-height: 86px !important;
    padding: 10px 8px !important;
  }
}
/* Time Machine cards keep the work and composer as the only visible choices. */
.atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-tm-card,
.atlas-musical-v6[data-am-current-view="game"] .am-tm-card,
.arcade-musicale-live .aml-timeline-card {
  align-content: center !important;
  align-items: center !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: none !important;
  justify-items: center !important;
  text-align: center !important;
}
.atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-tm-card > .am-tm-card-clock,
.atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-tm-card > strong,
.atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-tm-card > small,
.atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-tm-card > i,
.atlas-musical-v6[data-am-current-view="game"] .am-tm-card > .am-tm-card-clock,
.atlas-musical-v6[data-am-current-view="game"] .am-tm-card > strong,
.atlas-musical-v6[data-am-current-view="game"] .am-tm-card > small,
.atlas-musical-v6[data-am-current-view="game"] .am-tm-card > i,
.arcade-musicale-live .aml-timeline-card > strong,
.arcade-musicale-live .aml-timeline-card > small {
  grid-column: 1 !important;
  grid-row: auto !important;
  justify-self: center !important;
  text-align: center !important;
}
.atlas-musical-v6[data-am-current-view="game"] .am-tm-card > strong { align-self: center !important; margin-top: 0 !important; }
.atlas-musical-v6[data-am-current-view="game"] .am-tm-card > small { margin-top: 4px !important; }
.atlas-musical-v6[data-am-current-view="game"] .am-tm-card > i { margin-top: 6px !important; }
.arcade-musicale-live .aml-timeline-card > strong { font-size: 1.17rem; line-height: 1.15; }
.arcade-musicale-live .aml-timeline-card > small { font-size: .78rem; }
.atlas-musical-v6[data-am-current-view="game"] .am-tm-card:focus-visible:not(:disabled),
.arcade-musicale-live .aml-timeline-card:focus-visible:not(:disabled) {
  outline: 3px solid #f0cf82 !important;
  outline-offset: 3px !important;
}
.atlas-musical { --am-final-css-ready: 83260; }
.arcade-musicale-live { --aml-final-css-ready: 83260; }

/* Texte blanc AAA sur un fond jade opaque, lisible sur tous les fonds d’hôte. */
.atlas-musical-v6[data-am-current-view="game"] .am-odd-common-rule,
.arcade-musicale-live .aml-question-card.is-odd-question .aml-common-rule {
  background: linear-gradient(135deg, #164a37, #14243a) !important;
  border: 2px solid #6be3a3 !important;
  border-left: 2px solid #6be3a3 !important;
  box-shadow: inset 5px 0 0 #51cb87, inset 0 1px rgba(231, 255, 239, .14), 0 8px 22px rgba(13, 53, 35, .2) !important;
  color: #f7fff9 !important;
}
.atlas-musical-v6[data-am-current-view="game"] [data-am-content] .am-odd-common-rule > strong:not(#am-ui-leaf-type-floor),
.arcade-musicale-live .aml-question-card.is-odd-question .aml-common-rule > strong:not(#am-ui-leaf-type-floor) {
  color: #f7fff9 !important;
}

/* 8.3.88 — placer les choix en deux colonnes sur les téléphones très étroits. */
@media (max-width: 300px) and (max-height: 500px) {
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-odd-board-grid {
    box-sizing: border-box !important;
    display: grid !important;
    flex: 0 0 auto !important;
    gap: 4px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    max-width: none !important;
    width: 100% !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-odd-case {
    min-height: 44px !important;
    padding: 4px !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-odd-case > strong {
    font-size: 15px !important;
    line-height: 1.15 !important;
    overflow-wrap: anywhere !important;
  }
}


/* 8.3.88 — garder les quatre choix de L’Intrus visibles avec une règle longue. */
@media (max-width: 300px) and (max-height: 500px) {
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-odd-stage .am-game-step { display: none !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-odd-common-rule { margin: 2px 0 3px !important; padding: 6px 8px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-odd-common-rule > strong { font-size: 14px !important; line-height: 1.15 !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-odd-board-grid { gap: 4px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-odd-case { min-height: 44px !important; padding: 5px !important; }
}
@media (orientation: landscape) and (max-height: 360px) and (min-width: 480px) and (max-width: 700px) {
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-odd-common-rule { margin-bottom: 3px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-odd-board-grid { gap: 4px !important; }
}


/* 8.3.75 — sur téléphone étroit, le lecteur partagé ne comprime pas son texte. */
@media (orientation: portrait) and (max-width: 360px) and (max-height: 700px) {
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-stage:is(.am-bt-stage, .am-hunter-stage) .am-game-listen-box {
    align-self: start !important;
    box-sizing: border-box !important;
    display: grid !important;
    gap: 4px 6px !important;
    grid-template-areas: "icon main" "actions actions" !important;
    grid-template-columns: 34px minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    height: auto !important;
    min-height: 90px !important;
    padding: 5px 7px !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-stage:is(.am-bt-stage, .am-hunter-stage) .am-game-listen-icon { grid-area: icon !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-stage:is(.am-bt-stage, .am-hunter-stage) .am-game-listen-main {
    grid-area: main !important;
    min-width: 0 !important;
    overflow-wrap: normal !important;
    width: auto !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-stage:is(.am-bt-stage, .am-hunter-stage) .am-game-audio-actions {
    align-items: center !important;
    display: flex !important;
    grid-area: actions !important;
    gap: 6px !important;
    min-width: 0 !important;
    width: 100% !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-stage:is(.am-bt-stage, .am-hunter-stage) .am-game-audio-toggle {
    flex: 1 1 auto !important;
    min-height: 44px !important;
    min-width: 0 !important;
    padding: 4px 6px !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-stage:is(.am-bt-stage, .am-hunter-stage) .am-game-audio-time { flex: 0 0 auto !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-stage:is(.am-bt-stage, .am-hunter-stage) .am-game-listen-label,
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-stage:is(.am-bt-stage, .am-hunter-stage) .am-game-listen-main > small {
    display: none !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-stage:is(.am-bt-stage, .am-hunter-stage) .am-game-listen-main > strong,
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-stage:is(.am-bt-stage, .am-hunter-stage) .am-game-audio-toggle strong,
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-stage:is(.am-bt-stage, .am-hunter-stage) .am-game-audio-time {
    font-size: .75rem !important;
    line-height: 1.1 !important;
  }
}

/* 8.3.75 — lecteurs sur deux lignes et derniers choix cadrés en paysage large et court. */
@media (orientation: landscape) and (max-height: 560px) and (min-width: 700px) and (max-width: 940px) {
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-stage:is(.am-bt-stage, .am-hunter-stage) {
    gap: 0 !important;
    padding: 1px 6px !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-stage:is(.am-bt-stage, .am-hunter-stage) .am-game-listen-box {
    align-self: start !important;
    box-sizing: border-box !important;
    display: grid !important;
    gap: 4px 6px !important;
    grid-template-areas: "icon main" "actions actions" !important;
    grid-template-columns: 30px minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    height: auto !important;
    min-height: 88px !important;
    padding: 4px 7px !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-stage:is(.am-bt-stage, .am-hunter-stage) .am-game-listen-icon { grid-area: icon !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-stage:is(.am-bt-stage, .am-hunter-stage) .am-game-listen-main {
    grid-area: main !important;
    min-width: 0 !important;
    overflow-wrap: normal !important;
    width: auto !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-stage:is(.am-bt-stage, .am-hunter-stage) .am-game-audio-actions {
    align-items: center !important;
    display: flex !important;
    grid-area: actions !important;
    gap: 6px !important;
    min-width: 0 !important;
    width: 100% !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-stage:is(.am-bt-stage, .am-hunter-stage) .am-game-audio-toggle {
    flex: 1 1 auto !important;
    min-height: 44px !important;
    min-width: 0 !important;
    padding: 4px 6px !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-stage:is(.am-bt-stage, .am-hunter-stage) .am-game-audio-time { flex: 0 0 auto !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-stage:is(.am-bt-stage, .am-hunter-stage) .am-game-listen-label,
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-stage:is(.am-bt-stage, .am-hunter-stage) .am-game-listen-main > small {
    display: none !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-stage:is(.am-bt-stage, .am-hunter-stage) .am-game-listen-main > strong,
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-stage:is(.am-bt-stage, .am-hunter-stage) .am-game-audio-toggle strong,
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-stage:is(.am-bt-stage, .am-hunter-stage) .am-game-audio-time {
    font-size: .75rem !important;
    line-height: 1.1 !important;
  }
}

/* 8.3.75 — retirer trois pixels inutiles au-dessus du plan sur grand écran. */
@media (min-width: 1600px) and (min-height: 900px) {
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-stage .am-orchestra-round { margin-top: 0 !important; }
}


/* 8.3.71 — maintenir aussi les actions visibles sur les téléphones très courts. */
@media (max-width: 420px) and (max-height: 500px) and (orientation: portrait) {
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round:not(.is-answered) {
    gap: 0 !important;
  }

  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round:not(.is-answered) .am-orchestra-workspace {
    margin-top: 0px !important;
  }

  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round:not(.is-answered) .am-orchestra-stage-map {
    align-self: start !important;
    box-sizing: border-box !important;
    flex: 0 0 132px !important;
    height: 132px !important;
    max-height: 132px !important;
    min-height: 132px !important;
    padding: 3px 5px !important;
  }

  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round:not(.is-answered) .am-orchestra-bench {
    padding: 4px !important;
  }

  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round:not(.is-answered) .am-orchestra-bench-instruction {
    font-size: 12px !important;
    line-height: 1.15 !important;
    margin: 1px 0 2px !important;
  }

  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round:not(.is-answered) .am-orchestra-bench-actions {
    padding-top: 2px !important;
  }
}

/* 8.3.60 — sur les téléphones étroits, le lecteur Instrument Hunter passe
   ses commandes sous le texte et les quatre réponses prennent deux colonnes. */
@media (orientation: portrait) and (max-width: 320px) and (max-height: 700px) {
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-hunter-stage {
    gap: 5px !important;
    padding: 6px 8px !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-hunter-stage .am-game-listen-box {
    display: grid !important;
    grid-template-areas: "icon main" "actions actions" !important;
    grid-template-columns: 30px minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    gap: 4px 6px !important;
    min-height: 0 !important;
    padding: 5px 7px !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-hunter-stage .am-game-listen-icon { grid-area: icon !important; height: 30px !important; width: 30px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-hunter-stage .am-game-listen-main { grid-area: main !important; min-width: 0 !important; width: auto !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-hunter-stage .am-game-listen-label { font-size: .75rem !important; line-height: 1.05 !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-hunter-stage .am-game-listen-main :is(strong, small) { font-size: .75rem !important; line-height: 1.15 !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-hunter-stage .am-game-audio-actions {
    align-items: center !important;
    display: flex !important;
    grid-area: actions !important;
    gap: 6px !important;
    min-width: 0 !important;
    width: 100% !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-hunter-stage .am-game-audio-toggle { flex: 1 1 auto !important; min-width: 0 !important; min-height: 44px !important; padding: 4px 6px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-hunter-stage .am-game-audio-time { flex: 0 0 auto !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-hunter-round-head { margin: 0 !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-hunter-round-head h1 { font-size: 1.1rem !important; line-height: 1.05 !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-hunter-round-head p { font-size: .75rem !important; line-height: 1.15 !important; margin: 3px 0 !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-hunter-choice-grid { gap: 5px !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-hunter-choice:not(#am-ui-tap-floor) { min-height: 50px !important; padding: 4px 5px !important; }
}


/* 8.3.59 — en paysage court, Music Trip garde sa question et ses quatre
   réponses dans la scène au lieu de créer des pistes de grille implicites. */
@media (orientation: landscape) and (max-height: 560px) and (min-width: 480px) and (max-width: 940px) {
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage {
    display: grid !important;
    grid-template-areas: "step step" "listen round" !important;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr) !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-game-step { grid-area: step !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-game-listen-box { grid-area: listen !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-mt-round {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    grid-area: round !important;
    gap: 5px !important;
    margin: 0 !important;
    min-height: 0 !important;
    min-width: 0 !important;
    width: 100% !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-mt-round-copy {
    grid-area: auto !important;
    margin: 0 !important;
    padding: 0 3px !important;
    text-align: left !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-mt-round-copy h1 {
    font-size: clamp(.95rem, 2.2vw, 1.2rem) !important;
    line-height: 1.05 !important;
    max-width: none !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-mt-round-copy > p { display: none !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-mt-choice-grid {
    align-content: center !important;
    flex: 0 0 auto !important;
    grid-area: auto !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 5px !important;
    margin: 0 !important;
    max-width: none !important;
    min-width: 0 !important;
    width: 100% !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-mt-choice-grid .am-game-choice {
    box-sizing: border-box !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    min-height: 54px !important;
    min-width: 0 !important;
    padding: 5px 7px !important;
  }
}



/* 8.3.43 — une scène de jeu commune, en Solo comme en Live. */
.atlas-musical-v6[data-am-current-view="game"] .am-game-shell {
  background: transparent !important;
}
.atlas-musical-v6[data-am-current-view="game"] .am-game-stage {
  background:
    radial-gradient(circle at 14% 0, rgba(197, 154, 74, .18), transparent 27rem),
    radial-gradient(circle at 92% 18%, rgba(77, 137, 136, .11), transparent 24rem),
    linear-gradient(145deg, #3a3029, #251f1b) !important;
  border-color: rgba(255, 253, 248, .14) !important;
  box-shadow: 0 24px 64px rgba(52, 42, 36, .24) !important;
  color: #f8f1e7 !important;
}

.arcade-musicale-live.is-live-question .aml-question-card {
  background:
    radial-gradient(circle at 14% 0, rgba(197, 154, 74, .18), transparent 27rem),
    radial-gradient(circle at 92% 18%, rgba(77, 137, 136, .11), transparent 24rem),
    linear-gradient(145deg, #3a3029, #251f1b) !important;
  border-color: rgba(255, 253, 248, .14) !important;
  box-shadow: 0 24px 64px rgba(52, 42, 36, .24) !important;
  color: #f8f1e7 !important;
}
.arcade-musicale-live.is-live-question .aml-question-card h1 { color: #fffdf8 !important; }
.arcade-musicale-live.is-live-question .aml-question-kicker { color: #f0cf82 !important; }
.arcade-musicale-live.is-live-question .aml-question-kicker > span {
  background: rgba(255, 253, 248, .1) !important;
  color: #f0cf82 !important;
}
.arcade-musicale-live.is-live-question .aml-progress-label,
.arcade-musicale-live.is-live-question .aml-timer-label { color: #d8cec4 !important; }
.arcade-musicale-live.is-live-question .aml-game-progress { background: rgba(255, 253, 248, .12) !important; }
.arcade-musicale-live.is-live-question .aml-timer {
  background: #f2e1b9 !important;
  border-color: #f2e1b9 !important;
  color: #342a24 !important;
}

/* 8.3.44 — séparer le compteur et son libellé dans la banque Orchestra. */
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-bench-title {
  align-items: center !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 4px 8px !important;
}
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-bench-title > .am-orchestra-bank-count {
  align-items: center !important;
  background: #f0cf82 !important;
  border-radius: 999px !important;
  color: #342a24 !important;
  display: inline-flex !important;
  font-size: .75rem !important;
  font-weight: 950 !important;
  justify-content: center !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  min-width: 1.5rem !important;
  padding: 4px 7px !important;
}
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-bench-title > .am-orchestra-bank-label,
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-bench-title > .am-orchestra-bank-ready {
  color: #f0cf82 !important;
  display: inline-block !important;
  font-size: .76rem !important;
  font-weight: 950 !important;
  letter-spacing: .07em !important;
  line-height: 1.25 !important;
}
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-bench-title > small { flex: 1 0 100% !important; }
.arcade-musicale-live .aml-orchestra-bank > header > strong {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;
  letter-spacing: 0;
}
.arcade-musicale-live .aml-orchestra-bank-count {
  align-items: center;
  background: #356c69;
  border-radius: 999px;
  color: #fffdf8;
  display: inline-flex;
  font-size: .75rem;
  font-weight: 950;
  justify-content: center;
  line-height: 1;
  min-width: 1.5rem;
  padding: 4px 7px;
}
.arcade-musicale-live .aml-orchestra-bank-label { color: #352c24; font-size: .75rem; font-weight: 900; letter-spacing: .07em; }
/* Orchestra Builder 8.3.49: cohérence de flux après les variantes responsives historiques. */
body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round { display: flex !important; flex-direction: column !important; gap: 8px !important; justify-content: flex-start !important; }
body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round.is-answered .am-orchestra-workspace { display: grid !important; flex: 0 0 auto !important; grid-template-columns: minmax(0, 1fr) !important; margin: 0 auto !important; min-height: 0 !important; width: 100% !important; }
body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round.is-answered .am-orchestra-stage-map { box-sizing: border-box !important; height: auto !important; min-height: 0 !important; padding: 10px !important; width: 100% !important; }
body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round.is-answered .am-orchestra-stage-label,
body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round:not(.is-answered) .am-orchestra-stage-label { display: block !important; font-size: .75rem !important; left: auto !important; line-height: 1.2 !important; position: relative !important; right: auto !important; text-align: center !important; top: auto !important; }
body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round.is-answered .am-orchestra-zones { display: grid !important; flex-direction: initial !important; gap: 6px !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; height: auto !important; margin-top: 5px !important; }
body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round.is-answered .am-orchestra-zone { box-sizing: border-box !important; grid-template-columns: minmax(0, 1fr) !important; justify-items: center !important; min-height: 70px !important; padding: 5px !important; text-align: center !important; width: 100% !important; }
body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round.is-answered .am-orchestra-zone-meta { text-align: center !important; }
body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round.is-answered .am-orchestra-placed { display: grid !important; gap: 0 6px !important; grid-template-columns: 26px minmax(0, 1fr) !important; grid-template-rows: auto auto !important; justify-self: center !important; max-width: 190px !important; min-width: 0 !important; width: 100% !important; }
body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round.is-answered .am-orchestra-placed i { font-size: .75rem !important; grid-row: 1 / 3 !important; height: 26px !important; width: 26px !important; }
body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round.is-answered .am-orchestra-placed :is(strong, small) { font-size: .75rem !important; line-height: 1.15 !important; overflow-wrap: normal !important; text-align: left !important; word-break: normal !important; }
body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round.is-answered .am-orchestra-conductor { display: none !important; }
body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-result { flex: 0 0 auto !important; margin: 0 !important; position: relative !important; }
body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-bench-title { align-items: flex-start !important; display: block !important; margin-bottom: 0 !important; }
body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-bank-heading { align-items: center !important; display: flex !important; flex-wrap: wrap !important; gap: 4px 8px !important; min-width: 0 !important; width: 100% !important; }
body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-bench-instruction { color: #f1e9dc !important; display: block !important; font-size: .75rem !important; line-height: 1.2 !important; margin: 3px 0 8px !important; overflow-wrap: normal !important; text-align: left !important; width: 100% !important; }
@media (max-width: 700px) {
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round:not(.is-answered) .am-orchestra-stage-map { box-sizing: border-box !important; height: auto !important; min-height: 0 !important; padding: 9px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round:not(.is-answered) .am-orchestra-zones { display: grid !important; flex-direction: initial !important; gap: 5px !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; height: auto !important; margin-top: 5px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round:not(.is-answered) .am-orchestra-zone { box-sizing: border-box !important; grid-template-columns: minmax(0, 1fr) !important; justify-items: center !important; min-height: 44px !important; padding: 5px !important; text-align: center !important; width: 100% !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round:not(.is-answered) .am-orchestra-zone-meta { text-align: center !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round:not(.is-answered) .am-orchestra-zone-meta small,
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round:not(.is-answered) .am-orchestra-empty small { display: none !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round:not(.is-answered) .am-orchestra-bench-title { align-items: flex-start !important; display: flex !important; margin-bottom: 0 !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round:not(.is-answered) .am-orchestra-bank-heading { align-items: center !important; display: flex !important; flex-wrap: wrap !important; gap: 4px 8px !important; min-width: 0 !important; width: 100% !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round:not(.is-answered) .am-orchestra-bench-instruction { color: #f1e9dc !important; display: block !important; font-size: .75rem !important; line-height: 1.2 !important; margin: 3px 0 8px !important; overflow-wrap: normal !important; text-align: left !important; width: 100% !important; }
}
@media (max-width: 360px), (max-height: 620px) and (orientation: portrait) {
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round { gap: 4px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round-head > span { font-size: .75rem !important; letter-spacing: .08em !important; white-space: nowrap !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round-head h1 { font-size: clamp(1.1rem, 4.8vw, 1.2rem) !important; line-height: 1.02 !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round:not(.is-answered) .am-orchestra-stage-map { padding: 5px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round:not(.is-answered) .am-orchestra-zones { gap: 3px !important; margin-top: 3px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round:not(.is-answered) .am-orchestra-bench { padding: 6px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round:not(.is-answered) .am-orchestra-bench-instruction { margin: 2px 0 4px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round:not(.is-answered) .am-orchestra-label { min-height: 44px !important; padding: 3px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-bench-actions { gap: 4px !important; padding-top: 3px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-bench-actions button { block-size: 44px !important; font-size: .75rem !important; min-height: 44px !important; padding: 2px 5px !important; }
}

@media (max-width: 360px), (max-height: 620px) and (orientation: portrait) {
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round.is-answered .am-orchestra-round-head { display: none !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round.is-answered .am-orchestra-stage-map { padding: 6px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round.is-answered .am-orchestra-zones { gap: 4px !important; margin-top: 3px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round.is-answered .am-orchestra-zone { min-height: 58px !important; padding: 3px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-result { gap: 6px !important; grid-template-columns: minmax(0, 1fr) !important; padding: 8px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-result-icon { display: none !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-result-copy { grid-column: 1 !important; min-width: 0 !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-result-copy h2 { font-size: 1rem !important; line-height: 1.15 !important; margin: 3px 0 !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-result-copy p { font-size: .75rem !important; line-height: 1.2 !important; margin: 4px 0 0 !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-result-actions { grid-column: 1 !important; gap: 5px !important; justify-content: flex-end !important; width: 100% !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-result-actions .am-button { min-height: 44px !important; padding: 4px 8px !important; }
}

/* Petits formats : garder les libellés de famille entiers dans les pupitres. */
@media (max-width: 360px), (orientation: landscape) and (max-height: 420px) and (min-width: 700px) and (max-width: 940px) {
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-rescue { align-items: center !important; gap: 4px !important; grid-template-columns: minmax(0, 1fr) auto !important; margin: 1px 0 !important; padding: 6px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-rescue > div { min-width: 0 !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-rescue span { font-size: .75rem !important; line-height: 1 !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-rescue strong { font-size: .75rem !important; line-height: 1.1 !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-rescue p { font-size: .75rem !important; line-height: 1.1 !important; margin: 2px 0 0 !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-rescue > b { font-size: .75rem !important; line-height: 1 !important; padding: 4px 6px !important; white-space: nowrap !important; }
}

@media (max-width: 300px) {
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-title small { display: none !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round.is-answered .am-orchestra-zones { grid-template-columns: minmax(0, 1fr) !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round.is-answered .am-orchestra-zone { grid-template-columns: minmax(64px, .52fr) minmax(0, 1.48fr) !important; justify-items: stretch !important; min-height: 50px !important; padding: 3px 6px !important; text-align: left !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round.is-answered .am-orchestra-zone-meta { text-align: left !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round.is-answered .am-orchestra-placed { max-width: none !important; }
}
@media (orientation: landscape) and (max-height: 480px) and (max-width: 940px) {
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round { gap: 4px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round.is-answered .am-orchestra-round-head { display: none !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round.is-answered .am-orchestra-stage-map { padding: 6px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round.is-answered .am-orchestra-zones { gap: 4px !important; margin-top: 3px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round.is-answered .am-orchestra-zone { min-height: 52px !important; padding: 3px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-zone-meta small { display: none !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-result { gap: 6px !important; padding: 7px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-result-icon { height: 32px !important; width: 32px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-result-copy h2 { font-size: 1rem !important; line-height: 1.15 !important; margin: 2px 0 !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-result-copy p { font-size: .75rem !important; line-height: 1.15 !important; margin: 3px 0 0 !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-result-actions { gap: 5px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-result-actions .am-button { min-height: 44px !important; padding: 4px 8px !important; }
}


/* 8.3.47 — l’écran de manche utilise le viewport entier : les consignes et
   toutes les réponses sont visibles dès l’ouverture, sans le chrome du site. */
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-conductor {
  pointer-events: none !important;
}

html.atlas-musical-game-active,
body.atlas-musical-page.atlas-musical-game-active,
body.atlas-musical-page.atlas-musical-game-active #page {
  block-size: 100vh !important;
  block-size: 100dvh !important;
  min-block-size: 0 !important;
  overflow: hidden !important;
  overscroll-behavior: none !important;
}
/* WordPress laisse une marge de 32/46 px pour sa barre d’administration même
   quand celle-ci est masquée en jeu : on libère ce viewport inutilisé. */
html.atlas-musical-game-active { margin-top: 0 !important; }
body.atlas-musical-page.atlas-musical-game-active,
body.atlas-musical-page.atlas-musical-game-active #page {
  inset: 0 !important;
  position: fixed !important;
  width: 100% !important;
}
body.atlas-musical-page.atlas-musical-game-active #wpadminbar,
body.atlas-musical-page.atlas-musical-game-active .ah-home-return,
body.atlas-musical-page.atlas-musical-game-active #colophon,
body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"] > :is(.am-topbar, .am-primary-nav, .am-v6-footer) {
  display: none !important;
}
body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] {
  block-size: 100vh !important;
  block-size: 100dvh !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
  inset: 0 !important;
  margin: 0 !important;
  max-block-size: 100vh !important;
  max-block-size: 100dvh !important;
  max-inline-size: none !important;
  min-block-size: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: fixed !important;
  width: 100vw !important;
  z-index: 99999 !important;
}
body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"] > .am-main {
  box-sizing: border-box !important;
  display: flex !important;
  flex: 1 1 auto !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: max(8px, env(safe-area-inset-top)) clamp(8px, 2vw, 22px) max(8px, env(safe-area-inset-bottom)) !important;
  width: 100% !important;
}
body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"] [data-am-content]:not([hidden]) {
  display: flex !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  width: 100% !important;
}
body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-shell {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  gap: 5px !important;
  height: 100% !important;
  margin: 0 auto !important;
  max-height: 100% !important;
  min-height: 0 !important;
  min-width: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  width: 100% !important;
}
body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-top {
  flex: 0 0 auto !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  margin: 0 !important;
  min-height: 46px !important;
}
body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-progress {
  flex: 0 0 5px !important;
  height: 5px !important;
  margin: 0 !important;
}
body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-stage {
  box-sizing: border-box !important;
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  min-height: 0 !important;
  min-width: 0 !important;
  overflow: hidden !important;
  padding: clamp(9px, 1.6vw, 20px) !important;
  width: 100% !important;
}

@media (max-width: 700px) {
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"] > .am-main { padding: max(6px, env(safe-area-inset-top)) 8px max(6px, env(safe-area-inset-bottom)) !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-shell { gap: 4px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-top { gap: 5px !important; min-height: 44px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-exit { min-height: 44px !important; padding: 6px 9px !important; white-space: nowrap !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-title { gap: 5px !important; min-width: 0 !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-title > span:first-child { display: none !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-title small { font-size: .75rem !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-title strong { font-size: .75rem !important; white-space: nowrap !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-score { min-width: 48px !important; padding: 4px 6px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-score strong { font-size: 1rem !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-score span { font-size: .75rem !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-stage { border-radius: 16px !important; gap: 5px !important; padding: 9px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-step { flex: 0 0 auto !important; font-size: .75rem !important; line-height: 1.2 !important; margin: 0 !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-listen-box { align-items: center !important; box-sizing: border-box !important; flex: 0 0 auto !important; gap: 7px !important; grid-template-columns: 34px minmax(0, 1fr) auto !important; margin: 5px 0 !important; max-width: none !important; min-height: 66px !important; padding: 7px !important; width: 100% !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-listen-icon { font-size: 1.1rem !important; height: 34px !important; width: 34px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-listen-main { min-width: 0 !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-listen-label { font-size: .75rem !important; line-height: 1.1 !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-listen-main strong { font-size: .78rem !important; line-height: 1.15 !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-listen-main small { display: none !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-audio-progress { height: 3px !important; margin-top: 4px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-audio-actions { align-items: center !important; flex-direction: row !important; gap: 4px !important; grid-column: auto !important; width: auto !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-audio-toggle { font-size: .75rem !important; justify-content: center !important; min-height: 44px !important; min-width: 44px !important; padding: 6px 8px !important; white-space: nowrap !important; width: auto !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-audio-toggle strong { font-size: .75rem !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-audio-time { font-size: .75rem !important; white-space: nowrap !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-choices { flex: 0 0 auto !important; gap: 6px !important; grid-template-columns: minmax(0, 1fr) !important; margin: 0 !important; max-width: none !important; width: 100% !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-choice { box-sizing: border-box !important; gap: 7px !important; grid-template-columns: minmax(0, 1fr) 25px !important; min-height: 44px !important; padding: 6px 9px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] :is(.am-game-choice-copy, .am-game-choice > strong) { font-size: .82rem !important; line-height: 1.18 !important; min-width: 0 !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-choice-meta { font-size: .75rem !important; line-height: 1.15 !important; margin-top: 0px !important; }

  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-question { flex: 0 0 auto !important; margin: 4px auto 6px !important; max-width: 100% !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-question-emoji { display: none !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-question h1,
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-round-copy h1,
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-hunter-round-head h1 { font-size: clamp(1.35rem, 5.5vw, 2rem) !important; line-height: 1.04 !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-question p { font-size: .75rem !important; line-height: 1.25 !important; margin: 5px auto 0 !important; }

  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-round { display: flex !important; flex: 1 1 auto !important; flex-direction: column !important; gap: 6px !important; margin: 4px auto 0 !important; min-height: 0 !important; width: 100% !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-round-copy { flex: 0 0 auto !important; padding: 0 2px !important; text-align: center !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-round-kicker { font-size: .75rem !important; line-height: 1.15 !important; margin: 0 0 3px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-round-copy > p { font-size: .75rem !important; line-height: 1.2 !important; margin: 4px auto 0 !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-choice-grid { flex: 0 0 auto !important; gap: 6px !important; grid-template-columns: minmax(0, 1fr) !important; }

  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-tm-round { display: flex !important; flex: 1 1 auto !important; flex-direction: column !important; gap: 8px !important; justify-content: center !important; margin: 0 auto !important; min-height: 0 !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-tm-round-head h1 { font-size: clamp(1.3rem, 5.5vw, 2rem) !important; line-height: 1.05 !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-tm-round-head p { font-size: .75rem !important; line-height: 1.2 !important; margin: 4px 0 0 !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-tm-cards { flex: 0 0 auto !important; gap: 7px !important; grid-template-columns: minmax(0, 1fr) !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-tm-card { min-height: 52px !important; padding: 7px 10px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-tm-card strong { font-size: .8rem !important; line-height: 1.2 !important; margin-top: 3px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-tm-card small { font-size: .75rem !important; line-height: 1.15 !important; }

  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-odd-round { display: flex !important; flex: 1 1 auto !important; flex-direction: column !important; justify-content: center !important; margin: 0 auto !important; min-height: 0 !important; width: 100% !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-odd-round-head > span { font-size: .75rem !important; margin-bottom: 2px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-odd-round-head h1 { font-size: clamp(1.35rem, 5.5vw, 2rem) !important; line-height: 1.04 !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-odd-round-head p { font-size: .75rem !important; line-height: 1.2 !important; margin: 4px auto !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-odd-common-rule { flex: 0 0 auto !important; margin: 4px 0 7px !important; min-height: 44px !important; padding: 7px 9px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-odd-common-rule > strong { font-size: clamp(.95rem, 3.8vw, 1.16rem) !important; line-height: 1.22 !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-odd-board-grid { flex: 0 0 auto !important; gap: 6px !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; margin-top: 0 !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-odd-case { gap: 5px !important; min-height: 58px !important; padding: 7px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-odd-case > strong { font-size: .76rem !important; line-height: 1.15 !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-odd-case > small { font-size: .75rem !important; line-height: 1.1 !important; }

  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-hunter-round { display: flex !important; flex: 1 1 auto !important; flex-direction: column !important; gap: 5px !important; justify-content: center !important; min-height: 0 !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-hunter-round-head p { font-size: .75rem !important; line-height: 1.2 !important; margin: 4px auto !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-hunter-choice-grid { flex: 0 0 auto !important; gap: 6px !important; grid-template-columns: minmax(0, 1fr) !important; margin-top: 0 !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-hunter-choice { min-height: 44px !important; padding: 6px 9px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-hunter-choice > strong { font-size: .82rem !important; line-height: 1.18 !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-hunter-choice > small { font-size: .75rem !important; line-height: 1.15 !important; }

  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-stage { gap: 5px !important; padding: 8px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round { display: flex !important; flex: 1 1 auto !important; flex-direction: column !important; justify-content: center !important; margin: 0 !important; min-height: 0 !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round-head > span { font-size: .75rem !important; line-height: 1.15 !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round-head h1 { font-size: clamp(1.2rem, 4.7vw, 1.65rem) !important; line-height: 1.05 !important; margin: 3px 0 !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-workspace { display: flex !important; flex: 1 1 auto !important; flex-direction: column !important; gap: 6px !important; margin: 5px auto 0 !important; min-height: 0 !important; width: 100% !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-stage-map { box-sizing: border-box !important; flex: 0 0 auto !important; min-height: 0 !important; padding: 16px 10px 30px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-stage-label { font-size: .75rem !important; left: 0 !important; position: relative !important; top: auto !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-zones { gap: 4px !important; margin-top: 4px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-zone { grid-template-columns: minmax(66px, .7fr) minmax(0, 1.3fr) !important; min-height: 44px !important; padding: 5px 8px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-zone-meta b { font-size: .75rem !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-zone-meta small { display: none !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-empty small { font-size: .75rem !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-conductor { bottom: 3px !important; font-size: .75rem !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-conductor i { height: 21px !important; width: 21px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-bench { box-sizing: border-box !important; flex: 0 0 auto !important; min-height: 0 !important; padding: 7px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-bench-title { align-items: center !important; gap: 4px !important; margin-bottom: 5px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-bench-title span { font-size: .75rem !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-bench-title small { font-size: .75rem !important; line-height: 1.16 !important; text-align: right !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-list { display: grid !important; gap: 5px !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-label { gap: 4px !important; grid-template-columns: minmax(0, 1fr) !important; min-height: 48px !important; padding: 5px 7px !important; text-align: center !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] :is(.am-orchestra-label-icon, .am-orchestra-label-state) { display: none !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-label-copy { min-width: 0 !important; text-align: center !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-label-copy strong { font-size: .75rem !important; line-height: 1.18 !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-placement-help { font-size: .75rem !important; line-height: 1.15 !important; margin: 4px 0 0 !important; padding: 3px 0 0 !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-bench-actions { gap: 5px !important; padding-top: 5px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-bench-actions button { font-size: .75rem !important; min-height: 44px !important; padding: 6px 8px !important; }
}
@media (max-width: 360px) {
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-list { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-label { min-height: 44px !important; padding: 4px 8px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-odd-board-grid { grid-template-columns: minmax(0, 1fr) !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-odd-case { min-height: 44px !important; padding: 6px 9px !important; }
}
@media (max-height: 700px) and (orientation: portrait), (max-width: 360px) {
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-stage-label,
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-conductor { display: none !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-conductor { pointer-events: none !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-stage-map { padding: 9px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-zones { display: grid !important; gap: 4px !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; margin-top: 0 !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-zone { grid-template-columns: minmax(0, 1fr) !important; min-height: 44px !important; padding: 4px 6px !important; width: 100% !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-zone-meta { text-align: center !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-zone-meta b { font-size: .75rem !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-empty small { display: none !important; }
}
body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-conductor { pointer-events: none !important; }

/* 8.3.88 — éviter le débordement des réponses sur les fenêtres paysage de faible hauteur. */
@media (orientation: landscape) and (max-height: 700px) and (min-width: 480px) and (max-width: 940px) {
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] > .am-main { padding: 5px 8px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-shell { gap: 3px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-top { min-height: 40px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-stage { gap: 3px !important; padding: 5px 8px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-step { font-size: .75rem !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-listen-box { grid-template-columns: 30px minmax(0, 1fr) auto !important; margin: 2px 0 !important; min-height: 52px !important; padding: 4px 7px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-listen-icon { height: 30px !important; width: 30px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-audio-toggle { min-height: 44px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-bt-stage .am-game-question { margin: 2px auto !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-bt-stage .am-game-question h1 { font-size: 1.15rem !important; line-height: 1.05 !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-bt-stage .am-game-choices { display: grid !important; gap: 5px !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; grid-template-rows: repeat(2, minmax(44px, auto)) !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-bt-stage .am-game-choice { min-height: 44px !important; padding: 4px 7px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-bt-stage .am-game-choice-meta { font-size: .75rem !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-mt-round { display: grid !important; flex: 1 1 auto !important; gap: 5px 10px !important; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr) !important; margin: 0 !important; min-height: 0 !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-mt-round-copy { align-self: center !important; padding: 0 4px !important; text-align: left !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-mt-round-copy h1 { font-size: clamp(.95rem, 2.2vw, 1.1rem) !important; line-height: 1.02 !important; max-width: none !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-mt-round-copy > p { font-size: .75rem !important; margin: 4px 0 0 !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-mt-choice-grid { align-content: center !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 5px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-game-choice { min-height: 54px !important; padding: 5px 7px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-tm-round-head h1 { font-size: 1.2rem !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-tm-round-head p { display: none !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-tm-cards { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-tm-card { min-height: 62px !important; padding: 6px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-hunter-round-head h1 { font-size: 1.15rem !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-hunter-round-head p { display: none !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-hunter-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-hunter-choice { min-height: 48px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-stage { gap: 3px !important; padding: 5px 8px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round-head > span { font-size: .75rem !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round-head h1 { font-size: 20px !important; line-height: 1.02 !important; margin: 0 !important; max-width: none !important; width: 100% !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round-head { gap: 2px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-workspace { display: grid !important; flex: 1 1 auto !important; gap: 6px !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; margin: 2px auto 0 !important; min-height: 0 !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-stage-map { align-self: stretch !important; min-height: 0 !important; padding: 8px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-stage-label,
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-conductor { display: none !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-zones { display: grid !important; gap: 4px !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; margin: 0 !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-zone { grid-template-columns: minmax(0, 1fr) !important; min-height: 44px !important; padding: 4px !important; width: 100% !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-zone-meta { text-align: center !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-zone-meta b { font-size: .75rem !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-empty small { display: none !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-bench { min-height: 0 !important; padding: 6px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-bench-title small { display: none !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-list { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 4px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-label { min-height: 44px !important; padding: 3px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-label-copy strong { font-size: .75rem !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-label { grid-template-columns: minmax(0, 1fr) !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-label-icon,
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-label-state { display: none !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-bench-actions { gap: 4px !important; padding-top: 4px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-bench-actions button { font-size: .75rem !important; min-height: 44px !important; padding: 4px !important; }
}

/* 8.3.47 — une question Live reste plein écran sur les petits formats aussi. */
@media (max-width: 559px), (max-height: 619px) {
  body.atlas-musical-live-question { overflow: hidden !important; }
  body.atlas-musical-live-question .ah-home-return { display: none !important; }
  body.atlas-musical-live-question .arcade-musicale-live.is-live-question {
    box-sizing: border-box !important;
    height: 100vh !important;
    height: 100dvh !important;
    inset: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    overflow: hidden !important;
    position: fixed !important;
    width: 100vw !important;
    z-index: 2147482500 !important;
  }
  .arcade-musicale-live.is-live-question .aml-header,
  .arcade-musicale-live.is-live-question .aml-footer { display: none !important; }
  .arcade-musicale-live.is-live-question .aml-main {
    box-sizing: border-box !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: max(4px, env(safe-area-inset-top)) 6px max(4px, env(safe-area-inset-bottom)) !important;
    width: 100% !important;
  }
  .arcade-musicale-live.is-live-question .aml-shell { height: 100% !important; max-width: none !important; min-height: 0 !important; }
  .arcade-musicale-live.is-live-question .aml-room {
    display: grid !important;
    gap: 4px !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    height: 100% !important;
    min-height: 0 !important;
  }
  .arcade-musicale-live.is-live-question .aml-question-layout { grid-template-columns: minmax(0, 1fr) !important; height: 100% !important; min-height: 0 !important; }
  .arcade-musicale-live.is-live-question .aml-side-stack { display: none !important; }
  .arcade-musicale-live.is-live-question .aml-question-card {
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }
}

/* Sur téléphone portrait, plan et banque restent côte à côte ; les quatre
   étiquettes et le bouton de validation tiennent dans le même écran. */
@media (max-width: 480px) and (orientation: portrait) {
  .arcade-musicale-live.is-live-question .aml-question-card { gap: 3px !important; padding: 6px 7px !important; }
  .arcade-musicale-live.is-live-question .aml-question-head { margin-bottom: 1px !important; }
  .arcade-musicale-live.is-live-question .aml-timer-wrap { align-items: center !important; flex-direction: row !important; gap: 6px !important; margin: 0 0 2px !important; }
  .arcade-musicale-live.is-live-question .aml-timer { min-height: 36px !important; min-width: 64px !important; padding: 3px 8px !important; }
  .arcade-musicale-live.is-live-question .aml-timer-label { font-size: .75rem !important; }
  .arcade-musicale-live.is-live-question .aml-question-card > h1 { font-size: clamp(1rem, 4vw, 1.3rem) !important; line-height: 1.04 !important; margin: 0 auto 2px !important; }
  .arcade-musicale-live.is-live-question .aml-context { font-size: .75rem !important; line-height: 1.14 !important; margin: 1px auto 3px !important; padding: 4px 6px !important; }
  .arcade-musicale-live.is-live-question .aml-common-rule { gap: 4px !important; margin: 2px auto 4px !important; padding: 5px 7px !important; }
  .arcade-musicale-live.is-live-question .aml-common-rule > strong { font-size: .82rem !important; line-height: 1.12 !important; }
  .arcade-musicale-live.is-live-question .aml-audio-box { gap: 5px !important; margin: 1px auto 3px !important; padding: 4px 6px !important; }
  .arcade-musicale-live.is-live-question .aml-choice-grid { gap: 4px !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; margin: 1px auto 0 !important; }
  .arcade-musicale-live.is-live-question .aml-choice { min-height: 44px !important; padding: 4px 6px !important; }
  .arcade-musicale-live.is-live-question .aml-question-card.is-odd-question .aml-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .arcade-musicale-live.is-live-question .aml-orchestra-workspace {
    align-items: stretch !important;
    display: grid !important;
    flex: 1 1 auto !important;
    gap: 4px !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, 1fr) auto !important;
    margin: 0 !important;
    min-height: 0 !important;
  }
  .arcade-musicale-live.is-live-question .aml-orchestra-stage-map { grid-column: 1 !important; grid-row: 1 !important; margin: 0 !important; min-height: 0 !important; min-width: 0 !important; padding: 4px !important; }
  .arcade-musicale-live.is-live-question .aml-orchestra-stage-map > header { align-items: center !important; gap: 2px !important; margin-bottom: 3px !important; }
  .arcade-musicale-live.is-live-question .aml-orchestra-stage-map > header span { font-size: .75rem !important; letter-spacing: .02em !important; }
  .arcade-musicale-live.is-live-question .aml-orchestra-stage-map > header strong { font-size: .75rem !important; line-height: 1.05 !important; }
  .arcade-musicale-live.is-live-question .aml-orchestra-stage-shell {
    align-items: stretch !important;
    display: grid !important;
    flex: 1 1 auto !important;
    gap: 3px !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: repeat(4, minmax(44px, 1fr)) !important;
    min-height: 0 !important;
    padding: 4px !important;
  }
  .arcade-musicale-live.is-live-question .aml-orchestra-stage-zone { gap: 2px !important; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr) !important; min-height: 44px !important; padding: 2px 3px !important; width: 100% !important; }
  .arcade-musicale-live.is-live-question .aml-orchestra-zone-copy { min-width: 0 !important; text-align: center !important; }
  .arcade-musicale-live.is-live-question .aml-orchestra-zone-copy b { font-size: .75rem !important; letter-spacing: 0 !important; line-height: 1.05 !important; }
  .arcade-musicale-live.is-live-question .aml-orchestra-zone-copy small,
  .arcade-musicale-live.is-live-question .aml-orchestra-drop small,
  .arcade-musicale-live.is-live-question .aml-orchestra-conductor { display: none !important; }
  .arcade-musicale-live.is-live-question .aml-orchestra-drop { min-height: 44px !important; min-width: 0 !important; padding: 2px !important; }
  .arcade-musicale-live.is-live-question .aml-orchestra-bank { display: flex !important; flex-direction: column !important; grid-column: 2 !important; grid-row: 1 !important; min-height: 0 !important; min-width: 0 !important; padding: 4px !important; }
  .arcade-musicale-live.is-live-question .aml-orchestra-bank > header { align-items: flex-start !important; gap: 2px !important; margin-bottom: 3px !important; }
  .arcade-musicale-live.is-live-question .aml-orchestra-bank > header strong { font-size: .75rem !important; letter-spacing: 0 !important; line-height: 1.05 !important; }
  .arcade-musicale-live.is-live-question .aml-orchestra-bank > header small { font-size: .75rem !important; line-height: 1.05 !important; }
  .arcade-musicale-live.is-live-question .aml-orchestra-bank-list { display: grid !important; flex: 1 1 auto !important; gap: 3px !important; grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: repeat(4, minmax(44px, 1fr)) !important; min-height: 0 !important; }
  .arcade-musicale-live.is-live-question .aml-orchestra-bank-token { align-content: center !important; grid-template-columns: minmax(0, 1fr) !important; justify-items: center !important; min-height: 44px !important; padding: 2px 3px !important; text-align: center !important; }
  .arcade-musicale-live.is-live-question .aml-orchestra-bank-token strong { font-size: .75rem !important; line-height: 1.04 !important; }
  .arcade-musicale-live.is-live-question .aml-orchestra-bank-emoji,
  .arcade-musicale-live.is-live-question .aml-orchestra-bank-token small { display: none !important; }
  .arcade-musicale-live.is-live-question .aml-orchestra-workspace-bottom { align-items: center !important; display: flex !important; gap: 4px !important; grid-column: 1 / -1 !important; grid-row: 2 !important; justify-content: flex-end !important; margin: 0 !important; min-height: 44px !important; padding: 0 !important; }
  .arcade-musicale-live.is-live-question .aml-orchestra-instruction { display: none !important; }
  .arcade-musicale-live.is-live-question .aml-orchestra-workspace-bottom .aml-answer-submit { margin: 0 !important; }
  .arcade-musicale-live.is-live-question .aml-orchestra-workspace-bottom .aml-button { min-height: 44px !important; padding: 5px 9px !important; }
}

/* 8.3.51 — la scène et les actions restent dans le viewport en paysage court. */
@media (orientation: landscape) and (max-height: 420px) and (min-width: 480px) and (max-width: 940px) {
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-shell.is-orchestra { gap: 3px !important; padding: 3px 6px 5px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-shell.is-orchestra .am-game-top { box-sizing: border-box !important; gap: 6px !important; height: 48px !important; margin-bottom: 2px !important; min-height: 48px !important; padding: 2px 5px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-shell.is-orchestra .am-game-exit { box-sizing: border-box !important; height: 44px !important; min-height: 44px !important; padding: 4px 8px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-shell.is-orchestra .am-game-title { gap: 4px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-shell.is-orchestra .am-game-title > span:first-child { display: none !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-shell.is-orchestra .am-game-title small { display: block !important; font-size: .75rem !important; line-height: 1.05 !important; text-align: center !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-shell.is-orchestra .am-game-score { align-items: center !important; box-sizing: border-box !important; display: flex !important; flex-direction: column !important; gap: 0 !important; height: 44px !important; justify-content: center !important; max-height: 44px !important; min-height: 44px !important; min-width: 48px !important; padding: 2px 5px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-shell.is-orchestra .am-game-score strong { font-size: 1rem !important; line-height: 1 !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-shell.is-orchestra .am-game-score span { font-size: .75rem !important; line-height: 1 !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-shell.is-orchestra .am-game-progress { height: 4px !important; margin: 2px 0 3px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-stage { gap: 2px !important; min-height: 0 !important; padding: 3px 6px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-stage { gap: 3px !important; padding: 3px 6px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-stage > .am-orchestra-round { align-self: stretch !important; margin: 0 !important; position: static !important; transform: none !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round { gap: 4px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round-head { gap: 1px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round-head > span { font-size: .75rem !important; line-height: 1 !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round-head h1 { font-size: 1.12rem !important; line-height: 1.03 !important; margin: 1px 0 !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-workspace { flex: 1 1 auto !important; gap: 5px !important; grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr) !important; margin: 1px auto 0 !important; min-height: 0 !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-stage-map { align-self: stretch !important; min-height: 0 !important; padding: 6px 7px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-stage-label { font-size: .75rem !important; line-height: 1.05 !important; margin-bottom: 3px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-conductor { display: none !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-zones { align-content: center !important; flex: 1 1 auto !important; gap: 4px !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; grid-template-rows: repeat(2, minmax(44px, auto)) !important; margin: 0 !important; min-height: 0 !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-zone { grid-template-columns: minmax(0, 1fr) !important; justify-items: center !important; min-height: 44px !important; padding: 3px !important; text-align: center !important; width: 100% !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-zone-meta { text-align: center !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-zone-meta b { font-size: .75rem !important; line-height: 1 !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-empty small { display: none !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-bench { display: flex !important; flex-direction: column !important; min-height: 0 !important; padding: 6px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-bench-title { margin: 0 0 2px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-bank-heading { gap: 4px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-bank-heading span { font-size: .75rem !important; line-height: 1.05 !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-bench-instruction { font-size: .75rem !important; line-height: 1.12 !important; margin: 0 0 4px !important; text-align: left !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-list { flex: 1 1 auto !important; gap: 4px !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; grid-template-rows: repeat(2, minmax(40px, auto)) !important; min-height: 0 !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-label { grid-template-columns: minmax(0, 1fr) !important; justify-items: center !important; min-height: 40px !important; padding: 3px !important; text-align: center !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-label-icon,
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-label-state { display: none !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-label-copy { min-width: 0 !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-label-copy strong { font-size: .75rem !important; line-height: 1.05 !important; overflow-wrap: anywhere !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-bench-actions { gap: 4px !important; padding-top: 3px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-bench-actions button { font-size: .75rem !important; min-height: 44px !important; padding: 4px 6px !important; }
}

@media (max-width: 300px) {
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-title small { display: block !important; font-size: .75rem !important; letter-spacing: -.02em !important; line-height: 1.05 !important; overflow: hidden !important; text-align: center !important; text-overflow: clip !important; white-space: nowrap !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-top { box-sizing: border-box !important; gap: 4px !important; height: 56px !important; min-height: 56px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-score { align-items: center !important; box-sizing: border-box !important; display: flex !important; flex-direction: column !important; gap: 0 !important; height: 44px !important; justify-content: center !important; max-height: 44px !important; min-height: 44px !important; min-width: 42px !important; padding: 2px 1px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-exit { font-size: .75rem !important; min-height: 42px !important; padding-inline: 4px !important; }
}
/* 8.3.51 — le statut de la seconde chance partage l’en-tête de manche. */
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-round-status {
  color: #ffd17b !important;
  display: block !important;
  font-size: .75rem !important;
  font-weight: 900 !important;
  letter-spacing: .04em !important;
  line-height: 1.1 !important;
  margin: 0 auto !important;
  text-align: center !important;
  text-transform: uppercase !important;
}
.atlas-musical-v6[data-am-current-view="game"] .am-orchestra-round-status:focus {
  border-radius: 4px !important;
  outline: 2px solid #ffcf66 !important;
  outline-offset: 2px !important;
}

/* 8.3.51 — les portables ont souvent moins de 700 px de hauteur CSS à 100 %.
   Les deux jeux paysage gardent leur contenu dans l’écran sans réduire le texte
   au point de le rendre illisible. */
@media (min-width: 941px) and (orientation: landscape) and (max-height: 700px) {
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"] > .am-main {
    padding-block: 5px !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-shell {
    gap: 3px !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-top {
    box-sizing: border-box !important;
    gap: 8px !important;
    height: 54px !important;
    min-height: 54px !important;
    padding: 4px 8px !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-title > span:first-child {
    height: 38px !important;
    width: 38px !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-exit {
    min-height: 44px !important;
    padding: 5px 10px !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-score {
    align-items: center !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    height: 44px !important;
    justify-content: center !important;
    min-height: 44px !important;
    min-width: 52px !important;
    padding: 2px 5px !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-score strong {
    font-size: 1rem !important;
    line-height: 1 !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-score span {
    font-size: .75rem !important;
    line-height: 1 !important;
    margin-top: 0px !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-progress {
    flex-basis: 4px !important;
    height: 4px !important;
    margin: 0 !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-stage {
    gap: 4px !important;
    padding: 8px 14px !important;
  }

  /* Music Trip : titre et consigne à gauche, quatre réponses visibles en 2×2. */
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-game-step {
    flex: 0 0 auto !important;
    margin: 0 !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-game-listen-box {
    box-sizing: border-box !important;
    gap: 8px !important;
    grid-template-columns: 40px minmax(0, 1fr) auto !important;
    margin: 4px auto 7px !important;
    max-width: 760px !important;
    min-height: 54px !important;
    padding: 6px 10px !important;
    width: 100% !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-game-listen-icon {
    height: 38px !important;
    width: 38px !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-game-listen-main small {
    display: none !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-game-audio-toggle {
    min-height: 44px !important;
    min-width: 112px !important;
    padding: 5px 9px !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-mt-round {
    align-items: stretch !important;
    flex: 1 1 auto !important;
    gap: 12px !important;
    grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr) !important;
    margin: 0 auto !important;
    max-width: 1100px !important;
    min-height: 0 !important;
    width: 100% !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-mt-round-copy {
    align-self: center !important;
    padding: 4px !important;
    text-align: left !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-mt-round-kicker {
    font-size: .75rem !important;
    line-height: 1.15 !important;
    margin-bottom: 5px !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-mt-round-copy h1 {
    font-size: clamp(1.6rem, 2.35vw, 2.25rem) !important;
    line-height: 1.06 !important;
    max-width: 20ch !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-mt-round-copy > p {
    font-size: .84rem !important;
    line-height: 1.35 !important;
    margin: 7px 0 0 !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-mt-choice-grid {
    align-content: center !important;
    gap: 8px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    max-width: none !important;
    min-height: 0 !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-mt-choice-grid .am-game-choice {
    box-sizing: border-box !important;
    gap: 7px !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    min-height: 58px !important;
    padding: 7px 10px !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-mt-choice-grid .am-game-choice-letter { display: none !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-mt-choice-grid .am-game-choice strong:not(#am-ui-leaf-type-floor) {
    font-size: 16px !important;
    line-height: 1.18 !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-mt-rescue {
    gap: 4px !important;
    margin-top: 7px !important;
    padding: 8px !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-mt-rescue > strong { font-size: .82rem !important; }

  /* Orchestra Builder : le plan reste lisible à gauche, la banque complète à droite. */
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-stage {
    gap: 4px !important;
    padding: 4px 10px !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round:not(.is-answered) {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    gap: 7px !important;
    justify-content: flex-start !important;
    margin: 0 auto !important;
    min-height: 0 !important;
    width: 100% !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round-head {
    flex: 0 0 auto !important;
    gap: 2px !important;
    margin: 0 auto !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round-head > span {
    font-size: .75rem !important;
    line-height: 1.05 !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round-head h1 {
    font-size: clamp(1.35rem, 2.25vw, 2rem) !important;
    line-height: 1.06 !important;
    margin: 1px 0 !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-workspace {
    align-items: stretch !important;
    flex: 1 1 auto !important;
    gap: 10px !important;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr) !important;
    margin: 0 auto !important;
    max-width: 1120px !important;
    min-height: 0 !important;
    width: 100% !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-stage-map {
    align-self: stretch !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 10px 12px !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-stage-label {
    flex: 0 0 auto !important;
    font-size: .75rem !important;
    line-height: 1.1 !important;
    margin: 0 0 5px !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-conductor { display: none !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-zones {
    display: grid !important;
    flex: 1 1 auto !important;
    gap: 4px !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: repeat(4, minmax(40px, 1fr)) !important;
    margin: 0 !important;
    min-height: 0 !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-zone {
    box-sizing: border-box !important;
    grid-template-columns: minmax(80px, .72fr) minmax(0, 1.28fr) !important;
    min-height: 40px !important;
    padding: 4px 8px !important;
    width: 100% !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-zone-meta b { font-size: .85rem !important; line-height: 1.1 !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-zone-meta small,
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-empty small { display: none !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-bench {
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    min-height: 0 !important;
    padding: 10px !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-bench-title {
    display: block !important;
    margin: 0 0 4px !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-bank-heading { gap: 4px 7px !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-bank-heading span:not(#am-ui-leaf-type-floor) { font-size: 14px !important; line-height: 1.1 !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-bench-instruction {
    font-size: .8rem !important;
    line-height: 1.25 !important;
    margin: 0 0 5px !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-list {
    align-content: center !important;
    flex: 0 1 192px !important;
    gap: 6px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(2, minmax(84px, 1fr)) !important;
    height: 192px !important;
    margin-block: auto !important;
    max-height: 192px !important;
    min-height: 0 !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-label {
    grid-template-columns: minmax(0, 1fr) !important;
    justify-items: center !important;
    min-height: 48px !important;
    padding: 5px !important;
    text-align: center !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-label-icon,
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-label-state { display: none !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-label-copy { min-width: 0 !important; text-align: center !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-label-copy strong:not(#am-ui-leaf-type-floor) {
    font-size: 16px !important;
    line-height: 1.18 !important;
    overflow-wrap: anywhere !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-label-copy small:not(#am-ui-leaf-type-floor) { font-size: 12px !important; line-height: 1.12 !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-bench-actions {
    gap: 7px !important;
    margin-top: 5px !important;
    padding-top: 0 !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-bench-actions button {
    font-size: .8rem !important;
    min-height: 44px !important;
    padding: 5px 8px !important;
  }
}

/* Music Trip : garder la seconde chance et les quatre choix visibles sur les
   petits téléphones portrait, sans réduire les cibles tactiles. */
@media (max-width: 340px) and (max-height: 600px) and (orientation: portrait) {
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-rescue {
    gap: 2px !important;
    margin-block: 2px !important;
    padding: 5px 7px !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-rescue > strong {
    font-size: .75rem !important;
    line-height: 1.08 !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-rescue > div {
    align-items: center !important;
    flex-direction: row !important;
    gap: 5px !important;
    margin-top: 1px !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-rescue button {
    flex: 0 0 auto !important;
    min-height: 44px !important;
    padding: 5px 8px !important;
    white-space: nowrap !important;
    width: auto !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-rescue small {
    flex: 1 1 auto !important;
    line-height: 1.1 !important;
    text-align: right !important;
    white-space: nowrap !important;
  }
}


/* 8.3.54 — la dernière règle mobile garde les noms de jeux longs lisibles
   même après les ajustements plus spécifiques des mini-jeux. */
@media (max-width: 560px) {
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-title small {
    line-height: 1.05 !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
  }
}

/* 8.3.55 — à 280 px, les deux actions Orchestra Builder gardent la même
   largeur et leur libellé reste lisible sans être cassé en petits fragments. */
@media (max-width: 300px) {
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-bench-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-bench-actions button {
    font-size: .75rem !important;
    padding-inline: 4px !important;
  }
}

/* 8.3.58 — la manche active utilise le grand écran au lieu de rester une
   carte compacte centrée. Les zones de réponse s’élargissent sans étirer les
   blocs de texte au-delà d’une largeur de lecture confortable. */
@media (min-width: 701px) {
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"] .am-main {
    box-sizing: border-box !important;
    margin: 0 !important;
    max-width: none !important;
    padding-inline: clamp(8px, 1vw, 24px) !important;
    width: 100% !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"] [data-am-content] {
    box-sizing: border-box !important;
    max-width: none !important;
    width: 100% !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"] .am-game-shell[class*="is-"] {
    margin-inline: 0 !important;
    max-width: none !important;
    width: 100% !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"] :is(
    .am-game-question,
    .am-tm-round-head,
    .am-odd-common-rule,
    .am-odd-round-head,
    .am-hunter-round-head,
    .am-orchestra-round-head
  ) {
    box-sizing: border-box !important;
    max-width: 1320px !important;
    width: 100% !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"] :is(
    .am-game-choices,
    .am-mt-choice-grid,
    .am-tm-cards,
    .am-tm-axis,
    .am-odd-board-grid,
    .am-hunter-choice-grid,
    .am-orchestra-workspace,
    .am-game-feedback,
    .am-tm-reveal,
    .am-hunter-reveal,
    .am-orchestra-result
  ) {
    box-sizing: border-box !important;
    max-width: 2160px !important;
    width: 100% !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"] .am-mt-round {
    box-sizing: border-box !important;
    max-width: 1560px !important;
    width: 100% !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"] .am-game-listen-box {
    box-sizing: border-box !important;
    max-width: 600px !important;
    width: min(100%, 600px) !important;
  }
}

@media (min-width: 701px) and (min-height: 620px) {
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"] .am-main {
    align-items: stretch !important;
    padding-block: clamp(8px, 1vh, 16px) !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] [data-am-content] {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    min-height: 0 !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-shell[class*="is-"] {
    align-self: stretch !important;
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    min-height: 0 !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-stage {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    gap: clamp(8px, 1.3vh, 22px) !important;
    justify-content: center !important;
    min-height: 0 !important;
    padding: clamp(18px, 2.2vh, 42px) clamp(16px, 2vw, 48px) !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-stage :is(
    .am-game-question h1,
    .am-mt-round-copy h1,
    .am-tm-round-head h1,
    .am-odd-round-head h1,
    .am-hunter-round-head h1,
    .am-orchestra-round-head h1
  ) {
    font-size: clamp(2rem, 3.1vw, 3rem) !important;
    line-height: 1.04 !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-stage :is(.am-game-choices, .am-mt-choice-grid) {
    gap: clamp(10px, .8vw, 18px) !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-stage :is(.am-game-choice, .am-tm-card, .am-odd-case, .am-hunter-choice, .am-orchestra-label):not(#am-ui-tap-floor) {
    min-height: clamp(64px, 6.8vh, 92px) !important;
    padding: clamp(10px, 1vh, 16px) clamp(12px, 1vw, 20px) !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-stage .am-game-choice strong {
    font-size: clamp(1rem, 1.05vw, 1.3rem) !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-stage .am-game-choice-meta {
    font-size: clamp(.82rem, .88vw, 1rem) !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-odd-common-rule,
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-odd-board-grid {
    max-width: 1440px !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-workspace {
    gap: clamp(14px, 1.2vw, 24px) !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-stage-map {
    min-height: clamp(320px, 40vh, 560px) !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-zone:not(#am-ui-tap-floor) {
    min-height: clamp(52px, 6vh, 82px) !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-label {
    min-height: clamp(58px, 6vh, 78px) !important;
  }
}


/* 8.3.61 — garde la disposition des réponses prioritaire après les règles
   de densité chargées plus tôt dans la feuille de style. */
@media (orientation: portrait) and (max-width: 320px) and (max-height: 700px) {
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-hunter-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-hunter-choice:not(#am-ui-tap-floor) {
    min-height: 50px !important;
    padding: 4px 5px !important;
  }
}

/* 8.3.61 — confirme que Music Trip garde la question à gauche et les quatre
   choix à droite sur les téléphones en paysage court. */
@media (orientation: landscape) and (max-height: 560px) and (min-width: 480px) and (max-width: 940px) {
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage {
    display: grid !important;
    grid-template-areas: "step step" "listen round" !important;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr) !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-game-step { grid-area: step !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-game-listen-box { grid-area: listen !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-mt-round {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    grid-area: round !important;
    gap: 5px !important;
    margin: 0 !important;
    min-height: 0 !important;
    min-width: 0 !important;
    width: 100% !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-mt-round-copy {
    grid-area: auto !important;
    margin: 0 !important;
    padding: 0 3px !important;
    text-align: left !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-mt-round-copy h1 {
    font-size: clamp(.95rem, 2.2vw, 1.2rem) !important;
    line-height: 1.05 !important;
    max-width: none !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-mt-round-copy > p { display: none !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-mt-choice-grid {
    align-content: center !important;
    flex: 0 0 auto !important;
    grid-area: auto !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 5px !important;
    margin: 0 !important;
    max-width: none !important;
    min-width: 0 !important;
    width: 100% !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-mt-choice-grid .am-game-choice {
    box-sizing: border-box !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    min-height: 44px !important;
    min-width: 0 !important;
    padding: 5px 7px !important;
  }
}


/* 8.3.65 — agrandit aussi les libellés internes, que le plancher typographique
   d’accessibilité maintenait à 12 px malgré la taille des cartes. */
@media (min-width: 1600px) and (min-height: 900px) {
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-stage {
    gap: clamp(14px, 1.7vh, 26px) !important;
    padding: clamp(24px, 3vh, 48px) clamp(24px, 3vw, 80px) !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-stage .am-game-listen-box {
    box-sizing: border-box !important;
    gap: clamp(12px, 1.2vw, 22px) !important;
    grid-template-columns: clamp(44px, 3vw, 64px) minmax(0, 1fr) auto !important;
    max-width: 1120px !important;
    min-height: clamp(120px, 12vh, 172px) !important;
    padding: clamp(14px, 1.5vh, 22px) clamp(18px, 1.5vw, 30px) !important;
    width: min(100%, 1120px) !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-stage .am-game-listen-icon {
    height: clamp(44px, 3vw, 64px) !important;
    width: clamp(44px, 3vw, 64px) !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-stage .am-game-audio-toggle {
    font-size: clamp(1rem, 1.05vw, 1.25rem) !important;
    min-height: 64px !important;
    min-width: 168px !important;
    padding: 12px 20px !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-stage .am-game-listen-label:not(#am-ui-leaf-type-floor),
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-stage .am-game-listen-main > strong:not(#am-ui-leaf-type-floor),
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-stage .am-game-audio-toggle strong:not(#am-ui-leaf-type-floor) {
    font-size: clamp(1rem, 1.05vw, 1.25rem) !important;
    line-height: 1.2 !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-stage .am-game-listen-main > small:not(#am-ui-leaf-type-floor),
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-stage .am-game-audio-time:not(#am-ui-leaf-type-floor) {
    font-size: clamp(.9rem, .95vw, 1.15rem) !important;
    line-height: 1.25 !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-stage .am-game-step :is(span, strong):not(#am-ui-leaf-type-floor) {
    font-size: clamp(.9rem, .95vw, 1.15rem) !important;
    line-height: 1.2 !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-stage :is(
    .am-game-question h1,
    .am-mt-round-copy h1,
    .am-tm-round-head h1,
    .am-odd-round-head h1,
    .am-hunter-round-head h1,
    .am-orchestra-round-head h1
  ) {
    font-size: clamp(2.5rem, 3.6vw, 4rem) !important;
    line-height: 1.04 !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-stage :is(
    .am-game-choices,
    .am-mt-choice-grid,
    .am-tm-cards,
    .am-odd-board-grid,
    .am-hunter-choice-grid
  ) {
    gap: clamp(14px, 1.15vw, 26px) !important;
    max-width: 2400px !important;
    width: min(100%, 2400px) !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-stage :is(
    .am-game-choice,
    .am-tm-card,
    .am-odd-case,
    .am-hunter-choice,
    .am-orchestra-label
  ):not(#am-ui-tap-floor) {
    min-height: clamp(112px, 10.5vh, 156px) !important;
    padding: clamp(14px, 1.5vh, 22px) clamp(16px, 1.2vw, 28px) !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-stage :is(
    .am-game-choice strong,
    .am-tm-card strong,
    .am-odd-case strong,
    .am-hunter-choice strong,
    .am-orchestra-label strong
  ):not(#am-ui-leaf-type-floor) {
    font-size: clamp(1.15rem, 1.35vw, 1.65rem) !important;
    line-height: 1.18 !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-game-stage :is(
    .am-game-choice-meta,
    .am-tm-card small,
    .am-odd-case small,
    .am-hunter-choice small,
    .am-orchestra-label small
  ):not(#am-ui-leaf-type-floor) {
    font-size: clamp(1rem, 1.05vw, 1.3rem) !important;
    line-height: 1.25 !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-odd-common-rule,
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-odd-board-grid {
    max-width: 2000px !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-workspace {
    gap: clamp(20px, 1.8vw, 40px) !important;
    max-width: 2400px !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-stage-map {
    min-height: clamp(420px, 52vh, 760px) !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-zone:not(#am-ui-tap-floor) {
    min-height: clamp(72px, 8vh, 112px) !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-label {
    min-height: clamp(88px, 9vh, 136px) !important;
  }
}


/* 8.3.71 — libérer le bas du panneau sur les téléphones portrait très courts. */
@media (max-width: 420px) and (max-height: 500px) and (orientation: portrait) {
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round:not(.is-answered) .am-orchestra-bench {
    padding-bottom: 0 !important;
  }

  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round:not(.is-answered) .am-orchestra-bench-actions {
    padding-top: 0 !important;
  }
}

/* 8.3.74 — les quatre choix de Music Trip restent visibles sur les téléphones étroits et courts. */
@media (max-width: 360px) and (max-height: 700px) and (orientation: portrait) {
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-game-listen-box {
    align-self: start !important;
    box-sizing: border-box !important;
    display: grid !important;
    gap: 4px 6px !important;
    grid-template-areas: "icon main" "actions actions" !important;
    grid-template-columns: 34px minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    height: auto !important;
    min-height: 90px !important;
    padding: 5px 7px !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-game-listen-icon { grid-area: icon !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-game-listen-main {
    grid-area: main !important;
    min-width: 0 !important;
    width: auto !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-game-audio-actions {
    align-items: center !important;
    display: flex !important;
    grid-area: actions !important;
    gap: 6px !important;
    min-width: 0 !important;
    width: 100% !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-game-audio-toggle {
    flex: 1 1 auto !important;
    min-height: 44px !important;
    min-width: 0 !important;
    padding: 4px 6px !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-game-audio-time { flex: 0 0 auto !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-game-listen-label,
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-game-listen-main > small {
    display: none !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-game-listen-main > strong,
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-game-audio-toggle strong,
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-game-audio-time {
    font-size: .75rem !important;
    line-height: 1.1 !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-mt-round {
    gap: 4px !important;
    margin: 0 auto !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-mt-round-kicker {
    font-size: .75rem !important;
    line-height: 1.1 !important;
    margin-bottom: 2px !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-mt-round-copy h1 {
    font-size: clamp(1.3rem, 5.2vw, 1.6rem) !important;
    line-height: 1.03 !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-mt-round-copy > p {
    font-size: .75rem !important;
    line-height: 1.15 !important;
    margin: 2px auto 0 !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-mt-choice-grid {
    gap: 6px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-mt-choice-grid .am-game-choice {
    box-sizing: border-box !important;
    grid-template-columns: minmax(0, 1fr) 28px !important;
    min-height: 56px !important;
    padding: 5px 6px !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-mt-choice-grid .am-game-choice strong {
    font-size: .76rem !important;
    line-height: 1.12 !important;
    overflow-wrap: anywhere !important;
  }
}

/* 8.3.74 — le lecteur audio reste lisible et entièrement cadré en paysage très court. */
@media (orientation: landscape) and (max-height: 560px) and (min-width: 480px) and (max-width: 940px) {
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-game-listen-box {
    display: grid !important;
    grid-template-areas: "icon main" "actions actions" !important;
    grid-template-columns: 30px minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    align-self: start !important;
    box-sizing: border-box !important;
    gap: 4px 6px !important;
    height: auto !important;
    min-height: 88px !important;
    padding: 4px 7px !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-game-listen-label,
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-game-listen-main > small {
    display: none !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-game-listen-main {
    grid-area: main !important;
    min-width: 0 !important;
    overflow-wrap: normal !important;
    width: auto !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-game-listen-icon { grid-area: icon !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-game-listen-main > strong {
    font-size: .75rem !important;
    line-height: 1.08 !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-game-audio-toggle {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    min-height: 44px !important;
    padding: 4px 6px !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-game-audio-actions {
    align-items: center !important;
    display: flex !important;
    grid-area: actions !important;
    gap: 6px !important;
    min-width: 0 !important;
    width: 100% !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-game-audio-time { flex: 0 0 auto !important; }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-game-audio-toggle strong,
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-game-audio-time {
    font-size: .75rem !important;
  }
}

/* 8.3.72 — éviter que les choix bas d’Instrument Hunter touchent le bord du cadre. */
@media (orientation: landscape) and (max-height: 560px) and (min-width: 480px) and (max-width: 940px) {
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-hunter-stage {
    gap: 1px !important;
  }
}
/* 8.3.76 — deux rangées gardent toutes les réponses de Blind Test visibles
   sur un téléphone portrait court, sans réduire les cibles tactiles. */
@media (orientation: portrait) and (max-width: 360px) and (max-height: 520px) {
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-bt-stage .am-game-choices {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: auto auto !important;
    grid-auto-rows: minmax(44px, auto) !important;
    gap: 6px !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-bt-stage .am-game-choice {
    box-sizing: border-box !important;
    grid-template-columns: minmax(0, 1fr) 20px !important;
    min-height: 44px !important;
    padding: 4px 5px !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-bt-stage .am-game-choice-copy :is(strong, small) {
    font-size: .75rem !important;
    line-height: 1.08 !important;
    overflow-wrap: anywhere !important;
  }
}

/* 8.3.76 — gagner cinq pixels au-dessus de la dernière rangée d’Instrument Hunter. */
@media (orientation: landscape) and (max-height: 360px) and (min-width: 480px) and (max-width: 699px) {
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-hunter-stage .am-hunter-round {
    margin-top: 0 !important;
  }
}
/* 8.3.77 — préserver des retours à la ligne naturels dans les réponses longues. */
@media (orientation: portrait) and (max-width: 360px) and (max-height: 520px) {
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-bt-stage .am-game-choice {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-bt-stage .am-game-choice-state {
    display: none !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-bt-stage .am-game-choice-copy :is(strong, small) {
    overflow-wrap: break-word !important;
    word-break: normal !important;
  }
}


/* 8.3.81 — inclure l’arrondi CSS de la hauteur du viewport dans la plage tablette compacte. */
@media (min-width: 701px) and (max-width: 959px) and (min-height: 561px) and (max-height: 700px) {
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round {
    gap: 4px !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round-head h1 {
    font-size: 1.28rem !important;
    line-height: 1.05 !important;
    margin: 2px 0 !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-workspace {
    align-items: stretch !important;
    gap: 8px !important;
    grid-template-columns: minmax(0, 1.08fr) minmax(270px, .92fr) !important;
    margin: 4px auto 0 !important;
    max-width: 1100px !important;
    min-height: 0 !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-stage-map {
    box-sizing: border-box !important;
    min-height: 280px !important;
    padding: 23px 10px 28px !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-zones {
    gap: 4px !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-zone {
    min-height: 44px !important;
    padding: 4px 7px !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-bench {
    padding: 9px !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-bench-title {
    margin-bottom: 4px !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-bench-instruction {
    margin: 2px 0 5px !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-list {
    gap: 5px !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-label {
    min-height: 44px !important;
    padding: 4px 7px !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-bench-actions {
    gap: 6px !important;
    margin-top: 4px !important;
    padding-top: 4px !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-bench-actions button {
    min-height: 44px !important;
    padding: 6px 7px !important;
  }
}
/* 8.3.81 — garder deux commandes de même largeur sur les écrans très étroits. */
@media (max-width: 300px) {
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-bench-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-bench-actions button {
    min-width: 0 !important;
    padding-inline: 4px !important;
  }
}

/* 8.3.88 — préserver les pupitres et les commandes sur les téléphones très courts. */
@media (max-width: 300px) and (max-height: 500px) {
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round:not(.is-answered) .am-orchestra-stage-map {
    box-sizing: border-box !important;
    flex: 0 1 auto !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    padding: 2px 5px !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round:not(.is-answered) .am-orchestra-stage-label {
    display: none !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round:not(.is-answered) .am-orchestra-zone {
    box-sizing: border-box !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 2px 3px !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round:not(.is-answered) .am-orchestra-bench {
    padding-top: 4px !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round:not(.is-answered) .am-orchestra-bench-instruction {
    font-size: 12px !important;
    line-height: 1.1 !important;
    margin: 1px 0 2px !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round:not(.is-answered) .am-orchestra-bench-actions {
    box-sizing: border-box !important;
    height: 44px !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    margin-top: 2px !important;
    padding-top: 2px !important;
  }
}


/* 8.3.89 — imposer deux colonnes pour les réponses de L’Intrus sur les téléphones très étroits. */
@media (max-width: 300px) and (max-height: 500px) {
  html body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-odd-board-grid {
    box-sizing: border-box !important;
    display: grid !important;
    flex: 0 0 auto !important;
    gap: 4px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    margin-top: 0 !important;
    max-width: none !important;
    width: 100% !important;
  }
  html body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-odd-case {
    box-sizing: border-box !important;
    min-height: 52px !important;
    padding: 4px 3px !important;
  }
  html body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-odd-case > strong {
    font-size: 14px !important;
    line-height: 1.15 !important;
    overflow-wrap: anywhere !important;
  }
}

/* 8.3.90 — garder les quatre régions visibles dans Music Trip à 280 × 480 px. */
@media (max-width: 300px) and (max-height: 500px) {
  html body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-mt-choice-grid {
    box-sizing: border-box !important;
    display: grid !important;
    flex: 0 0 auto !important;
    gap: 4px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
  }
  html body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-game-choice {
    align-items: center !important;
    box-sizing: border-box !important;
    flex: 0 0 auto !important;
    gap: 4px !important;
    grid-template-columns: minmax(0, 1fr) 24px !important;
    min-height: 44px !important;
    padding: 4px !important;
    width: 100% !important;
  }
  html body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-game-choice > strong {
    font-size: 13px !important;
    line-height: 1.15 !important;
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
  }
  html body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-mt-stage .am-game-choice-state {
    box-sizing: border-box !important;
    height: 24px !important;
    min-height: 24px !important;
    min-width: 24px !important;
    width: 24px !important;
  }
}

/* On ultrawide screens, use the available stage width for answer layouts and
   feedback while keeping long-form reading blocks at a comfortable measure. */
@media (min-width: 1820px) {
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical.atlas-musical--standalone.atlas-musical-v6[data-am-current-view="game"] :is(.am-game-question, .am-tm-round-head, .am-odd-common-rule, .am-odd-round-head, .am-hunter-round-head, .am-orchestra-round-head) {
    max-width: min(1900px, calc(100vw - 160px)) !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"] .am-odd-common-rule > strong:not(#am-ui-leaf-type-floor) {
    font-size: clamp(1.75rem, 1.65vw, 2rem) !important;
    line-height: 1.18 !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical.atlas-musical--standalone.atlas-musical-v6[data-am-current-view="game"] :is(.am-game-choices, .am-mt-choice-grid, .am-tm-cards, .am-tm-axis, .am-odd-board-grid, .am-hunter-choice-grid, .am-orchestra-workspace, .am-game-feedback, .am-tm-reveal, .am-hunter-reveal, .am-orchestra-result) {
    max-width: min(2400px, calc(100vw - 160px)) !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical.atlas-musical--standalone.atlas-musical-v6[data-am-current-view="game"] .am-mt-round {
    max-width: min(2200px, calc(100vw - 160px)) !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical.atlas-musical--standalone.atlas-musical-v6[data-am-current-view="game"] .am-game-listen-box {
    max-width: min(900px, calc(100vw - 160px)) !important;
  }
}

/* 8.3.99 — les pages dédiées s’alignent sur la largeur réellement visible du
   thème WordPress. 100vw inclut la gouttière de la barre de défilement sous
   Windows et décalait le canvas de 8 px sur les formats contrôlés. */
body.atlas-musical-page #page,
body.atlas-musical-page .site,
body.atlas-musical-page .site-inner,
body.atlas-musical-page .site-content,
body.atlas-musical-page .content-area,
body.atlas-musical-page main.site-main,
body.atlas-musical-page article.page,
body.atlas-musical-page .entry-content,
body.atlas-musical-page .post-content,
body.atlas-musical-page .page-content,
body.atlas-musical-page .wp-block-post-content,
body.atlas-musical-live-page #page,
body.atlas-musical-live-page .site,
body.atlas-musical-live-page .site-inner,
body.atlas-musical-live-page .site-content,
body.atlas-musical-live-page .content-area,
body.atlas-musical-live-page main.site-main,
body.atlas-musical-live-page article.page,
body.atlas-musical-live-page .entry-content,
body.atlas-musical-live-page .post-content,
body.atlas-musical-live-page .page-content,
body.atlas-musical-live-page .wp-block-post-content {
  box-sizing: border-box !important;
  margin-inline: 0 !important;
  max-width: none !important;
  padding-inline: 0 !important;
  width: 100% !important;
}

body.atlas-musical-page .atlas-musical.atlas-musical--standalone {
  box-sizing: border-box !important;
  margin: 28px auto 0 !important;
  max-width: min(2800px, 100%) !important;
  width: 100% !important;
}

body.atlas-musical-live-page .arcade-musicale-live {
  box-sizing: border-box !important;
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

/* Sur les écrans courts, garder les deux choix de jeu et le formulaire Live
   dans la première vue, sans rendre les textes ou les commandes minuscules. */
@media (max-height: 620px) {
  .atlas-musical .am-mode-gate {
    align-items: flex-start !important;
    overflow-y: auto !important;
    padding: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom)) !important;
  }
  body.admin-bar.atlas-musical-page .am-mode-gate {
    /* The mobile WordPress toolbar ends below the home link; reserve space for both. */
    padding-top: max(110px, calc(env(safe-area-inset-top) + 102px)) !important;
  }
  .atlas-musical .am-mode-panel {
    margin: 0 auto !important;
    padding: 12px 12px 8px !important;
  }
  .atlas-musical .am-mode-kicker { font-size: .75rem !important; margin-bottom: 4px !important; }
  .atlas-musical .am-mode-panel h1 {
    font-size: clamp(1.9rem, 7.5vw, 2.2rem) !important;
    line-height: 1.02 !important;
    margin: 0 auto 6px !important;
  }
  .atlas-musical .am-mode-panel > p {
    font-size: .78rem !important;
    line-height: 1.3 !important;
  }
  .atlas-musical .am-mode-options {
    gap: 8px !important;
    margin: 8px auto 6px !important;
  }
  .atlas-musical .am-mode-option,
  .atlas-musical .am-mode-option.is-live {
    gap: 8px !important;
    min-height: 96px !important;
    padding: 9px !important;
  }
  .atlas-musical .am-mode-icon { border-radius: 10px !important; height: 36px !important; width: 36px !important; }
  .atlas-musical .am-mode-option small { font-size: .75rem !important; letter-spacing: .08em !important; }
  .atlas-musical .am-mode-option strong { font-size: 1rem !important; line-height: 1.08 !important; }
  .atlas-musical .am-mode-option em {
    display: -webkit-box !important;
    font-size: .75rem !important;
    line-height: 1.25 !important;
    overflow: hidden !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
  }
  .atlas-musical .am-mode-status,
  .atlas-musical .am-mode-status:empty { margin: 0 auto !important; min-height: 1.45em !important; }
  .atlas-musical .am-mode-note { font-size: .75rem !important; line-height: 1.3 !important; }
}

@media (max-height: 620px) and (orientation: landscape) {
  .atlas-musical .am-mode-gate { padding-block: 6px !important; }
  body.admin-bar.atlas-musical-page .am-mode-gate {
    padding-top: max(46px, calc(env(safe-area-inset-top) + 38px)) !important;
  }
  .atlas-musical .am-mode-panel { padding: 10px 14px 7px !important; }
  .atlas-musical .am-mode-options { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .atlas-musical .am-mode-option,
  .atlas-musical .am-mode-option.is-live { min-height: 90px !important; }
  .atlas-musical .am-mode-option > b { display: none !important; }
  .atlas-musical .am-mode-tags { display: none !important; }
}

@media (max-height: 520px) and (max-width: 960px) and (orientation: landscape) {
  .arcade-musicale-live.is-live-question { width: auto !important; }
  .arcade-musicale-live.is-live-entry .aml-header {
    min-height: 44px !important;
    padding-block: 3px !important;
  }
  .arcade-musicale-live.is-live-entry .aml-brand-mark { height: 36px !important; width: 36px !important; }
  .arcade-musicale-live.is-live-entry .aml-main {
    min-height: 0 !important;
    padding: 0 6px 8px !important;
  }
  .arcade-musicale-live.is-live-entry .aml-shell { max-width: 560px !important; }
  .arcade-musicale-live.is-live-entry .aml-intro { gap: 4px !important; }
  .arcade-musicale-live.is-live-entry .aml-entry-switch,
  .arcade-musicale-live.is-live-entry .aml-entry-switch-button { min-height: 44px !important; }
  .arcade-musicale-live.is-live-entry .aml-entry-switch-button { padding-block: 4px !important; }
  .arcade-musicale-live.is-live-entry .aml-entry-grid { max-width: 560px !important; }
  .arcade-musicale-live.is-live-entry .aml-player-entry { padding: 8px 10px !important; }
  .arcade-musicale-live.is-live-entry .aml-entry-heading { gap: 0 !important; }
  .arcade-musicale-live.is-live-entry .aml-entry-heading .aml-card-badge { display: none !important; }
  .arcade-musicale-live.is-live-entry .aml-entry-heading h2 { font-size: 1rem !important; line-height: 1.1 !important; }
  .arcade-musicale-live.is-live-entry .aml-form {
    display: grid !important;
    gap: 5px 7px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    margin-top: 4px !important;
  }
  .arcade-musicale-live.is-live-entry .aml-form .aml-field { gap: 2px !important; min-width: 0 !important; }
  .arcade-musicale-live.is-live-entry .aml-form .aml-field > small { display: block !important; }
  .arcade-musicale-live.is-live-entry .aml-form .aml-field input { min-height: 44px !important; padding-block: 5px !important; }
  .arcade-musicale-live.is-live-entry .aml-form .aml-code-input { font-size: 1rem !important; min-height: 44px !important; }
  .arcade-musicale-live.is-live-entry .aml-entry-action-slot { grid-column: 1 / -1 !important; min-height: 44px !important; }
  .arcade-musicale-live.is-live-entry .aml-entry-action-slot > button[type="submit"] {
    height: 44px !important;
    min-height: 44px !important;
    padding-block: 4px !important;
    width: 100% !important;
  }
  .arcade-musicale-live.is-live-entry .aml-audio-primer,
  .arcade-musicale-live.is-live-entry .aml-privacy-note { display: none !important; }
}

/* 8.3.99 — garder les deux champs et l’action Live dans le premier écran
   en paysage court. Les styles compacts précédents forçaient encore chaque
   champ dans la première colonne et les empilaient verticalement. */
@media (max-height: 520px) and (max-width: 960px) and (orientation: landscape) {
  .arcade-musicale-live.is-live-entry .aml-entry-switch {
    gap: 0 !important;
    padding: 0 !important;
  }
  .arcade-musicale-live.is-live-entry .aml-form > .aml-field {
    grid-column: auto !important;
  }
}

/* Audit responsive — garder l’en-tête Orchestra Builder dans sa scène après
   validation, sur les portables paysage de faible hauteur. */
@media (min-width: 941px) and (orientation: landscape) and (max-height: 700px) {
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-stage {
    justify-content: flex-start !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round.is-answered {
    flex: 1 1 0 !important;
    min-height: 0 !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round.is-answered .am-orchestra-workspace {
    flex: 1 1 auto !important;
    min-height: 0 !important;
  }
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round.is-answered .am-orchestra-stage-map {
    max-height: 330px !important;
    min-height: 0 !important;
  }
}

/* Audit responsive — le libellé décoratif du plan ne tient pas dans la scène
   après correction sur un paysage très court; les quatre pupitres restent nommés. */
@media (orientation: landscape) and (max-height: 420px) and (min-width: 700px) and (max-width: 940px) {
  body.atlas-musical-page.atlas-musical-game-active .atlas-musical-v6[data-am-current-view="game"][data-am-game-phase="round"] .am-orchestra-round.is-answered .am-orchestra-stage-label {
    display: none !important;
  }
}

/* Grands écrans — élargir la scène Solo et le shell Live sans étirer les
   textes et les grilles de réponses, qui gardent leurs propres limites. */
@media (min-width: 1440px) {
  .atlas-musical-v6[data-am-current-view="game"] .am-main {
    max-width: 1880px !important;
  }
  .atlas-musical-v6[data-am-current-view="game"] .am-game-shell {
    max-width: 1800px !important;
  }
  .arcade-musicale-live .aml-main {
    max-width: 1880px !important;
  }
  .arcade-musicale-live .aml-shell {
    max-width: 1800px !important;
  }
}

.atlas-musical { --am-final-css-ready: 85100; }
.arcade-musicale-live { --aml-final-css-ready: 85100; }

/* Solo libre : ni profil local ni bilan de réponses détaillé. */
.atlas-musical-v6 .am-free-solo-audio-test {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 12px;
}
.atlas-musical-v6 .am-free-solo-audio-test [data-am-test-sound-status] {
  color: var(--music-muted);
  font-size: .8rem;
}
.atlas-musical-v6[data-am-current-view="game"] .am-game-finish.is-free-solo .am-game-finish-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 520px;
}
@media (max-width: 560px) {
  .atlas-musical-v6[data-am-current-view="game"] .am-game-finish.is-free-solo .am-game-finish-stats {
    grid-template-columns: 1fr;
  }
}
