/* Entry screen shown on a first visit to the homepage (see entry-gate.js).
 * styles.css forces black text and clears backgrounds sitewide
 * (`body *` … !important), so colours here are declared with !important. */

.entry { display: none; }

html[data-entry="open"] { overflow: hidden; }

html[data-entry="open"] .entry {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  overflow: hidden;
  background: #0b1f2e !important;
  opacity: 1;
  transition: opacity 450ms ease;
}

html[data-entry="open"] .entry.is-leaving { opacity: 0; pointer-events: none; }

/* Slowly drifting pools of the Auralis ramp: mint, sage, teal, marine. */
.entry__glow { position: absolute; inset: -20%; pointer-events: none; }

html[data-entry="open"] .entry__glow span {
  position: absolute;
  width: 62vmax;
  height: 62vmax;
  border-radius: 50%;
  filter: blur(80px) saturate(1.35);
  opacity: 0.72;
  animation: entry-drift 16s ease-in-out infinite alternate;
}

html[data-entry="open"] .entry__glow span:nth-child(1) { top: -10%; left: -8%; background: #2f6d64 !important; }
html[data-entry="open"] .entry__glow span:nth-child(2) { top: 30%; right: -12%; background: #17404c !important; opacity: 0.8; animation-duration: 21s; animation-delay: -8s; }
html[data-entry="open"] .entry__glow span:nth-child(3) { bottom: -18%; left: 18%; background: #9cc1ba !important; opacity: 0.4; animation-duration: 19s; animation-delay: -15s; }
html[data-entry="open"] .entry__glow span:nth-child(4) { top: 8%; left: 38%; width: 34vmax; height: 34vmax; background: #e4f0ec !important; opacity: 0.12; animation-duration: 24s; animation-delay: -4s; }

@keyframes entry-drift {
  0% { transform: translate3d(-6%, -4%, 0) scale(1); }
  50% { transform: translate3d(8%, 6%, 0) scale(1.12); }
  100% { transform: translate3d(-2%, 10%, 0) scale(0.94); }
}

@media (prefers-reduced-motion: reduce) {
  html[data-entry="open"] .entry__glow span { animation: none; }
  html[data-entry="open"] .entry { transition: none; }
}

html[data-entry="open"] .entry__content {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 18px;
  width: min(560px, 100%);
  text-align: center;
}

html[data-entry="open"] .entry__content * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

html[data-entry="open"] .entry__brand {
  margin: 0;
  font-size: clamp(34px, 7vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

/* The centred transparent wordmark (assets/brand/auralis-logo-entry.webp):
   bar, AURALIS and NORDIC on one axis. */
html[data-entry="open"] .entry__brand img {
  display: block;
  width: clamp(190px, 52vw, 280px);
  height: auto;
  margin: 0 auto;
}

html[data-entry="open"] .entry__eyebrow {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.8;
}

html[data-entry="open"] .entry__title {
  margin: 0;
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

html[data-entry="open"] .entry__lead {
  max-width: 44ch;
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  opacity: 0.85;
}

html[data-entry="open"] .entry__account {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-size: 14px;
}

html[data-entry="open"] .entry__account a {
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease;
}

html[data-entry="open"] .entry__account a:hover,
html[data-entry="open"] .entry__account a:focus-visible {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.08) !important;
}

html[data-entry="open"] .entry__shop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: min(320px, 100%);
  min-height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  background: #ffffff !important;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

html[data-entry="open"] .entry__content .entry__shop,
html[data-entry="open"] .entry__content .entry__shop * {
  color: #0b1f2e !important;
  -webkit-text-fill-color: #0b1f2e !important;
}

html[data-entry="open"] .entry__shop:hover { transform: translateY(-1px); box-shadow: 0 22px 56px rgba(0, 0, 0, 0.42); }

html[data-entry="open"] .entry__guest {
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.8;
}

html[data-entry="open"] .entry__guest:hover { opacity: 1; }

html[data-entry="open"] .entry__fine {
  margin: 18px 0 0;
  font-size: 12px;
  opacity: 0.6;
}

html[data-entry="open"] .entry a:focus-visible {
  outline: 2px solid #9cc1ba;
  outline-offset: 3px;
}
