/* The games' slides (backend/lib/home.js gameSlide): a game's clip box and its card, solid in its style's colour. The
   home's hero carousel draws them (site.js wireHeroGames) and, on a phone, its feed of games; the games page draws them
   for its phone feed (games.js). Both pages load this file; the phone feed's own rules are feed.css, which each page
   loads only where its feed shows (its <link media>). Scripts: slides.js. */
:is(.home, .gp-body) .hero-games { position: relative; min-width: 0; }
/* the track is a size container: each slide's clip box takes its video's own shape from it, the other two boxes what is
   left, so the play is never cut nor barred (the user, 2026-10-23: «no quiero que el gameplay se vea recortado, puedes
   recortar las cajas para que eso no pase») */
:is(.home, .gp-body) .hg-track { position: relative; display: flex; gap: var(--gap); height: 100%; overflow-x: auto; overscroll-behavior-x: contain; container-type: size;
  scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--r-lg); }
:is(.home, .gp-body) .hg-track::-webkit-scrollbar { display: none; }
:is(.home, .gp-body) .hg-slide { flex: 0 0 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: var(--gap);
  scroll-snap-align: start; scroll-snap-stop: always; }
:is(.home, .gp-body) .hg-slide.is-port { grid-template-columns: min(calc(100cqh * 9 / 16), calc(100cqw - 190px)) minmax(0, 1fr); }   /* an upright clip: 9:16 of the height */
:is(.home, .gp-body) .hg-slide.is-land { grid-template-rows: min(calc(100cqw * 9 / 16), calc(100cqh - 170px)) minmax(0, 1fr); }    /* a landscape clip: 16:9 of the width */
:is(.home, .gp-body) .hg-box { position: relative; overflow: hidden; border-radius: var(--r-lg); min-width: 0; min-height: 0; }
/* the clip's and the name's box go to the game (site.js wireHeroGames): a hand, and a lime edge on hover */
:is(.home, .gp-body) .hg-box.is-link { cursor: pointer; transition: box-shadow 0.18s var(--ease); }
/* (no frame on hover: the user, 2026-10-24, «ese marco del hover no me gusta, elimínalo») */
:is(.home, .gp-body) .is-port .hg-clip { grid-column: 1; grid-row: 1 / 3; }
:is(.home, .gp-body) .is-port .hg-card { grid-column: 2; grid-row: 1 / 3; }
:is(.home, .gp-body) .is-land .hg-clip { grid-column: 1 / 3; grid-row: 1; }
:is(.home, .gp-body) .is-land .hg-card { grid-column: 1 / 3; grid-row: 2; }
:is(.home, .gp-body) .hg-clip { background: #0B0B11; --clip-fit: contain; }   /* (--clip-fit: its loading cover's picture, whole like the clip: site.css .clip-cover) */
/* (a box a hair off its clip's shape: the clip whole over its own poster, blurred) */
:is(.home, .gp-body) .hg-clip::before { content: ''; position: absolute; inset: -24px; background: var(--poster, none) center / cover; filter: blur(22px) brightness(0.5); }
:is(.home, .gp-body) .hg-clip video, :is(.home, .gp-body) .hg-clip > img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: contain; display: block; }
/* (a picture fills its box: the user, 2026-11-25, «las imágenes siempre rellenen los containers»; a clip stays whole) */
:is(.home, .gp-body) .hg-clip > img { object-fit: cover; }
/* the game in one card, solid in its style's colour (the user, 2026-10-24: «vamos a unir esas 2 cajas y la dejamos de color
   sólido»): at its foot its icon right above its name (the user, 2026-10-25: the icon down by the name, not alone at the top),
   what it is, where it plays and Play */
/* (its colour: game.json "cardColor", one that does not fight its icon — the user, 2026-10-25, «déjalos todos un color sólido,
   solo que no compita con el ícono»; else its style's) */
:is(.home, .gp-body) .hg-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px; background: var(--c, var(--violet)); color: var(--night); }
:is(.home, .gp-body) .hg-icon { width: 52px; height: 52px; border-radius: 15px; box-shadow: 0 6px 18px rgba(19, 19, 27, 0.28); margin-top: auto; margin-bottom: 2px; }
:is(.home, .gp-body) .hg-card b { margin-top: auto; font-family: var(--font-display); font-weight: 600; font-size: 30px; line-height: 34px; }
:is(.home, .gp-body) .hg-icon + b { margin-top: 0; }
:is(.home, .gp-body) .hg-card p { font-size: 16px; line-height: 23px; font-weight: 600; margin: 0; }
/* Play, and Info beside it (the game's page, as Apple TV's and Netflix's) */
:is(.home, .gp-body) .hg-acts { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
:is(.home, .gp-body) .hg-info { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: var(--night); background: rgba(19, 19, 27, 0.14);
  transition: background-color 0.18s var(--ease), transform 0.18s var(--ease); }
:is(.home, .gp-body) .hg-info svg { width: 26px; height: 26px; }
:is(.home, .gp-body) .hg-info:hover { background: rgba(19, 19, 27, 0.24); }
:is(.home, .gp-body) .hg-info:active { transform: scale(0.94); }
:is(.home, .gp-body) .hg-info:focus-visible { outline: 3px solid var(--night); outline-offset: 3px; }
/* a landscape game's card is wide and short: the icon, then its words with Play and Info under them, where it plays at the
   right (the user, 2026-10-25: «intercambia estos pills para que quede play y info a la izquierda») */
:is(.home, .gp-body) .is-land .hg-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto 1fr; column-gap: 18px; row-gap: 8px; align-items: start; }
:is(.home, .gp-body) .is-land .hg-icon { grid-column: 1; grid-row: 1 / 4; margin: 0; }
:is(.home, .gp-body) .is-land .hg-card b { grid-column: 2 / 4; grid-row: 1; margin: 0; }
:is(.home, .gp-body) .is-land .hg-card p { grid-column: 2 / 4; grid-row: 2; max-width: 64ch; }   /* (its words across the card, so the row under them breathes: the user, 2026-10-25) */
:is(.home, .gp-body) .is-land .hg-card .hg-pf { grid-column: 3; grid-row: 3; align-self: end; justify-self: end; }
:is(.home, .gp-body) .is-land .hg-card .hg-acts { grid-column: 2; grid-row: 3; align-self: end; margin: 0; }
:is(.home, .gp-body) .hg-slide .hg-card { container-type: size; }   /* (its size is the grid's: a short one sets its words smaller) */
@container (max-height: 245px) { :is(.home, .gp-body) .hg-card p { font-size: 14.5px; line-height: 20px; } :is(.home, .gp-body) .hg-card b { font-size: 26px; line-height: 30px; } }
:is(.home, .gp-body) .hg-pf { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
:is(.home, .gp-body) .hg-pf li { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 6px; border-radius: 999px; background: rgba(19, 19, 27, 0.12); font-size: 12px; font-weight: 700; }
:is(.home, .gp-body) .hg-pf svg { width: 18px; height: 18px; }

/* what this player has done in the game (mine.js), under its name: on the card's own colour, so on Night */
.hg-card .gp-mine { display: inline-flex; align-items: center; gap: 4px; align-self: start; justify-self: start; width: max-content; padding: 2px 10px 2px 8px; border-radius: 999px;
  font-size: 14px; font-weight: 700; line-height: 22px; color: #D2FF4D; background: rgba(19, 19, 27, 0.86); }
.hg-card .gp-mine.is-new { padding: 2px 10px; color: #FAF7F2; }

/* what is happening right now (activity.js): how many are playing and, one after another, the takes that just ended */
.live-now { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 20px; min-height: 36px; width: 100%; max-width: 100%; min-width: 0; font-size: 15px; line-height: 22px; color: var(--ivory, #FAF7F2); }
.live-now[hidden] { display: none; }
.live-count { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; font-weight: 700; background: rgba(19, 19, 27, 0.55); white-space: nowrap; }
.live-count::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #4BE38A; box-shadow: 0 0 0 0 rgba(75, 227, 138, 0.7); animation: live-dot 2.2s ease-out infinite; }
.live-line { min-width: 0; flex: 1 1 220px; max-width: 100%; overflow: hidden; }
.live-row { display: flex; align-items: center; gap: 8px; min-width: 0; animation: live-in 0.45s ease-out; }
.live-who { flex: none; display: inline-flex; }
.live-words { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-row small { flex: none; opacity: 0.7; font-size: 13px; white-space: nowrap; }
.gp-intro .live-now { margin-top: 0; color: var(--tx-hi, #FAF7F2); }
.gp-intro .live-count { background: rgba(250, 247, 242, 0.08); }
/* «3 playing» on a game */
.gp-live { display: inline-flex; align-items: center; gap: 6px; justify-self: start; align-self: start; width: max-content; padding: 2px 10px; border-radius: 999px; font-size: 14px; font-weight: 700; line-height: 22px;
  color: #4BE38A; background: rgba(19, 19, 27, 0.86); }
.gp-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; justify-self: start; align-self: start; max-width: 100%; }
.gp-pills:empty { display: none; }
/* on a slide's card (feed.css: one row, "icon name info") the pills are a row of their own, the card's whole width: left to
   the grid they fell into the icon's column, which grew to their width and left the name one letter wide (the user, on a
   phone, 2026-11-19: «mira como se ve en mobile esos containers») */
:is(.home, .gp-body) .hg-card .gp-pills { grid-column: 1 / -1; }
/* a pill's tip (tip.js): one floating line on <body>, over the pill and over whatever is around it — never inside the
   card, which would clip it (the user, 2026-11-19: «que vayan por arriba del pill y que se sobrepongan, que no se corten
   por el container»); under the pill only when there is no room above */
[data-tip] { cursor: help; }
[data-tip]:focus-visible { outline: 3px solid var(--lime, #D2FF4D); outline-offset: 2px; }
.pab-tip { position: fixed; left: 0; top: 0; z-index: 9000; width: max-content; max-width: min(260px, calc(100vw - 24px)); box-sizing: border-box; padding: 8px 12px; border-radius: 12px;
  background: #FAF7F2; color: #13131B; font: 600 13px/18px Outfit, system-ui, sans-serif; white-space: normal; text-align: left; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity 0.15s, transform 0.15s, visibility 0.15s; pointer-events: none; }
.pab-tip::after { content: ''; position: absolute; left: var(--tip-arrow, 50%); top: 100%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 2px; background: inherit; transform: rotate(45deg); }
.pab-tip.is-under { transform: translateY(-4px); }
.pab-tip.is-under::after { top: 0; }
.pab-tip.is-on { opacity: 1; visibility: visible; transform: none; }
@media (prefers-reduced-motion: reduce) { .pab-tip { transition: none; transform: none; } }
.gp-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
/* a phone: the number, then the line under it, in the middle like the hero's words */
@media (max-width: 599px) {
  .live-now { justify-content: center; }
  .live-line { flex: 1 1 100%; }
  .live-row { justify-content: center; flex-wrap: wrap; row-gap: 2px; }
  .live-words { white-space: normal; text-align: center; flex: 1 1 100%; order: 2; }
  .live-row small { order: 3; flex: 1 1 100%; text-align: center; }
}
@keyframes live-dot { 0% { box-shadow: 0 0 0 0 rgba(75, 227, 138, 0.7); } 70%, 100% { box-shadow: 0 0 0 8px rgba(75, 227, 138, 0); } }
@keyframes live-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .live-count::before, .live-row { animation: none; } }

/* a slide's pills (activity.js «n playing now», mine.js stars) on its clip, at the bottom left, clear of Share at the bottom
   right — the name's card keeps one height on every slide (the user, 2026-11-26) */
:is(.home, .gp-body) .hg-clip > .gp-pills { position: absolute; left: 14px; bottom: 14px; z-index: 3; max-width: calc(100% - 90px); }
:is(.home, .gp-body) .hg-clip > .gp-pills > * { padding: 5px 12px; line-height: 22px; font-size: 14px; font-weight: 700; border-radius: 999px; background: rgba(19, 19, 27, 0.82);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 0 0 1px rgba(250, 247, 242, 0.12), 0 4px 12px rgba(0, 0, 0, 0.35); }
:is(.home, .gp-body) .hg-clip > .gp-pills > .gp-mine { display: inline-flex; align-items: center; gap: 4px; padding-left: 10px; color: #D2FF4D; }
