.topic-scene {
 display: grid;
 grid-template-columns: minmax(0,1fr) minmax(220px,1.15fr) minmax(0,1fr);
 gap: 18px;
 align-items: center;
 padding: 20px;
 margin: 14px 0 22px;
 border: 1px solid #c5d8bf;
 border-radius: 22px;
 background: #f4f8f1;
}
.topic-stack { display: flex; flex-direction: column; gap: 12px; min-width: 0; position: relative; align-self: start; }
.topic-stack-left { grid-column: 1; grid-row: 1; }
.topic-stack-right { grid-column: 3; grid-row: 1; }
html body .topic-stack .row,
html body .topic-stack .food-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 10px; margin: 0; }
html body .topic-stack > section { margin: 0; padding: 0; border: 0; background: transparent; min-width: 0; }
html body .topic-stack .section-title { margin: 0 0 14px; font-size: 18px; line-height: 1.35; text-align: center; }
html body .topic-stack .card { display: block; min-width: 0; width: 100%; margin: 0; position: relative; overflow: visible; box-sizing: border-box; }
html body .topic-stack .card > .lesson-drawing { display: none; }
html body .topic-stack .card > button[data-audio] {
 width: 100%; min-width: 0; box-sizing: border-box;
 font-size: 16px !important; line-height: 1.35; white-space: normal; overflow-wrap: anywhere;
}
html body .topic-scene > #lesson-topic-illustration {
 grid-column: 2; grid-row: 1; align-self: center;
 width: 100%; max-width: 340px; height: auto; margin: 0 auto; padding: 0;
}
html body .topic-scene > #lesson-topic-illustration svg { display: block; width: 100%; height: auto; }
html body .topic-stack:has(.card.selected) { z-index: 30; }
html body .topic-stack .card.selected { z-index: 30; }
.has-centered-topic > .lesson-note:empty { display: none; }
@media(max-width:740px) {
 .topic-scene { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 12px; }
 html body .topic-scene > #lesson-topic-illustration { grid-column: 1/-1; grid-row: 1; max-width: 320px; }
 .topic-stack-left { grid-column: 1; grid-row: 2; }
 .topic-stack-right { grid-column: 2; grid-row: 2; }
 html body .topic-stack .section-title { font-size: 16px; }
 html body .topic-stack .card { padding: 6px; }
 html body .topic-stack .card > button[data-audio] { padding: 9px 5px; }
}
