/* The Games page (/play/, tools/build_seo_pages.py PLAY_T — 11-14): the station's games as doors into the player.
   Loaded by that page only, after seo.css; every colour, radius and face is one of seo.css's tokens.
   Round 4 (owner 11-14 picked "Black, cream, gold" and every part of the page): black, cream and ONE gold — no colour per
   game. The page is laid out like the Shows page: its opening is the index pages' own (title, one line, key, numbers, a wall
   of covers — shell() draws it), its games are scene cards (a game shown by what it is played with), its prose sits in the closing fold, its last word is the
   site's own closing block. What is left here: the cards, the arcade's wall (play.js), the steps. */

/* ── the opening: the index pages' wall, with the games' tall covers ── */
html.k-play .intro-txt { display: flex; flex-direction: column; align-items: flex-start; }   /* the line, then the key, then the numbers — as on the Shows page */
html.k-play .intro-txt > .lede { order: 1; }
html.k-play .intro-txt > p.air { order: 2; }
html.k-play .intro-txt > .stat-band { order: 3; align-self: stretch; }
/* A game's cover is tall, so on a desk the wall is a shelf of tall covers — two rows of five (four from 960), each cover whole;
   it comes in from the dark on the title's side (a plain fade: the index pages' field of dots made noise of pixel covers).
   Every cover on this page stands a step back, in one warm tone, so the page stays black, cream and gold; in the arcade the one
   under the pointer or a finger comes forward in its own colours.
   The wall has its own arrival (pl-on): seo.css's (v6-on) ends on "transform: none; filter: none" and holds it, so with motion
   on the wall stood in full colour and, on the Arabic page, its covers stayed mirrored (seen on the live page, 11-14). */
html.k-play { --wall: grayscale(.74) sepia(.36) brightness(.8) contrast(1.06); }
.pl-big .cg img { object-position: 50% 24%; filter: var(--wall); }
@media (prefers-reduced-motion: no-preference) {   /* no last frame: the arrival ends on the picture's own rules (and, on the Arabic page, on its own flip) */
  html.k-play .bigshot.collage .cg img { animation-name: pl-on; }
  html[dir="rtl"].k-play .bigshot.collage .cg img { animation-name: pl-on-r; }
}
@keyframes pl-on { from { transform: scale(1.05); filter: grayscale(1) sepia(.36) brightness(1.5) contrast(.75); } }
@keyframes pl-on-r { from { transform: scaleX(-1) scale(1.05); filter: grayscale(1) sepia(.36) brightness(1.5) contrast(.75); } }
@media (min-width: 960px) {
  html.k-play .bigshot.collage .cg { grid-template-columns: repeat(4, minmax(0, 1fr));
    -webkit-mask: linear-gradient(to right, transparent 3%, rgba(0, 0, 0, .3) 18%, #000 30%); -webkit-mask-composite: source-over;
    mask: linear-gradient(to right, transparent 3%, rgba(0, 0, 0, .3) 18%, #000 30%); mask-composite: add; }   /* the first column is a ghost (half lit, the letters at the foot of its covers read as cut words); the second is whole by its middle */
  html.k-play .bigshot.collage .cg img:nth-child(n+7) { display: block; }
  html.k-play .bigshot.collage .cg img:nth-child(5n) { display: none; }   /* four a row: the fifth of each row waits for a wider screen */
}
html[dir="rtl"].k-play .bigshot.collage .cg { direction: ltr; }   /* the mirrored wall keeps its first column — the faded one — on the title's side */
@media (min-width: 641px) {   /* the four numbers on one row at every width (the auto-fit grid dropped the fourth under the first near 1024) */
  html.k-play .stat-band.istats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 18px; }
}
@media (min-width: 641px) and (max-width: 1199px) { html.k-play .stat-band.istats span { font-size: 10px; letter-spacing: .06em; white-space: nowrap; } }
@media (min-width: 1200px) {
  html.k-play .bigshot.collage .cg { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  html.k-play .bigshot.collage .cg img:nth-child(5n) { display: block; }
}
.pl-big .cg img.face { background: #f6f1e7; }   /* a card face is a white card: cream, its corner index in view */
@media (max-width: 959px) {   /* a phone: the short strip of the other index pages — one row, three covers */
  html.k-play .intro:has(> .bigshot.collage) .bigshot { height: min(56vw, 300px); }
  html.k-play .intro:has(> .bigshot.collage) { padding-top: calc(min(56vw, 300px) - 24px); }
  html.k-play .bigshot.collage .cg { grid-template-rows: minmax(0, 1fr); }
  html.k-play .bigshot.collage .cg img:nth-child(n+4) { display: none; }
}
@media (min-width: 600px) and (max-width: 959px) {   /* a tablet: five covers in the strip, each nearly whole (three were cut to their middles) */
  html.k-play .bigshot.collage .cg { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  html.k-play .bigshot.collage .cg img:nth-child(-n+5) { display: block; }
}
@media (max-width: 640px) {   /* the four numbers on one row */
  html.k-play .stat-band.istats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 12px; margin: 20px 0 2px; }
  html.k-play .stat-band.istats > div, html.k-play .stat-band.istats > :last-child:nth-child(odd) { grid-column: auto; padding-top: 9px; }
  html.k-play .stat-band.istats b { font-size: 27px; }
  html.k-play .stat-band.istats span { font-size: 10px; letter-spacing: .08em; }
  html[lang="ar"].k-play .stat-band.istats span { font-size: 12px; letter-spacing: 0; }
}

/* ── the sections sit straight on the night, each under a chapter heading ── */
html.k-play .bento { display: block; }
html.k-play .bento > .tile { padding: 0; margin: 0 0 clamp(48px, 6vw, 88px); border-radius: 0 !important; background: none !important; box-shadow: none !important; border: 0; }
html.k-play .bento > .tile::before, html.k-play .bento > .tile::after { content: none; }
/* the chapter heading is the site's own (seo.css .blk > h2: the serif head on a tuning-dial tick rule) — "How it works" is
   one of those already, and the two chapters above it had a smaller head on a plain line */
html.k-play .bento > .tile > h2 { display: flex; align-items: baseline; gap: 14px; margin: 0 0 26px; padding-top: 30px; border-top: 0;
  font: 400 clamp(40px, 4.6vw, 72px)/1 var(--display) !important; letter-spacing: -.015em !important; text-transform: none !important; color: var(--ink) !important;
  background: repeating-linear-gradient(90deg, var(--gold-2) 0 1px, transparent 1px 9px) 0 0 / 145px 7px no-repeat,
              linear-gradient(90deg, var(--gold-2), var(--gold-hair) 40%, transparent) 0 0 / 100% 1px no-repeat; }
html[dir="rtl"].k-play .bento > .tile > h2 { background: repeating-linear-gradient(270deg, var(--gold-2) 0 1px, transparent 1px 9px) 100% 0 / 145px 7px no-repeat,
              linear-gradient(270deg, var(--gold-2), var(--gold-hair) 40%, transparent) 0 0 / 100% 1px no-repeat; }
html.k-play .bento > .tile > h2::before { content: none; }
html[lang="ar"].k-play .bento > .tile > h2 { font: 700 clamp(36px, 4vw, 60px)/1.3 var(--display-ar) !important; letter-spacing: 0 !important; }

html.k-play { --tbl-1: #1a1712; --tbl-2: #0c0b09; --tbl-3: #060605; --sq-l: #e2d7c2; --sq-d: #2c2822; --tint: #0a0908; }

/* The four games' cards are the second session's "scene cards" (a75af9a2), on this page's gold. */
/* ── the scenes: what each game is played with ── */
/* --tone: the card faces · --box / --wash: Doom's cover and its backdrop. Same functions lit and unlit, so the change eases. */
/* Round 7: the board waits a step back like the cards (--brd — at rest it stood at full cream, as if stuck under a pointer);
   Doom's box is in the wall's warm tone (--wall's numbers: the same cover hangs on the opening's wall), not grey — a grey box
   on black read as mud. */
.pl-sc { position: absolute; inset: 0; display: block; overflow: hidden; --tone: sepia(.46) saturate(.58) brightness(.96);
  --box: grayscale(.74) sepia(.36) brightness(.82) contrast(1.06); --wash: grayscale(1) brightness(.3); --brd: brightness(.76); }
.pl-card:hover .pl-sc, .pl-card:focus-within .pl-sc, .pl-card:active .pl-sc {
  --tone: sepia(0) saturate(1) brightness(1); --box: grayscale(0) sepia(0) brightness(1) contrast(1); --wash: grayscale(0) brightness(.46); --brd: brightness(1); }
.pl-sc img { display: block; max-width: none; background: none; }
.pl-tbl { background: radial-gradient(120% 95% at 62% 40%, var(--tbl-1), var(--tbl-2) 58%, var(--tbl-3)); }
.pl-wood { background: radial-gradient(100% 100% at 70% 30%, var(--tbl-1), var(--tbl-3) 78%); }
.pl-box { background: var(--tbl-3); }
/* a hand of cards, fanned from a point under it; the two cards the game is about are held up */
.pl-hand { position: absolute; inset-inline-end: var(--hx, 6%); bottom: var(--hy, 2%); height: var(--hh, 78%); aspect-ratio: 2 / 1; }
.pl-hand img { position: absolute; left: 50%; bottom: 0; height: 100%; width: auto; transform-origin: 50% 165%; --k: 0; --up: 0%;
  transform: translateX(-50%) rotate(calc(var(--k) * var(--spread, 11deg))) translateY(var(--up));
  filter: var(--tone) drop-shadow(0 4px 8px rgba(0, 0, 0, .5)); transition: transform .45s var(--ease, ease), filter .45s var(--ease, ease); }
.pl-hand img:nth-child(1) { --k: -2; } .pl-hand img:nth-child(2) { --k: -1; } .pl-hand img:nth-child(4) { --k: 1; } .pl-hand img:nth-child(5) { --k: 2; }
.pl-hand img.up { --up: -12%; }
/* a trick: four cards thrown to the middle of the table, the winner last */
.pl-trick { position: absolute; inset-inline-end: var(--tx, 34%); top: var(--ty, 50%); height: var(--th, 56%); aspect-ratio: 167 / 243; transform: translateY(-50%); }
.pl-trick img { position: absolute; inset: 0; width: 100%; height: 100%; transform: translate(var(--x), var(--y)) rotate(var(--a));
  filter: var(--tone) drop-shadow(0 4px 8px rgba(0, 0, 0, .5)); transition: transform .45s var(--ease, ease), filter .45s var(--ease, ease); }
.pl-trick img:nth-child(1) { --x: -62%; --y: -4%; --a: -28deg; } .pl-trick img:nth-child(2) { --x: -4%; --y: -30%; --a: 7deg; }
.pl-trick img:nth-child(3) { --x: 60%; --y: 4%; --a: 34deg; } .pl-trick img:nth-child(4) { --x: 6%; --y: 28%; --a: -9deg; }
/* the chess board, seen from above and a little turned: 8 × 8 squares, a8 light; a piece stands on file --f, rank --r */
.pl-board { position: absolute; inset-inline-end: var(--bx, -6%); top: var(--by, 8%); height: var(--bh, 150%); aspect-ratio: 1; border-radius: 1%;
  transform: rotate(var(--ba, -11deg)); transform-origin: 62% 26%;
  background: conic-gradient(var(--sq-d) 90deg, var(--sq-l) 0 180deg, var(--sq-d) 0 270deg, var(--sq-l) 0) 0 0 / 25% 25%;
  box-shadow: 0 0 0 5px #100e0b, 0 0 0 6px rgba(255, 255, 255, .2), 0 40px 80px -30px #000; filter: var(--brd, none);
  transition: transform .6s var(--ease, ease), filter .45s var(--ease, ease); }
html[dir="rtl"] .pl-board { --ba: 11deg; transform-origin: 38% 26%; }
.pl-board img { position: absolute; width: 12.5%; height: 12.5%; left: calc(var(--f) * 12.5%); top: calc((7 - var(--r)) * 12.5%); filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .35)); }
/* a box: the cover sharp, over a soft wash of itself (the cover is 400 px wide: never stretched) */
.pl-box .pl-wash { position: absolute; inset: -18%; width: 136%; height: 136%; object-fit: cover; filter: blur(26px) var(--wash); transition: filter .45s var(--ease, ease); }
.pl-box .pl-poster { position: absolute; inset-inline-end: var(--px, 7%); top: var(--py, 50%); height: var(--pz, 82%); width: auto; aspect-ratio: 400 / 508; border-radius: 6px;
  transform: translateY(-50%) rotate(var(--pa, 5deg)); filter: var(--box); box-shadow: 0 0 0 1px rgba(255, 255, 255, .2), 0 30px 50px -20px #000;
  transition: transform .45s var(--ease, ease), filter .45s var(--ease, ease); }
html[dir="rtl"] .pl-box .pl-poster { --pa: -5deg; }

/* ── a game: its scene, then its name, what kind of game it is, one line, the door.
      A phone: the scene on top, the words under it. Wider: the scene fills the card, the words stand on its leading side. ── */
.pl-shelf { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.pl-card { position: relative; isolation: isolate; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-panel, 16px); background: var(--tint, #0a0a0d);
  scroll-margin-top: calc(var(--hd, 64px) + 20px); transition: transform .3s var(--ease, ease), box-shadow .3s var(--ease, ease); }
.pl-card::before { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px var(--hair-2); transition: box-shadow .3s var(--ease, ease); }
.pl-card:hover, .pl-card:focus-within { transform: translateY(-3px); box-shadow: 0 26px 60px -34px color-mix(in srgb, var(--gold) 55%, transparent); }
.pl-card:hover::before, .pl-card:focus-within::before { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 55%, transparent); }
.pl-card:active { transform: translateY(-1px) scale(.995); }
.pl-pic { position: relative; display: block; height: 204px; overflow: hidden; }
.pl-pic::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, var(--tint, #0a0a0d) 0, transparent 30%); }
.pl-card:hover .pl-hand { --spread: 12.5deg; }
.pl-card:hover .pl-trick img:nth-child(4) { --y: 22%; --a: -4deg; }
.pl-card:hover .pl-board { --ba: -8deg; } html[dir="rtl"] .pl-card:hover .pl-board { --ba: 8deg; }
.pl-card:hover .pl-poster { --pa: 2deg; } html[dir="rtl"] .pl-card:hover .pl-poster { --pa: -2deg; }
.pl-txt { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; padding: 2px 16px 16px; }
.pl-txt h3 { margin: 0; font: 400 clamp(32px, 3.1vw, 46px)/1 var(--display); letter-spacing: -.01em; text-transform: none; color: var(--ink); }
.pl-txt h3 small { margin-inline-start: 8px; font: 600 .5em/1 var(--ar); letter-spacing: 0; color: var(--gold); }
html[lang="ar"] .pl-txt h3 { font: 700 clamp(28px, 2.7vw, 38px)/1.3 var(--display-ar); letter-spacing: 0; }
.pl-tags { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 0; }
.pl-tags span { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 99px; font: 400 11px/1 var(--pixel); letter-spacing: .06em; text-transform: uppercase;
  color: var(--dim); background: rgba(0, 0, 0, .3); box-shadow: inset 0 0 0 1px var(--hair-2); white-space: nowrap; }
html[lang="ar"] .pl-tags span { font: 600 12px/1 var(--ar); letter-spacing: 0; }
.pl-p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text); max-width: 46ch; }

/* the door: the whole card is its target (the scene's own link is hidden from keyboards and readers) */
.pl-go { display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 18px; border-radius: 99px; text-decoration: none;
  font: 600 14px/1 var(--sans); color: var(--ink); background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px var(--hair-2);
  transition: background .2s var(--ease, ease), color .2s var(--ease, ease); }
.pl-card .pl-go { margin-top: 4px; }
.pl-card .pl-go::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: var(--r-panel, 16px); }
.pl-go i { font-style: normal; font-size: 10px; color: var(--gold); transition: transform .25s var(--ease, ease); }
html[dir="rtl"] .pl-go i { transform: scaleX(-1); }
.pl-card:hover .pl-go, .pl-go:hover, .pl-go:focus-visible { background: var(--ink); color: #050403; }
.pl-card:hover .pl-go i, .pl-go:hover i, .pl-go:focus-visible i { color: #050403; transform: translateX(3px); }
html[dir="rtl"] .pl-card:hover .pl-go i, html[dir="rtl"] .pl-go:hover i, html[dir="rtl"] .pl-go:focus-visible i { transform: scaleX(-1) translateX(3px); }
.pl-go:focus-visible, .pl-key:focus-visible, .pl-tile:focus-visible, .pl-chip:focus-visible, .pl-more:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Under 720 px the scene is a band over the words, its subject in the middle (the band is 204 px high: a hand 78 % of it
   is 159 px, so half the hand's box is 159 px — and so on for each scene) */
@media (max-width: 719.98px) {
  .pl-card .pl-go { align-self: stretch; justify-content: space-between; min-height: 46px; }
  .pl-card .pl-hand { --hx: calc(50% - 159px); }
  .pl-card .pl-trick { --tx: calc(50% - 35px); --th: 50%; --ty: 56%; }
  .pl-card .pl-board { --bx: calc(50% - 194px); --by: 5%; --bh: 190%; }
  .pl-card .pl-poster { --px: calc(50% - 112px); --pz: 140%; --py: 76%; }   /* the box large, leaving by the band's foot: its title and its hero (whole and small, it was a grey rectangle) */
}
/* 720 and wider: the scene fills the card and the words stand on its leading side, over a shade */
@media (min-width: 720px) {
  .pl-card { min-height: 300px; justify-content: flex-end; }
  .pl-pic { position: absolute; inset: 0; z-index: -1; height: auto; }
  .pl-pic::after { background: linear-gradient(to right, var(--tint, #0a0a0d) 0, color-mix(in srgb, var(--tint, #0a0a0d) 90%, transparent) var(--s1, 34%), transparent var(--s2, 68%)); }
  html[dir="rtl"] .pl-pic::after { background: linear-gradient(to left, var(--tint, #0a0a0d) 0, color-mix(in srgb, var(--tint, #0a0a0d) 90%, transparent) var(--s1, 34%), transparent var(--s2, 68%)); }
  /* Round 7 — chess: the board is not shaded under the words, it STOPS before them (a mask on the scene): under the shade a
     light square still showed as a smudge, and a knight stood behind the name. */
  .g-chess .pl-pic { -webkit-mask-image: linear-gradient(to right, transparent var(--m1, 50%), #000 var(--m2, 70%)); mask-image: linear-gradient(to right, transparent var(--m1, 50%), #000 var(--m2, 70%)); }
  html[dir="rtl"] .g-chess .pl-pic { -webkit-mask-image: linear-gradient(to left, transparent var(--m1, 50%), #000 var(--m2, 70%)); mask-image: linear-gradient(to left, transparent var(--m1, 50%), #000 var(--m2, 70%)); }
  .g-chess .pl-pic::after { content: none; }
  .pl-txt { gap: 12px; padding: 24px; max-width: min(44ch, 50%); }
  .pl-card .pl-hand { --hx: -2%; --hy: 6%; --hh: 62%; }
  .pl-card .pl-trick { --tx: 15%; --ty: 46%; --th: 46%; }
  .pl-card .pl-board { --bx: -5%; --by: 7%; --bh: 150%; }
  .pl-card .pl-poster { --px: 9%; --pz: 78%; }
}
/* 1100: two cards a row — the scenes a size down, the hand leaving by the card's edge */
@media (min-width: 1100px) {
  .pl-shelf { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
  .pl-card { grid-column: span 6; min-height: clamp(350px, 29vw, 440px); }
  .pl-txt { padding: clamp(22px, 2vw, 30px); }
  .pl-card .pl-hand { --hx: -11%; --hh: 50%; }
  .pl-card .pl-trick { --tx: 16%; --ty: 40%; --th: 40%; }
  .pl-card .pl-board { --bx: -25%; --bh: 142%; }
  .pl-card .pl-poster { --px: -9%; --pz: 94%; --py: 58%; --pa: 6deg; }   /* the box leaves by the card's corner, as the hand does */
  html[dir="rtl"] .pl-card .pl-poster { --pa: -6deg; }
}
/* 1280: the row is uneven — a wide card and a narrow one, the other way round on the second row */
@media (min-width: 1280px) {
  /* Round 7: on the second row the board takes the wide card (its three tags on one line, its words clear of it) and Doom's
     tall box the narrow one — so the two names of a row stand on one line. `order` moves the chess card after Doom's on this
     row only; the page's own order (chess, then Doom) is what a reader, a phone and the keyboard get. */
  .g-leekha, .g-chess { grid-column: span 7; } .g-c400, .g-doom { grid-column: span 5; }
  .g-chess { order: 1; }
  .g-c400 .pl-txt, .g-doom .pl-txt { max-width: min(40ch, 54%); }
  .g-leekha .pl-txt { max-width: min(40ch, 44%); }   /* clear of the hand's first card */
  .pl-card .pl-hand { --hx: -5%; --hh: 58%; }
  .pl-card.g-chess .pl-board { --bx: -9%; }
}
/* Round 7 — two cards a row: their two names stand on one line, and so do the tags, the lines and the doors, whatever a
   language makes of their lengths (the words were stacked from each card's foot: a fourth line of text or a second row of
   tags lifted one name above its neighbour's — and over them the card's leading half stood empty). Each row of cards is four
   lines of the shelf's grid — the name, the tags, the line, the door — and a card takes them over (subgrid); the words' box
   dissolves (display: contents). The cards are as high as their words, so the four games fit one screen.
   The scenes are then measured on the card's WIDTH (cqw of the scene's box): a card's height now moves with its words — a
   language, a window — and a hand measured on it grew until it ran under them.
   A browser without subgrid (or without container units) keeps the cards as they are above. */
@supports (grid-template-rows: subgrid) and (width: 1cqw) {
  @media (min-width: 1100px) {
    .pl-card { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: subgrid; min-height: 0;
      padding: clamp(24px, 2.1vw, 32px); --tw: min(21rem, calc(50% - 16px)); }
    .g-leekha, .g-c400 { grid-row: 1 / span 4; } .g-chess, .g-doom { grid-row: 5 / span 4; }
    .pl-card .pl-txt { display: contents; }
    .pl-card .pl-txt > * { grid-column: 1; max-width: var(--tw); }
    .pl-card .pl-txt > h3 { grid-row: 1; } .pl-card .pl-tags { grid-row: 2; } .pl-card .pl-p { grid-row: 3; }
    .pl-card .pl-go { grid-row: 4; justify-self: start; margin-top: 0; }
    .pl-card .pl-sc { container-type: size; }
    .pl-card .pl-hand { --hh: min(31cqw, 82cqh); --hy: 4%; --hx: -9%; }
    .pl-card .pl-trick { --th: min(27cqw, 52cqh); --ty: 47%; }
    .pl-card .pl-board { --bh: 178%; --by: 6%; }
    .pl-card .pl-poster { --pz: min(104cqh, 60cqw); --py: 60%; }
  }
  @media (min-width: 1280px) {
    .g-c400, .g-doom { --tw: min(19.5rem, calc(54% - 12px)); }
    .g-leekha { --tw: min(19.5rem, 43%); }
    .pl-card .pl-hand { --hh: min(30cqw, 82cqh); --hx: -5%; }
  }
}

/* ── light on scroll (play.js — where nothing can hover): html.pl-lite lowers the unlit pictures one more step, and the card
      across the middle of the screen is .lit — its colours, the gold frame, the scene's small move, its door filled: what a
      pointer does to it on a desk. The wall's covers are .lit while they pass the middle (rule beside their own). ── */
html.pl-lite .pl-sc { --tone: sepia(.5) saturate(.5) brightness(.76); --box: grayscale(.8) sepia(.36) brightness(.68) contrast(1.06); --wash: grayscale(1) brightness(.24); --brd: brightness(.7); }
html.pl-lite .pl-card.lit .pl-sc, html.pl-lite .pl-card:active .pl-sc {
  --tone: sepia(0) saturate(1) brightness(1); --box: grayscale(0) sepia(0) brightness(1) contrast(1); --wash: grayscale(0) brightness(.46); --brd: brightness(1); }
.pl-card.lit { box-shadow: 0 26px 60px -34px color-mix(in srgb, var(--gold) 55%, transparent); }
.pl-card.lit::before { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 60%, transparent); }
.pl-card.lit .pl-hand { --spread: 12.5deg; }
.pl-card.lit .pl-trick img:nth-child(4) { --y: 22%; --a: -4deg; }
.pl-card.lit .pl-board { --ba: -8deg; } html[dir="rtl"] .pl-card.lit .pl-board { --ba: 8deg; }
.pl-card.lit .pl-poster { --pa: 2deg; } html[dir="rtl"] .pl-card.lit .pl-poster { --pa: -2deg; }
.pl-card.lit .pl-go { background: var(--ink); color: #050403; }
.pl-card.lit .pl-go i { color: #050403; }

/* ── the deal (round 8 — owner 11-15, again: "enhance the games page aesthetics"): a card's scene is LAID as the card comes
      into view — the hand fans out of a closed deck, the trick's four cards land one after the other (the winner last), the
      pieces come down on the board rank by rank, the box is put down. Then, under a pointer or across the middle of a phone,
      a lamp comes on over the table (a pool of the page's gold) and the hand opens a size wider.
      html.pl-deal is set in the page's own head (before anything paints; only where the scroll can be watched and motion is
      wanted — and taken back after 3.5 s if play.js never came); play.js marks a card .seen once a third of it is in view.
      Until then each piece waits in its arrival's first frame: the arrival is there from the start, PAUSED — a rule that
      changed the piece's transform on .seen would start its transition under the arrival. No class: the scenes as they are.
      The long selectors outrank seo.css's "a late picture develops" (html.ph-js img.ld.late — ph-dev), which these pictures
      would otherwise get in place of their arrival. ── */
.pl-trick img:nth-child(1) { --n: 0; } .pl-trick img:nth-child(2) { --n: 1; } .pl-trick img:nth-child(3) { --n: 2; } .pl-trick img:nth-child(4) { --n: 3.5; }
html.pl-deal .pl-shelf .pl-card .pl-sc .pl-hand img { animation: pl-fan .7s var(--ease, ease) backwards paused; animation-delay: calc((var(--k) + 2) * 60ms + 60ms); }
html.pl-deal .pl-shelf .pl-card .pl-sc .pl-trick img { animation: pl-throw .55s var(--ease, ease) backwards paused; animation-delay: calc(var(--n, 0) * 130ms + 60ms); }
html.pl-deal .pl-shelf .pl-card .pl-sc .pl-board { animation: pl-set .8s var(--ease, ease) backwards paused; }
html.pl-deal .pl-shelf .pl-card .pl-sc .pl-board img { animation: pl-drop .45s var(--ease, ease) backwards paused; animation-delay: calc(260ms + (7 - var(--r)) * 55ms + var(--f) * 22ms); }
html.pl-deal .pl-shelf .pl-card .pl-sc .pl-poster { animation: pl-put .8s var(--ease, ease) backwards paused; animation-delay: 80ms; }
html.pl-deal .pl-shelf .pl-card.seen .pl-sc :is(.pl-hand img, .pl-trick img, .pl-board, .pl-board img, .pl-poster) { animation-play-state: running; }
@keyframes pl-fan { from { transform: translateX(-50%) rotate(calc(var(--k) * 1.2deg)) translateY(10%); } }
@keyframes pl-throw { from { transform: translate(calc(var(--x) * 2.6), calc(var(--y) * 2.6 - 30%)) rotate(calc(var(--a) * 2.2)) scale(1.12); opacity: 0; } }
@keyframes pl-set { from { transform: rotate(calc(var(--ba, -11deg) * 1.5)) translateY(4%); opacity: 0; } }
@keyframes pl-drop { from { transform: translateY(-60%); opacity: 0; } }
@keyframes pl-put { from { transform: translateY(-62%) rotate(calc(var(--pa, 5deg) * 2.6)) scale(1.05); opacity: 0; } }
/* the lamp: under the pieces (a ::before of the scene), on the scene's subject; Doom's box has its own light (its wash) */
.pl-tbl::before, .pl-wood::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s var(--ease, ease);
  background: radial-gradient(60% 80% at var(--lx, 50%) 46%, rgba(255, 255, 255, .2), rgba(255, 255, 255, .06) 46%, transparent 74%); }
.pl-card:hover .pl-sc::before, .pl-card:focus-within .pl-sc::before, .pl-card.lit .pl-sc::before { opacity: 1; }
@media (min-width: 720px) { .pl-sc { --lx: 72%; } html[dir="rtl"] .pl-sc { --lx: 28%; } }
@media (prefers-reduced-motion: no-preference) {   /* the hand's move, a size up: it opens wider and its two cards rise; on a phone it waits a little closed */
  .pl-card:hover .pl-hand, .pl-card.lit .pl-hand { --spread: 13.5deg; }
  .pl-card:hover .pl-hand img.up, .pl-card.lit .pl-hand img.up { --up: -18%; }
  html.pl-lite .pl-card:not(.lit) .pl-hand { --spread: 9deg; }
  html.pl-lite .pl-card:not(.lit) .pl-hand img.up { --up: -7%; }
}

/* the leaderboard: one lit line under the games — the cup, the season, what a win is worth, the door.
   Round 7: the three scores are figures (the opening's numbers, smaller) — on a wide screen the strip was a small cup, a
   sentence and 600 px of nothing; the cup stands a step back like every picture here (its green was the page's only one). */
.pl-champs { display: grid; grid-template-columns: 54px minmax(0, 1fr); align-items: center; gap: 14px 16px; margin-top: 34px; padding: 16px;
  border-radius: var(--r-panel, 16px); background: linear-gradient(180deg, #131114, #0b0a0d 80%); box-shadow: inset 0 0 0 1px var(--gold-hair); }
.pl-cup { display: block; aspect-ratio: 2 / 3; border-radius: var(--r-sm, 8px); overflow: hidden; }
.pl-cup img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.35) brightness(.9); transition: filter .35s var(--ease, ease); }
.pl-champs:hover .pl-cup img, .pl-champs:focus-within .pl-cup img, .pl-champs:active .pl-cup img { filter: none; }
.pl-pts { grid-column: 1 / -1; display: flex; gap: 0 14px; margin: 0; }
.pl-pts span { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding-top: 9px; border-top: 1px solid var(--hair);
  font: 600 10px/1.25 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.pl-pts b { font: 400 30px/1 var(--display); letter-spacing: -.01em; color: var(--ink); direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] .pl-pts b { text-align: right; }
html[lang="ar"] .pl-pts span { font: 600 12.5px/1.3 var(--ar); letter-spacing: 0; text-transform: none; }
.pl-champs h3 { margin: 0 0 4px; font: 400 clamp(22px, 2vw, 28px)/1.05 var(--display); letter-spacing: -.01em; text-transform: none; color: var(--ink); }
.pl-champs h3 small { margin-inline-start: 8px; font: 700 .8em/1.1 var(--display-ar); letter-spacing: 0; color: var(--gold); }
html[lang="ar"] .pl-champs h3 { font: 700 clamp(22px, 2.2vw, 28px)/1.3 var(--display-ar); letter-spacing: 0; }
.pl-champs .pl-go { grid-column: 1 / -1; justify-content: space-between; min-height: 44px; }

/* ── the arcade: one line and a door; play.js hangs the posters under it ── */
.pl-arc-top { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }   /* round 7: the door under the line, on the page's edge (beside it, it lined up with nothing) */
.pl-arc-top .pl-p { font-size: clamp(16px, 1.3vw, 19px); color: var(--text); max-width: 52ch; }
.pl-wall { margin-top: 24px; }
.pl-wall[hidden] { display: none; }
.pl-bar { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); }
.pl-bar::-webkit-scrollbar { display: none; }
.pl-chip { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border: 0; border-radius: 99px; cursor: pointer; white-space: nowrap;
  font: 400 13.5px/1 var(--sans); color: var(--ink); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--hair-2);
  transition: background .2s var(--ease, ease), color .2s var(--ease, ease); }
.pl-chip small { font: 400 11px/1 var(--mono); color: var(--faint); }
.pl-chip:hover { background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px var(--gold-2); }
.pl-chip[aria-pressed="true"] { color: #050403; background: var(--ink); box-shadow: none; }
.pl-chip[aria-pressed="true"] small { color: rgba(5, 4, 3, .6); }
.pl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 10px; }
.pl-tile { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; text-decoration: none; color: var(--ink);
  animation: pl-rise .5s var(--ease, ease) backwards; animation-delay: calc(var(--n, 0) * 26ms); }   /* --n: its place among the posters that just came in (play.js) */
@keyframes pl-rise { from { opacity: 0; transform: translateY(14px); } }
.pl-tile[hidden] { display: none; }
.pl-tile .pl-cv { position: relative; display: block; aspect-ratio: 2 / 3; border-radius: var(--r-sm, 8px); overflow: hidden; background: #0d0c0f; box-shadow: 0 0 0 1px var(--hair), 0 12px 24px -16px #000;
  transition: transform .3s var(--ease, ease), box-shadow .3s var(--ease, ease); }
/* the covers stand a step back (their own colours, lowered) and come forward under the pointer or a finger */
.pl-tile .pl-cv img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.62) sepia(.3) brightness(.84) contrast(1.05); transition: filter .35s var(--ease, ease); }
.pl-tile:hover .pl-cv img, .pl-tile:focus-visible .pl-cv img, .pl-tile:active .pl-cv img { filter: none; }
html.pl-lite .pl-tile .pl-cv img { filter: grayscale(.78) sepia(.3) brightness(.7) contrast(1.05); }   /* light on scroll: lower, until it passes the middle */
html.pl-lite .pl-tile.lit .pl-cv img, html.pl-lite .pl-tile:active .pl-cv img { filter: none; }
.pl-tile .pl-cv::after { content: "▶"; position: absolute; inset-inline-end: 8px; bottom: 8px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: 10px;
  color: #050403; background: var(--ink); opacity: 0; transform: translateY(6px); transition: opacity .25s var(--ease, ease), transform .25s var(--ease, ease); }
.pl-tile:hover .pl-cv, .pl-tile:focus-visible .pl-cv { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--gold), 0 22px 36px -22px rgba(255, 255, 255, .6); }
.pl-tile:hover .pl-cv::after, .pl-tile:focus-visible .pl-cv::after { opacity: 1; transform: none; }
.pl-tile b { font: 600 13px/1.25 var(--sans); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pl-tile small { margin-top: -4px; font: 600 9.5px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-2); }
.pl-more { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 46px; margin-top: 22px; border: 0; border-radius: 99px; cursor: pointer;
  font: 600 14px/1 var(--sans); color: var(--ink); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--hair-2); }
.pl-more:hover { background: var(--ink); color: #050403; }
.pl-more[hidden] { display: none; }
/* its console first, then its name: the small gold line sits right under every cover, whatever the length of the name
   (under names of one and two lines the consoles stood at two heights) */
.pl-tile small { order: 1; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-tile b { order: 2; margin-top: -4px; }
@media (max-width: 559px) { .pl-tile small { font-size: 9px; letter-spacing: .05em; } }   /* three a row: the longest console name still fits its line */

/* ── how it works: three numbers, the way the opening counts ── */
.pl-steps { counter-reset: pl; display: grid; gap: 0; margin: 0 0 8px; padding: 0; list-style: none; }
.pl-steps li { counter-increment: pl; display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 14px; align-items: center; padding: 16px 0; border-top: 1px solid var(--hair);
  font-size: 17px; line-height: 1.45; color: var(--ink); }
.pl-steps li:first-child { border-top: 0; padding-top: 0; }
.pl-steps li::before { content: counter(pl); font: 400 48px/1 var(--display); letter-spacing: -.02em; color: var(--gold); }

/* ── the closing block: the site's own, without the rooms ── */
.pl-gate { margin-top: clamp(56px, 8vw, 110px); }
.pl-gate .gate-p { margin-bottom: 30px; }

@media (min-width: 560px) {
  .pl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 14px; }
  .pl-champs { grid-template-columns: 54px minmax(0, 1fr) auto; padding: 16px 20px; }
  .pl-champs .pl-go { grid-column: 3; grid-row: 1; min-height: 40px; }
  .pl-pts { gap: 0 22px; }
  .pl-pts span { flex: 0 1 170px; }   /* three figures, not three columns the strip's whole width */
}
@media (min-width: 720px) {   /* round 7: the number beside its line (over it, each column was a number and a void, and the three lines did not start level) */
  .pl-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 34px; }
  .pl-steps li, .pl-steps li:first-child { grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; align-content: start; padding: 18px 0 0; border-top: 1px solid var(--hair); }
  .pl-steps li::before { font-size: 60px; line-height: .86; }
  .pl-steps li span { padding-top: 5px; max-width: 32ch; }
}
html.k-play .pl-steps + details.info-fold { margin-top: clamp(22px, 3vw, 40px); }   /* the fold is the page's, not the first step's */
@media (min-width: 900px) {
  .pl-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 26px 16px; }
  .pl-more { width: auto; padding: 0 28px; margin-inline: auto; }
  .pl-bar { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; }
}
@media (min-width: 1200px) {
  .pl-champs { grid-template-columns: 64px minmax(0, 1fr) auto auto; gap: 14px clamp(22px, 2.6vw, 40px); padding: 18px 24px; }   /* one line: the cup, the season, the three scores, the door */
  .pl-pts { grid-column: 3; grid-row: 1; gap: 0 clamp(16px, 2vw, 30px); }
  .pl-pts span { flex: none; min-width: 88px; max-width: 13ch; }   /* a long label (French) takes two lines, not the season's room */
  .pl-pts b { font-size: 34px; }
  .pl-champs .pl-go { grid-column: 4; }
  .pl-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .pl-go { min-height: 42px; padding: 0 18px; font-size: 14.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .pl-card, .pl-card::before, .pl-sc::before, .pl-go, .pl-go i, .pl-hand img, .pl-trick img, .pl-board, .pl-poster, .pl-wash, .pl-cup img, .pl-tile .pl-cv, .pl-tile .pl-cv img, .pl-tile .pl-cv::after { transition: none; }
  .pl-card:hover, .pl-tile:hover .pl-cv { transform: none; }
  .pl-card.lit .pl-hand { --spread: 11deg; } .pl-card.lit .pl-trick img:nth-child(4) { --y: 28%; --a: -9deg; }   /* lit by the scroll: the colours come, nothing moves */
  .pl-card.lit .pl-board { --ba: -11deg; } html[dir="rtl"] .pl-card.lit .pl-board { --ba: 11deg; }
  .pl-card.lit .pl-poster { --pa: 5deg; } html[dir="rtl"] .pl-card.lit .pl-poster { --pa: -5deg; }
  .pl-tile { animation: none; }
}
