/* Ellie's Map (ONE WORLD, 2026-11-07 night): the painted aerial of La Jolla Shores, six places on it. */
.map { background: #2C8DB5; }
.map .scene > img { filter: saturate(1.04); }

/* a soft, slow shimmer of light over the water (made in code: no video) */
.map__light { position: absolute; inset: 0; pointer-events: none; z-index: 1; mix-blend-mode: soft-light; }
.map__light i { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; opacity: .35;
  background: radial-gradient(circle, rgba(255, 250, 225, .9), rgba(255, 250, 225, 0) 60%); animation: maplight 18s ease-in-out infinite; }
.map__light i:nth-child(1) { left: -10vmax; top: 20vh; }
.map__light i:nth-child(2) { left: 30vw; top: 40vh; animation-delay: -6s; animation-duration: 22s; }
.map__light i:nth-child(3) { left: 55vw; top: -10vh; animation-delay: -11s; animation-duration: 26s; opacity: .25; }
@keyframes maplight { 50% { transform: translate(4vmax, -3vmax) scale(1.1); opacity: .15; } }

.map__ellie { position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; filter: drop-shadow(0 10px 12px rgba(0, 40, 70, .35)); will-change: transform; }
.map__ripple { position: absolute; width: 70px; height: 70px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .9); z-index: 2; pointer-events: none; }

/* the places: round painted windows on the map */
.places { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.places > li { position: absolute; transform: translate(-50%, -50%); pointer-events: auto; }
.place { position: relative; display: block; width: var(--medal, 150px); text-decoration: none; cursor: pointer; border-radius: 50%; -webkit-tap-highlight-color: transparent; }
.place__pic { display: block; width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: clamp(5px, .9vmin, 9px) solid #FFF9EE; box-sizing: border-box;
  box-shadow: 0 12px 28px rgba(10, 40, 60, .45), 0 0 0 3px rgba(232, 184, 74, .55); background: #CFE9F0; animation: bob 6s ease-in-out infinite; }
.places > li:nth-child(2) .place__pic { animation-delay: -1s; } .places > li:nth-child(3) .place__pic { animation-delay: -2s; }
.places > li:nth-child(4) .place__pic { animation-delay: -3s; } .places > li:nth-child(5) .place__pic { animation-delay: -4s; }
.places > li:nth-child(6) .place__pic { animation-delay: -5s; }
@keyframes bob { 50% { transform: translateY(-5px); } }
.place__pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.place:active .place__pic { scale: .96; }
.place:focus-visible { outline: 4px solid #fff; outline-offset: 6px; }
/* how many games live there: little golden dots under the window (a picture, never a number) */
.place__dots { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); display: flex; gap: 6px; }
.place__dots i { width: clamp(8px, 1.1vmin, 12px); aspect-ratio: 1; border-radius: 50%; background: #FDF2C5; box-shadow: 0 0 6px rgba(253, 242, 197, .95); }
/* games for two live here */
.place__two { position: absolute; right: -4%; top: -2%; width: 36%; padding: 3px 5px; border-radius: 999px; background: #FFF9EE; box-shadow: 0 3px 8px rgba(0, 0, 0, .25); box-sizing: border-box; }
.place__two svg { display: block; width: 100%; height: auto; }
/* Squish Sea lives in the studio (11/22: Des couldn't find it from the map): a little squishy octopus on the studio's
   window, giving a soft squish now and then. A picture, no words. It bobs with the window (same delay as li 6). */
.place__squish { position: absolute; left: -7%; bottom: 0; width: 40%; aspect-ratio: 1; padding: 5%; box-sizing: border-box; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #FFFDF6, #CFE9F0); border: clamp(3px, .5vmin, 5px) solid #FFF9EE; box-shadow: 0 4px 10px rgba(10, 40, 60, .35);
  animation: bob 6s ease-in-out -5s infinite, squishy 3.4s ease-in-out infinite; transform-origin: 50% 90%; }
.place__squish img { display: block; width: 100%; height: 100%; object-fit: contain; }
@keyframes squishy { 0%, 68%, 100% { scale: 1 1; } 76% { scale: 1.14 .84; } 86% { scale: .94 1.08; } 93% { scale: 1.03 .97; } }
/* the last place she played: a soft golden ring, one tap back in */
.place.is-last .place__pic { box-shadow: 0 12px 28px rgba(10, 40, 60, .45), 0 0 0 5px rgba(253, 228, 140, .95), 0 0 30px rgba(253, 228, 140, .9); }
.place.is-going .place__pic { animation: going .9s ease-out forwards; }
@keyframes going { 40% { transform: scale(1.12); } 100% { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(253, 228, 140, .95), 0 0 60px rgba(253, 228, 140, 1); } }

/* held upright: the places in a tidy grid over the painting */
.map.is-grid .places { display: grid; grid-template-columns: repeat(2, auto); place-content: center; gap: clamp(26px, 5vh, 54px) clamp(22px, 8vw, 70px); padding-top: 60px; box-sizing: border-box; }
.map.is-grid .places > li { position: static; transform: none; }
.map.is-grid .place { width: min(36vw, 26vh, 220px); }
.map.is-grid .map__ellie { opacity: .9; }

.map__grownups { position: absolute; left: max(12px, env(safe-area-inset-left)); bottom: max(12px, env(safe-area-inset-bottom)); z-index: 20; height: 40px; font-size: .85rem; padding: 0 14px; opacity: .85; }
.map.in-frame .map__grownups { left: 100px; }
.map .games { z-index: 60; }

@media (prefers-reduced-motion: reduce) {
  .map__light i, .place__pic, .place__squish { animation: none; }
  .place.is-going .place__pic { animation: none; box-shadow: 0 0 0 8px rgba(253, 228, 140, .95); }
}
