/* Public home as a bento grid: the page is a column of dark panels, each a grid of rounded tiles of different sizes.
   Tiles are solid brand blocks (lime, violet, coral, cyan, pink, ivory) with night text and big numbers or short
   headlines, or images edge to edge with a solid label. Same type as the rest of the site: DynaPuff 600 for titles and
   big numbers, Outfit for text. Everything here is scoped to body.home so the other public pages are untouched. */
.home { --panel: var(--bg-1); --tile-dark: var(--bg-2); --gap: 16px; --row: 264px; }
.home [hidden] { display: none !important; }
.home .bento-page { display: flex; flex-direction: column; gap: 24px; padding-top: 4px; padding-bottom: 48px; }

/* ---------- panels and tiles ---------- */
.home .panel { background: var(--panel); border-radius: 32px; padding: var(--gap); scroll-margin-top: 16px; }
.home .panel-head { display: flex; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; padding: 16px 12px 24px; }
.home .panel-head > div:first-child { flex: 1 1 320px; }
.home .panel-head h2 { font-size: 40px; line-height: 46px; }
.home .sub { font-size: 18px; line-height: 28px; color: var(--tx-mid); margin-top: 8px; }
.home .panel[hidden], .home .tile[hidden] { display: none; }   /* (a panel or a tile switched off for now) */
.home .bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.home .tile { position: relative; overflow: hidden; border-radius: var(--r-lg); min-width: 0; background: var(--tile-dark); color: var(--ivory); }
.home a.tile { text-decoration: none; display: block; transition: transform 0.2s var(--ease); }
.home a.tile:hover { transform: translateY(-3px); }

/* solid blocks: night text on a brand colour */
.home .t-lime, .home .t-limefill { background: var(--lime); color: var(--night); }
.home .t-coral { background: #FC826B; color: var(--night); }
.home .t-cyan { background: var(--cyan); color: var(--night); }
.home .t-pink { background: var(--pink); color: var(--night); }
.home .t-violet { background: var(--violet); color: var(--night); }
.home .t-ivory { background: var(--ivory); color: var(--night); }
.home .t-ivory h2, .home .t-ivory h3, .home .t-ivory b { color: var(--night); }
.home .t-dark, .home .t-night2 { background: var(--tile-dark); }
/* the lime focus ring disappears on lime: use night there */
.home .t-lime:focus-visible, .home .t-lime :focus-visible, .home .t-limefill :focus-visible { outline-color: var(--night); }

/* small tag chips (sentence case, never a block in capitals) */
.home .tag-chip { display: inline-flex; align-items: center; align-self: flex-start; min-height: 30px; padding: 0 12px; border-radius: 999px; font-size: 14px; font-weight: 700; line-height: 18px;
  background: rgba(19, 19, 27, 0.12); color: inherit; letter-spacing: 0; text-transform: none; }
.home .tag-chip.lime { background: var(--lime); color: var(--night); }
.home .tag-chip.violet { background: rgba(164, 123, 255, 0.2); color: var(--violet-soft); }
.home .tag-chip.cyan { background: rgba(77, 227, 255, 0.16); color: var(--cyan); }
.home .panel-head .tag-chip { background: var(--bg-2); color: var(--tx-mid); min-height: 36px; padding: 0 16px; }

/* round dark arrow button (≥ 48 px) */
.home .round { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--night); color: var(--lime); display: grid; place-items: center; font-size: 22px; font-weight: 700; line-height: 1; border: 0; transition: transform 0.18s var(--ease); }
.home .round.lime { background: var(--lime); color: var(--night); }
.home button.round { cursor: pointer; font-family: var(--font); }
.home a.tile:hover .round, .home button.round:hover { transform: translateX(3px); }
.home a.tile:hover .round.is-down { transform: translateY(3px); }   /* (a way down the page: it nods down) */

/* big numbers */
.home .big-num { font-family: var(--font-display); font-weight: 600; font-size: 72px; line-height: 72px; font-variant-numeric: tabular-nums; }

/* ---------- hero cluster ---------- */
.home .hero-bento { grid-template-rows: minmax(var(--row), auto) minmax(var(--row), auto) auto; }
.home .t-hero { grid-column: 1 / 3; grid-row: 1 / 3; background: linear-gradient(150deg, #7650E6 0%, #6B47D6 55%, #5536B8 100%); padding: 40px;
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }   /* centred (the user, 2026-10-23) */
.home .t-hero h1 { font-size: 64px; line-height: 68px; color: var(--ivory); margin-bottom: 20px; max-width: 9em; }
.home .t-hero .lead { font-size: 18px; line-height: 28px; color: var(--ivory); opacity: 0.92; margin-bottom: 28px; max-width: 34ch; text-wrap: balance; }
.home .t-art { grid-column: 3; grid-row: 1 / 3; background: var(--violet-deep); }
.home .t-art img, .home .t-door img, .home .t-style > img, .home .t-game .shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.home .t-art img { object-position: 46% 50%; }
/* the hero's gameplay clip (frontend/site/clip.js; its buttons: site.css), the way to the game below */
.home .t-video { background: #0B0B11; }
.home .t-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; display: block; }
.home .t-video::after { content: ''; position: absolute; inset: auto 0 0; height: 38%; background: linear-gradient(180deg, rgba(19, 19, 27, 0), rgba(19, 19, 27, 0.7)); pointer-events: none; }
.home .vid-game:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.home .vid-game { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 18px; border-radius: 999px; background: rgba(19, 19, 27, 0.88); color: var(--ivory); text-decoration: none; }
.home .vid-game b { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1.1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home .vid-game .round { width: 48px; height: 48px; font-size: 20px; }
.home .vid-game:hover .round { transform: translateX(3px); }
/* the games' carousel in the hero's right half (backend/lib/home.js heroGames, site.js wireHeroGames): a slide per game,
   three boxes each — an upright game's clip tall on the left and its two boxes on the right; a landscape game's clip
   wide on top and its two boxes below */
.home .hero-games { grid-column: 3 / 5; grid-row: 1 / 3; }   /* (its slides: slides.css) */
/* the carousel's arrows and a dot per game, in the hero's words under Find your game */
/* the carousel's arrows at the tile's two edges, its dots between them (the user, 2026-10-23, «alinea esos botones así») */
.home .hg-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 28px; align-self: stretch; }   /* (the arrows close to the dots) */
.home .hg-dots { display: flex; align-items: center; gap: 6px; }
.home .hg-dots i { width: 8px; height: 8px; border-radius: 999px; background: rgba(250, 247, 242, 0.4); transition: width 0.25s var(--ease), background 0.25s var(--ease); }
.home .hg-dots i.is-on { width: 24px; background: var(--lime); }
@media (prefers-reduced-motion: reduce) { .home .hg-dots i { transition: none; } }
.home .hg-arrow { width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; font: 700 20px/1 var(--font);
  background: rgba(19, 19, 27, 0.78); color: var(--lime); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: transform 0.18s var(--ease); }
.home .hg-arrow:hover { transform: scale(1.06); }
.home .hg-arrow:focus-visible { outline: 3px solid var(--ivory); outline-offset: 2px; }
.home .t-door { grid-column: 4; }
.home .t-door.t-lime { background: #D9FB5C; }
.home .t-door img { object-position: 100% 100%; }
.home .door-copy { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 24px; align-items: flex-start; }
.home .door-copy b { font-family: var(--font-display); font-weight: 600; font-size: 30px; line-height: 34px; color: var(--night); max-width: 6em; }
.home .t-stat { grid-column: 1; padding: 20px 24px; display: flex; align-items: center; gap: 16px; }
.home .t-stat span { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 26px; max-width: 8em; }
.home .t-marquee { grid-column: 2 / 5; display: flex; align-items: center; min-height: 112px; }

/* the ribbon inside its tile (spacing as a margin on every item, not flex gap, so the -50% loop has no jump) */
.home .marquee { width: 100%; overflow: hidden; }
.home .marquee-track { display: flex; align-items: center; width: max-content; animation: marquee 120s linear infinite; }
.home .mq-text, .home .mq-ico { margin-right: 32px; }
.home .mq-text { font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 34px; white-space: nowrap; }
.home .mq-ico { color: var(--violet-deep); font-size: 24px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- today ---------- */
.home .today-bento { grid-auto-rows: auto; }
.home .t-daily { grid-column: span 2; grid-row: span 2; padding: 32px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
  background: radial-gradient(55% 80% at 96% 4%, rgba(255, 95, 200, 0.38), transparent 70%), radial-gradient(50% 70% at 0% 100%, rgba(210, 255, 77, 0.2), transparent 70%), linear-gradient(150deg, #7650E6, #4B2FA8 70%); }
/* (lights instead of the mascot drawn behind: its eyes sat on the Play button — the user, 2026-10-24: «aquí se montaron los ojos
   sobre el botón, este es uno de los casos que podríamos usar los fondos con los difuminados») */
.home .t-daily h3 { font-size: 60px; line-height: 64px; color: var(--ivory); margin-top: -4px; }
/* the game above the song, and two pills under it: Single player, the difficulty with its level */
.home .daily-game { display: inline-flex; align-items: center; gap: 10px; margin-top: 4px; color: var(--ivory); font-size: 17px; }
.home .daily-game-ic { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 4px 12px rgba(19, 19, 27, 0.3); }
.home .daily-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.home .daily-pill, .home .daily-pills .diff-tag { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 14px; border-radius: 999px;
  background: rgba(250, 247, 242, 0.16); color: var(--ivory); font-size: 14px; font-weight: 700; }
.home .daily-pills .diff-lv { min-height: 22px; height: auto; padding: 3px 9px; }
.home .t-daily .meta { color: rgba(250, 247, 242, 0.82); }
.home .t-daily > p:not(.meta) { font-size: 18px; line-height: 28px; position: relative; z-index: 1; }
.home .t-daily .mini-board { align-self: stretch; max-width: 420px; }
/* (who leads right after the pills; its Play at the bottom, on one line with the tiles beside it) */
.home .daily-board { align-self: stretch; }
.home .t-daily > .daily-board, .home .t-daily > .mini-board, .home .t-daily > p:not(.meta):not(.daily-how) { margin-top: 16px; }
.home .t-daily .mini-board { gap: 10px; }
.home .t-daily .mini-board li { grid-template-columns: 32px 36px 1fr auto; font-size: 17px; }
.home .t-daily .ghost-av { width: 34px; height: 34px; }
.home .podium-cap { font-size: 13px; font-weight: 700; color: rgba(250, 247, 242, 0.72); margin-bottom: 4px; }
/* the Daily's game beside its words: its picture tilted like a card on the table, the words kept to the left of it */
.home .t-daily:has(.daily-art:not([hidden])) > :not(.daily-art) { max-width: min(60%, 540px); }
.home .daily-art { position: absolute; z-index: 0; right: 5%; top: 40px; width: 28%; max-width: 260px; aspect-ratio: 9 / 16; transform: rotate(4deg);   /* (up by the title) */
  border-radius: 24px; overflow: hidden; border: 4px solid rgba(250, 247, 242, 0.92); box-shadow: 0 30px 60px rgba(19, 19, 27, 0.45); transition: transform 0.25s var(--ease); }
.home .daily-art.is-land { width: 38%; max-width: 400px; aspect-ratio: 16 / 10; }
.home .daily-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home .t-daily:hover .daily-art { transform: rotate(1deg) scale(1.03); }
/* a board nobody is on yet: an empty podium, #1 waiting for you */
.home .mini-board.is-empty li { opacity: 0.75; }
.home .mini-board.is-empty li.is-you { opacity: 1; }
.home .mini-board.is-empty li.is-you b { color: var(--lime); }
.home .ghost-av { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; border: 2px dashed rgba(250, 247, 242, 0.45); font-style: normal; font-weight: 800; font-size: 14px; }
.home .is-you .ghost-av { border-color: var(--lime); color: var(--lime); animation: ghost-pulse 1.6s ease-in-out infinite; }
@keyframes ghost-pulse { 50% { transform: scale(1.12); } }
.home .t-crew .mini-board { align-self: stretch; margin: 10px 0 14px; }
.home .t-crew .crew-go { margin-top: auto; white-space: nowrap; }
@media (max-width: 1199px) { .home .t-crew .crew-go { min-height: 52px; font-size: 16px; padding: 0 6px 0 18px; } .home .t-crew .crew-go .btn-play-ico { width: 40px; height: 40px; } }
@media (prefers-reduced-motion: reduce) { .home .is-you .ghost-av { animation: none; } .home .daily-art { transition: none; } }
@media (max-width: 1199px) { .home .daily-art { display: none; } .home .t-daily:has(.daily-art:not([hidden])) > :not(.daily-art) { max-width: none; } }
.home .t-daily .btn-play { white-space: nowrap; margin-top: auto; }
.home .t-daily .daily-pills { margin-bottom: 4px; }
.home .t-daily > p.daily-how { font-size: 16px; line-height: 24px; color: rgba(250, 247, 242, 0.82); margin-top: 0; }
.home .t-daily .pill-link { margin-top: auto; position: relative; z-index: 1; min-height: 56px; padding: 0 28px; font-size: 17px; }
/* (as tall as what it says; its label at the top and its line at the bottom, the same air on both, level with the tile beside it) */
.home .t-num { padding: 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; }
.home .t-num.wide { grid-column: span 2; }
.home .num-label { font-weight: 700; font-size: 16px; }
.home .num-foot { font-size: 15px; font-weight: 600; opacity: 0.8; }
/* the countdown in the headline face (the user, 2026-10-23, «usa la otra letra cartoon para ese número»), each digit the same width so it doesn't shake as it ticks */
.home .t-num.t-lime { container-type: inline-size; }   /* (the countdown sizes itself to its tile: 8 boxes = 4.56 em) */
.home .big-clock { font-family: var(--font-display); font-weight: 600; font-size: min(52px, 21cqi); line-height: 1.1; color: var(--night); white-space: nowrap; }
.home .big-clock i { display: inline-block; width: 0.66em; text-align: center; font-style: normal; }
.home .big-clock i.sep { width: 0.3em; }
.home .t-mix, .home .t-crew { padding: 24px; display: flex; flex-direction: column; align-items: flex-start; }
.home .t-mix h3, .home .t-crew h3 { font-size: 28px; line-height: 34px; margin: 12px 0 2px; }
.home .mix-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; align-self: stretch; }
.home .mix-count { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 24px; color: var(--lime); flex: none; }
.home .mix-score { font-family: var(--font-display); font-weight: 600; font-size: 34px; line-height: 36px; color: var(--lime); flex: none; }
.home .t-mix .tasks { align-self: stretch; margin: 8px 0; gap: 2px; }
/* the Mixtape: its cassette by the tag, a bar in four parts, each task a shortcut, the reward in words, one Play */
.home .mix-head { display: flex; align-items: center; justify-content: space-between; align-self: stretch; gap: 12px; }
.home .mix-head .tag-chip { white-space: nowrap; }
.home .cassette { flex: none; width: 52px; height: 33px; transform: rotate(-6deg); filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35)); }
.home .cassette svg { width: 100%; height: 100%; display: block; overflow: visible; }
.home .cassette .reel { animation: reel-spin 3.2s linear infinite; }
@keyframes reel-spin { to { transform: rotate(360deg); } }
.home .mix-bar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; align-self: stretch; margin-top: 12px; }
.home .mix-bar i { height: 8px; border-radius: 999px; background: rgba(250, 247, 242, 0.12); }
.home .mix-bar i.on { background: var(--lime); }
.home .t-mix .tasks li { display: block; }
.home .t-mix .task-row { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; min-height: 38px; padding: 3px 8px; margin: 0 -8px; border-radius: 12px; color: inherit; text-decoration: none; }
.home .t-mix a.task-row:hover { background: rgba(250, 247, 242, 0.06); color: var(--ivory); }
.home .t-mix a.task-row:hover em { color: var(--lime); }
.home .t-mix a.task-row:focus-visible { outline: 3px solid var(--lime); outline-offset: 0; }
.home .t-mix .task-row i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; color: var(--night); }
.home .t-mix li.done .task-row i { background: var(--lime); border-color: var(--lime); }
.home .mix-reward { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 2px 0 14px; font-size: 14px; font-weight: 600; color: var(--tx-mid); }
.home .mix-reward-item { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 4px; border-radius: 999px; background: rgba(164, 123, 255, 0.18); color: var(--violet-soft); font-size: 13px; }
.home .mix-reward-ico { display: grid; place-items: center; width: 22px; height: 22px; color: var(--lime); }
.home .mix-reward-ico svg { width: 18px; height: 18px; }
.home .t-mix .mix-go { margin-top: auto; white-space: nowrap; }   /* (the tile ends with its Play: nothing under it) */
@media (prefers-reduced-motion: reduce) { .home .cassette .reel { animation: none; } }
.home .t-crew .people, .home .t-crew .spot-who { align-self: stretch; }
/* each game's challenge of the day: one card per Live game, the whole row */
.home .t-chal { grid-column: 1 / -1; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.home .chal-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.home .t-chal h3 { font-size: 28px; line-height: 34px; margin: 12px 0 2px; }
.home .chal-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.home .chal-list li { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 18px; background: rgba(250, 247, 242, 0.06); }
.home .chal-list li.done { background: rgba(210, 255, 77, 0.1); }
.home .chal-game { display: flex; align-items: center; gap: 10px; color: var(--ivory); text-decoration: none; font-weight: 700; font-size: 15px; }
.home .chal-game img { width: 32px; height: 32px; border-radius: 9px; object-fit: cover; }
.home .chal-game:hover span { text-decoration: underline; }
.home .chal-label { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 26px; color: var(--ivory); margin: 0; }
.home .chal-list .bar { position: relative; height: 8px; border-radius: 4px; background: rgba(250, 247, 242, 0.12); }
.home .chal-list .bar i { display: block; height: 100%; border-radius: 4px; background: var(--lime); }
.home .chal-list .bar em { position: absolute; right: 0; top: 12px; font-style: normal; font-size: 13px; font-weight: 600; color: rgba(250, 247, 242, 0.7); }
.home .chal-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
/* what a challenge pays: words with the coin, not a pill (it leads nowhere); what Beats are on hover */
.home .beats-note { display: inline-flex; align-items: center; gap: 7px; font-size: 16px; font-weight: 700; color: var(--ivory); cursor: help; }
.home .beats-note svg { width: 22px; height: 22px; }
.home .mix-reward { cursor: help; }

/* ---------- styles ---------- */
.home .styles-bento { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(260px, auto); }
.home .t-style { display: flex; align-items: flex-end; padding: 12px; min-height: 260px; box-shadow: inset 0 0 0 0 var(--lime); transition: box-shadow 0.18s var(--ease); }
.home .t-style.big { grid-column: span 2; grid-row: span 2; }
.home .t-style.on { box-shadow: inset 0 0 0 4px var(--lime); }
.home .t-style > img { transition: transform 0.4s var(--ease); }
.home .t-style.has:hover > img { transform: scale(1.03); }
.home .style-label { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 18px; border-radius: 18px; background: var(--c); color: var(--night); max-width: 100%; }
.home .style-label h3 { font-size: 22px; line-height: 27px; color: var(--night); }
.home .style-label p { font-size: 15px; line-height: 21px; margin-top: 2px; }
.home .style-label .nothing { font-weight: 700; opacity: 0.75; }
.home .t-style.big .style-label { padding: 18px 18px 18px 24px; }
.home .t-style.big .style-label h3 { font-size: 30px; line-height: 36px; }
.home .t-style.big .style-label p { font-size: 17px; line-height: 24px; }
/* the round arrow covers the whole tile, so a click anywhere filters */
.home .t-style .go::after { content: ''; position: absolute; inset: -9999px; }
.home .t-style.has { cursor: pointer; }
.home .t-style .go:focus-visible { outline-color: var(--night); }

/* ---------- games ---------- */
.home .games-bento { grid-auto-rows: 250px; grid-auto-flow: dense; }
.home a.t-game { display: flex; flex-direction: column; justify-content: flex-end; padding: 12px; background: var(--bg-3); }
.home .t-game.big { grid-column: span 2; grid-row: span 2; }
.home .t-game.wide { grid-column: span 2; }
.home .t-game.full { grid-column: 1 / -1; }
.home .t-game.tall { grid-row: span 2; }
.home .t-game .shot { object-position: 50% 30%; transition: transform 0.4s var(--ease); }
/* a tall tile: the game's picture is landscape, the tile is not (cover cut the logo at both sides). The picture whole at the
   top, rounded, over a blurred and darkened copy of itself that fills the tile */
.home .t-game .shot-bg { display: none; }
.home .t-game.tall .shot-bg { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(20px) brightness(0.55) saturate(1.2); transform: scale(1.2); }
.home .t-game.tall .shot { inset: 12px 12px auto 12px; width: calc(100% - 24px); height: auto; aspect-ratio: 960 / 660; object-position: 50% 50%; border-radius: 16px; box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4); }
/* (a tall tile playing an upright gameplay clip: the clip fills it, no framed picture) */
.home .t-game.tall.has-clip .shot { inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-position: 50% 30%; border-radius: 0; box-shadow: none; }
.home .t-game:hover .shot { transform: scale(1.03); }
.home .t-game .fallback { display: grid; place-items: center; background: var(--violet-deep); }
.home .t-game .fallback img { width: 34%; height: auto; }
.home .t-game.soon .shot { filter: saturate(0.6) brightness(0.8); }
.home .corner { position: absolute; top: 14px; left: 14px; right: 14px; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; }
.home .tag-chip.soon { background: var(--violet); color: var(--night); }
.home .game-label { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 18px; border-radius: 18px; background: rgba(19, 19, 27, 0.92); color: var(--ivory); }
.home .gl-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.home .gl-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.home .style-chip { font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 999px; color: var(--night); background: var(--c, var(--violet)); }
.home .gl-meta .meta { font-size: 13px; line-height: 18px; }
.home .gl-name { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 27px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home .gl-tag { color: var(--tx-mid); font-size: 15px; line-height: 21px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.home .t-game.small .gl-tag, .home .t-game.tall .gl-tag { display: none; }
.home .t-game.small .gl-name, .home .t-game.tall .gl-name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.home .t-game.full .game-label { max-width: 620px; }
/* the big Games tile under the wide game: every game, on the games page (homeTiles in home-layout.js) */
.home a.t-allgames { grid-column: span 2; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 32px;
  background: var(--lime); color: var(--night); text-decoration: none; }
.home .ag-copy { display: grid; gap: 6px; min-width: 0; }
.home .ag-copy b { font-family: var(--font-display); font-weight: 600; font-size: 72px; line-height: 76px; }
.home .ag-copy span { font-size: 17px; line-height: 24px; font-weight: 600; opacity: 0.8; }
.home .t-allgames .round { width: 88px; height: 88px; flex: none; font-size: 34px; background: var(--night); color: var(--lime); }
.home a.t-allgames:hover .round { transform: translateX(4px); }
.home a.t-allgames:focus-visible { outline-color: var(--night); }
/* a tile playing its gameplay clip: its label up top and short, so the play shows (the user, 2026-10-23: «coloca esa info
   arriba porque se tapa todo el gameplay»; the tagline is on its page) */
.home a.t-game.has-clip { justify-content: flex-start; }
.home .t-game.has-clip .gl-tag { display: none !important; }
.home .t-game.has-clip .game-label { background: rgba(19, 19, 27, 0.84); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
/* the play alone; its label only while the pointer is on it or the keyboard is (the user, 2026-10-23: «apaga esos
   contenidos y aparécelos si haces hover sobre los videos», «y en mobile no salen») */
.home .t-game.has-clip .game-label { opacity: 0; transform: translateY(-6px); transition: opacity 0.2s var(--ease), transform 0.2s var(--ease); }
.home a.t-game.has-clip:focus-visible .game-label { opacity: 1; transform: none; }
@media (hover: hover) { .home a.t-game.has-clip:hover .game-label { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .home .t-game.has-clip .game-label { transition: none; transform: none; } }
.home .t-game.big .game-label { padding: 20px 20px 20px 24px; }
.home .t-game.big .gl-name { font-size: 34px; line-height: 40px; white-space: normal; }
.home .t-game.big .gl-tag { font-size: 17px; line-height: 24px; }
.home .t-more { grid-column: span 2; grid-row: span 2; padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.home .t-more b { font-family: var(--font-display); font-weight: 600; font-size: 40px; line-height: 46px; }
.home .t-more p { font-size: 18px; line-height: 28px; max-width: 26ch; }
.home .t-more img { width: 120px; margin-top: auto; align-self: flex-end; }
.home .t-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; padding: 40px 24px; color: var(--tx-mid); }
.home .t-empty img { width: 72px; }
.home .t-empty p { font-size: 18px; line-height: 28px; max-width: 36ch; }

/* ---------- closing ---------- */
.home .close-bento { grid-auto-rows: minmax(300px, auto); }
.home .t-close { grid-column: span 2; padding: 40px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.home .t-close h2 { font-size: 52px; line-height: 58px; }
.home .t-close p { font-size: 18px; line-height: 28px; margin: 16px 0 28px; max-width: 34ch; color: #2A2A36; }
.home .t-mascot, .home .t-squares { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.home .t-mascot b, .home .t-squares b { font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 32px; }
.home .t-mascot img { width: 58%; max-width: 170px; margin: auto auto 0; display: block; }
.home .squares { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: auto; }
.home .squares span { aspect-ratio: 1; border-radius: 16px; display: grid; place-items: center; font-size: 30px; color: var(--night); }

/* the footer sits right after the last panel */
.home .site-foot { margin-top: 0; }

@media (prefers-reduced-motion: reduce) {
  .home .marquee-track { animation: none; }
  .home a.tile, .home a.tile:hover, .home .round, .home .shot, .home .t-style > img { transition: none; transform: none !important; }
}

/* ---------- laptop / tablet ---------- */
@media (max-width: 1100px) {
  .home .t-hero { padding: 32px; }
  .home .t-hero h1 { font-size: 52px; line-height: 56px; }
  .home .big-num { font-size: 60px; line-height: 60px; }
  .home .big-clock { font-size: min(42px, 21cqi); }
  .home .t-daily h3 { font-size: 44px; line-height: 50px; }
  .home .t-close h2 { font-size: 44px; line-height: 50px; }
  .home .door-copy { padding: 20px; }
  .home .door-copy b { font-size: 24px; line-height: 28px; }
  .home .t-game.small .gl-meta .meta, .home .t-game.tall .gl-meta .meta { display: none; }
  .home .t-game.small .game-label, .home .t-game.tall .game-label { padding: 12px; gap: 8px; }
  .home .t-game.small .round, .home .t-game.tall .round { width: 48px; height: 48px; font-size: 20px; }
}
/* below ~1140 px the half beside the words is too narrow for an upright clip and its boxes: the hero's words on top, the
   games' carousel under them at full width, as tall as a landscape clip at that width plus the two boxes' row (so every
   clip keeps its shape) */
@media (max-width: 1140px) {
  .home .hero-bento { container-type: inline-size; grid-template-rows: none; grid-auto-rows: auto; }
  .home .t-hero { grid-column: 1 / -1; grid-row: auto; }
  .home .hero-games { grid-column: 1 / -1; grid-row: auto; height: calc(100cqw * 9 / 16 + var(--gap) + 200px); }
}
@media (max-width: 900px) {
  .home .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home .hero-bento { grid-template-rows: none; grid-auto-rows: auto; }
  .home .t-door { min-height: 220px; }
  .home .t-hero { grid-column: 1 / 3; grid-row: auto; }
  .home .t-art { grid-column: 1; grid-row: span 2; min-height: 460px; }
  .home .t-door { grid-column: 2; }
  .home .t-stat { grid-column: 1; }
  .home .t-marquee { grid-column: 2; }
  .home .hero-bento > .t-stat, .home .hero-bento > .t-marquee { min-height: 120px; }
  .home .t-daily { grid-column: 1 / 3; grid-row: auto; min-height: 340px; }
  .home .t-num.wide { grid-column: 1 / 3; }
  .home .styles-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home .t-style.big { grid-column: 1 / 3; grid-row: auto; min-height: 380px; }
  .home .games-bento { grid-auto-rows: 260px; }
  .home .t-game.big { grid-column: 1 / 3; grid-row: span 2; }
  .home .t-game.wide, .home .t-game.tall, .home .t-game.full { grid-column: auto; grid-row: auto; }
  .home .t-game.small .gl-meta .meta, .home .t-game.tall .gl-meta .meta { display: inline; }
  /* an odd last small tile takes the whole row so the grid has no hole */
  .home .t-game:not(.big):last-child:nth-child(even) { grid-column: 1 / 3; }
  .home .t-more { grid-column: 1 / 3; grid-row: auto; }
  .home .t-close { grid-column: 1 / 3; }
}

/* ---------- phone ---------- */
@media (max-width: 600px) {
  .home { --gap: 12px; }
  .home .bento-page { gap: 16px; padding-bottom: 32px; }
  .home .panel { border-radius: 28px; }
  .home .panel-head { padding: 12px 8px 20px; }
  .home .panel-head h2 { font-size: 30px; line-height: 36px; }
  .home .sub { font-size: 16px; line-height: 25px; }
  .home .pill { min-height: 48px; padding: 0 16px; font-size: 15px; }
  .home .t-hero { padding: 28px 22px; }
  .home .t-hero h1 { font-size: 40px; line-height: 44px; }
  .home .t-hero .lead { font-size: 16px; line-height: 25px; }
  .home .t-hero .btn-play { width: 100%; justify-content: center; min-height: 68px; font-size: 21px; padding: 0 7px 0 28px; }   /* (as a game page's Play) */
  .home .t-art { grid-column: 1 / 3; grid-row: auto; min-height: 300px; }
  /* (a phone: the games' slides one under the other, as a feed: feed.css) */
  .home .t-video { aspect-ratio: 4 / 5; min-height: 0; }
  .home .t-video video { object-position: 50% 58%; }
  .home .vid-game b { font-size: 18px; }
  .home .t-door { grid-column: auto; min-height: 180px; }
  .home .door-copy { padding: 16px; gap: 12px; }
  .home .door-copy b { font-size: 22px; line-height: 26px; }
  .home .t-stat, .home .t-marquee { grid-column: 1 / 3; }
  .home .hero-bento > .t-stat { min-height: 0; padding: 18px 20px; }
  .home .hero-bento > .t-marquee { min-height: 84px; }
  .home .big-num { font-size: 52px; line-height: 52px; }
  .home .mq-text { font-size: 22px; line-height: 28px; }
  .home .t-daily { padding: 24px 20px; min-height: 0; }
  .home .t-daily h3 { font-size: 36px; line-height: 42px; }
  .home .t-num { padding: 18px; min-height: 120px; }
  .home .big-clock { font-size: min(30px, 21cqi); }
  .home .t-mix, .home .t-crew { grid-column: 1 / 3; padding: 20px; }
  .home .styles-bento { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .home .t-style, .home .t-style.big { grid-column: auto; min-height: 0; aspect-ratio: 616 / 520; }
  .home .t-style.big .style-label { padding: 14px 14px 14px 18px; }
  .home .t-style.big .style-label h3 { font-size: 22px; line-height: 27px; }
  .home .t-style.big .style-label p { font-size: 15px; line-height: 21px; }
  .home .games-bento { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 300px; }
  .home a.t-allgames { grid-column: 1 / -1; padding: 22px 24px; }
  .home .ag-copy b { font-size: 48px; line-height: 54px; }
  .home .t-allgames .round { width: 64px; height: 64px; font-size: 26px; }
  .home .t-game.big, .home .t-game:not(.big):last-child:nth-child(even) { grid-column: auto; grid-row: span 1; }
  .home .t-game.big { grid-row: span 1; height: auto; }
  .home .t-game.big .gl-name { font-size: 26px; line-height: 32px; }
  .home .t-game.big .game-label { padding: 14px 14px 14px 18px; }
  .home .t-game .gl-tag { display: -webkit-box !important; font-size: 14px; line-height: 20px; }
  .home .t-more { grid-column: auto; padding: 24px; }
  .home .t-more b { font-size: 30px; line-height: 36px; }
  .home .t-more img { width: 80px; }
  .home .close-bento { grid-auto-rows: auto; }
  .home .t-close { padding: 28px 22px; }
  .home .t-close h2 { font-size: 34px; line-height: 40px; }
  .home .t-close p { font-size: 16px; line-height: 25px; }
  .home .t-mascot, .home .t-squares { padding: 18px; min-height: 220px; }
  .home .t-mascot b, .home .t-squares b { font-size: 20px; line-height: 24px; }
  .home .squares { gap: 8px; }
  .home .squares span { font-size: 22px; border-radius: 12px; }
}

/* the FAQ (also FAQPage for search engines), as a game's How to play (the user, 2026-10-23: «hazla más bonita y más
   dinámica como hiciste el how to play»): the questions numbered on the left, the open one's answer big in its colour on
   the right; on its own, a bar filling on the open question, until someone touches it (site.js wireFaq) */
.faq-ui { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; padding: 0 12px 12px; }
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-q { position: relative; overflow: hidden; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: center; width: 100%; min-height: 64px;
  padding: 10px 16px 10px 10px; border-radius: 18px; border: 1.5px solid transparent; background: var(--bg-1); color: var(--tx-mid); text-align: left; cursor: pointer;
  font: 600 16px/22px var(--font); transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease); }
.faq-q:hover { background: var(--bg-2); color: var(--ivory); }
.faq-n { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--bg-3); color: var(--tx-mid); font: 600 20px/1 var(--font-display);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease); }
.faq-q.is-on { background: var(--bg-2); color: var(--ivory); border-color: color-mix(in srgb, var(--c) 55%, transparent); }
.faq-q.is-on .faq-n { background: var(--c); color: var(--night); transform: rotate(-4deg); }
.faq-q:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.faq-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--c); }
.faq-ui.is-auto .faq-q.is-on .faq-bar { animation: faq-fill var(--dur, 6s) linear forwards; }
.faq-ui.is-held .faq-bar { animation-play-state: paused !important; }
@keyframes faq-fill { to { width: 100%; } }
.faq-panels { display: grid; }
.faq-a { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; min-height: 100%; padding: 36px 40px;
  border-radius: var(--r-lg); background: var(--c); color: var(--night); }
.faq-ui.is-live .faq-a { grid-area: 1 / 1; }   /* (all in one cell; only the open one shows) */
.faq-ui.is-live .faq-a:not(.is-on) { display: none; }
.faq-ui.is-live .faq-a.is-on { animation: faq-in 0.35s var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(10px); } }
.faq-ico { position: absolute; top: 28px; right: 32px; width: 120px; height: 120px; color: var(--night); opacity: 0.9; transform: rotate(-6deg); }
.faq-ico svg { width: 100%; height: 100%; fill: currentColor; }
.faq-a h3 { margin: 0; max-width: 14em; color: var(--night); font-family: var(--font-display); font-weight: 600; font-size: 34px; line-height: 40px; }
.faq-a p { margin: 0; max-width: 34em; font-size: 20px; line-height: 30px; font-weight: 500; }
.faq-a:focus-visible { outline: 3px solid var(--ivory); outline-offset: 3px; }
/* without the script: no tabs, every answer as a card */
.faq-ui:not(.is-live) { grid-template-columns: 1fr; }
.faq-ui:not(.is-live) .faq-list { display: none; }
.faq-ui:not(.is-live) .faq-panels { gap: 12px; }
.faq-ui:not(.is-live) .faq-ico { width: 64px; height: 64px; }
@media (prefers-reduced-motion: reduce) { .faq-q, .faq-n { transition: none; } .faq-q.is-on .faq-n { transform: none; } .faq-ui.is-live .faq-a.is-on { animation: none; } }
/* a phone: the questions in a row that scrolls, the answer under them */
@media (max-width: 720px) {
  .faq-ui { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 0 4px 4px; }
  .faq-list { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px; margin: 0 -2px; }
  .faq-list::-webkit-scrollbar { display: none; }
  .faq-q { flex: 0 0 min(260px, 78%); scroll-snap-align: start; }
  .faq-a { min-height: 300px; padding: 92px 24px 24px; }   /* (the icon's room at the top) */
  .faq-ico { width: 60px; height: 60px; top: 20px; right: 20px; }
  .faq-a h3 { font-size: 26px; line-height: 31px; max-width: 11em; }
  .faq-a p { font-size: 17px; line-height: 26px; }
}
.foot-langs a[aria-current] { color: var(--lime); }

/* ---------- a phone: the games as a feed (the user, 2026-10-24: «en la versión mobile quiero que cada slide pase como un
   feed de instagram… no muestres ni el carrusel… si le doy a find your game o swipe para abajo ya me muestra el primer juego
   de la lista y si sigo bajando me muestra uno a uno»; «trata de que todo esto se vea en un solo slide, puedes escalar los
   videos»; «el botón de games debe ser más compacto»; of the games' challenges, «compacta esta sección para que se vea más
   como un carrusel de tarjetas»): no arrows or dots; the games one under the other, an upright one a screen of its own —
   its clip scaled into the room left, then its name with Play, then what it is — each one snapping into place;
   site.js takes Find your game to the first; and while the feed is on screen, every swipe lands on the next one, never
   between two (the user, 2026-10-24: «agrégale un poco de snap como hace Instagram o TikTok en el feed de videos»).
   The feed itself and its snap are feed.css (the games page's phone feed is the same: index.html loads it up to 600 px);
   here, what else the home does on a phone ---------- */
@media (max-width: 600px) {
  .home #games { display: none; }   /* (the feed is the games: «en mobile apaga la sección de games», 2026-10-24) */
  .home .hg-nav { display: none; }
  /* the Games tile, compact (its row as tall as it is: the games keep their 300 px) */
  .home .games-bento { grid-auto-rows: auto; }
  .home .games-bento > .t-game { min-height: 300px; }
  .home a.t-allgames { padding: 14px 18px; min-height: 0; align-self: start; }
  .home .ag-copy { gap: 2px; }
  .home .ag-copy b { font-size: 32px; line-height: 36px; }
  .home .ag-copy span { font-size: 14px; line-height: 19px; }
  .home .t-allgames .round { width: 48px; height: 48px; font-size: 20px; }
  /* the games' challenges of the day: a row of cards to swipe */
  .home .t-chal { padding: 18px 16px; gap: 12px; }
  .home .t-chal h3 { font-size: 22px; line-height: 27px; margin-top: 8px; }
  .home .chal-list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .home .chal-list::-webkit-scrollbar { display: none; }
  .home .chal-list li { flex: 0 0 78%; scroll-snap-align: start; padding: 14px; gap: 8px; }
  .home .chal-label { font-size: 17px; line-height: 22px; }
  .home .chal-foot { padding-top: 4px; }
  .home .chal-foot .btn-play.is-sm { min-height: 48px; font-size: 16px; padding: 0 6px 0 18px; gap: 10px; }
  .home .chal-foot .btn-play.is-sm .btn-play-ico { width: 36px; height: 36px; }
}

/* Play with friends (index.html #party; site.js → party-invite.js): a violet tile, its one action dark on it, three phones */
.home .t-party { background: var(--violet); color: var(--night); display: flex; align-items: center; gap: 24px; padding: 32px; flex-wrap: wrap; }
.home .ph-copy { flex: 1 1 360px; min-width: 0; display: grid; gap: 14px; justify-items: start; }
.home .ph-eyebrow { margin: 0; font-weight: 700; font-size: 14px; }
.home .t-party h2 { margin: 0; color: var(--night); font-family: var(--font-display); font-weight: 600; font-size: 44px; line-height: 1.05; }
.home .ph-text { margin: 0; font-size: 18px; line-height: 1.45; max-width: 520px; }
.home .ph-acts { display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap; }
.home .ph-go { min-height: 56px; padding: 0 30px; border-radius: 999px; border: 0; background: var(--night); color: var(--lime); font-family: var(--font-display); font-weight: 600; font-size: 19px; cursor: pointer; transition: transform 0.18s var(--ease); }
.home .ph-go:hover { transform: translateY(-2px); }
.home .ph-go:focus-visible, .home .ph-code:focus-visible { outline: 3px solid var(--night); outline-offset: 3px; }
.home .ph-code { min-height: 48px; padding: 0 4px; border: 0; background: none; color: var(--night); font: inherit; font-weight: 700; font-size: 16px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.home .ph-note { margin: 0; font-size: 14px; font-weight: 600; }
.home .ph-art { flex: 0 1 320px; display: flex; justify-content: center; align-items: flex-end; gap: 12px; padding: 8px 0; }
.home .ph-phone { display: grid; place-items: center; gap: 8px; align-content: center; width: 78px; height: 132px; border-radius: 18px; background: var(--night); border: 4px solid var(--night); }
.home .ph-phone i { width: 40%; height: 6px; border-radius: 3px; background: var(--lime); }
.home .ph-phone.is-m { width: 96px; height: 164px; }
.home .ph-phone.is-l { transform: rotate(-8deg); }
.home .ph-phone.is-r { transform: rotate(8deg); }
.home .ph-phone.is-r img { filter: hue-rotate(140deg); }
.home .ph-phone.is-l img { filter: hue-rotate(260deg); }
/* the hero's own Play with friends (index.html #hero-party): only on a phone, where #party comes after the whole feed */
.home .hero-party { display: none; }
@media (max-width: 600px) {
  .home .hero-party { display: inline-flex; align-items: center; justify-content: center; gap: 10px; align-self: center; margin-top: 12px; min-height: 52px; padding: 0 24px;
    border-radius: 999px; border: 2px solid var(--ivory); background: transparent; color: var(--ivory); font-family: var(--font-display); font-weight: 600; font-size: 18px; cursor: pointer; }
  .home .hero-party svg { width: 22px; height: 22px; }
  .home .hero-party:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
}
@media (max-width: 767px) {
  .home .t-party { padding: 24px 20px; }
  .home .t-party h2 { font-size: 34px; }
  .home .ph-text { font-size: 16px; }
  .home .ph-art { display: none; }
  .home .ph-go { width: 100%; }
}
