/* Open-air discovery: a quiet full-bleed world, crisp foreground cutouts and
   playful ceramic letters. The same registered canvas survives the dock crop. */
body[data-screen="home"] .game-header {
  background: transparent;
}
.home-hero:not(.is-docked) {
  display: flow-root;
}
.home-hero:not(.is-docked) .home-art-window {
  width: 100vw;
  margin-left: calc((100% - 100vw) / 2);
  margin-top: -76px;
  aspect-ratio: auto;
  overflow: clip;
}
.home-art-window .expedition-art {
  width: 100%;
  max-width: 1200px;
  left: 0;
  height: auto;
  aspect-ratio: 1200 / 630;
  margin-inline: auto;
  border-radius: 0;
  overflow: visible;
  background: none;
}
.expedition-art .home-art-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.expedition-art .home-art-layer {
  transition: none;
}
.expedition-art .home-art-backdrop {
  z-index: 0;
  top: -50px;
  bottom: -24px;
  left: calc((100% - 100vw) / 2 - 24px);
  right: calc((100% - 100vw) / 2 - 24px);
  background: #f5efdf;
}
.home-art-backdrop img {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.56;
  filter: saturate(0.85);
}
.expedition-art::after {
  content: "";
  position: absolute;
  z-index: 1;
  pointer-events: none;
  top: auto;
  bottom: -1px;
  height: 26%;
  left: calc((100% - 100vw) / 2);
  right: calc((100% - 100vw) / 2);
  background: linear-gradient(#f5efdf00, #f5efdf99 58%, var(--paper));
}
.expedition-art .home-art-brand {
  z-index: 3;
  left: 2%;
  top: 17%;
  width: 58%;
  aspect-ratio: 640 / 288;
}
.expedition-art .home-art-brand img {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(1.08) drop-shadow(0 3px 3px #a7753220);
}
.expedition-art .home-art-guide {
  z-index: 2;
  left: 62%;
  top: 2%;
  width: 38%;
  height: 98%;
  mask-image: linear-gradient(#000 78%, #000b 91%, transparent);
}
.expedition-art .home-art-guide img {
  width: 100%;
  height: auto;
  left: 0;
  top: 0;
}
.expedition-art .home-art-sully {
  z-index: 4;
  left: 54%;
  top: 43%;
  width: 11%;
  aspect-ratio: 1;
  pointer-events: none;
}
.home-art-sully img {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 5px 5px #85602226);
}
.expedition-art .home-art-slogan {
  z-index: 4;
  left: 8%;
  top: 74%;
  width: 48%;
  aspect-ratio: auto;
}
.home-tile-row {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 5px;
}
.expedition-art .home-slogan-tile {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1.08;
  background: linear-gradient(145deg, #92ebe1, #45c5d1 58%, #279abf);
  color: #fffdf0;
  font: 650 clamp(14px, 3.6vw, 39px)/1 var(--heading);
  font-synthesis: none;
  border: 1px solid #60bfc7;
  border-radius: 14%;
  text-shadow: 0 1px 1px #247a9755;
  box-shadow:
    inset 0 2px 0 #e8fff7cc,
    0 2px 0 #73b7bc77,
    0 3px 5px #377a8814;
}
.home-tile-row:nth-child(2) .home-slogan-tile {
  background: linear-gradient(145deg, #9cddff, #60bce9 56%, #399bd2);
  border-color: #75bada;
}
.home-slogan-tile:nth-child(3n) {
  rotate: 1deg;
}
.home-slogan-tile:nth-child(4n) {
  rotate: -1deg;
}
.home-hero:not(.is-docked) .home-entry {
  margin-top: -10px;
}
.is-docked .home-art-slogan {
  visibility: hidden;
  opacity: 0;
}
.is-docked .expedition-art .home-art-backdrop {
  left: -16px;
  right: -16px;
}
.is-docked .expedition-art::after {
  left: 0;
  right: 0;
}
.expedition-scan {
  z-index: 5;
}
/* Pastel destination cards retain the charm of the original collection. */
.home-themes .theme-card {
  background: none;
  border: 0;
  box-shadow: none;
}
.home-themes .theme-card h3 {
  color: #2a4053;
}
.cell {
  background: linear-gradient(145deg, #fffef5, #fff4d5);
  box-shadow:
    inset 0 0 0 1px #e5d8b5,
    inset 0 2px 0 #fff;
}
.cell.selected {
  background: linear-gradient(145deg, #8de5dd, #60ccdc 56%, #64b8e7);
  color: #163e62;
  box-shadow:
    inset 0 2px 0 #e6fff8cc,
    inset 0 -2px 0 #429db655;
}
.cell.wrong {
  background: #a84f49;
  color: #fff;
}
/* Reduced motion freezes the new composition instead of reviving the old poster. */
@media (prefers-reduced-motion: reduce) {
  .expedition-art.has-layers .home-art-fallback {
    visibility: hidden;
  }
  .expedition-art.has-layers .home-art-layer {
    display: block;
  }
}
@media (max-width: 760px) {
  .home-hero:not(.is-docked) .home-art-window {
    margin-top: calc(-64px - var(--safe-top, env(safe-area-inset-top)));
  }
  .home-art-window .expedition-art {
    aspect-ratio: 1200 / 1100;
  }
  .expedition-art .home-art-brand {
    left: 0;
    top: 25%;
    width: 60%;
  }
  .expedition-art .home-art-guide {
    left: 45%;
    top: 17%;
    width: 58%;
    height: 83%;
  }
  .expedition-art .home-art-sully {
    left: 37%;
    top: 15%;
    width: 16%;
  }
  .expedition-art .home-art-slogan {
    left: 4%;
    top: 61%;
    width: 63%;
  }
  .home-tile-row {
    gap: 2px;
    margin-bottom: 3px;
  }
  .home-hero.is-docked .home-art-window .expedition-art {
    width: 100%;
    left: 0;
    transform: translateY(-50px);
  }
  .home-hero:not(.is-docked) .home-entry {
    margin-top: -10px;
  }
}
@media (max-width: 760px) and (max-height: 600px) {
  .home-hero.is-docked .home-art-window .expedition-art {
    width: 200px;
    max-width: 100%;
    left: 50%;
    margin-inline: 0;
    transform: translate(-50%, -30px);
  }
}
