#pasture-entrance {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; overflow: hidden;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, #30411915, #58612a0a 36%, #242e1766),
              #758944 url("./meadow.webp") center / cover no-repeat;
  color: #fff8df; text-align: center;
  transition: opacity .32s ease-out;
}
#pasture-entrance.leaving { opacity: 0; pointer-events: none; }
.entrance-content { width: min(85vw, 360px); }
#entrance-name {
  display: inline-block; margin: 0; padding: .34em .75em .44em;
  background: url("../wallet/hud/plank.webp") center / 100% 100% no-repeat;
  font: 800 clamp(32px, 8vw, 54px)/1.15 "Songti SC", "Noto Serif CJK SC", serif;
  letter-spacing: .06em; text-shadow: 0 2px 2px #4e2c12;
  filter: drop-shadow(0 4px 3px #43331370);
}
.entrance-path { position: relative; margin: 8px auto; height: clamp(100px, 24vh, 160px); aspect-ratio: 1; }
.entrance-path::before {
  content: ""; position: absolute; bottom: 12%; left: 22%; right: 22%; height: 7%;
  background: #31411655; border-radius: 50%; filter: blur(3px);
}
.entrance-walker {
  display: block; position: absolute; inset: 0;
  background: url("./walk.webp") left top / 800% 100% no-repeat;
  animation: entrance-walk .88s steps(8, jump-none) infinite;
}
@keyframes entrance-walk { to { background-position: 100% 0; } }
.entrance-content p {
  margin: 0; font: 650 15px/1.5 system-ui,sans-serif; letter-spacing: .08em;
  color: #fffde7; text-shadow: 0 1px 3px #29350d, 0 1px 5px #29350d;
}
.entrance-dots { display: inline-block; margin-left: 3px; animation: entrance-dots 1.2s steps(3,end) infinite; }
@keyframes entrance-dots { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
#entrance-retry { margin: 10px auto 0; padding: 8px 19px; border: 0; color: #fff8df; font: 650 15px system-ui; background: #53391f url("../wallet/hud/plank.webp") center / 100% 100%; cursor: pointer; }
@media (prefers-reduced-motion: reduce) {
  #pasture-entrance { transition: none; }
  .entrance-walker, .entrance-dots { animation: none; }
}
