:root {
  color-scheme: dark;
  --ink: #050611;
  --night: #090b1d;
  --violet: #242343;
  --moon: #c8c4b6;
  --moon-shadow: #777687;
  --cream: #f2edcf;
  --signal: #b8f2cb;
  --signal-strong: #7ce6a3;
  --rose: #ed8da4;
  --mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Consolas, monospace;
}

* { box-sizing: border-box; }

html,
body { min-width: 320px; min-height: 100%; margin: 0; }

body {
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--mono);
}

button,
a { font: inherit; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-180%);
  padding: 10px 14px;
  background: var(--cream);
  color: var(--ink);
}

.skip-link:focus { transform: none; }

:focus-visible { outline: 3px solid var(--signal); outline-offset: 5px; }

.moon-gate {
  position: relative;
  min-height: 100svh;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 54%, rgba(99, 105, 157, .22), transparent 29%),
    radial-gradient(circle at 18% 20%, rgba(71, 114, 119, .15), transparent 22%),
    linear-gradient(155deg, #03040c 0%, #090b1e 48%, #17162c 100%);
}

.moon-gate::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .22;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.028) 0 1px, transparent 1px 6px),
    linear-gradient(90deg, transparent 49.9%, rgba(184,242,203,.06) 50%, transparent 50.1%);
  mix-blend-mode: screen;
}

.star-field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }

.orbit {
  position: absolute;
  z-index: -1;
  width: min(88vw, 980px);
  aspect-ratio: 1;
  border: 1px solid rgba(184, 242, 203, .09);
  border-radius: 50%;
  pointer-events: none;
}

.orbit::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 18px var(--signal);
}

.orbit-one { transform: rotate(-18deg) scaleY(.36); }
.orbit-one::after { top: 48%; left: -4px; }
.orbit-two { width: min(116vw, 1260px); transform: rotate(24deg) scaleY(.27); opacity: .55; }
.orbit-two::after { right: 8%; bottom: 18%; }

.hotel-signal {
  position: relative;
  width: min(92vw, 720px);
  min-height: min(82svh, 760px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 28px 42px;
  text-align: center;
}

.signal-label {
  position: absolute;
  top: 0;
  margin: 0;
  color: rgba(184, 242, 203, .68);
  font-size: 10px;
  letter-spacing: .18em;
}

.signal-label span {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--signal-strong);
  box-shadow: 0 0 12px var(--signal-strong);
  animation: signal-pulse 2.2s steps(2, end) infinite;
}

.moon {
  position: absolute;
  top: 8%;
  left: 50%;
  z-index: -1;
  width: clamp(310px, 58vw, 560px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  overflow: hidden;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 27%, rgba(255,255,242,.74), transparent 13%),
    radial-gradient(circle at 61% 68%, rgba(65,63,86,.37), transparent 24%),
    linear-gradient(128deg, #dfd9c4 0 42%, #aaa7a4 63%, #5c5d70 100%);
  box-shadow:
    0 0 0 1px rgba(242,237,207,.28),
    0 0 70px rgba(197, 203, 190, .18),
    0 34px 100px rgba(5, 6, 17, .88);
}

.moon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 38%, rgba(10,11,29,.08) 55%, rgba(5,6,17,.5) 100%);
}

.crater { position: absolute; border-radius: 50%; border: 1px solid rgba(48,47,67,.17); box-shadow: inset 8px 7px 15px rgba(35,34,48,.14); }
.crater-one { width: 18%; height: 10%; left: 16%; top: 57%; transform: rotate(-12deg); }
.crater-two { width: 9%; height: 9%; right: 25%; top: 19%; }
.crater-three { width: 14%; height: 14%; right: 9%; bottom: 25%; }
.moon-grid { position: absolute; inset: 0; opacity: .17; background: repeating-linear-gradient(94deg, transparent 0 22px, rgba(23,24,43,.16) 23px 24px); }

.hotel-sign {
  position: relative;
  width: min(90%, 560px);
  margin-top: clamp(60px, 13vh, 116px);
  padding: clamp(28px, 6vw, 50px) clamp(24px, 7vw, 62px) 30px;
  border: 1px solid rgba(184,242,203,.5);
  background: rgba(5, 6, 17, .84);
  box-shadow: 14px 14px 0 rgba(3,4,12,.34), 0 0 50px rgba(124,230,163,.08);
  backdrop-filter: blur(9px);
}

.hotel-sign::before,
.hotel-sign::after {
  content: "";
  position: absolute;
  top: -34px;
  width: 1px;
  height: 34px;
  background: rgba(184,242,203,.42);
}

.hotel-sign::before { left: 18%; }
.hotel-sign::after { right: 18%; }

.hotel-sign img {
  width: min(94%, 420px);
  height: 92px;
  margin: 0 auto 2px;
  object-fit: cover;
  object-position: center;
  filter: brightness(0) invert(1);
  opacity: .8;
}

.hotel-sign h1 {
  margin: 0;
  font-size: clamp(35px, 7vw, 72px);
  font-weight: 400;
  line-height: .86;
  letter-spacing: -.08em;
  text-transform: uppercase;
}

.hotel-sign h1 span { display: block; color: var(--signal); }

.hotel-sign p {
  margin: 18px 0 0;
  color: rgba(242,237,207,.58);
  font-size: 10px;
  letter-spacing: .32em;
  text-transform: uppercase;
}

.enter-button {
  position: relative;
  width: min(76%, 320px);
  min-height: 58px;
  display: grid;
  grid-template-columns: 1fr 60px;
  align-items: center;
  margin-top: 24px;
  border: 1px solid var(--signal);
  background: rgba(5,6,17,.82);
  color: var(--signal);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .18em;
  box-shadow: 8px 8px 0 rgba(3,4,12,.38);
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.enter-button span { padding-left: 60px; }
.enter-button i { height: 100%; display: grid; place-items: center; border-left: 1px solid rgba(184,242,203,.4); font-style: normal; }
.enter-button:hover { transform: translate(-3px,-3px); background: var(--signal); color: var(--ink); box-shadow: 11px 11px 0 rgba(3,4,12,.5); }
.enter-button:active { transform: translate(3px,3px); box-shadow: 3px 3px 0 rgba(3,4,12,.5); }

.world-note { margin: 20px 0 0; color: rgba(242,237,207,.46); font-size: 9px; line-height: 1.7; letter-spacing: .13em; text-transform: uppercase; }

.gate-footer {
  position: absolute;
  right: 18px;
  bottom: 16px;
  left: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(242,237,207,.27);
  font-size: 8px;
  letter-spacing: .16em;
}

.noscript-note { position: fixed; right: 12px; bottom: 12px; z-index: 10; max-width: 420px; margin: 0; padding: 10px; background: var(--ink); font: 11px/1.4 var(--mono); }

@keyframes signal-pulse { 0%, 46% { opacity: 1; } 47%, 100% { opacity: .22; } }

@media (max-width: 560px) {
  .hotel-signal { min-height: 90svh; padding-inline: 14px; }
  .moon { top: 12%; width: min(94vw, 430px); }
  .hotel-sign { width: 90%; margin-top: 56px; padding: 34px 18px 24px; }
  .hotel-sign img { height: 64px; }
  .enter-button { width: 72%; min-width: 230px; }
  .gate-footer span:first-child { display: none; }
  .gate-footer { justify-content: flex-end; gap: 16px; }
}

@media (max-height: 650px) and (orientation: landscape) {
  .hotel-signal { min-height: 94svh; transform: scale(.86); }
  .moon { top: -16%; width: 430px; }
  .hotel-sign { margin-top: 25px; padding-block: 22px 18px; }
  .hotel-sign img { display: none; }
  .hotel-sign h1 { font-size: 42px; }
  .hotel-sign p { margin-top: 11px; }
  .enter-button { margin-top: 14px; min-height: 50px; }
  .world-note { margin-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
}
