/* All placements use the complete painted image, including its original piers. */
body.atlas-location .river-stage{display:block;background-image:none;position:relative;overflow:hidden!important}
body.atlas-location .river-art{position:relative;width:100%;height:100%;min-height:0;aspect-ratio:auto}
.river-art .landscape{position:absolute;inset:0;width:100%;height:100%;object-fit:fill}
.river-art .bank,.family-screen .river-art .bank{position:absolute;top:auto;bottom:50%;width:24%;padding:0;background:none;border:0;box-shadow:none;border-radius:0;z-index:2}
.river-art .bank.left{left:14%}.river-art .bank.right{left:69%;right:auto}
.river-art .bank h2,.boat-label{position:absolute;width:1px;height:1px;padding:0;margin:0;overflow:hidden;clip-path:inset(50%)}
.river-art .residents,.family-screen .river-art .residents{display:flex;align-items:end;justify-content:center;flex-wrap:nowrap;gap:3px;min-height:80px}
/* No bank panel, extra platform or container is drawn around the cards. */
.residents::after{content:none;display:none}
.river-art .resident,.family-screen .river-art .resident{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:0 1 66px;width:66px;min-width:0;min-height:0;padding:3px;border:1px solid #716144;border-radius:5px;background:#fffdf0;color:#293b30;box-shadow:0 2px 4px #20362c55;font:600 10px/1.2 system-ui,sans-serif;touch-action:none;user-select:none;cursor:grab}
.river-art .resident:hover{background:#fff9dc;transform:none;outline:2px solid #476c45}
.river-art .resident:focus-visible{outline:3px solid #166784;outline-offset:3px}
.river-art .resident .portrait,.family-screen .river-art .resident .portrait{display:block;flex:none;width:100%;height:auto;aspect-ratio:1;margin:0;background-image:url(travellers.png);background-size:400% 200%;background-repeat:no-repeat;font-size:0}
.river-art .resident .card-name,.family-screen .river-art .resident .card-name{display:block;font:inherit;white-space:nowrap}
.river-art .boat,.family-screen .river-art .boat{position:absolute;left:30%;top:51%;width:30%;height:auto;aspect-ratio:2;display:block;background:none;border:0;border-radius:0;box-shadow:none;padding:0;z-index:3;transition:left .7s ease}
.river-art .boat.far{left:54%}
.rowing-boat{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}
.river-art .farmer,.river-art #aboard,.family-screen .river-art #aboard{position:absolute;top:auto;bottom:45%;left:auto;z-index:1;font:600 10px/1.2 system-ui,sans-serif}
.river-art .farmer{left:22%;width:30%;cursor:default}
.river-art #aboard{left:56%;width:30%;display:flex;gap:3px;justify-content:center;align-items:end}
.family-screen .river-art #aboard{left:22%;width:60%}
.river-art #aboard .resident{flex:0 1 66px}
.river-stage .scene-caption{bottom:2%;font-size:.85rem;background:#f3f5ebdc;padding:.4rem;border:0;pointer-events:none}
.choices{display:none}
.drag-ghost{position:fixed;pointer-events:none;z-index:1000;opacity:.95;transform:none}
.drop-ready{outline:2px dashed #fffdf0;outline-offset:3px}
/* Empty piers still offer a landing-sized drop target. */
.river-art .bank::after{content:'';position:absolute;inset:-5px -3px -22px;z-index:-1}
.feedback{height:calc(6lh + 1.6rem)}
body[data-place="the-crossing"]>footer{display:none}
@media(max-width:1199px){body.atlas-location .river-art{height:auto;aspect-ratio:3/2;min-height:0}body.atlas-location .river-stage{min-height:0!important}.river-stage .scene-caption{font-size:.75rem;bottom:1%;margin:0}}
@media(max-width:700px){
 .river-art .residents,.family-screen .river-art .residents{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px;justify-items:center;min-height:44px}
 .river-art .resident,.family-screen .river-art .resident{width:100%;min-height:44px;padding:2px;font-size:8px}
 .river-art .resident .portrait,.family-screen .river-art .resident .portrait{width:32px;height:32px;aspect-ratio:auto}
 .river-art .bank,.family-screen .river-art .bank{width:28%;bottom:49%}
 .river-art .bank.left{left:11%}.river-art .bank.right{left:67%}
 .river-art #aboard .resident,.river-art .farmer.resident{width:100%;min-height:44px;font-size:8px}
 .river-art #aboard .resident .portrait,.river-art .farmer.resident .portrait{width:28px;height:28px}
 .river-stage .scene-caption{font-size:10px;line-height:1.2;padding:2px;left:2%;right:2%}
}
@media(prefers-reduced-motion:reduce){.river-art .boat{transition:none}}
/* Keep every illustration and its label visible on the deck. */
.river-art .bank,.family-screen .river-art .bank{width:18%}
.river-art .bank.left{left:22%}.river-art .bank.right{left:70%}
.river-art .residents,.family-screen .river-art .residents{gap:2px}
.river-art .bank .resident,.river-art .bank .resident:first-child{flex:0 1 44px;width:44px;margin:0;font-size:9px;padding:2px}
.family-screen .river-art .bank .resident,.family-screen .river-art .bank .resident:first-child{flex:0 1 36px;width:36px;margin:0;font-size:8px}
@media(max-width:700px){
 .river-art .bank,.family-screen .river-art .bank{width:24%}
 .river-art .bank.left{left:19%}.river-art .bank.right{left:67%}
 .river-art .bank .resident,.family-screen .river-art .bank .resident{flex:1 1 0;width:auto;margin:0;font-size:7px;padding:1px;min-height:44px}
 .river-art .bank .resident .portrait,.family-screen .river-art .bank .resident .portrait{width:100%;height:auto;aspect-ratio:1}
}

/* Row without leaving the scene; hints use space only when requested. */
.river-art .scene-row{position:absolute;left:50%;top:85%;transform:translate(-50%,-50%);z-index:4;min-width:100px;min-height:44px;padding:.55rem 1.4rem;background:var(--atlas-accent,#315f59);color:#fff;border:2px solid var(--atlas-paper,#fffdf0);border-radius:8px;box-shadow:0 3px 8px #20362c55;font:bold 1.2rem/1.2 Georgia,serif}
.river-art .scene-row:hover{background:var(--graphoria-hover,#244a45)}
.river-art .scene-row:focus-visible{outline:3px solid #fffdf0;outline-offset:3px}
.activity .hint{height:auto;min-height:0;max-height:none;overflow:visible;margin:.7rem 0}
.activity .hint:empty{display:none}
.crossing-arrival-art {
  display: block;
  width: 100%;
  height: 100%;
}

.crossing-ferryman-portrait {
  display: block;
  width: 100%;
  height: auto;
  max-height: 24rem;
  object-fit: contain;
}

@media (min-width: 1200px) {
  body[data-place="the-crossing"] .audit-arrival-controls {
    display: flex;
    flex-direction: column;
  }
  body[data-place="the-crossing"] .audit-arrival-controls > :is(h2, nav) {
    flex-shrink: 0;
  }
  .crossing-ferryman-portrait {
    flex: 1 1 0;
    min-height: 0;
    max-height: none;
  }
}
