/* The garden and girl share panel coordinates. The existing bottom stone tread
   runs through source pixels x=330..510, y=766 in the 1672x941 painting.
   The girl's sole is at y=1008 of its 1040px transparent canvas. */
.panel.paperboard-panel.ending-panel.ending-grounded {
  position:relative;
  background-size:100% 100%;
  background-position:center;
  padding:clamp(22px,4vw,42px);
}
.ending-grounded .closing-message {
  display:block;
  padding-left:32%;
}
.ending-grounded .closing-message .closing-garden {
  position:absolute;
  inset:0;
  min-height:0;
  background:none;
  pointer-events:none;
}
.panel.ending-grounded .closing-garden .closing-girl {
  position:absolute;
  left:12.5%;
  top:81.4%;
  width:21%;
  height:auto;
  max-height:none;
  margin:0;
  transform:translateY(-96.9231%);
  object-fit:contain;
}
.panel.ending-grounded .ending-actions {
  position:relative;
  display:flex;
  width:100%;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  margin:26px 0 3px;
  padding:0;
}
.panel.paperboard-panel.ending-grounded .ending-actions > button {
  flex:0 1 auto;
  margin:0;
  min-width:155px;
}
/* On narrow screens give the painted scene its own left-cropped, natural-ratio
   inset above the words. The same original step is retained, never fabricated. */
@media(max-width:550px) {
  .panel.paperboard-panel.ending-panel.ending-grounded {
    background-image:linear-gradient(120deg,#f0e5c9,#dbc49b);
  }
  .ending-grounded .closing-message {padding-left:0}
  .ending-grounded .closing-message .closing-garden {
    position:relative;
    inset:auto;
    display:block;
    width:100%;
    height:220px;
    margin:0 0 20px;
    background:var(--ending-garden-v8) left bottom / auto 220px no-repeat;
    border-radius:5px;
    overflow:hidden;
  }
  .panel.ending-grounded .closing-garden .closing-girl {
    left:48.85px;
    top:179.08px;
    width:82.09px;
  }
  .panel.paperboard-panel.ending-grounded .ending-actions > button {
    min-width:0;
    flex:0 1 180px;
  }
}
