/* Shared entrance: one paper edition for all seven games.
   Geometry, print hierarchy and material; native navigation/readiness and
   existing finite paper motion retain their owners. */
#zineGameMenu .gallery-close {
  isolation: isolate;
  background: none;
  clip-path: none;
  filter: var(--wp-shadow-slip);
}
#zineGameMenu .gallery-close::before {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  height: auto;
  z-index: -1;
  pointer-events: none;
  transform: none;
  background: var(--menu-paper, #f1e6cc) var(--stock) 71px 133px / 470px;
  background-blend-mode: multiply;
}
#zineGameMenu .gallery-close:focus-visible {
  outline: 3px dotted var(--menu-paper, #f1e6cc);
  outline-offset: 6px;
}

/* The very lowest desktop keeps all seven choices. It may scroll instead
   of squeezing the print into a smaller-than-readable ticket. */
@media (min-width: 1000px) and (min-height: 561px) and (max-height: 620px) {
  #zineGameMenu .gallery-inner { height: auto; min-height: 620px; }
  #zineGameMenu .gallery-programme { min-height: 442px; }
}

@media (forced-colors: active) {
  #zineGameMenu .gallery-close {
    background: ButtonFace;
    color: ButtonText;
    border: 2px solid ButtonText;
    filter: none;
  }
  #zineGameMenu .gallery-close::before { display: none; }
  #zineGameMenu .gallery-close:focus-visible { outline-color: Highlight; }
}

/* The wordmark is the publisher's stamp on warm stock, not a second headline.
   Use the approved dark export, unfiltered and at its original proportions. */
#zineGameMenu .gallery-brand {
  position: relative;
  isolation: isolate;
  width: 180px;
  height: 82px;
  aspect-ratio: auto;
  background: none;
  transform: rotate(-2deg);
  filter: var(--wp-shadow-slip);
}
#zineGameMenu .gallery-brand::before {
  content: "";
  display: block;
  position: absolute;
  inset: -4px -10px;
  z-index: -1;
  background: var(--menu-paper) var(--stock) 71px 133px / 470px;
  background-blend-mode: multiply;
  clip-path: polygon(1% 2%, 35% 0, 69% 1%, 100% 0, 99% 54%, 100% 98%, 65% 100%, 29% 98%, 0 100%, 1% 53%);
}
#zineGameMenu .gallery-brand::after {
  content: "";
  display: block;
  position: absolute;
  inset: 5px;
  background: url("assets/branding/wordplace/production/wordplace-logo-dark-v2.svg") center / contain no-repeat;
}
#zineGameMenu .gallery-intro h2 {
  margin: 0;
  font: 900 clamp(34px, 3.2vw, 46px)/1 var(--print-face);
  color: var(--menu-paper);
}

@media (min-width: 1000px) and (min-height: 561px) {
  #zineGameMenu .gallery-inner {
    width: min(100%, 1420px);
    grid-template-rows: 90px minmax(0, 1fr) 48px;
    padding: 28px 42px;
    gap: 28px;
  }
  #zineGameMenu .gallery-heading {
    align-items: center;
    gap: 42px;
    padding-right: 220px;
  }
  #zineGameMenu .gallery-programme {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(48px, 5vw, 84px);
  }
  #zineGameMenu .gallery-games {
    max-height: 616px;
    gap: 12px;
  }
  #zineGameMenu .game-poster {
    padding: 10px 38px;
    grid-template-columns: minmax(0, 1fr) 28px;
    column-gap: 12px;
  }
  #zineGameMenu .game-poster .poster-name {
    font-size: clamp(30px, 2.65vw, 38px);
    line-height: 1.08;
  }
  #zineGameMenu .game-poster-royale .poster-name { font-size: clamp(27px, 2.4vw, 35px); }
  /* Keep the native explanation available to assistive technology and to
     compact layouts. Each desktop ticket itself only names the game. */
  #zineGameMenu .game-poster .poster-description,
  #zineGameMenu .game-poster .poster-format {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    white-space: nowrap;
    clip-path: inset(50%);
    overflow: clip;
  }
  #zineGameMenu .gallery-feature {
    width: min(100%, calc(100svh - 260px), 600px);
    aspect-ratio: 1;
    grid-template-rows: minmax(0, 1fr);
    padding: 10px;
    align-self: center;
    justify-self: center;
    transform: rotate(.65deg);
  }
  #zineGameMenu .gallery-feature-art { aspect-ratio: 1; }
  #zineGameMenu .gallery-close { top: 16px; }
}
@media (min-width: 1000px) and (min-height: 561px) and (max-height: 800px) {
  #zineGameMenu .gallery-inner {
    grid-template-rows: 76px minmax(0, 1fr) 46px;
    padding: 20px 30px;
    gap: 18px;
  }
  #zineGameMenu .gallery-brand { width: 155px; height: 68px; }
  #zineGameMenu .gallery-heading { gap: 32px; }
  #zineGameMenu .gallery-intro h2 { font-size: 34px; }
  #zineGameMenu .gallery-games { gap: 10px; }
  #zineGameMenu .game-poster { padding-block: 8px; }
  #zineGameMenu .game-poster .poster-name { font-size: 32px; }
  #zineGameMenu .game-poster-royale .poster-name { font-size: 30px; }
  #zineGameMenu .gallery-feature { width: min(100%, calc(100svh - 206px), 600px); }
}
@media (max-width: 999px), (max-height: 560px) {
  #zineGameMenu .gallery-brand { width: 150px; height: 68px; }
  #zineGameMenu .gallery-heading { gap: 24px; }
  #zineGameMenu .gallery-intro h2 { font-size: 32px; }
}
@media (forced-colors: active) {
  #zineGameMenu .gallery-brand { background: none; filter: none; transform: none; }
  #zineGameMenu .gallery-brand::before { display: none; }
  #zineGameMenu .gallery-brand::after {
    content: "WordPlace";
    position: static;
    background: none;
    color: CanvasText;
    font: 900 32px/1.1 var(--print-face);
  }
  #zineGameMenu .gallery-intro h2 { color: CanvasText; }
  #zineGameMenu .game-poster .poster-description {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    clip-path: none;
    white-space: normal;
  }
}
