@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600&family=DM+Sans:wght@400;600;700&display=swap');

.home-v3 {
  isolation: isolate;
  position: relative;
  overflow: clip;
  color: #fff5e5;
  font-family: "DM Sans", system-ui, sans-serif;
  background: #112932;
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
}
.home-landscape {
  position: fixed;
  inset: -3%;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, #08151d70, #08151d42 35%, #08151d70 68%, #08151dc7),
    url("landscape.jpeg") center / cover no-repeat;
  animation: home-drift 34s ease-in-out infinite alternate;
}
@keyframes home-drift {
  from { transform: scale(1.025) translateX(-.25%); }
  to { transform: scale(1.045) translateX(.25%); }
}
.home-intro { text-align: center; padding-top: clamp(42px, 8vh, 100px); }
.home-intro h1, .home-sacred h2, body[data-community="universal"] .brand {
  font-family: "Cormorant Garamond", Georgia, serif;
}
.home-intro h1 {
  margin: 0;
  font-size: clamp(3.45rem, 10vw, 7.65rem);
  font-weight: 500;
  letter-spacing: .045em;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 3px 25px #152a38aa;
}
.home-tagline {
  font: 600 clamp(1.25rem, 3vw, 1.9rem)/1.25 "Cormorant Garamond", Georgia, serif;
  margin: 12px 0;
}
.home-summary, .home-sacred > p { max-width: 640px; margin: 0 auto 24px; text-shadow: 0 1px 5px #071820; }
.home-tagline, #world-choice-label { text-shadow: 0 1px 6px #071820; }
.home-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.home-actions a { display: inline-flex; gap: 6px; align-items: center; min-height: 44px; padding: 8px 19px; border: 1px solid #e3d1b6; border-radius: 99px; text-decoration: none; font-weight: 700; }
.home-actions a:first-child { background: #e6d3b5; color: #1c3036; }
.home-actions a:last-child { background: #11252f6e; color: #fff5e5; }
.home-intro #world-choice-label {
  margin: 35px 0 15px;
  color: #fff0d5;
  font: 700 .85rem/1.4 "DM Sans", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: .15em;
}
.home-v3 .world-nav, .home-v3 .sacred-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(9px, 1.5vw, 16px);
  max-width: 1000px;
  margin-inline: auto;
}
.home-v3 .world-nav button, .home-v3 .sacred-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  text-align: center;
  color: #fff5e5;
  transition: transform .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.home-v3 .world-nav button, .home-v3 .sacred-card,
#community-content :is(.resource-card, #places > .card) {
  border: 1px solid #fff1d35e;
  background: #11252f6e;
  box-shadow: inset 0 1px #ffffff21, 0 12px 35px #07161c35;
  -webkit-backdrop-filter: blur(12px) saturate(1.18);
  backdrop-filter: blur(12px) saturate(1.18);
}
.home-v3 .world-nav button { border-radius: 17px; min-height: 143px; padding: 12px 9px; }
.home-v3 .world-nav span { color: #fff4e3; }
.home-v3 .world-nav .home-symbol { font: 500 clamp(2.3rem, 5vw, 3.55rem)/1.12 Georgia, serif; color: var(--portal-light); }
.home-v3 .world-nav button:focus-visible, .home-v3 .sacred-card:focus-visible,
.home-v3 a:focus-visible, .home-language:focus-visible { outline-color: #ffe3a1; }
/* Give touch and keyboard users the same visible highlight as mouse users. */
.home-v3 :is(.world-nav button, .sacred-card) {
  touch-action: manipulation;
}
.home-v3 :is(.world-nav button, .sacred-card):is(:active, :focus-visible) {
  background: #16333bcc;
  border-color: #ffe3a1;
  box-shadow: inset 0 1px #ffffff33, 0 0 20px #ffc45845;
}
@media (any-hover: hover) {
  .home-v3 :is(.world-nav button, .sacred-card):hover {
    transform: translateY(-5px);
    background: #16333bcc;
    border-color: #ffe3a1;
    box-shadow: inset 0 1px #ffffff33, 0 14px 30px #07161c70, 0 0 20px #ffc45845;
  }
  .home-v3 .sacred-card:hover img { transform: scale(1.045); }
}
.home-v3 :is(.world-nav button, .sacred-card):active {
  transform: scale(.98);
  transition-duration: 0s;
}
.home-sacred { margin-top: clamp(48px, 9vw, 100px); text-align: center; }
.home-sacred h2 { margin: 0 0 10px; font-size: clamp(2.15rem, 5vw, 4.15rem); font-weight: 500; line-height: 1.1; }
.home-v3 .sacred-card { padding: 8px 8px 13px; border-radius: 22px; border-color: #f3c6748f; }
.sacred-image { display: block; width: 100%; overflow: hidden; border-radius: 14px; aspect-ratio: 1.35; }
.sacred-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.sacred-card strong { color: #ffe2a3; font-size: 1.1rem; }
.sacred-card > span:last-child { font-size: .82rem; }
.home-community-summary { margin-top: 32px; }
.home-community-summary .join-chart { color: var(--ink); }
body[data-community="universal"] > header { background: #112932; border-color: #ffffff33; }
body[data-community="universal"] > header :is(.brand, .navlinks a) { color: #fff5e5; }
body[data-community="universal"] > header .brand { background: transparent; letter-spacing: .09em; text-transform: uppercase; padding-inline: 0; }
.home-language { border: 1px solid #ffffff64; border-radius: 999px; background: #15303b; color: #fff5e5; min-height: 44px; padding-inline: 9px; font: inherit; }
body:not([data-community="universal"]) .home-language { display: none; }
.home-v3 .motion-control {
  position: fixed;
  bottom: calc(12px + env(safe-area-inset-bottom));
  left: max(12px, env(safe-area-inset-left));
  z-index: 4;
  min-height: 44px;
  padding: 4px 10px;
  margin: 0;
  color: #fff5e5;
  background: #18333de8;
  border: 1px solid #ffffff5a;
  border-radius: 999px;
  font-size: .82rem;
}
body[data-community="universal"] #launch {
  bottom: calc(12px + env(safe-area-inset-bottom));
  right: max(12px, env(safe-area-inset-right));
  border: 1px solid #ffffff7a;
  background: #152f39ed;
  color: #fff5e5;
  min-height: 44px;
  z-index: 14;
}
body[data-community="universal"] #chat { z-index: 15; bottom: calc(64px + env(safe-area-inset-bottom)); }
@media (max-width: 735px) {
  .home-v3 .world-nav, .home-v3 .sacred-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 380px) {
  .home-v3 .motion-control, body[data-community="universal"] #launch { font-size: .75rem; padding-inline: 8px; }
  body[data-community="universal"] header .navlinks { gap: 5px; }
  .home-language { font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .home-landscape { animation: none; }
  .home-v3 :is(.sacred-card, .sacred-image img, #world-nav button) { transition: none; transform: none !important; }
}
.home-v3 .world-nav .home-symbol { font-variant-emoji: text; }
