/* Atlas Hunt's page: look A, the store's colours (the Play feature graphic's teal wall and globe, white Montserrat
   headings, a land-green accent), over the shared /assets/site.css. Hand-written.
   The font rules come from Fontsource (_build/site/vendor/fonts/montserrat-700.css): Montserrat 700 in the latin,
   latin-ext and cyrillic subsets, each loaded only for the characters it covers. */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../../assets/fonts/montserrat-cyrillic-700-normal.woff2") format("woff2");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../../assets/fonts/montserrat-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../../assets/fonts/montserrat-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --wall-top: #1F5F7A;
  --wall: #0B2A3C;
  --floor: #071D2A;
  --heading: #FFFFFF;
  --text: #D2EAF3;
  --muted: #9FC3D1;
  --link: #6FD0F2;
  --accent: #9CD67A;  /* land */
  --rule: rgba(111, 208, 242, .22);
  --edge: rgba(111, 208, 242, .25);
  --control-edge: rgba(191, 234, 248, .5);
  --menu-edge: rgba(111, 208, 242, .5);
  --accent-wash: rgba(156, 214, 122, .15);
  --heading-font: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --sky: #BFEAF8;
  --spark: #FFE7A6;
  --bezel: #0B0F18;
}

h1, h2, h3, .brand { font-weight: 700; }
.lead, .sub { color: var(--sky); }

/* Hero: three phones fanned out in front of the store graphics' globe. The stage keeps its shape at every width, and
   nothing in it reaches past its edges, so the page never scrolls sideways. Should a size change, the body's clip is the
   safety net: it cuts only at the window's edges, so the phones' and the globe's shadows stay whole. */
body { overflow-x: clip; }
.stage { position: relative; width: 100%; max-width: 560px; margin: 0 auto; aspect-ratio: 9 / 7.6; }
.globe {
  position: absolute;
  top: 0;
  right: 0;
  width: 80%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, #6FD0F2, #2A8BC9 55%, #15558F);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .35), 0 30px 60px rgba(0, 0, 0, .35);
  opacity: .9;
}
.globe::before, .globe::after {
  content: "";
  position: absolute;
  border: 3px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
}
.globe::before { inset: 0 28%; }
.globe::after { inset: 30% 0; }
.spark { position: absolute; color: var(--spark); line-height: 1; }
.spark.big { top: 0; right: 5%; font-size: clamp(1.25rem, 3vw, 1.75rem); }
.spark.small { top: 10%; right: 0; font-size: clamp(.75rem, 1.6vw, 1rem); }
.shot { position: absolute; }
.shot img {
  width: 100%;
  border: clamp(4px, 1vw, 6px) solid var(--bezel);
  border-radius: clamp(14px, 3.5vw, 22px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .4);
}
.shot.left { top: 12%; left: 3%; width: 30%; transform: rotate(-7deg); }
.shot.centre { top: 0; left: 33%; z-index: 2; width: 34%; }
.shot.right { top: 12%; left: 67%; width: 30%; transform: rotate(7deg); }

/* How it plays: the steps are numbered in green */
.numbered { counter-reset: step; }
.numbered li { counter-increment: step; }
.numbered li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--wall);
  font: 700 .875rem/1 var(--heading-font);
}

/* A whole atlas to play: a tile per level */
.levels { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.levels li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--edge);
  border-radius: 14px;
}
.levels img, .level-icon { width: 64px; height: 64px; border-radius: 14px; }
.levels h3 { margin-bottom: 3px; font-size: 1.0625rem; }
.levels p { font-size: .9375rem; line-height: 1.45; }

/* A closer look: a strip of screenshots that scrolls sideways on its own */
.gallery {
  display: flex;
  gap: 18px;
  padding: 6px 4px 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-color: rgba(111, 208, 242, .5) transparent;
}
.gallery img {
  width: 160px;
  border: 5px solid var(--bezel);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
}
.caption { display: block; margin-top: 8px; color: var(--sky); font-size: .8125rem; line-height: 1.35; }

/* Each shot opens enlarged in a popover: as tall as the screen allows, on a dimmed page */
.zoom {
  flex: 0 0 160px;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: none;
  color: inherit;
  font: inherit;
  text-align: center;
  cursor: zoom-in;
  scroll-snap-align: start;
}
.zoom img { transition: transform .15s ease-out; }
.zoom:hover img { transform: translateY(-3px); }
.zoomed { padding: 0; border: 0; background: transparent; overflow: visible; }
.zoomed::backdrop { background: rgba(4, 16, 24, .85); }
.zoomed .large {
  width: auto;
  height: min(88vh, calc(92vw * 16 / 9));
  aspect-ratio: 9 / 16;
  background: var(--bezel) center / cover no-repeat;
  border: 6px solid var(--bezel);
  border-radius: 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
}
.close {
  position: absolute;
  top: -12px;
  right: -12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--sky);
  color: var(--wall);
  font: 700 1.625rem/1 var(--sans);
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .4);
}
@media (prefers-reduced-motion: reduce) {
  .zoom img { transition: none; }
}

/* Free and full version: the full version's card in the store's wine, with the sparkles' gold */
.plan.full { border-color: var(--spark); }
.plan.full .note { color: var(--spark); }

@media (min-width: 760px) {
  .levels { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .levels { grid-template-columns: repeat(3, 1fr); }
}
