#entrance {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: end start;
  isolation: isolate;
  color: #fff8e8;
  opacity: 1;
  transition: opacity .65s ease;
}
#entrance[data-state="entered"] { opacity: 0; pointer-events: none; }
.entry-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #10291f00 32%, #10291f3b 61%, #122c23ed 100%);
  pointer-events: none;
}
.entry-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  width: min(396px, 100%);
  margin-left: max(20px, env(safe-area-inset-left));
  padding: 14px 16px max(44px, calc(env(safe-area-inset-bottom) + 26px)) 8px;
}
.entry-title { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 5px 9px; }
.entry-emblem { color: #f3d393; width: 30px; height: 30px; }
.entry-title h1 { font-size: clamp(33px, 5.4vw, 45px); line-height: 1.3; font-weight: 750; }
.entry-invitation { grid-column: 1/-1; color: #fff2dc; font-size: 14px; }
#enter-park {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: min(264px,100%);
  padding: 11px 14px;
  gap: 11px;
  font-size: 16px;
  font-weight: 750;
  color: #274f3a;
  border: 0;
  background: #f9edd8;
}
#enter-park .icon { color: #876436; }
#entry-progress {
  display: block;
  width: 148px;
  height: 4px;
  margin: 0 0 5px;
  border: 0;
  appearance: none;
  background: #fff5da40;
  border-radius: 2px;
  overflow: hidden;
}
#entry-progress::-webkit-progress-bar { background: #fff5da40; }
#entry-progress::-webkit-progress-value { background: #ead194; }
#entry-progress::-moz-progress-bar { background: #ead194; }
#entry-status { color: #fff4e1; font-size: 13px; line-height: 1.5; }
#entrance:is([data-state="ready"], [data-state="ticket"]) #entry-progress { display: none; }
#entrance[data-state="error"] #entry-status { color: #ffdfc8; }
#entry-reload { margin-top: 8px; }
#entry-sound, #entry-skip {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #fff8eb;
  background: #17362bcc;
  border-color: #d9d7b957;
  min-height: 44px;
  padding: 7px 10px;
  font-size: 13px;
}
#entry-sound .icon { width: 17px; height: 17px; }
#entry-sound[aria-pressed="false"] { color: #e1e7da; }
#entry-sound[aria-pressed="true"] .sound-off, #entry-sound[aria-pressed="false"] .sound-on { display: none; }
#entrance[data-state="ticket"] :is(#enter-park, .entry-title, #entry-sound) { display: none; }
#entrance[data-state="ticket"] .entry-content {
  width: min(330px, calc(100% - 24px));
  justify-self: center;
  margin-left: 0;
  padding-inline: 8px;
  text-align: center;
  align-items: center;
}
#admission-card {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 8px;
  align-items: center;
  min-width: 212px;
  padding: 12px 17px;
  background: #faf1dc;
  color: #2f6147;
  border-radius: 9px;
}
#admission-card strong { font-size: 18px; line-height: 1.45; }
#admission-card span { grid-column: 2; font-size: 12px; color: #705c38; }
.ticket-mark { grid-row: 1/3; color: #a17b35; width: 25px; height: 25px; }

@media (max-width: 600px) {
  .entry-content { margin-left: max(13px, env(safe-area-inset-left)); width: calc(100% - 13px); }
  .entry-title h1 { font-size: clamp(29px, 8.7vw, 38px); }
}
@media (max-height: 520px) {
  .entry-content { gap: 6px; padding-bottom: max(15px, env(safe-area-inset-bottom)); }
  .entry-title h1 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  #entrance { transition: none; }
}
