/* A choice as a select screen: a numbered list, and the picture of the one
   you are on beside it (select.js). The home and Call of Duty both open on one. */
body:has(.pick:not([hidden])) .site-header { z-index: 2; }
.pick { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: clamp(32px, 6vw, 96px); min-height: calc(100svh - 84px); padding: 40px 0 56px; }
.pick a { color: inherit; text-decoration: none; }

/* The picked one, blurred far behind everything */
.pick-back { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.pick-back img { width: 100%; height: 100%; object-fit: cover; filter: blur(60px) saturate(.7); opacity: .16; transform: scale(1.3); transition: opacity .6s ease; }
.pick-back.is-swap img { opacity: 0; }
.pick-back::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 50%, transparent, var(--page) 80%); }

.pick-kicker { margin: 0; color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.pick-kicker + .pick-list { margin-top: 22px; }
.pick-title { margin: 8px 0 28px; font: 400 clamp(40px, 4.4vw, 64px)/.9 var(--title); letter-spacing: .01em; text-transform: uppercase; }
.pick-title:focus { outline: none; }

.pick-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.pick .pick-row { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); color: color-mix(in srgb, var(--ink) 45%, var(--page)); transition: color .3s ease; }
.pick-no { font-size: 12px; font-variant-numeric: tabular-nums; transition: color .3s ease; }
.pick-name { font: 700 clamp(30px, 3vw, 44px)/1 "Barlow Condensed", "Arial Narrow", sans-serif; letter-spacing: .005em; text-transform: uppercase; transition: transform .45s var(--ease); }
.pick-count { font-size: 13px; }
.pick-thumb { display: none; }
.pick-row::before { content: ""; position: absolute; left: -18px; top: 50%; width: 3px; height: 0; translate: 0 -50%; background: var(--accent); transition: height .35s var(--ease); }
.pick .pick-row.is-on { color: var(--ink); }
.pick-row.is-on .pick-no { color: var(--accent); }
.pick-row.is-on .pick-name { transform: translateX(8px); }
.pick-row.is-on::before { height: 60%; }
.pick .pick-row:focus-visible { outline: none; }
.pick .pick-row:focus-visible .pick-name { text-decoration: underline 2px var(--accent); text-underline-offset: 6px; }

/* The picture of the one you are on */
.pick-view { margin: 0; }
.pick-frame { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 6px; background: var(--panel-strong); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.pick-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .5s ease, transform 1.2s var(--ease); }
.pick-frame img.is-on { opacity: 1; transform: none; }
.pick-view figcaption { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; color: var(--muted); font-size: 13px; }
.pick-view figcaption span:last-child { color: var(--ink); text-align: right; }

/* Phone: the list alone, each row with its own picture; a tap opens it */
@media (max-width: 900px) {
  .pick { grid-template-columns: minmax(0, 1fr); align-items: start; min-height: 0; padding: 24px 0 40px; }
  .pick-view, .pick-back, .pick-row::before { display: none; }
  .pick .pick-row { grid-template-columns: 26px minmax(0, 1fr) 84px; grid-template-rows: auto auto; align-items: center; gap: 2px 12px; padding: 12px 0; color: var(--ink); }
  .pick-no { grid-row: 1 / 3; color: var(--muted); }
  .pick-name { font-size: 32px; }
  .pick-count { grid-column: 2; color: var(--muted); font-size: 12px; }
  .pick-thumb { display: block; grid-column: 3; grid-row: 1 / 3; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: var(--panel-strong); }
  .pick-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .pick-row.is-on .pick-name { transform: none; }
  .pick-row.is-on .pick-no { color: var(--muted); }
  .pick-row:active { background: rgba(255, 255, 255, .04); }
}

/* ---------- The home: the two names lead, the picture follows them ---------- */
.pick.is-home { grid-template-columns: minmax(0, 1.7fr) minmax(0, .75fr); gap: clamp(40px, 6vw, 96px); width: min(1180px, 100%); min-height: calc(100svh - 84px - 72px); margin-inline: auto; padding: 32px 0; }
.is-home .pick-kicker + .pick-list { margin-top: 20px; }
.pick.is-home .pick-row { grid-template-columns: 44px minmax(0, 1fr); row-gap: 10px; padding: 26px 0 28px; }
.is-home .pick-no { align-self: start; padding-top: 14px; font-size: 13px; }
.is-home .pick-name { font-size: clamp(64px, 8.4vw, 132px); line-height: .86; letter-spacing: -.005em; white-space: nowrap; transition: transform .5s var(--ease), color .3s ease; }
.is-home .pick-row.is-on .pick-name { transform: translateX(14px); }
.is-home .pick-row::before { left: -22px; width: 4px; }
.is-home .pick-row.is-on::before { height: 72%; }
.is-home .pick-count { grid-column: 2; color: var(--muted); font-size: 14px; transition: color .3s ease, transform .5s var(--ease); }
.is-home .pick-row.is-on .pick-count { color: var(--ink); transform: translateX(14px); }
.is-home .pick-view { justify-self: end; width: 100%; max-width: 290px; }
.is-home .pick-frame { aspect-ratio: 3 / 4; border-radius: 10px; box-shadow: 0 0 0 1px var(--line), 0 30px 70px rgba(0, 0, 0, .5); }
.is-home .pick-frame img { filter: saturate(.8) brightness(.8); }
.is-home .pick-view figcaption { display: grid; gap: 2px; font-size: 12px; }
.is-home .pick-view figcaption span:last-child { text-align: left; }
.is-home .pick-back img { opacity: .14; }
@media (max-width: 1100px) {
  .pick.is-home { grid-template-columns: minmax(0, 1.5fr) minmax(0, .7fr); }
}
/* Phone: the list, held in the middle of the screen. Each row is a large
   name with what it holds underneath and a portrait of it on the right. */
@media (max-width: 900px) {
  .pick.is-home { display: flex; flex-direction: column; justify-content: center; min-height: calc(100svh - 72px); padding: 0 0 72px; }
  .is-home .pick-kicker { margin-bottom: 4px; }
  .is-home .pick-kicker + .pick-list { margin-top: 14px; }
  .is-home .pick-main { width: 100%; }
  .pick.is-home .pick-row { grid-template-columns: minmax(0, 1fr) 92px; grid-template-rows: 1fr auto auto auto 1fr; align-items: center; column-gap: 16px; row-gap: 6px; padding: 18px 0; color: var(--ink); -webkit-tap-highlight-color: transparent; transition: background-color .2s ease; }
  .is-home .pick-row::before { display: none; }
  .is-home .pick-no { grid-column: 1; grid-row: 2; align-self: end; padding: 0; color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: .1em; }
  .is-home .pick-row[data-palette=six] .pick-no { color: #98cdff; }
  .is-home .pick-name { grid-column: 1; grid-row: 3; align-self: center; font-size: clamp(40px, 12.5vw, 64px); line-height: .88; white-space: normal; overflow-wrap: normal; }
  .is-home .pick-row.is-on .pick-name, .is-home .pick-row.is-on .pick-count { transform: none; }
  .is-home .pick-count { grid-column: 1; grid-row: 4; align-self: start; color: var(--muted); font-size: 13px; line-height: 1.4; }
  .is-home .pick-row.is-on .pick-count { color: var(--muted); }
  .is-home .pick-thumb { grid-column: 2; grid-row: 1 / 6; aspect-ratio: 3 / 4; border-radius: 10px; box-shadow: 0 0 0 1px var(--line), 0 14px 34px rgba(0, 0, 0, .5); }
  .is-home .pick-thumb img { filter: saturate(.9) brightness(.92); transition: transform .4s var(--ease); }
  .is-home .pick-row:active { background: rgba(255, 255, 255, .03); }
  .is-home .pick-row:active .pick-thumb img { transform: scale(1.05); }
  body[data-world=home] .site-header { min-height: 72px; flex-wrap: nowrap; padding-top: 0; }
}
@media (max-width: 900px) and (orientation: landscape) {
  .pick.is-home { min-height: 0; padding-bottom: 28px; }
  .pick.is-home .pick-row { padding: 12px 0; }
  .is-home .pick-thumb { aspect-ratio: 16 / 10; }
}
@media (max-width: 360px) {
  .pick.is-home .pick-row { grid-template-columns: minmax(0, 1fr) 76px; column-gap: 12px; }
}

@media (prefers-reduced-motion: reduce) { .pick *, .pick *::before { transition: none !important; } }
