/* Choose Your Carla: the cinema lobby. One one-sheet per world on a dark wall.
   Each tile carries data-world, so inside it the role variables are that world's. */

[data-world="choose"] body { background: var(--ground); }
[data-world="choose"] .site-header { background: transparent; border-bottom: 0; }
.top-links { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-4); }
.top-links a { color: var(--ink); font-family: var(--brand-font-credits); text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.top-links a:hover { color: var(--accent); }

.chooser { padding-top: var(--space-4); padding-bottom: var(--space-6); text-align: center; }
.choose-title {
  font-family: var(--brand-font-poster);
  font-size: clamp(2.5rem, 9vw, 5.5rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--ink);
  -webkit-text-stroke: 0.035em currentColor; /* the master brand's thickened Young Serif */
  paint-order: stroke fill;
}
.credit {
  font-family: var(--brand-font-credits); text-transform: uppercase; letter-spacing: 0.24em;
  font-size: 0.8125rem; color: var(--muted); margin: var(--space-3) 0 var(--space-5);
}
.lost { color: var(--ink); margin: calc(-1 * var(--space-3)) 0 var(--space-4); }

/* Flex rather than grid so an incomplete last row sits centred (14 tiles: 4 + 4 + 4 + 2). */
.tiles {
  --cols: 2; --gap: var(--space-4);
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap);
  text-align: left;
}
.tiles > li { width: calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); }
@media (max-width: 420px) { .tiles { --gap: var(--space-3); } }
@media (min-width: 700px) { .tiles { --cols: 3; } }
@media (min-width: 1100px) { .tiles { --cols: 4; } }

.tile {
  display: flex; flex-direction: column; height: 100%;
  background: var(--ground); color: var(--ink); text-decoration: none;
  border-radius: var(--radius-frame); outline-offset: 4px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.tile-img, .tile-img img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-frame); }
.tile .ph { display: block; background: var(--raised); border: 0; }
.tile-name {
  display: block; padding: 0.7em 0.75em 0.8em; background: var(--ground);
  font-family: var(--font-display); color: var(--ink);
  font-size: clamp(0.95rem, 2.4vw, 1.3rem); line-height: 1.15;
}
.tile:hover, .tile:focus-visible, .tile.selected { transform: translateY(-4px); box-shadow: var(--glow); }
.tile:focus-visible { outline: 2px solid var(--bitcoin); }

/* Title treatments the chooser borrows from each world's doc. */
.tile[data-world="space-opera"] .tile-name,
.tile[data-world="rome-on-saturn"] .tile-name,
.tile[data-world="desert-motel"] .tile-name { text-transform: uppercase; letter-spacing: 0.1em; }
.tile[data-world="space-opera"] .tile-name { font-size: clamp(0.8rem, 1.9vw, 1.05rem); }
.tile[data-world="giallo"] .tile-name { font-style: italic; }
.tile[data-world="desert-motel"] .tile-name { text-align: center; font-weight: 500; }
.tile[data-world="red-sands"] .tile-name { font-size: clamp(0.9rem, 2.2vw, 1.2rem); }

.surprise-wrap { margin: var(--space-5) 0 0; }
.surprise {
  background: none; border: 0; cursor: pointer; color: var(--bitcoin);
  font-family: var(--brand-font-credits); font-size: 1.0625rem; letter-spacing: 0.04em;
  text-decoration: underline; text-underline-offset: 0.25em; min-height: 44px; padding: 0 var(--space-3);
}
.chooser-foot { background: transparent; border-top: 1px solid color-mix(in srgb, var(--muted) 30%, transparent); padding-block: var(--space-4); text-align: center; }
.chooser-foot .signoff { font-family: var(--brand-font-poster); font-size: 1em; color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .tile { transition: none; }
  .tile:hover, .tile:focus-visible, .tile.selected { transform: none; }
}
[data-world="choose"] .preview-banner { background: var(--bitcoin); color: var(--chooser-ground); font-family: var(--brand-font-credits); }

/* Under the tiles: the newest video, or the premiere teaser */
.premiere { margin: var(--space-6, 4rem) auto 0; max-width: 1040px; }
.premiere-h { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.04em; text-align: center; font-size: clamp(1.6rem, 4vw, 2.6rem); margin: 0 0 var(--space-4); }
.premiere-card { position: relative; background: var(--raised); border: 1px solid var(--rule); overflow: hidden; }
.premiere-img img { display: block; width: 100%; height: auto; }
.premiere-copy { padding: var(--space-4); }
.premiere-title { font-family: var(--font-display); font-size: clamp(1.5rem, 3.5vw, 2.2rem); color: var(--ink); margin: 0 0 var(--space-2); }
.neutral-page { padding-block: var(--space-5); }
.neutral-page .grid-feature { margin-top: var(--space-4); }
.neutral-page .back { margin-top: var(--space-5); }
.top-links { flex-wrap: wrap; justify-content: flex-end; gap: 0 var(--space-4); }

.usage .choose-title { font-size: clamp(2rem, 6vw, 3.5rem); line-height: 1.05; }
