:root {
  --ever-midnight: #071827;
  --ever-midnight-deep: #04111d;
  --ever-ivory: #f5f0e6;
  --ever-paper: #f7f3eb;
  --ever-gold: #d6a853;
  --ever-gold-light: #f0c879;
  --ever-ink: #17202a;
  --ever-muted: #68727d;
  --ever-max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ever-midnight);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ever-ivory);
  background:
    radial-gradient(circle at 50% 18%, rgba(214, 168, 83, 0.08), transparent 22rem),
    linear-gradient(180deg, var(--ever-midnight) 0%, var(--ever-midnight-deep) 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select {
  font: inherit;
}

button,
a,
select,
input {
  -webkit-tap-highlight-color: transparent;
}

.home-shell {
  width: min(100%, var(--ever-max-width));
  margin: 0 auto;
}

.home-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: max(18px, env(safe-area-inset-top)) 20px 10px;
}

.home-brand {
  display: block;
  width: min(210px, 58vw);
}

.home-brand img {
  display: block;
  width: 100%;
  height: auto;
}

.language-select {
  min-height: 44px;
  padding: 0 30px 0 12px;
  color: var(--ever-gold-light);
  background: transparent;
  border: 1px solid rgba(214, 168, 83, 0.42);
  border-radius: 999px;
  outline: none;
}

.hero {
  padding: 12px 20px 48px;
  text-align: center;
}

.portal-wrap {
  display: grid;
  place-items: center;
  margin: 12px auto 24px;
}

.portal {
  position: relative;
  width: min(72vw, 320px);
  aspect-ratio: 0.72;
  padding: 5px;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(135deg, #f9da91 0%, #c18b34 45%, #f5c86d 72%, #9a6924 100%);
  box-shadow:
    0 0 0 1px rgba(255, 225, 158, 0.3),
    0 0 28px rgba(214, 168, 83, 0.22),
    0 18px 52px rgba(0, 0, 0, 0.34);
}

.portal::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 16px rgba(255, 229, 171, 0.32);
}

.portal-scene {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 50%;
  background: #294761;
}

.world-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.00);
  transition: opacity .65s ease, transform 5s cubic-bezier(.18,.72,.2,1);
  will-change: opacity, transform;
}

.world-layer.is-active {
  opacity: 1;
  transform: scale(2);
}

.world-enchanted {
  background:
    radial-gradient(circle at 58% 20%, rgba(255, 232, 176, 0.96) 0 7%, transparent 30%),
    linear-gradient(155deg, transparent 0 35%, rgba(13, 45, 56, 0.3) 36% 55%, transparent 56%),
    linear-gradient(180deg, #8eb8d2 0%, #e9c98e 34%, #4a7758 58%, #173f39 100%);
}

.world-enchanted::before {
  content: "";
  position: absolute;
  left: 19%;
  top: 23%;
  width: 62%;
  height: 43%;
  clip-path: polygon(8% 100%, 15% 50%, 28% 58%, 34% 10%, 43% 52%, 55% 0, 64% 55%, 74% 20%, 82% 62%, 93% 47%, 100% 100%);
  background: linear-gradient(180deg, #d3c4a2 0%, #6e684f 70%, #334c38 100%);
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.28));
}

.world-dinosaur {
  background:
    radial-gradient(circle at 70% 18%, rgba(255, 213, 122, 0.84) 0 8%, transparent 28%),
    linear-gradient(180deg, #7fb3a2 0%, #c9b978 36%, #52714d 62%, #16392d 100%);
}

.world-dinosaur::before {
  content: "";
  position: absolute;
  left: 14%;
  bottom: 22%;
  width: 72%;
  height: 37%;
  border-radius: 58% 42% 44% 56% / 58% 56% 44% 42%;
  background: #263e32;
  box-shadow: 75px -52px 0 -28px #263e32;
  transform: rotate(-8deg);
  opacity: 0.9;
}

.world-ocean {
  background:
    radial-gradient(circle at 55% 15%, rgba(188, 242, 255, 0.96) 0 7%, transparent 27%),
    linear-gradient(180deg, #63b8c9 0%, #246d86 42%, #103d5f 72%, #082844 100%);
}

.world-ocean::before,
.world-ocean::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(210, 248, 255, 0.42);
}

.world-ocean::before {
  width: 26%;
  aspect-ratio: 1;
  left: 18%;
  top: 42%;
}

.world-ocean::after {
  width: 13%;
  aspect-ratio: 1;
  right: 19%;
  top: 31%;
}

.world-space {
  background:
    radial-gradient(circle at 68% 22%, #dbc4ff 0 3%, rgba(125, 98, 190, 0.7) 4% 9%, transparent 10%),
    radial-gradient(circle at 28% 38%, #75c6ee 0 2%, rgba(55, 124, 185, 0.7) 3% 8%, transparent 9%),
    radial-gradient(circle at 55% 62%, rgba(255,255,255,.85) 0 1px, transparent 2px),
    radial-gradient(circle at 32% 70%, rgba(255,255,255,.75) 0 1px, transparent 2px),
    linear-gradient(180deg, #171c49 0%, #101b3d 47%, #090f28 100%);
  background-size: auto, auto, 36px 36px, 54px 54px, auto;
}

.portal-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.portal-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(245, 240, 230, 0.34);
}

.portal-dot.is-active {
  background: var(--ever-gold);
}

.hero h1,
.section-title,
.final-cta h2 {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.hero h1 {
  max-width: 620px;
  margin: 0 auto 18px;
  font-size: clamp(48px, 13vw, 72px);
  line-height: 0.94;
}

.hero-copy {
  max-width: 510px;
  margin: 0 auto;
  color: rgba(245, 240, 230, 0.88);
  font-size: 18px;
  line-height: 1.55;
}

.primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(100%, 520px);
  min-height: 58px;
  margin-top: 28px;
  padding: 14px 22px;
  color: #fff9ed;
  background: linear-gradient(180deg, #b68330 0%, #8c611f 100%);
  border: 1px solid #e4bb67;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(151, 103, 30, 0.3);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.access-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 14px;
  padding: 0 10px;
  color: var(--ever-gold-light);
  background: transparent;
  border: 0;
  font-weight: 600;
  cursor: pointer;
}

.access-panel {
  width: min(100%, 520px);
  margin: 12px auto 0;
  padding: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(214, 168, 83, 0.25);
  border-radius: 18px;
  text-align: left;
}

.access-panel[hidden] {
  display: none;
}

.access-panel p {
  margin: 0 0 12px;
  color: rgba(245, 240, 230, 0.76);
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

.access-row {
  display: grid;
  gap: 10px;
}

.access-row input {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  color: var(--ever-ink);
  background: var(--ever-paper);
  border: 1px solid transparent;
  border-radius: 14px;
  outline: none;
}

.access-row button {
  min-height: 50px;
  color: var(--ever-midnight);
  background: var(--ever-gold-light);
  border: 0;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
}

.together {
  color: var(--ever-ink);
  background: var(--ever-paper);
  padding: 54px 20px 60px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: #aa782f;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.section-title {
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(38px, 10vw, 58px);
  line-height: 1;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 12px;
  max-width: 620px;
  margin: 34px auto 0;
}

.people-item {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 118px;
  padding: 16px 8px;
}

.people-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: #ad7a32;
  border: 1px solid rgba(173, 122, 50, 0.3);
  border-radius: 50%;
  font-size: 25px;
}

.people-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.worlds-section {
  padding: 58px 20px;
  background: #0a2031;
  text-align: center;
}

.worlds-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78vw, 330px);
  gap: 16px;
  width: calc(100% + 20px);
  margin: 28px -20px 0 0;
  padding-right: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.worlds-strip::-webkit-scrollbar {
  display: none;
}

.world-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: 26px;
  scroll-snap-align: center;
  border: 1px solid rgba(214, 168, 83, 0.28);
  box-shadow: 0 16px 34px rgba(0,0,0,.22);
}

.world-card .world-layer {
  opacity: 1;
  transform: none;
}

.world-card-label {
  position: absolute;
  inset: auto 0 0;
  padding: 70px 18px 20px;
  background: linear-gradient(180deg, transparent, rgba(3, 15, 26, 0.9));
  color: var(--ever-ivory);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 30px;
}

.final-cta {
  padding: 64px 20px calc(56px + env(safe-area-inset-bottom));
  text-align: center;
  background: var(--ever-midnight-deep);
}

.final-symbol {
  display: block;
  width: 74px;
  margin: 0 auto 18px;
}

.final-cta h2 {
  max-width: 620px;
  margin: 0 auto 12px;
  font-size: clamp(42px, 11vw, 66px);
  line-height: 0.98;
}

.final-cta p {
  margin: 0;
  color: rgba(245, 240, 230, 0.76);
}

button:disabled {
  opacity: 0.58;
  cursor: wait;
}

@media (min-width: 640px) {
  .access-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .access-row button {
    padding: 0 24px;
  }

  .people-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .home-topbar {
    padding-top: 26px;
  }

  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
    grid-template-areas:
      "copy portal";
    align-items: center;
    gap: 48px;
    min-height: 680px;
    padding-top: 18px;
    padding-bottom: 58px;
    text-align: left;
  }

  .hero-copy-block {
    grid-area: copy;
  }

  .portal-wrap {
    grid-area: portal;
    margin: 0;
  }

  .portal {
    width: min(31vw, 400px);
  }

  .hero h1,
  .hero-copy {
    margin-left: 0;
  }

  .hero h1 {
    font-size: clamp(64px, 6vw, 88px);
  }

  .primary-cta,
  .access-panel {
    margin-left: 0;
  }

  .access-toggle {
    margin-left: 4px;
  }

  .worlds-strip {
    grid-auto-flow: initial;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(100%, 1060px);
    margin: 34px auto 0;
    padding: 0;
    overflow: visible;
  }

  .world-card {
    min-height: 420px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}