/* The modes on Home as a row of tall posters, like box art side by side. The poster under the mouse (or holding
   keyboard focus) widens and shows its text; with neither, the first one stays open. Plain CSS, no script.
   On narrow screens the posters stack, each one open. */
.posters { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; height: clamp(460px, 64vh, 640px); }
.poster {
  position: relative; flex: 1; min-width: 0; overflow: hidden; isolation: isolate;
  border-radius: var(--radius); border: var(--border); background: var(--surface);
  transition: flex .6s cubic-bezier(.2, .7, .2, 1), border-color .3s ease;
}
.poster > img, .poster > .drawn { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; aspect-ratio: auto; border: 0; transition: transform .8s ease; }
.poster::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 14, 20, 0.15) 0%, transparent 35%, rgba(11, 14, 20, 0.92) 100%); }
.poster-num { position: absolute; top: 18px; left: 16px; font: 700 0.9rem/1 "Chakra Petch", sans-serif; letter-spacing: 0.14em; color: var(--text); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7); }
.poster-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 16px; }
.poster h3 { font-size: clamp(0.9rem, 1.1vw, 1.15rem); margin: 10px 0 0; white-space: nowrap; transition: font-size .4s ease; }
.poster .drawn span { top: 46px; left: 16px; right: 16px; }
.poster .tag { background: rgba(11, 14, 20, 0.75); font-size: 0.68rem; }
.poster p, .poster-go { max-width: 46ch; opacity: 0; max-height: 0; overflow: hidden; margin: 0; transition: opacity .3s ease, max-height .4s ease, margin .4s ease; }
.poster-go { display: inline-block; font: 700 0.9rem/1 "Chakra Petch", sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); text-decoration: none; }
.poster-go::after { content: ""; position: absolute; inset: 0; } /* (the whole poster is the link) */
.poster-go:focus-visible { outline: none; }
.poster:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }

/* The open poster: hovered, focused, or the first one while nothing else is */
.poster:hover, .poster:focus-within, .posters:not(:hover):not(:focus-within) .poster:first-child { flex: 3.2; border-color: var(--accent); }
.poster:hover > img, .poster:focus-within > img, .posters:not(:hover):not(:focus-within) .poster:first-child > img { transform: scale(1.04); }
.poster:hover h3, .poster:focus-within h3, .posters:not(:hover):not(:focus-within) .poster:first-child h3 { font-size: clamp(1.6rem, 2.8vw, 2.6rem); }
.poster:hover p, .poster:focus-within p, .posters:not(:hover):not(:focus-within) .poster:first-child p,
.poster:hover .poster-go, .poster:focus-within .poster-go, .posters:not(:hover):not(:focus-within) .poster:first-child .poster-go {
  opacity: 1; max-height: 9em; margin-top: 12px; transition-delay: .2s;
}

@media (max-width: 900px) {
  .posters { flex-direction: column; height: auto; }
  .poster, .poster:hover, .poster:focus-within, .posters:not(:hover):not(:focus-within) .poster:first-child { flex: none; height: 380px; }
  .poster h3 { font-size: 1.8rem; }
  .poster p, .poster-go { opacity: 1; max-height: none; margin-top: 10px; }
}
