/* A warm, gallery-like side-view plate with the original teaching
   illustration left entirely intact.  All progress and step controls still
   belong to the player engine. */
.rec-scene{
  --ink:#403842;
  --wine:#744a56;
  --line:#e0d8d0;
  --rec-paper:#fdfbf8;
  color:var(--ink);
  border:1px solid var(--line);
  border-radius:16px;
  overflow:hidden;
  background:var(--rec-paper);
  container-type:inline-size;
}
.rec-modes{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  background:var(--rec-paper);
  padding:13px clamp(14px,3%,26px);
  border-bottom:1px solid var(--line);
}
.rec-scene button{font:inherit;cursor:pointer}
.rec-modes button,.rec-controls button{
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--rec-paper);
  color:var(--ink);
  padding:9px 13px;
  min-height:44px;
  min-width:44px;
  max-width:100%;
  font-size:.94rem;
}
.rec-modes button[aria-pressed=true],.rec-controls button[aria-pressed=true]{
  color:#5e4266;
  background:#eee6ef;
  border-color:#a991b0;
}
.rec-stage{
  display:grid;
  grid-template-columns:minmax(0,37fr) minmax(0,63fr);
  align-items:stretch;
  margin:clamp(12px,2.8%,23px);
  border:1px solid #e6dacf;
  border-radius:11px;
  overflow:hidden;
  background:#f8f1e8;
}
.rec-panel{
  padding:clamp(18px,3.4cqw,38px);
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:11px;
  min-width:0;
  z-index:1;
  background:
    radial-gradient(ellipse at 0% 0%,#fffdf8 0%,transparent 74%),
    #f7f0e8;
}
.rec-stage-title{
  font:550 clamp(1.34rem,2.9cqw,1.95rem)/1.4 var(--serif,Georgia,serif);
  letter-spacing:.015em;
  color:#493d47;
  overflow-wrap:anywhere;
  text-wrap:pretty;
}
.rec-lead{font-size:1rem;line-height:1.7;min-height:3em;overflow-wrap:anywhere}
.rec-stepper{display:flex;gap:6px;flex-wrap:wrap;margin-top:2px}
.rec-stepper button{
  background:#fffcf5;
  border:1px solid #d8c8c0;
  border-radius:7px;
  color:#64535c;
  padding:7px 9px;
  min-width:44px;
  min-height:44px;
  font-size:.94rem;
  line-height:1.4;
  text-align:start;
}
.rec-stepper button[aria-pressed=true]{
  color:#653d57;
  background:#eee4eb;
  border-color:#ad92a4;
  font-weight:650;
}
.rec-art{
  position:relative;
  overflow:hidden;
  display:grid;
  align-content:center;
  min-width:0;
  background:#f1e4db;
  border-inline-start:1px solid #e3d5c8;
}
.rec-art-label{
  justify-self:end;
  margin:7px 10px 9px;
  background:#fcf6edf2;
  color:#62504d;
  border:1px solid #d5bdae;
  border-radius:30px;
  padding:4px 10px;
  font-size:.84rem;
  line-height:1.45;
}
.rec-art svg.rec-drawing{
  display:block;
  width:100%;
  height:auto;
  max-width:none;
}
.rec-controls{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  padding:0 clamp(14px,3%,26px) 13px;
}
.rec-controls button[data-action=play]{
  background:#514769;
  color:white;
  border-color:#514769;
  min-width:5.2em;
}
.rec-range{
  flex:1 1 90px;
  display:flex;
  align-items:center;
  min-width:64px;
}
.rec-range input{
  width:100%;
  min-height:44px;
  accent-color:#754d5a;
  cursor:pointer;
}
.rec-scene .rec-copy{
  margin:0;
  padding:13px clamp(14px,3%,26px) 19px;
  border-top:1px solid var(--line);
  font-size:1rem;
  line-height:1.75;
  color:#52464f;
  overflow-wrap:anywhere;
  text-wrap:pretty;
}
.rec-scene :focus-visible{outline:2px solid #826b94;outline-offset:3px}
.rec-sr{position:absolute;height:1px;width:1px;clip-path:inset(50%);overflow:hidden}
@container(max-width:620px){
  .rec-stage{display:flex;flex-direction:column}
  .rec-art{order:-1;border-inline-start:0;border-bottom:1px solid #e3d5c8}
  .rec-panel{gap:8px;padding:16px}
  .rec-lead{min-height:0}
  .rec-stage-title{font-size:1.48rem}
  .rec-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px}
  .rec-range{width:100%;min-width:0}
}
@container(max-width:390px){
  .rec-stage{margin:11px}
  .rec-panel{padding:13px}
  .rec-controls button{flex:1 1 0;min-width:44px;padding:7px}
  .rec-controls button[data-action=play]{min-width:4.2em}
  .rec-modes{padding:11px}
  .rec-modes button{white-space:normal}
}
