/* All entry styles are confined to the entrance overlay. */
.portal-entry {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  z-index: 100001;
  overflow: hidden;
  overscroll-behavior: contain;
  background: #000;
  opacity: 1;
  transition: opacity 480ms ease;
}
.portal-entry[hidden] { display: none; }
.portal-entry .portal-entry__stage {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(100vw, calc((100vh - 86px) * 2 / 3));
  width: min(100vw, calc((100dvh - 86px) * 2 / 3));
  aspect-ratio: 2 / 3;
  overflow: hidden;
  isolation: isolate;
}
.portal-entry .portal-entry__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: 0;
  user-select: none;
  -webkit-user-drag: none;
}
.portal-entry .portal-entry__hotspot {
  position: absolute;
  z-index: 3;
  display: block;
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.portal-entry .portal-entry__enter {
  left: calc(var(--portal-x, 50%) - 21%);
  top: calc(var(--portal-y, 87%) - 5%);
  width: 42%; height: 10%; border-radius: 20%;
  display: grid; place-items: center;
}
.portal-entry .portal-entry__core { left: 44%; top: 29%; width: 12%; height: 47%; border-radius: 40%; }
.portal-entry .portal-entry__button-text { display: none; }
.portal-entry--custom-text .portal-entry__button-text {
  display: block;
  max-width: 95%;
  overflow-wrap: anywhere;
  color: var(--portal-color);
  font-family: var(--portal-font);
  font-size: var(--portal-font-size);
  line-height: 1;
  text-shadow: 0 1px 8px #000, 0 0 8px #000;
}
.portal-entry .portal-entry__label-mask {
  position: absolute;
  z-index: 2;
  left: 38%; top: 84.1%; width: 24%; height: 6.5%;
  border-radius: 38%;
  background: radial-gradient(ellipse at center, #091b45 20%, #07112e 72%, #030919 100%);
}
.portal-entry .portal-entry__fallback {
  display: none;
  position: absolute;
  z-index: 5;
  left: 50%; bottom: 102px;
  transform: translateX(-50%);
  max-width: min(90vw, 400px);
  min-width: 150px;
  min-height: 46px;
  padding: 6px 24px;
  border: 1px solid #a8c9f4;
  border-radius: 24px;
  background: #071633;
  box-shadow: 0 0 18px rgba(127, 170, 255, .55);
  color: var(--portal-color);
  font-family: var(--portal-font);
  font-size: clamp(18px, var(--portal-font-size), 38px);
  line-height: 1.15;
  cursor: pointer;
}
.portal-entry.has-portal-fallback .portal-entry__fallback { display: block; }
.portal-entry .portal-entry__fallback:focus-visible {
  outline: 2px solid #e5ecff;
  outline-offset: 3px;
}
.portal-entry .portal-entry__hotspot:focus-visible {
  outline: 2px solid #e5ecff;
  outline-offset: 3px;
  box-shadow: 0 0 12px rgba(172, 204, 255, 0.6);
}
.portal-entry .portal-entry__glow,
.portal-entry .portal-entry__runes {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 320ms ease;
  mix-blend-mode: screen;
}
.portal-entry .portal-entry__glow {
  left: 35%; top: 26%; width: 30%; height: 53%;
  background: radial-gradient(ellipse at center, rgba(232, 244, 255, 0.7), rgba(128, 174, 255, 0.18) 35%, transparent 70%),
    linear-gradient(90deg, transparent 40%, rgba(180, 226, 255, 0.4) 49%, rgba(246, 249, 255, 0.9) 50%, rgba(180, 226, 255, 0.4) 51%, transparent 60%);
}
.portal-entry .portal-entry__runes {
  left: 31%; top: 29%; width: 38%; height: 46%;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(159, 180, 255, 0.38) 57%, transparent 72%);
}
.portal-entry:has(.portal-entry__hotspot:hover) .portal-entry__glow,
.portal-entry:has(.portal-entry__hotspot:focus-visible) .portal-entry__glow,
.portal-entry:has(.portal-entry__hotspot:active) .portal-entry__glow { opacity: 0.26; }
.portal-entry:has(.portal-entry__hotspot:hover) .portal-entry__runes,
.portal-entry:has(.portal-entry__hotspot:focus-visible) .portal-entry__runes,
.portal-entry:has(.portal-entry__hotspot:active) .portal-entry__runes { opacity: 0.25; }
.portal-entry.is-waiting .portal-entry__glow { opacity: 0.3; }
.portal-entry.is-activating .portal-entry__glow { opacity: 0.85; }
.portal-entry.is-activating .portal-entry__runes { opacity: 0.65; }
.portal-entry.is-fading { opacity: 0; pointer-events: none; }
.portal-entry .portal-footer {
  position: absolute;
  z-index: 4;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  width: min(100%, 1024px);
  min-height: 86px;
  margin: 0;
  border-top: 0;
  background: transparent;
}
.portal-entry .portal-entry__status {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.portal-entry.is-error .portal-entry__status {
  position: fixed;
  bottom: 8px;
  width: auto; height: auto;
  max-width: 90%;
  padding: 8px 12px;
  color: #fff; background: #10172d;
  clip-path: none;
  white-space: normal;
}
@media (max-width: 600px) {
  .portal-entry .portal-entry__stage { width: min(100vw, calc((100dvh - 64px) * 2 / 3)); }
  .portal-entry .portal-footer { min-height: 64px; padding-top: 3px; padding-bottom: 3px; }
  .portal-entry .portal-entry__fallback { bottom: 78px; }
}
@media (prefers-reduced-motion: reduce) {
  .portal-entry { transition-duration: 150ms; }
  .portal-entry .portal-entry__glow,
  .portal-entry .portal-entry__runes { display: none; transition: none; }
}
.admin-bar .portal-entry { top: 32px; height: calc(100vh - 32px); height: calc(100dvh - 32px); }
@media (max-width: 782px) { .admin-bar .portal-entry { top: 46px; height: calc(100vh - 46px); height: calc(100dvh - 46px); } }
@media (max-width: 600px) { .admin-bar .portal-entry { top: 0; height: 100vh; height: 100dvh; } }
