/* Entry popup artwork supplied in all-pic/. */
html[data-access="locked"], html[data-access="locked"] body { overflow: hidden; }
html[data-access="locked"] .app-shell { visibility: hidden; pointer-events: none; }
.entry-gate[hidden] { display: none; }
.entry-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: safe center;
  justify-content: center;
  padding: 24px;
  overflow: auto;
  overscroll-behavior: contain;
  isolation: isolate;
  background: #021708;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
}
.entry-gate::before {
  content: "";
  position: fixed;
  inset: -20px;
  z-index: -1;
  background: linear-gradient(#001207a8, #000b04d9), url('../assets/images/banners/banner-1.webp') center / cover;
  filter: blur(8px);
  pointer-events: none;
}
.entry-card {
  position: relative;
  flex: 0 0 auto;
  width: min(1120px, 100%);
  padding: 37px 48px 35px;
  background: url('../assets/images/entry/popup-board.png') center / 100% 100% no-repeat;
  outline: none;
}
.entry-card--age { width: min(860px, 100%); padding: 34px 48px 40px; }
.entry-card--blocked { width: min(820px, 100%); padding-bottom: 38px; }
.entry-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding-inline: 36px;
  margin: 0 0 19px;
}
.entry-heading h1 {
  margin: 0;
  background: linear-gradient(#ffffb0 12%, #fff36a 42%, #ffcf12 66%, #fca61c 85%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 0 #b56707);
  font-size: clamp(24px, 3.4vw, 44px);
  line-height: 1.14;
  font-weight: 900;
  letter-spacing: -.7px;
  text-wrap: balance;
}
.entry-heading img { flex: 0 0 auto; width: 46px; height: auto; }
.entry-card--age .entry-heading { gap: 9px; padding-inline: 15px; }
.entry-card--age .entry-heading h1 { font-size: clamp(22px, 3.3vw, 37px); }
.entry-card--age .entry-heading img { width: 38px; }
.entry-close {
  position: absolute;
  top: 34px;
  right: 39px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  padding: 0;
  color: #ffde38;
  background: none;
  font: 900 58px/.65 Arial, sans-serif;
  text-shadow: 0 2px 0 #b47003, 0 -2px 1px #ffffc8;
  cursor: pointer;
}
.entry-close[hidden] { display: none; }
.entry-panel { border: 2px solid #8dc719; border-radius: 24px; background: #002000; }
.entry-location-panel { padding: 16px 14px 15px; }
.entry-intro { max-width: 930px; margin: 0 auto; font-size: clamp(18px, 2.1vw, 26px); line-height: 1.22; font-weight: 500; }
.entry-map-row { display: flex; align-items: center; justify-content: center; gap: 9%; margin: 18px 0 12px; }
.entry-map { display: block; width: 58%; max-width: 520px; height: auto; }
.entry-map-legend { display: grid; gap: 15px; text-align: left; font-size: clamp(19px, 2.35vw, 30px); font-weight: 700; }
.entry-map-legend span { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.entry-map-legend span:first-child { color: #ffcd00; }
.entry-dot { display: inline-block; width: 19px; height: 19px; flex-shrink: 0; border-radius: 50%; }
.entry-dot--available { background: #ffa800; }
.entry-dot--unavailable { background: #999fc2; }
.entry-states-title { margin: 0 0 7px; color: #52cb45; font-size: clamp(16px, 2vw, 23px); font-weight: 500; line-height: 1.3; }
.entry-states { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 0; font-size: clamp(14px, 1.7vw, 19px); line-height: 1.2; }
.entry-states span { padding: 0 8px; }
.entry-states span + span { border-left: 1px solid #fff9; }
.entry-actions { display: flex; align-items: center; justify-content: center; gap: 36px; margin-top: 14px; }
.entry-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 292px;
  min-height: 76px;
  padding: 12px 35px 14px;
  border: 2px solid #54d300;
  border-radius: 18px;
  background: linear-gradient(177deg, #8dfb02 1%, #4cd500 28%, #16ad00 52%, #008000 80%, #006300);
  box-shadow: inset 0 2px 3px #efffae, inset 0 -3px 3px #00b100, 0 4px 2px #003700, 0 0 2px 1px #4b8e02;
  color: #fff;
  font: 800 clamp(26px, 3.2vw, 42px)/1.1 Arial, sans-serif;
  text-shadow: 0 2px 1px #126d00;
  cursor: pointer;
  transition: filter .15s, transform .15s;
}
.entry-button:hover { filter: brightness(1.12); }
.entry-button:active { transform: translateY(2px); }
.entry-button:disabled { opacity: .75; cursor: wait; font-size: 28px; }
.entry-decline { border: 0; border-bottom: 3px solid currentColor; padding: 0; background: none; color: #5bdb00; font: 700 clamp(20px, 2.7vw, 34px)/1.15 Arial, sans-serif; cursor: pointer; }
.entry-progress { min-height: 0; margin: 0; font-size: 15px; line-height: 1.4; color: #ddf4bd; }
.entry-progress:not(:empty) { margin-top: 13px; }
.entry-age-panel { position: relative; display: flex; align-items: center; justify-content: center; gap: 38px; min-height: 215px; padding: 25px 20px 30px; }
.entry-age-badge { width: 150px; height: auto; }
.entry-age-panel p { margin: 0; font-size: clamp(27px, 3.4vw, 38px); font-weight: 700; line-height: 1.14; text-align: left; }
.entry-coins { position: absolute; bottom: -16px; width: 120px; height: auto; pointer-events: none; }
.entry-coins--left { left: -17px; }
.entry-coins--right { right: -19px; }
.entry-terms { margin: 26px -8px 0; font-size: clamp(16px, 1.9vw, 21px); font-weight: 700; line-height: 1.5; }
.entry-terms a { color: #ffce00; text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.entry-actions--age { margin-top: 21px; }
.entry-card--age .entry-button { min-width: 245px; min-height: 73px; font-size: 36px; }
.entry-blocked-panel { padding: 24px 30px 30px; }
.entry-lock { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 18px; border: 3px solid #ffde38; border-radius: 50%; color: #ffde38; font-size: 40px; font-weight: 700; }
.entry-blocked-panel p { margin: 0; font-size: 23px; line-height: 1.45; text-wrap: pretty; }
.entry-help { margin: 20px 0 0; color: #d3e4c9; font-size: 15px; }
.entry-help a { color: #ffdc54; text-decoration: underline; }
.entry-gate button:focus-visible, .entry-gate a:focus-visible { outline: 3px solid #fff; outline-offset: 6px; }
@media (max-width: 700px), (max-height: 500px) and (max-width: 960px) {
  .entry-gate { padding: 12px; overflow: hidden; }
  .entry-card, .entry-card--age, .entry-card--blocked {
    display: flex;
    flex-direction: column;
    width: min(480px, 100%);
    min-height: 0;
    padding: 10px 10px 12px;
    border: 18px solid transparent;
    /* Nine-slice the original artwork: square corners retain their proportions. */
    border-image: url('../assets/images/entry/popup-board.png') 140 fill / 28px / 0 stretch;
    background: none;
  }
  .entry-card--location { max-height: none; }
  .entry-heading, .entry-card--age .entry-heading { flex-shrink: 0; gap: 6px; margin-bottom: 10px; padding: 0 24px 0 0; }
  .entry-heading h1, .entry-card--age .entry-heading h1 { font-size: clamp(17px, 4.6vw, 24px); letter-spacing: -.4px; }
  .entry-heading img, .entry-card--age .entry-heading img { width: 24px; }
  .entry-heading img:last-child { display: none; }
  .entry-close { top: 8px; right: 4px; width: 30px; height: 30px; font-size: 40px; }
  .entry-panel { border-radius: 14px; }
  .entry-location-panel {
    flex: 0 0 auto;
    min-height: 0;
    padding: 8px 6px;
    overflow: visible;
  }
  .entry-intro { font-size: 13px; line-height: 1.25; }
  .entry-map-row { flex-direction: column; gap: 6px; margin: 8px 0; }
  .entry-map { width: 100%; max-width: min(210px, 30vh); max-width: min(210px, 30dvh); }
  .entry-map-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 14px; font-size: 13px; }
  .entry-dot { width: 10px; height: 10px; }
  .entry-states-title { font-size: 10.5px; line-height: 1.3; margin-bottom: 6px; }
  .entry-states { gap: 4px 0; font-size: 11px; line-height: 1.25; }
  .entry-states span { padding-inline: 4px; }
  .entry-actions { flex: 0 0 auto; flex-direction: row; gap: 10px; margin-top: 10px; }
  .entry-button { flex: 1 1 0; min-width: 0; min-height: 48px; border-radius: 12px; padding: 8px 12px; font-size: 25px; }
  .entry-button:disabled { font-size: clamp(13px, 3.7vw, 19px); }
  .entry-decline { flex-shrink: 0; font-size: clamp(14px, 3.7vw, 18px); border-bottom-width: 2px; white-space: nowrap; }
  .entry-progress { flex-shrink: 0; font-size: 12px; }
  .entry-progress:not(:empty) { margin-top: 6px; }
  .entry-age-panel { flex: 0 0 auto; flex-direction: row; gap: 12px; min-height: 140px; padding: 18px 12px 26px; }
  .entry-age-badge { flex-shrink: 0; width: clamp(80px, 24vw, 110px); }
  .entry-age-panel p { flex: 1; min-width: 0; text-align: left; font-size: clamp(18px, 5.3vw, 25px); }
  .entry-coins { width: 64px; bottom: -10px; }
  .entry-coins--left { left: -9px; }
  .entry-coins--right { right: -9px; }
  .entry-terms { font-size: 14px; margin: 20px 0 0; line-height: 1.5; }
  .entry-card--age .entry-button { flex: 0 1 220px; min-width: 0; min-height: 54px; font-size: 28px; }
  .entry-blocked-panel { padding: 18px 14px 22px; }
  .entry-blocked-panel p { font-size: 17px; }
}
@media (max-height: 500px) and (max-width: 960px) and (orientation: landscape) {
  .entry-card, .entry-card--age, .entry-card--blocked {
    width: min(740px, 100%);
    border-width: 14px;
    border-image-width: 24px;
    padding: 6px 10px;
  }
  .entry-heading, .entry-card--age .entry-heading { margin-bottom: 6px; }
  .entry-heading h1, .entry-card--age .entry-heading h1 { font-size: 18px; }
  .entry-heading img, .entry-card--age .entry-heading img { width: 20px; }
  .entry-close { top: 0; right: 4px; }
  .entry-location-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 12px; align-items: start; padding: 6px 8px; }
  .entry-intro { grid-column: 1 / -1; font-size: 12px; line-height: 1.2; }
  .entry-map-row { grid-column: 1; grid-row: 2 / span 2; margin: 0; gap: 5px; }
  .entry-map { max-width: min(200px, 50vh); max-width: min(200px, 50dvh); }
  .entry-states-title { grid-column: 2; margin: 3px 0 0; }
  .entry-states { grid-column: 2; font-size: 10.5px; gap: 3px 0; }
  .entry-actions { margin-top: 8px; }
  .entry-button, .entry-card--age .entry-button { min-height: 44px; font-size: 24px; }
  .entry-progress { font-size: 11px; }
  .entry-progress:not(:empty) { margin-top: 4px; }
  .entry-card[aria-busy="true"] .entry-map { max-width: min(165px, 44vh); max-width: min(165px, 44dvh); }
  .entry-age-panel { min-height: 100px; padding: 12px 20px; }
  .entry-age-badge { width: 70px; }
  .entry-age-panel p { font-size: 21px; }
  .entry-coins { width: 48px; }
  .entry-terms { margin-top: 12px; font-size: 13px; }
  .entry-blocked-panel { display: flex; align-items: center; gap: 14px; padding: 12px; }
  .entry-lock { flex-shrink: 0; width: 36px; height: 36px; margin: 0; border-width: 2px; font-size: 24px; }
  .entry-blocked-panel p { font-size: 15px; }
  .entry-help { margin-top: 12px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .entry-button { transition: none; } }
