
.construction-entry {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-top:18px;
  padding:16px 18px;
  border:1px solid #b5cfc4;
  border-radius:14px;
  background:#e9f1ec;
  color:#214f43;
  text-decoration:none;
}
.construction-entry strong,.construction-entry small { display:block; }
.construction-entry small { margin-top:3px; font-size:.8rem; }
.construction-entry:hover { border-color:#346c5c; background:#deebe2; }
.construction-entry:focus-visible { outline:3px solid #c2912d; outline-offset:3px; }
body[data-chord-construction] {
  background:#edf1ec !important;
  color:#183b4e;
}
.construction-main { width:min(1040px,100%); margin:12px auto 30px; }
.construction-card {
  padding:clamp(14px,2.2vw,26px);
  border:1px solid #cbd8ce;
  border-radius:18px;
  background:#faf8f1;
}
.construction-heading,.construction-options,.construction-controls,.construction-edit,.construction-edit > div {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
}
.construction-heading { justify-content:space-between; }
.construction-heading h1 { font-size:clamp(1.45rem,3.2vw,2rem); margin:4px 0 0; }
.construction-heading .section-eyebrow { color:#776023; }
.construction-options { margin-top:18px; padding:12px; border-radius:12px; background:#e9efe7; align-items:end; }
.construction-options label,.construction-label { display:block; font-size:.8rem; font-weight:700; }
.construction-options select { display:block; width:150px; margin-top:5px; padding:8px 10px; min-height:44px; border:1px solid #b8c7bb; border-radius:9px; background:#fffdf7; color:inherit; font:inherit; }
.construction-switch { display:flex; gap:4px; margin-top:5px; }
.construction-switch button,.construction-action,.construction-toolbar .acc,.construction-note-chip {
  min-height:44px;
  padding:9px 13px;
  border:1px solid #bdccc2;
  border-radius:10px;
  background:#fffdf7;
  color:#234b40;
  font-family:inherit;
  font-size:.9rem;
  line-height:1.2;
  font-weight:700;
  cursor:pointer;
}
.construction-switch button[aria-pressed="true"],.construction-toolbar .acc[aria-pressed="true"],.construction-note-chip[aria-pressed="true"],.construction-action.primary {
  border-color:#22594f;
  background:#22594f;
  color:#fff;
}
.construction-card button:disabled { cursor:default; opacity:.42; }
.construction-card button:focus-visible,.construction-options select:focus-visible { outline:3px solid #bd8b28 !important; outline-offset:3px !important; }
#question { margin:18px 0 6px; font-size:clamp(1.15rem,2.5vw,1.45rem); }
.construction-instruction { margin:0 0 14px; font-size:.9rem; color:#54675e; }
.construction-toolbar {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:7px;
  padding:10px;
  border:1px solid #d6e0d4;
  border-radius:12px;
  background:#eef3e9;
}
.construction-toolbar > span { margin-right:6px; font-size:.8rem; font-weight:650; }
.construction-toolbar .acc { min-width:46px; padding:6px 10px; font-size:1.5rem; line-height:1.2; }
.construction-preview { min-height:36px; margin:8px 0 2px; color:#22594f; font-size:1.55rem; font-weight:750; }
.construction-sheet,.construction-sheet * {
  user-select:none;
  -webkit-user-select:none;
  -webkit-touch-callout:none;
  -webkit-tap-highlight-color:transparent;
}
.construction-sheet {
  position:relative;
  border:1px solid #cbd8ce;
  border-radius:14px;
  background:#fffdf5;
  overflow:hidden;
  touch-action:none;
}
.construction-sheet #notation { height:255px; }
.construction-sheet #notation svg { display:block; width:100%; height:255px; }
.construction-sheet #overlay { position:absolute; inset:0; width:100%; height:100%; touch-action:none; cursor:crosshair; }
.construction-sheet .ghost { pointer-events:none; }
.construction-sheet.touch-previewing { border-color:#528a76; box-shadow:0 0 0 2px #b5d7c8; }
.construction-gesture-help { margin:7px 0; color:#5b7064; font-size:.78rem; line-height:1.45; }
.construction-notes { display:flex; flex-wrap:wrap; gap:7px; min-height:44px; margin:10px 0; }
.construction-note-chip.is-bass { color:#324d69; background:#e9eef2; border-color:#bdcbd8; }
.construction-note-chip.is-bass:disabled { opacity:1; }
.construction-note-chip small { font-size:.68rem; margin-left:6px; }
.construction-edit { min-height:48px; margin:8px 0 14px; }
.construction-edit > span { min-width:210px; color:#5c6e64; font-size:.82rem; }
.construction-controls #check { margin-left:auto; }
.construction-feedback { min-height:58px; margin:12px 0 6px; padding:10px 12px; border-radius:10px; line-height:1.5; font-size:.92rem; }
.construction-feedback:empty { background:transparent; }
.construction-feedback[data-kind="success"] { color:#225d3d; background:#e1f0df; }
.construction-feedback[data-kind="error"] { color:#804227; background:#f9e9db; }
.construction-feedback[data-kind="info"] { color:#31546c; background:#e5edf1; }
.construction-correction { margin-top:14px; padding:14px 16px; border:1px solid #c1d2c4; border-radius:14px; background:#edf3e9; }
.construction-correction[hidden] { display:none; }
.construction-correction h3 { margin:0; }
#correction-staff { max-width:480px; margin:auto; }
#correction-staff svg { display:block; width:100%; height:160px; }
#correction-names { font-weight:750; text-align:center; }
.construction-correction p { font-size:.9rem; line-height:1.5; }
@media(max-width:560px) {
  body[data-chord-construction] .notalix-global-topbar__brand { flex-direction:column; gap:2px; }
  body[data-chord-construction] .notalix-global-topbar__separator { display:none; }
  .construction-main { margin:7px auto 18px; }
  .construction-heading { align-items:start; gap:7px; }
  .construction-heading .construction-switch { margin-top:0; }
  .construction-options { gap:8px; padding:9px; }
  .construction-options select { width:126px; }
  .construction-toolbar { gap:6px; }
  .construction-toolbar > span { flex-basis:100%; }
  .construction-toolbar .acc { flex:1; min-width:0; }
  .construction-edit > div { gap:6px; }
  .construction-edit #apply { flex:1; }
  .construction-controls { display:grid; grid-template-columns:1fr 1fr; }
  .construction-controls #check { margin-left:0; }
  .construction-action { padding-inline:10px; font-size:.82rem; }
}

/* Construction expérimentale : styles limités à cette activité. */
body[data-chord-construction] .construction-main { width:min(1180px,calc(100% - 20px)); max-width:1180px; }
.construction-mode { margin-top:14px; }
.construction-mode button { min-width:116px; }
.construction-options[hidden],.construction-draw[hidden],.construction-hint[hidden] { display:none; }
.construction-options label { flex:1 1 160px; }
.construction-options select { width:100%; max-width:100%; }
.construction-options label:has(#construction-quality),.construction-options label:has(#construction-disposition) { flex-basis:235px; }
#guided-options { background:linear-gradient(115deg,#dbece4,#e7edf6); align-items:center; }
#guided-options label { flex:0 1 350px; }
#guide-tip { flex:1 1 260px; font-size:.9rem; line-height:1.5; margin:4px; }
.construction-check { display:flex!important; align-items:center; gap:8px; min-height:44px; }
.construction-draw,.construction-theory { margin:12px 0; padding:12px 14px; background:#edf0eb; border:1px solid #ccd8cf; border-radius:12px; }
.construction-draw summary,.construction-theory summary { cursor:pointer; min-height:30px; font-weight:750; font-size:.88rem; }
.construction-draw p,.construction-theory p { font-size:.86rem; line-height:1.5; }
.construction-draw h3 { font-size:.95rem; margin:14px 0 7px; }
.construction-pool { display:flex; flex-wrap:wrap; gap:6px; }
.construction-pool label { display:flex; align-items:center; gap:6px; min-height:44px; padding:7px 10px; background:#fffaf0; border:1px solid #c9d3cb; border-radius:8px; font-size:.83rem; cursor:pointer; }
.construction-pool input { width:18px; height:18px; accent-color:#22594f; }
#quality-pool details { border-top:1px solid #cad5cc; padding:8px 0; }
.construction-next { display:flex; justify-content:space-between; align-items:center; gap:10px; margin:12px 0; }
#pool-summary { font-size:.78rem; color:#506458; }
.construction-state { font-size:.82rem; font-weight:750; color:#795528; margin:4px 0 8px; }
.construction-hint { padding:10px; background:#fff1ce; border-radius:8px; }
.construction-theory nav { display:flex; gap:12px; flex-wrap:wrap; }
.construction-theory a { min-height:44px; display:inline-flex; align-items:center; color:#234b6c; }
.construction-preview { height:40px; min-height:40px; line-height:40px; margin:4px 0; }
.construction-sheet #notation,.construction-sheet #notation svg { height:300px; }
#correction-staff { max-width:700px; }
#correction-staff svg { height:255px; }
body[data-chord-construction] .construction-instruction { line-height:1.5; }
body[data-chord-construction] [hidden] { display:none; }
@media(min-width:900px) {
  .construction-toolbar { padding:8px 12px; }
  .construction-edit { justify-content:space-between; }
}
@media(max-width:560px) {
  .construction-card { padding:12px; }
  .construction-heading h1 { font-size:1.4rem; }
  .construction-heading { gap:9px; }
  .construction-heading .construction-switch { width:100%; }
  .construction-heading .construction-switch button { flex:1; }
  .construction-options { margin-top:10px; }
  #guided-options label { flex:1 1 100%; }
  .construction-options label { min-width:0; flex-basis:120px; }
  .construction-switch button,.construction-action { min-height:46px; }
  .construction-next { align-items:flex-start; }
  .construction-next button { flex-shrink:0; }
  .construction-sheet #notation,.construction-sheet #notation svg { height:300px; }
  .construction-edit > div { display:grid; grid-template-columns:46px 46px 1fr; width:100%; }
  .construction-edit #remove { grid-column:1/-1; }
  .construction-toolbar > span { font-size:.75rem; }
  .construction-gesture-help { font-size:.74rem; }
  #question { font-size:1.15rem; line-height:1.4; }
}

/* Une préparation distincte, puis un écran de travail sans panneaux de réglage. */
.construction-hero { padding:18px 22px; border-radius:14px; background:linear-gradient(110deg,#214e48,#3d7061); color:#fffaf0; }
.construction-hero .section-eyebrow { color:#edcf8b; }
.construction-hero h1 { color:inherit; }
.construction-mode-wrap { flex:1 1 100%; }
.construction-mode-cards { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-top:7px; }
.construction-mode-cards button { display:flex; align-items:center; gap:12px; min-height:82px; text-align:left; padding:12px; border:2px solid transparent; border-radius:12px; background:#e1ece5; color:#173e38; font:inherit; cursor:pointer; }
.construction-mode-cards button strong,.construction-mode-cards button small { display:block; }
.construction-mode-cards button small { margin-top:4px; font-size:.75rem; font-weight:400; }
.construction-mode-cards [data-mode="tutorial"] { background:#f5e6c8; color:#745020; }
.construction-mode-cards [data-mode="custom"] { background:#e8dce9; color:#58335d; }
.construction-mode-cards [data-mode="challenge"] { background:#16365d; color:#fff; }
.construction-mode-cards button[aria-pressed="true"] { border-color:currentColor; box-shadow:0 0 0 2px #fff8 inset; }
.construction-mode-icon { display:grid; place-items:center; border-radius:10px; width:38px; height:38px; background:#fff6; font-size:1.6rem; }
#guided-options { display:grid; grid-template-columns:1.1fr 1fr; gap:14px; }
.construction-levels { display:grid; grid-template-columns:1fr 1fr; gap:7px; }
.construction-level-card { display:flex; align-items:center; gap:8px; min-height:57px; padding:9px; text-align:left; font:inherit; font-size:.82rem; color:#234b40; border:1px solid #acc5b7; border-radius:10px; background:#f7f6e9; cursor:pointer; }
.construction-level-card span { display:grid; place-items:center; flex:0 0 28px; height:28px; border-radius:50%; background:#d3e6dc; font-weight:800; }
.construction-level-card:nth-child(n+4) { background:#e6edf6; border-color:#b2c3d3; color:#294f6d; }
.construction-level-card:nth-child(n+7) { background:#ece1ef; border-color:#c6b2ce; color:#654471; }
.construction-level-card[aria-pressed="true"] { background:#245d50; color:#fff; border-color:#245d50; }
.construction-level-card[aria-pressed="true"] span { color:#245d50; background:#fff7df; }
.construction-guide-preview { padding:12px; border-radius:10px; background:#fffaf0; min-width:0; }
#guide-example svg { display:block; width:100%; height:170px; }
.construction-challenges { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:16px 0; }
.construction-challenge-card { display:flex; flex-direction:column; gap:12px; border-radius:14px; border:2px solid #567da6; background:linear-gradient(130deg,#173954,#10243e); padding:20px; font:inherit; color:#fff; text-align:left; cursor:pointer; }
.construction-challenge-card > span { color:#efd185; font-size:1.5rem; }
.construction-challenge-card strong { font-size:1.1rem; }
.construction-challenge-card small { line-height:1.5; min-height:45px; }
.construction-challenge-card em { font-style:normal; color:#ffb7bd; font-size:.8rem; }
.construction-challenge-card[aria-pressed="true"] { border-color:#e9bd61; box-shadow:0 0 0 2px #e9bd6122 inset; }
#tutorial-options { display:grid; grid-template-columns:240px 1fr; gap:14px; }
.construction-tutorial-menu { display:flex; flex-direction:column; gap:8px; }
.construction-tutorial-menu button { min-height:54px; padding:9px 12px; text-align:left; background:#efe5cc; color:#705120; border:1px solid #cbbd9f; border-radius:10px; font:inherit; font-size:.88rem; cursor:pointer; }
.construction-tutorial-menu button[aria-pressed="true"] { color:#fff; background:#816136; }
.construction-tutorial-content { padding:14px; min-width:0; background:#fffaf0; border:1px solid #dbcdb5; border-radius:12px; }
.construction-tutorial-content p { font-size:.88rem; line-height:1.5; }
.construction-tutorial-content .construction-switch { flex-wrap:wrap; }
#tutorial-staff svg { width:100%; height:210px; }
#tutorial-names { text-align:center; font-weight:750; }
.construction-quality-badge { display:inline-block; vertical-align:middle; padding:5px 12px; border-radius:8px; font-size:1.15rem; line-height:1.2; background:#ddd7ed; color:#4e3a6d; margin-left:12px; }
.construction-question { height:94px; }
.construction-question #question small { display:block; font-size:.75rem; font-weight:500; color:#526a62; line-height:18px; }
.construction-question #question > strong { font-size:2rem; color:#163f51; line-height:1.2; }
body[data-chord-construction] #question[data-quality="M"] .construction-quality-badge { color:#fff; background:#246651; }
body[data-chord-construction] #question[data-quality="m"] .construction-quality-badge { color:#fff; background:#873c60; }
body[data-chord-construction] #question { animation:construction-question-in .3s ease-out; }
.construction-feedback strong { display:block; font-size:1rem; line-height:1.3; letter-spacing:.03em; }
.construction-feedback > span { display:block; }
body[data-chord-construction] #sheet[data-answer="correct"] { box-shadow:inset 0 0 0 4px #38a06b; background:#edf9ee; }
body[data-chord-construction] #sheet[data-answer="wrong"] { box-shadow:inset 0 0 0 4px #cb6268; background:#fff2ee; }
.construction-hearts { color:#9a3256; font-size:1rem; letter-spacing:2px; }
body[data-construction-mode="challenge"][data-construction-view="session"] .construction-card { border-top:4px solid #315e91; }
@keyframes construction-question-in { from{opacity:.4;transform:translateY(3px)}to{opacity:1;transform:none} }
@media(prefers-reduced-motion:reduce) { body[data-chord-construction] #question { animation:none; } }
.construction-choices { display:flex; flex-wrap:wrap; gap:16px 32px; margin:18px 0; }
.construction-launch { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px; border-radius:12px; background:#dbece4; margin-top:16px; }
.construction-welcome { color:#426058; }
.construction-dialog { width:min(760px,calc(100% - 24px)); max-height:90svh; overflow:auto; border:1px solid #a9beb2; border-radius:16px; padding:18px; color:#183b4e; background:#faf8f1; }
.construction-dialog::backdrop { background:#17363e88; }
.construction-dialog header { display:flex; gap:12px; justify-content:space-between; align-items:center; }
.construction-dialog h2 { font-size:1.3rem; margin:0 0 10px; }
.construction-dialog header button { min-height:44px; min-width:44px; border:1px solid #b8c8bc; border-radius:8px; background:#e8eee5; cursor:pointer; }
.construction-dialog p { font-size:.9rem; line-height:1.5; }
body[data-construction-view="session"] .construction-main { height:var(--construction-room,calc(100svh - 106px)); margin-top:8px; margin-bottom:0; }
body[data-construction-view="session"] .construction-card { height:100%; padding:10px 16px; display:flex; flex-direction:column; }
body[data-construction-view="session"] .construction-heading { display:none; }
#construction-session { display:flex; flex:1; min-height:0; flex-direction:column; gap:4px; }
.construction-progress { display:flex; align-items:center; gap:10px; min-height:44px; font-size:.85rem; }
.construction-progress progress { flex:1; min-width:20px; height:8px; accent-color:#246758; }
.construction-progress #session-settings { margin-left:auto; min-height:44px; padding:6px 10px; font-size:.78rem; }
.construction-question { height:76px; flex-shrink:0; }
.construction-question #question { margin:0; font-size:clamp(1.1rem,2.2vw,1.5rem); line-height:1.3; min-height:32px; }
.construction-question .construction-state { margin:3px 0; line-height:18px; }
.construction-question .construction-instruction { margin:0; font-size:.82rem; }
body[data-construction-view="session"] #chord-editor { flex:1; min-height:0; display:grid; grid-template-rows:48px 28px minmax(100px,1fr) 46px 46px; gap:4px; }
body[data-construction-view="session"] .construction-toolbar { grid-row:1; padding:3px 9px; flex-wrap:nowrap; }
body[data-construction-view="session"] .construction-toolbar .acc { min-height:40px; min-width:44px; font-size:1.4rem; }
body[data-construction-view="session"] .construction-preview { grid-row:2; height:28px; min-height:28px; line-height:28px; margin:0; font-size:1.3rem; }
body[data-construction-view="session"] #sheet { grid-row:3; min-height:100px; }
body[data-construction-view="session"] #notation,body[data-construction-view="session"] #notation svg { width:100%; height:100%; }
body[data-construction-view="session"] #notes { grid-row:4; display:flex; flex-wrap:nowrap; overflow-x:auto; overflow-y:hidden; min-width:0; min-height:44px; margin:0; gap:6px; scrollbar-width:thin; }
body[data-construction-view="session"] .construction-note-chip { flex:0 0 auto; min-height:40px; padding:6px 10px; }
body[data-construction-view="session"] .construction-note-chip small { display:none; }
body[data-construction-view="session"] .construction-note-chip.is-bass::after { content:' · basse'; font-size:.65rem; }
body[data-construction-view="session"] .construction-edit { grid-row:4; display:none; margin:0; min-height:44px; }
body[data-construction-view="session"] #chord-editor[data-editing="true"] #notes { visibility:hidden; }
body[data-construction-view="session"] #chord-editor[data-editing="true"] .construction-edit { display:flex; }
body[data-construction-view="session"] .construction-edit > span { display:none; }
body[data-construction-view="session"] .construction-edit > div { display:flex; gap:6px; width:100%; justify-content:center; }
body[data-construction-view="session"] .construction-edit button { min-width:44px; min-height:44px; padding:6px 10px; }
body[data-construction-view="session"] .construction-controls { grid-row:5; display:flex; flex-wrap:nowrap; gap:6px; }
body[data-construction-view="session"] .construction-controls button { min-height:44px; min-width:44px; padding:6px 12px; }
body[data-construction-view="session"] .construction-controls #listen { margin-left:auto; }
body[data-construction-view="session"] .construction-controls #check { margin-left:0; min-width:100px; }
.construction-response { display:flex; align-items:stretch; gap:6px; height:52px; flex-shrink:0; }
.construction-response .construction-feedback { flex:1; min-width:0; min-height:0; max-height:52px; overflow:auto; padding:5px 8px; margin:0; line-height:1.35; font-size:.88rem; }
.construction-response button { min-height:44px; padding:6px 10px; font-size:.8rem; }
.construction-session-links { display:none; }
#construction-finished { padding:32px 12px; text-align:center; }
#construction-finished .construction-switch { justify-content:center; flex-wrap:wrap; }
@media(max-width:600px) {
 .construction-choices { gap:12px; margin:14px 0; }
 .construction-choices > div { flex:1; }
 .construction-choices .construction-switch button { flex:1; min-width:0; }
 .construction-launch { flex-direction:column; align-items:stretch; text-align:center; padding:12px; }
 .construction-launch button { min-height:48px; }
 body[data-construction-view="session"] .construction-main { width:calc(100% - 8px); margin-top:4px; }
 body[data-construction-view="session"] .construction-card { padding:4px 8px; border-radius:12px; }
 .construction-progress { gap:6px; font-size:.74rem; }
 #session-count { display:none; }
 .construction-question { height:60px; }
 .construction-question #question { font-size:1.05rem; min-height:38px; line-height:1.15; }
 .construction-question .construction-state { font-size:.7rem; white-space:nowrap; overflow-x:auto; margin:2px 0 0; line-height:18px; }
 .construction-question .construction-instruction { display:none; }
 body[data-construction-view="session"] #chord-editor { grid-template-rows:44px 24px minmax(90px,1fr) 44px 44px; gap:3px; }
 body[data-construction-view="session"] #sheet { min-height:90px; }
 body[data-construction-view="session"] .construction-toolbar { gap:4px; padding:0; border:0; background:transparent; }
 body[data-construction-view="session"] .construction-toolbar > span { display:none; }
 body[data-construction-view="session"] .construction-toolbar .acc { flex:1; min-height:44px; min-width:0; }
 body[data-construction-view="session"] .construction-preview { height:24px; min-height:24px; line-height:24px; font-size:1.2rem; }
 body[data-construction-view="session"] .construction-controls button { padding:5px 8px; font-size:.85rem; }
 body[data-construction-view="session"] .construction-controls #check { min-width:86px; }
 body[data-construction-view="session"] .construction-edit button { padding:4px 6px; font-size:.8rem; }
 .construction-response { height:48px; }
 .construction-response .construction-feedback { font-size:.8rem; max-height:48px; }
 .construction-response button { padding:4px 7px; font-size:.75rem; }
 .construction-dialog { padding:12px; }
 #custom-options label { flex:1 1 110px!important; }
}
@media(orientation:landscape) and (max-height:500px) {
 body[data-construction-view="session"] .construction-card { padding:4px 12px; }
 .construction-progress { min-height:38px; }
 .construction-question { height:50px; }
 .construction-question #question { font-size:1.1rem; min-height:24px; }
 .construction-question .construction-instruction { display:none; }
 body[data-construction-view="session"] #chord-editor { grid-template-columns:1fr 1fr; grid-template-rows:44px minmax(44px,1fr) 44px; }
 body[data-construction-view="session"] .construction-toolbar { grid-area:1/2; }
 body[data-construction-view="session"] .construction-preview { grid-area:1/1; }
 body[data-construction-view="session"] #sheet { grid-area:2/1/4/2; }
 body[data-construction-view="session"] #notes,body[data-construction-view="session"] .construction-edit { grid-area:2/2; align-self:center; }
 body[data-construction-view="session"] .construction-controls { grid-area:3/2; }
 .construction-response { height:44px; }
}

body[data-chord-construction] [hidden] { display:none!important; }
/* La consigne est le repère principal de toute la construction. */
body[data-construction-view="session"] .construction-question { height:112px; flex-shrink:0; padding:7px 14px; border-radius:13px; border:1px solid #c4d7c9; background:#e8f2eb; text-align:center; }
body[data-construction-view="session"] .construction-question[data-quality="m"] { border-color:#d9bad0; background:#f0e4ef; }
body[data-construction-view="session"] .construction-question #question small { font-size:.7rem; font-weight:750; letter-spacing:.12em; line-height:17px; }
body[data-construction-view="session"] .construction-question #question > strong { font-size:clamp(2.4rem,3.8vw,3.4rem); line-height:1.05; }
body[data-construction-view="session"] .construction-question .construction-quality-badge { font-size:clamp(1rem,2vw,1.7rem); padding:7px 14px; }
body[data-construction-view="session"] .construction-question .construction-instruction { display:none; }
body[data-construction-view="session"] .construction-question .construction-state { margin:5px 0 0; font-size:.78rem; }
#custom-options { display:grid; grid-template-columns:2fr 1fr; gap:10px; background:transparent; padding:0; }
.construction-selection { min-width:0; border:1px solid #cbd6ce; border-radius:12px; padding:10px 12px; background:#e9f0e9; }
.construction-selection header { display:flex; align-items:center; flex-wrap:wrap; justify-content:space-between; gap:8px; margin-bottom:9px; }
.construction-selection header button { background:transparent; border:1px solid #bbcdbf; color:#2f6152; border-radius:7px; min-height:34px; padding:5px 9px; font:inherit; font-size:.78rem; cursor:pointer; }
.roots-selection { grid-column:1/-1; }
.qualities-selection { grid-column:1; background:#eee5ef; border-color:#d4c2d9; }
.states-selection { grid-column:2; background:#e5ecf4; border-color:#c1d1de; }
.build-selection { grid-column:1; background:#f3ead9; border-color:#dfcfb4; }
.options-selection { grid-column:2; }
.construction-selection .construction-pool { gap:6px; }
.construction-selection .construction-pool label { min-height:44px; padding:8px 10px; border:1px solid #becfc2; background:#fffaf0; font-size:.82rem; font-weight:650; }
.construction-selection .construction-pool label:has(input:checked) { background:#246153; color:#fff; border-color:#246153; }
.construction-selection .construction-pool label input { width:16px; height:16px; accent-color:#245d50; }
.construction-family-tabs,.construction-build-buttons { display:flex; flex-wrap:wrap; gap:6px; }
.construction-family-tabs { margin-bottom:9px; }
.construction-family-tabs button,.construction-build-buttons button { min-height:44px; padding:7px 12px; border-radius:9px; border:1px solid #c8b4cf; font:inherit; font-size:.8rem; background:#fff8f1; color:#614271; cursor:pointer; }
.construction-family-tabs button[aria-pressed="true"] { background:#755482; color:#fff; border-color:#755482; }
.construction-build-buttons button[aria-pressed="true"] { background:#805c2f; color:#fff; border-color:#805c2f; }
.construction-selection #quality-pool details { border:0; padding:0; }
.states-selection > small { display:block; margin-top:10px; font-size:.73rem; line-height:1.5; }
.options-selection label { font-size:.82rem; }
#quality-selection-summary { font-size:.75rem; margin:8px 0 0; color:#684e74; }
body[data-construction-view="setup"] .construction-main { width:min(1780px,calc(100% - 28px)); max-width:1780px; }
body[data-construction-view="setup"] .construction-card { padding:16px 22px; }
body[data-construction-view="setup"] .construction-hero { padding:12px 18px; }
body[data-construction-view="setup"] .construction-choices { display:grid; grid-template-columns:200px 1fr; align-items:end; gap:18px; margin:12px 0; }
.construction-tutorial-content { display:grid; grid-template-columns:minmax(220px,1.2fr) minmax(200px,1fr); gap:5px 14px; align-items:center; }
#tutorial-intro,#tutorial-qualities,#tutorial-inversions,.tutorial-actions { grid-column:1/-1; }
#tutorial-staff { grid-column:1; grid-row:4; }
#tutorial-intervals { grid-column:2; grid-row:4; display:grid; grid-template-columns:1fr 1fr; gap:7px; }
#tutorial-intervals > div { padding:9px 11px; background:#e6eee8; border-left:3px solid #5e8b75; border-radius:8px; }
#tutorial-intervals > div:nth-child(even) { background:#e9e4f1; border-color:#8e76a7; }
#tutorial-intervals strong,#tutorial-intervals span { display:block; }
#tutorial-intervals strong { text-transform:capitalize; font-size:.9rem; }
#tutorial-intervals span { margin-top:5px; font-size:.78rem; }
#tutorial-tip { font-size:.8rem; }
.construction-tutorial-content p { margin:5px 0; }
.construction-response .construction-feedback { font-size:.8rem; }
.construction-response .construction-feedback strong { font-size:1rem; }
body[data-construction-view="session"] .construction-controls #listen { min-width:44px; }
@media(max-width:600px) {
 body[data-construction-view="session"] .construction-question { height:86px; padding:4px 7px; }
 body[data-construction-view="session"] .construction-question #question > strong { font-size:2rem; }
 body[data-construction-view="session"] .construction-question #question small { font-size:.6rem; line-height:14px; letter-spacing:.07em; }
 body[data-construction-view="session"] .construction-question .construction-quality-badge { font-size:1rem; padding:4px 8px; }
 body[data-construction-view="session"] .construction-question .construction-state { margin:3px 0 0; font-size:.67rem; }
 body[data-construction-view="session"] #chord-editor { grid-template-rows:44px 20px minmax(76px,1fr) 44px 44px; }
 body[data-construction-view="session"] #sheet { min-height:76px; }
 body[data-construction-view="session"] .construction-preview { height:20px; min-height:20px; line-height:20px; }
 #custom-options { grid-template-columns:1fr; }
 .construction-selection { grid-column:1!important; padding:9px; }
 .construction-selection .construction-pool label { min-height:44px; padding:6px 8px; }
 body[data-construction-view="setup"] .construction-main { width:calc(100% - 12px); }
 body[data-construction-view="setup"] .construction-card { padding:10px; }
 body[data-construction-view="setup"] .construction-choices { grid-template-columns:1fr; gap:9px; }
 .construction-choices > div:first-child { display:flex; align-items:center; gap:8px; }
 .construction-mode-cards { grid-template-columns:repeat(4,minmax(0,1fr)); gap:4px; }
 .construction-mode-cards button { display:block; text-align:center; padding:5px; min-height:48px; font-size:.78rem; }
 .construction-mode-cards button small,.construction-mode-icon { display:none; }
 .construction-hero { padding:12px; }
 .construction-hero h1 { font-size:1.35rem; }
 .construction-mode-cards { grid-template-columns:1fr 1fr; gap:6px; }
 .construction-mode-cards button { min-height:64px; padding:8px; gap:8px; }
 .construction-mode-cards button small { font-size:.65rem; }
 .construction-mode-icon { flex:0 0 28px; height:28px; font-size:1.2rem; }
 #guided-options { grid-template-columns:1fr; gap:8px; padding:9px; }
 .construction-level-card { min-height:49px; padding:6px; font-size:.75rem; gap:6px; }
 .construction-guide-preview { display:none; }
 .construction-challenges { grid-template-columns:1fr; gap:8px; }
 .construction-challenge-card { padding:12px; display:grid; grid-template-columns:40px 1fr; gap:6px; }
 .construction-challenge-card small,.construction-challenge-card em { grid-column:2; min-height:0; }
 .construction-challenge-card > span { grid-row:1/4; }
 #tutorial-options { grid-template-columns:1fr; }
 .construction-tutorial-menu { display:grid; grid-template-columns:1fr 1fr; gap:6px; }
 .construction-tutorial-menu button { min-height:44px; font-size:.75rem; }
 .construction-tutorial-content { padding:9px; }
 .construction-question { height:68px; }
 .construction-question #question { min-height:46px; }
 .construction-question #question small { font-size:.65rem; line-height:14px; }
 .construction-question #question > strong { font-size:1.5rem; }
 .construction-quality-badge { font-size:.83rem; padding:4px 7px; margin-left:8px; max-width:calc(100% - 66px); }
 #session-count.construction-hearts { display:inline!important; white-space:nowrap; font-size:.8rem; letter-spacing:0; }
 body[data-construction-view="session"] .construction-controls #check { min-width:76px; }
 body[data-construction-view="session"] .construction-controls #listen-target { padding:4px; }
 body[data-construction-view="session"] .construction-controls #listen { font-size:.8rem; padding:4px 7px; }
 .construction-response .construction-feedback strong { font-size:.87rem; }
 .construction-tutorial-menu { flex-direction:row; display:flex; overflow-x:auto; }
 .construction-tutorial-menu button { flex:0 0 130px; }
 .construction-tutorial-content { display:block; }
 #tutorial-intervals { grid-template-columns:1fr 1fr; }
 #tutorial-staff svg { height:160px; }
}
@media(orientation:landscape) and (max-height:500px) {
 body[data-construction-view="session"] .construction-question { height:70px; padding:4px 10px; }
 body[data-construction-view="session"] .construction-question #question > strong { font-size:1.8rem; }
 body[data-construction-view="session"] .construction-question .construction-quality-badge { font-size:1.05rem; padding:4px 8px; }
 body[data-construction-view="session"] .construction-question #question small { display:inline; margin-right:10px; }
 .construction-question { height:64px; }
 .construction-question #question small { display:inline; margin-right:10px; }
 .construction-question #question > strong { font-size:1.4rem; }
 .construction-question .construction-quality-badge { font-size:.85rem; padding:4px 8px; }
}
/* Le plan de travail exploite la largeur, la partition garde une taille humaine. */
body[data-construction-view="session"] .construction-main { width:min(1560px,calc(100% - 40px)); max-width:1560px; }
body[data-construction-view="session"] .construction-card { background:#faf9f5; box-shadow:0 12px 35px #253e5010; }
body[data-construction-view="session"] .construction-controls #check { display:flex; align-items:center; justify-content:center; gap:9px; background:linear-gradient(145deg,#2476e0,#1452b8); border-color:#1452b8; box-shadow:0 4px 0 #103e85,0 8px 16px #1658bb25; font-weight:800; }
.construction-check-icon { display:grid; place-items:center; width:25px; height:25px; border-radius:50%; background:#ffffff25; font-size:1.1rem; }
body[data-construction-view="session"] .construction-controls #check:hover { background:#1a67cd; }
body[data-construction-view="session"] .construction-controls #check:active { transform:translateY(2px); box-shadow:0 2px 0 #103e85; }
.construction-response .construction-feedback { border:1px solid #d2dfdc; border-radius:11px; background:#edf2ef; }
.construction-response .construction-feedback[data-kind="success"] { background:#ddf3e4; border:2px solid #278250; color:#125b34; }
.construction-response .construction-feedback[data-kind="error"] { background:#fff0eb; border:2px solid #ba4546; color:#8b282d; }
.construction-response .construction-feedback strong { font-size:1.2rem; }
@media(min-width:1100px) and (min-height:620px) {
 body[data-construction-view="session"] .construction-main { max-height:760px; }
 body[data-construction-view="session"] .construction-question { height:120px; }
 body[data-construction-view="session"] .construction-card { padding:10px 20px 14px; }
 #construction-session { gap:9px; }
 body[data-construction-view="session"] #chord-editor { grid-template-columns:190px minmax(0,1fr) 205px; grid-template-rows:28px minmax(120px,1fr) 52px; gap:8px 18px; }
 body[data-construction-view="session"] .construction-toolbar { grid-area:1/1/3/2; flex-wrap:wrap; align-content:center; align-self:center; justify-content:center; padding:14px; gap:8px; border:1px solid #c7d9d1; background:#e8f0eb; }
 body[data-construction-view="session"] .construction-toolbar > span { display:block; width:100%; text-align:center; margin:0 0 4px; }
 body[data-construction-view="session"] .construction-toolbar .acc { min-width:44px; height:46px; }
 body[data-construction-view="session"] .construction-preview { grid-area:1/2; text-align:center; }
 body[data-construction-view="session"] #sheet { grid-area:2/2/4/3; width:100%; max-width:980px; justify-self:center; }
 body[data-construction-view="session"] #notes,body[data-construction-view="session"] .construction-edit { grid-area:3/1; align-self:center; }
 body[data-construction-view="session"] .construction-edit > div { flex-wrap:wrap; gap:4px; }
 body[data-construction-view="session"] #chord-editor[data-editing="true"] .construction-edit { grid-area:1/1/4/2; align-self:end; background:#edf2ed; padding:7px; border-radius:10px; }
 body[data-construction-view="session"] .construction-controls { grid-area:1/3/4/4; align-self:center; flex-direction:column; justify-content:center; align-items:stretch; padding:12px; border-radius:13px; background:#e9eef5; border:1px solid #cad6e5; }
 body[data-construction-view="session"] .construction-controls #listen { margin-left:0; }
 body[data-construction-view="session"] .construction-controls #check { order:-1; flex-direction:column; font-size:1.05rem; min-height:100px; margin:0 0 10px; padding:12px 5px; }
 .construction-check-icon { width:34px; height:34px; font-size:1.5rem; }
 body[data-construction-view="session"] .construction-controls #undo { align-self:center; width:48px; order:2; }
 .construction-response { height:68px; }
 .construction-response .construction-feedback { max-height:68px; text-align:center; padding:7px 12px; }
 .construction-response .construction-feedback strong { font-size:1.35rem; }
 .construction-response .construction-feedback > span { margin-top:3px; }
}
@media(max-width:600px) {
 body[data-construction-view="session"] .construction-main { width:calc(100% - 8px); }
 .construction-check-long { display:none; }
 body[data-construction-view="session"] .construction-controls #check { gap:5px; padding:5px 8px; min-width:96px; }
 .construction-check-icon { width:20px; height:20px; font-size:.9rem; }
 .construction-response .construction-feedback strong { font-size:.8rem; line-height:1.1; white-space:nowrap; }
 .construction-response .construction-feedback > span { font-size:.68rem; line-height:1.2; }
}
@media(prefers-reduced-motion:reduce) { body[data-construction-view="session"] .construction-controls #check:active { transform:none; } }
@media(min-width:1000px) {
 body[data-construction-view="setup"] .construction-main { margin-top:8px; margin-bottom:8px; }
 body[data-construction-view="setup"] .construction-card { padding:12px 18px; }
 body[data-construction-view="setup"] .construction-heading { padding:8px 16px; }
 body[data-construction-view="setup"] .construction-heading h1 { font-size:1.55rem; margin:0; }
 body[data-construction-view="setup"] .construction-heading .section-eyebrow { font-size:.6rem; }
 body[data-construction-view="setup"] .construction-welcome { display:none; }
 body[data-construction-view="setup"] .construction-choices { margin:8px 0; gap:14px; }
 body[data-construction-view="setup"] .construction-mode-cards { margin-top:4px; gap:8px; }
 body[data-construction-view="setup"] .construction-mode-cards button { min-height:60px; padding:7px 10px; }
 body[data-construction-view="setup"] .construction-mode-cards button small { margin-top:2px; }
 #custom-options { margin-top:8px; gap:8px; align-items:stretch; }
 .construction-selection { padding:8px 10px; }
 .construction-selection header { margin-bottom:6px; }
 .construction-selection .construction-pool label { flex:0 0 auto; margin:0; padding:6px 8px; }
 .roots-selection #root-pool { display:grid; grid-template-columns:repeat(17,minmax(0,1fr)); gap:5px; }
 .roots-selection #root-pool label { font-size:.76rem; gap:3px; justify-content:center; }
 .roots-selection #root-pool input { width:13px; height:13px; }
 .construction-family-tabs { gap:4px; margin-bottom:6px; }
 .construction-family-tabs button { min-height:38px; padding:5px 8px; font-size:.75rem; }
 .states-selection .construction-pool { display:grid; grid-template-columns:1fr 1fr; }
 .states-selection .construction-pool label { font-size:.75rem; }
 .states-selection > small { margin-top:5px; font-size:.67rem; }
 #quality-selection-summary { margin-top:5px; font-size:.68rem; }
 .options-selection .construction-check { margin:0; min-height:40px; }
 body[data-construction-view="setup"] #pool-summary { margin:6px 0; }
 body[data-construction-view="setup"] .construction-launch { margin-top:6px; padding:8px 12px; }
}
@media(min-width:1000px) and (max-height:820px) {
 body[data-construction-view="setup"] .construction-card { padding:8px 12px; }
 body[data-construction-view="setup"] .construction-hero .section-eyebrow { display:none; }
 body[data-construction-view="setup"] .construction-heading { padding:7px 12px; }
 body[data-construction-view="setup"] .construction-choices { margin:6px 0; }
 body[data-construction-view="setup"] .construction-mode-cards button { min-height:50px; }
 body[data-construction-view="setup"] .construction-mode-cards button small { display:none; }
 .construction-selection header strong { font-size:.8rem; }
 .construction-selection { padding:6px 8px; }
 .construction-selection .construction-pool label { font-size:.75rem; }
}
#tutorial-step { font-size:1.2rem; color:#315d52; margin:8px 0; grid-column:1/-1; }
.construction-tutorial-content { grid-template-columns:minmax(240px,1.35fr) minmax(200px,1fr); grid-template-rows:auto auto auto auto auto auto; }
#tutorial-staff { grid-row:5; }
#tutorial-intervals { grid-row:5; }
#tutorial-names { grid-column:1; margin:0; }
#tutorial-tip { grid-column:2; }
#tutorial-intervals > div[data-revealed="false"] { opacity:.5; }
#tutorial-intervals > div[data-current="true"] { box-shadow:0 0 0 2px #bb9753; }
.tutorial-actions { justify-content:space-between; align-items:center; }
#tutorial-next { background:#e9ddb9; color:#685024; border-color:#c8b270; }
#tutorial-try { background:#246fd2; border-color:#1b59ad; color:white; box-shadow:0 3px 0 #14427e; }
.tutorial-note-enter { animation:tutorial-note-enter .5s ease-out; }
@keyframes tutorial-note-enter { from { opacity:.25; fill:#c1902e; } to { opacity:1; } }
@media(prefers-reduced-motion:reduce) { .tutorial-note-enter { animation:none; } }
@media(max-width:600px) { #tutorial-step { font-size:1rem; } .tutorial-actions { flex-wrap:wrap; } .tutorial-actions button { flex:1 1 130px; } }
body[data-construction-mode="custom"] #custom-options { display:block; }
body[data-construction-mode="custom"] .qualities-selection { width:100%; }
body[data-construction-mode="custom"] .qualities-selection .construction-pool { display:grid; grid-template-columns:repeat(auto-fit,minmax(165px,1fr)); }
body[data-construction-mode="custom"] .qualities-selection .construction-pool label { min-height:48px; }
@media(min-width:1000px) {
 body[data-construction-mode="custom"] .qualities-selection { padding:14px 16px; }
 body[data-construction-mode="custom"] .construction-family-tabs { gap:7px; margin:10px 0 14px; }
 body[data-construction-mode="custom"] .construction-family-tabs button { min-height:44px; padding:8px 14px; }
 body[data-construction-mode="custom"] #quality-selection-summary { margin:12px 0 0; font-size:.78rem; }
}

/* Récapitulatif partagé : les choix restent visibles dans chaque famille. */
.construction-family-tabs button { display:inline-flex; align-items:center; gap:9px; }
.construction-family-count { min-width:21px; height:21px; display:grid; place-items:center; padding:0 5px; border-radius:99px; background:#e6dfeb; color:#5c456a; font-weight:850; font-size:.7rem; }
.construction-family-tabs button.has-selection:not([aria-pressed="true"]) { background:#e0eee7; border-color:#83ac9b; color:#215748; }
.construction-family-tabs button.has-selection .construction-family-count { background:#285f51; color:white; }
.construction-family-tabs button[aria-pressed="true"] .construction-family-count { background:#ffffff27; color:white; }
body[data-construction-mode="custom"] #quality-selection-summary { margin-top:10px; padding:9px 11px; border:1px solid #b6cdbf; border-radius:11px; background:#f4f8f3; color:#284f44; }
.construction-selection-heading { display:flex; align-items:center; gap:10px; margin-bottom:6px; font-size:.78rem; }
.construction-selection-heading>span { color:#56736a; font-size:.73rem; }
.construction-selected-chips { display:flex; flex-wrap:wrap; align-content:start; gap:5px; min-height:36px; max-height:86px; overflow:auto; padding:1px 3px 3px 1px; }
.construction-selected-chip { display:inline-flex; align-items:center; justify-content:space-between; gap:10px; min-height:36px; padding:6px 10px; border:1px solid #aac6b7; border-radius:8px; background:#fffdf6; color:#214f41; font:inherit; font-size:.76rem; font-weight:750; line-height:1.2; cursor:pointer; }
.construction-selected-chip>span:last-child { font:700 1.1rem/1 system-ui,sans-serif; color:#527568; }
.construction-selected-chip:hover { background:#e0eee7; border-color:#357462; }
.construction-selection-empty { align-self:center; font-size:.76rem; color:#756a53; }
@media(max-width:700px){.construction-selected-chip{min-height:44px;}.construction-selected-chips{max-height:98px;}.construction-family-tabs button{min-height:44px;}}

@media(min-width:1000px) and (max-height:820px) {
 body[data-construction-view="setup"][data-construction-mode="custom"] .construction-heading { min-height:64px; padding:8px 16px; }
 body[data-construction-view="setup"][data-construction-mode="custom"] .construction-heading h1 { font-size:1.8rem; margin:3px 0; }
 body[data-construction-mode="custom"] #quality-selection-summary { padding:8px 10px; }
}

.construction-audio-help { display:inline-flex; align-items:center; gap:7px; font-size:.8rem; margin:0; }
.construction-audio-help input { width:17px; height:17px; accent-color:#285f51; }
body[data-construction-view="session"] .construction-controls #undo { width:auto; align-self:stretch; white-space:nowrap; font-weight:750; }
body[data-construction-view="session"] .construction-controls #listen-target { font-size:.8rem; border-color:#b49bce; background:#f0e9f5; color:#5b3e70; }
@media(min-width:1000px) and (max-height:820px) {
 body[data-chord-construction][data-construction-view="setup"][data-construction-mode="custom"] .construction-card { padding:12px; gap:8px; }
}
@media(max-width:700px) {
 body[data-construction-view="session"] #chord-editor { grid-template-rows:44px 24px minmax(90px,1fr) 44px 94px; }
 body[data-construction-view="session"] .construction-controls { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:44px 44px; gap:6px; }
 body[data-construction-view="session"] .construction-controls #undo { grid-area:1/1; }
 body[data-construction-view="session"] .construction-controls #check { grid-area:1/2; min-width:0; }
 body[data-construction-view="session"] .construction-controls #listen { grid-area:2/1; margin:0; font-size:.76rem; }
 body[data-construction-view="session"] .construction-controls #listen-target { grid-area:2/2; font-size:.71rem; padding-inline:5px; }
 body[data-construction-view="session"] .construction-controls:has(#listen-target[hidden]) #listen { grid-column:1/-1; }
 .construction-audio-help { justify-content:center; min-height:38px; }
}

/* Une fin de série lisible, avec une récompense liée aux réussites autonomes. */
body[data-chord-construction][data-construction-view="finished"] .construction-heading { display:none; }
body[data-chord-construction] #construction-finished { padding:clamp(16px,3vw,36px); border-radius:18px; background:linear-gradient(125deg,#e6f1eb,#fff9eb); }
.construction-reward { --reward:#b68629; --reward-light:#fff0b4; display:grid; grid-template-columns:minmax(130px,220px) minmax(0,1fr); align-items:center; gap:28px; max-width:980px; margin:auto; text-align:left; }
.construction-reward[data-tier="silver"] { --reward:#6e839b; --reward-light:#edf3ff; }
.construction-reward[data-tier="bronze"] { --reward:#a76842; --reward-light:#ffdfc5; }
.construction-reward[data-tier="practice"] { --reward:#477d70; --reward-light:#ddf2e9; }
.construction-reward-art { position:relative; aspect-ratio:1; display:grid; place-items:center; }
.construction-reward-art svg { width:88%; max-width:190px; color:var(--reward); filter:drop-shadow(0 8px 12px #233a4020); animation:construction-medal-in .65s cubic-bezier(.2,.7,.3,1) both; }
.construction-reward-art i { position:absolute; width:7px; height:7px; border-radius:2px; background:var(--reward); left:50%; top:50%; animation:construction-spark .9s ease-out both; animation-delay:.2s; transform:rotate(var(--angle)) translateY(-85px); }
.construction-reward h2 { font-size:clamp(1.6rem,3vw,2.5rem); margin:6px 0 10px; color:#173f48; }
.construction-reward-score { font-size:1.2rem; font-weight:800; color:#225c4f; }
.construction-reward-rules { font-size:.78rem; color:#52656e; line-height:1.5; }
#construction-finished .construction-switch { margin-top:22px; gap:10px; }
#construction-finished button { min-height:44px; padding:12px 18px; border:1px solid #b8cdc3; border-radius:12px; font:inherit; font-weight:750; background:#fffaf0; color:#244b45; cursor:pointer; }
#construction-finished #restart-session { background:#215e50; color:white; border-color:#215e50; }
#construction-finished button:focus-visible { outline:3px solid #b28228; outline-offset:3px; }
@keyframes construction-medal-in { from{opacity:0;transform:scale(.65) rotate(-12deg)} to{opacity:1;transform:none} }
@keyframes construction-spark { from{opacity:0;transform:rotate(var(--angle)) translateY(-25px) scale(.3)} 25%{opacity:1} to{opacity:0;transform:rotate(var(--angle)) translateY(-115px) scale(.5)} }
@media(max-width:600px){ .construction-reward { grid-template-columns:1fr; gap:6px; text-align:center; }.construction-reward-art{width:110px;margin:auto;}.construction-reward h2{font-size:1.6rem;}.construction-reward p{margin:8px 0;}#construction-finished .construction-switch{margin-top:12px;} }
@media(prefers-reduced-motion:reduce){.construction-reward-art svg,.construction-reward-art i{animation:none;}.construction-reward-art i{display:none;}}

@media(max-width:600px) and (max-height:740px){
 body[data-chord-construction] #construction-finished { padding:8px; }
 .construction-reward { gap:2px; }
 .construction-reward-art { width:75px; }
 .construction-reward h2 { font-size:1.4rem; margin:4px 0 6px; }
 .construction-reward-score { font-size:1rem; }
 .construction-reward p { margin:6px 0; }
 #construction-finished .construction-switch { display:grid; grid-template-columns:1fr 1fr; gap:6px; margin-top:10px; }
 #construction-finished #restart-session { grid-column:1/-1; }
 #construction-finished button { font-size:.8rem; padding:8px 5px; line-height:1.2; }
}
