/*
 * The characters (piano 10, 2026-10-28): the colour of the section; the grid of the portraits, the squares of the tunnel,
 * 3 in a row on phones and 6 on computers, with the name and the work below, one line each; on the page of a character
 * its singles in the neon frames of the 9 characters of a poster, with their poster below.
 */
.section-characters { --accent: var(--c-characters); }

.portraits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 12px; margin: 0; padding: 0; list-style: none; }
.portrait { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; color: var(--text); text-decoration: none; }
.portrait img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; margin-bottom: 6px; border-radius: 14px; transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .35), 0 0 14px 0 color-mix(in srgb, var(--halo, #9A5CFF) 65%, transparent); }
[data-theme="light"] .portrait img { box-shadow: 0 6px 12px rgba(27, 24, 56, .12), 0 0 12px 0 color-mix(in srgb, var(--halo, #9A5CFF) 40%, transparent); }
.portrait:hover img, .portrait:focus-visible img { transform: translateY(-3px); }
.portrait:focus-visible { outline: 0; }
.portrait:focus-visible img { outline: 3px solid var(--focus); outline-offset: 4px; }
.portrait-name { font-size: .9rem; line-height: 1.35; }
.portrait-work { color: var(--muted); font-size: .78rem; line-height: 1.35; }
@media (min-width: 900px) { .portraits { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 26px 18px; } }
/* The characters of the posters of its work on the page of a character: 3 in a row as on a poster, as wide as the 9 of a
   single page; the character itself switched off as there (2026-10-28) */
.portraits.is-posters { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; max-width: 760px; margin: 0 auto; }
.portrait[aria-current] img { opacity: .35; filter: grayscale(.6); box-shadow: none; }
.portrait[aria-current] { color: var(--muted); }
.portrait:not([href]):hover img { transform: none; }
/* The portrait of the page is only an image: no zoom (the user, 2026-10-28) */
.hero-art.is-still { cursor: default; }

/* The page of a character: its singles in the neon frames (as the 9 of a poster), the lines below */
.own-singles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 8px; margin: 0; padding: 0; list-style: none; }
.own-singles li { --frame: var(--c-works); min-width: 0; }
.own-singles li:nth-child(5n+2) { --frame: var(--c-cast); }
.own-singles li:nth-child(5n+3) { --frame: var(--c-singles); }
.own-singles li:nth-child(5n+4) { --frame: var(--c-discover); }
.own-singles li:nth-child(5n+5) { --frame: var(--c-characters); }
.own-singles a { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; color: var(--text); text-decoration: none; }
.own-frame { display: block; margin-bottom: 6px; padding: 3px; border: 2px solid var(--frame); border-radius: 10px; background: color-mix(in srgb, var(--frame) 14%, transparent); transition: transform .2s ease, box-shadow .2s ease; box-shadow: 0 0 12px color-mix(in srgb, var(--frame) 60%, transparent); }
.own-singles a:hover .own-frame, .own-singles a:focus-visible .own-frame { transform: translateY(-3px); box-shadow: 0 0 22px color-mix(in srgb, var(--frame) 80%, transparent); }
[data-theme="light"] .own-frame { box-shadow: none; background: color-mix(in srgb, var(--frame) 8%, transparent); }
.own-singles a:focus-visible { outline: 0; }
.own-singles a:focus-visible .own-frame { outline: 3px solid var(--focus); outline-offset: 3px; }
.own-singles img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 7px; }
.own-line { font-size: .82rem; line-height: 1.35; }
.own-soft { color: var(--muted); font-size: .76rem; }
/* Computers: 5 in a row, lined up with the sections below */
@media (min-width: 900px) { .own-singles { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px 14px; } .own-frame { padding: 5px; border-radius: 12px; } }

@media (prefers-reduced-motion: reduce) { .portrait img, .own-frame { transition: none; } }

/* ---------- The cast (piano 10, 2026-10-29): its colour; the deck of cards ("always one of many", the user): the
   squares of the characters of a person, or the whole posters for who plays nobody (no photos, D22); the card in front,
   two behind a bit turned, the empty ones in the colour of its light; cast.js turns it ---------- */
.section-cast { --accent: var(--c-cast); }
.cast-frame { display: block; margin-bottom: 6px; transition: transform .2s ease; }
.deck { position: relative; display: block; aspect-ratio: 1; }
.deck .card { position: absolute; inset: 7%; overflow: hidden; border-radius: 14px; background: var(--bg); transition: transform .6s ease, opacity .6s ease, filter .6s ease;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .35), 0 0 14px 0 color-mix(in srgb, var(--halo, #9A5CFF) 65%, transparent); }
[data-theme="light"] .deck .card { box-shadow: 0 6px 12px rgba(27, 24, 56, .12), 0 0 12px 0 color-mix(in srgb, var(--halo, #9A5CFF) 40%, transparent); }
.portrait .deck .card img, .deck .card img { display: block; width: 100%; height: 100%; aspect-ratio: auto; margin: 0; border-radius: 0; object-fit: cover; box-shadow: none; transform: none; user-select: none; -webkit-user-drag: none; }
.deck .card[data-place="0"] { z-index: 3; transform: none; }
.deck .card[data-place="1"] { z-index: 2; transform: translate(7%, -5%) rotate(6deg) scale(.94); filter: brightness(.7); }
.deck .card[data-place="2"] { z-index: 1; transform: translate(-7%, -4%) rotate(-6deg) scale(.9); filter: brightness(.5); }
.deck .card[data-place="hide"] { z-index: 0; transform: scale(.85); opacity: 0; }
.deck .card[data-place="out"] { z-index: 4; transform: translate(-30%, 8%) rotate(-14deg); opacity: 0; }
/* The whole poster, never cut */
.deck .card.is-poster { background: color-mix(in srgb, var(--halo, #9A5CFF) 18%, var(--bg)); }
.portrait .deck .card.is-poster img, .deck .card.is-poster img { padding: 6%; box-sizing: border-box; object-fit: contain; }
/* An empty card: one more could come */
.deck .card.is-blank { border: 1px dashed color-mix(in srgb, var(--halo, #9A5CFF) 70%, var(--text)); background: color-mix(in srgb, var(--halo, #9A5CFF) 35%, var(--bg)); box-shadow: none; }
.cast-tile:hover .cast-frame, .cast-tile:focus-visible .cast-frame { transform: translateY(-3px); }
.cast-tile:focus-visible .cast-frame { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 14px; }

/* The page of a person: the roles under the name; the deck big, to leaf through by hand */
.person-roles { color: var(--text); }
.person-deck .hero-frame { touch-action: pan-y; border-radius: 18px; }
.person-deck .hero-frame:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
.person-deck .deck { width: 100%; height: 100%; }
.person-deck .deck .card { inset: 5%; border-radius: 18px; }
.deck-arrow { position: absolute; top: 50%; z-index: 5; display: grid; place-items: center; width: 44px; height: 44px; margin-top: -22px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--pill-bg); color: var(--text); cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.deck-arrow.is-prev { left: 0; }
.deck-arrow.is-next { right: 0; }
.deck-arrow:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.deck-caption { display: grid; gap: 2px; margin: 0; text-align: center; }
.deck-caption a { color: var(--text); font-size: 1.05rem; text-decoration: underline; text-decoration-color: var(--c-characters); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.deck-line { color: var(--muted); font-size: .85rem; }
.deck-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.deck-dots[hidden] { display: none; }
/* Small to see, large to touch: the dot in the middle of a 24 px button */
.deck-dots button { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.deck-dots button::before { content: ""; width: 10px; height: 10px; border: 2px solid var(--line); border-radius: 50%; }
.deck-dots button[aria-current="true"]::before { border-color: var(--c-cast); background: var(--c-cast); }
.deck-dots button:focus-visible { outline: 3px solid var(--focus); outline-offset: 0; border-radius: 50%; }
@media (prefers-reduced-motion: reduce) { .deck .card, .cast-frame { transition: none; } }
