/* World pages share the studio masthead, type and palette with the game lab. */
.g-hero {
  padding: clamp(34px, 4.8vw, 78px) 0;
  color:var(--text);
  background: transparent;
  position: relative;
  isolation: isolate;
}
.g-grid, .g-about-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(30px, 5vw, 78px);
}
.g-grid { align-items: center; grid-template-areas: "info media"; }
.g-info {
  grid-area: info;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.world-index, .viewer-bar, .availability .status {
  font: 800 12px/1.35 ui-monospace, Consolas, monospace;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.world-index { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.world-index a { color: var(--accent-text); text-decoration: none; padding-block: 8px; }
.world-index a:hover { text-decoration: underline; text-underline-offset: 4px; }
.world-index span:nth-child(2) { color: var(--muted); }
.g-info h1 {
  max-width: 13ch;
  color:var(--text);
  font-size: clamp(48px, 5.4vw, 82px);
  letter-spacing: -.03em;
  line-height: .97;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.g-info h1 span { color:var(--text); }
.g-info .hook {
  max-width: 39ch;
  margin: 18px 0 24px;
  color:var(--text);
  font-size: clamp(16px, 1.32vw, 20px);
  font-weight: 400;
  line-height: 1.5;
}
.availability { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.availability .status {
  gap: 6px;
  border: 0;
  border-radius: 4px;
  padding: 6px 9px;
  color:var(--text);
  background: var(--cream);
  box-shadow: none;
  font-size: 11px;
}
.availability .status::before { width: 6px; height: 6px; border-radius: 0; }
.availability > span:not(.status) { font-size: 14px; font-weight: 700; color: var(--muted); }
.g-info .ctas { margin-top: 18px; }
.g-info .btn.primary {
  min-height: 50px;
  padding-inline: 17px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 3px 4px 0 var(--ink);
  background: var(--yolk);
}
.g-info .btn.primary:hover { background: var(--cream); }
.g-info .btn.primary::after { content: "↗" / ""; margin-left: 8px; font: 800 18px/1 system-ui; }
.g-hero :focus-visible { outline-color: var(--purple); }

/* Frame the working gallery like a set of concept sheets from the studio. */
.g-media {
  grid-area: media;
  min-width: 0;
  padding: 0 9px 9px;
  color:var(--text);
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 12px;
  box-shadow: 4px 5px 0 var(--game-accent), 6px 7px 0 var(--ink);
  isolation: isolate;
}
.g-media::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 110px; height: 65px; top: -28px; right: -12px;
  background: var(--game-accent);
  mask: url("/img/brand/brew-splash.svg") center / 100% 100% no-repeat;
}
.viewer-bar { display: flex; justify-content: space-between; gap: 10px; padding: 9px 3px 8px; font-size: 11px; }
.viewer-bar > span:first-child { display: inline-flex; align-items: center; gap: 7px; }
.viewer-bar > span:first-child::before {
  content: "";
  width: 19px;
  height: 13px;
  background: var(--game-accent);
  mask: url("/img/brand/brew-splash.svg") center / contain no-repeat;
}
.stage {
  border: 2px solid var(--ink);
  border-radius: 5px;
  box-shadow: none;
}
.stage .play-btn {
  left: 10px; bottom: 10px; top: auto; margin: 0; width: 44px; height: 44px;
  border: 2px solid var(--cream); background: var(--ink); color: var(--cream); box-shadow: none;
}
.stage .play-btn .ico { width: 18px; height: 18px; margin-left: 2px; }
.gthumbs { margin: 8px 0 0; gap: 6px; }
.gthumb {
  min-height: 44px;
  aspect-ratio: 2.65;
  border: 2px solid transparent;
  border-radius: 5px;
  background: var(--ink);
}
.gthumb.is-active { border-color: var(--ink); box-shadow: inset 0 0 0 2px var(--game-accent); padding: 2px; }
.gthumb img { opacity: .83; border-radius: 2px; }
.g-media :focus-visible { outline-color: var(--ink); outline-offset: 1px; }

/* Artwork has an uninterrupted surface; actions live in the frame beneath it. */
.stage, .lightbox > img { touch-action: pan-y pinch-zoom; }
.gallery-tools { display: flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 4px; }
.gallery-position { flex: 1; margin: 0; min-width: 0; font-size: 12px; font-weight: 800; }
.gallery-tools button {
  position: static; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  width: auto; min-width: 112px; height: 44px; margin: 0; padding: 6px 9px;
  border: 1px solid var(--line); border-radius: 6px; box-shadow: none;
  background: var(--cream); color:var(--text); font: 800 12px/1.2 var(--fb); cursor: pointer;
}
.gallery-tools button:hover { border-color: var(--ink); }
.lightbox { max-height: calc(100dvh - 24px); }
.lightbox > img { max-height: calc(100dvh - 100px); }
.lb-controls { display: grid; grid-template-columns: 48px 1fr 48px 48px; gap: 8px; align-items: center; margin-top: 12px; }
.lightbox .lb-controls button { position: static; margin: 0; box-shadow: none; }
.lb-controls .lb-count { position: static; margin: 0; }

.g-about { padding: 16px 0 clamp(38px, 4.5vw, 72px); }
.g-about-grid { align-items: start; }
.g-about .eyebrow { margin: 0 0 5px; font-size: 12px; }
.g-about h2, .more-games h2 {
  margin: 0 0 17px;
  font-size: clamp(34px, 3.3vw, 50px);
  letter-spacing: -.025em;
}
.facts { margin-top: 22px; border-top: 1px solid var(--line); }
.facts div { grid-template-columns: 67px 1fr; border-bottom: 1px solid var(--line); }
.shots { gap: 12px; }
.shot { position: relative; border: 2px solid var(--ink); border-radius: 8px; box-shadow: 2px 3px var(--ink); }
.shot::after {
  content: "⤢" / ""; position: absolute; right: 6px; bottom: 6px; padding: 2px 5px;
  border-radius: 3px; color: var(--cream); background: var(--ink); font: 600 16px/1.1 system-ui;
}
.more-games { padding-top: 34px; }
.more-games h2 { margin: 0; }
@media (min-width: 701px) and (max-width: 900px) {
  .g-grid, .g-about-grid { gap: 25px; }
  .g-info h1 { font-size: clamp(42px, 5.8vw, 52px); }
  .g-info .hook { margin: 12px 0 18px; }
  .g-media { padding-inline: 5px; }
}
@media (max-width: 700px) {
  .g-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "media" "info"; gap: 22px; }
  .g-hero { padding: 20px 0 30px; }
  .g-grid { max-width: 650px; margin-inline: auto; }
  .g-about-grid { grid-template-columns: 1fr; }
  .world-index { margin-bottom: 6px; }
  .g-info h1 { max-width: 17ch; font-size: clamp(42px, 7.8vw, 58px); }
  .g-info .hook { margin: 12px 0 16px; }
}
@media (max-width: 560px) {
  .g-grid { gap: 12px; }
  .g-hero { padding-top: 12px; }
  .g-media { padding: 0 5px 5px; border-radius: 8px; box-shadow: 3px 4px 0 var(--game-accent), 5px 6px 0 var(--ink); }
  .g-media::before { top: -17px; right: -8px; width: 80px; height: 48px; }
  .viewer-bar { padding: 6px 2px; font-size: 10px; }
  .gthumbs { gap: 4px; margin-top: 4px; }
  .g-info h1 { font-size: clamp(36px, 10.65vw, 53px); max-width: 14ch; }
  .world-index { font-size: 11px; }
  .world-index a { padding-block: 10px; }
  .availability { gap: 6px 8px; }
  .availability > span:not(.status) { font-size: 13px; }
  .g-info .ctas { margin-top: 13px; }
}
