/* =====================================================================
   refine.css · UI refinement v1 (TAB-0042, TAB-0043)
   Spec: docs/design/ui-refinement-v1.md and docs/design/home-all-articles.md
   Loaded right after winpot-ds.css. Tokens from winpot-ds.css only; the few new
   values are defined as tokens in :root below. No motion here (that is motion.css).
   ===================================================================== */

:root {
  /* contrast: AA on every navy surface (old #8990a5 was 4.47 on surface-2, 3.9 on surface-3) */
  --text-3: #9aa1b5;          /* 6.8 ground · 6.1 surface-1 · 5.5 surface-2 · 4.85 surface-3 */
  --red-text: #ff6b73;        /* red as TEXT only (errors, "down"): 6.3 ground · 4.5 surface-3. Fills/borders keep --red */
  --line-input: #64748f;      /* field boundary: 3.7 on ground, 3.3 on surface-1 (WCAG 1.4.11 needs 3:1) */
  --surface-hover: #2a3e60;   /* was a raw hex in winpot-ds.css (askbox go / paper button hover) */

  /* buttons: winpot.mx uses 4px radius on its CTAs (Deposita, Jugar, Invita) */
  --radius-btn: var(--radius-sm);
  --outline-w: 1.5px;
}

/* ---------------------------------------------------------------- 1. buttons */
.btn, .btn--sm, .ans--v4 .btn--ghost { border-radius: var(--radius-btn); }
.askbox__go:hover, .btn--paper:hover { background: var(--surface-hover); }

/* green outline = money-adjacent secondary action (Jugar en demo, Ver promoción). Brand: 1.5px green, white text */
.btn--outline { background: transparent; border: var(--outline-w) solid var(--green); color: var(--text); }
.btn--outline:hover { background: var(--surface-1); border-color: var(--green-hover); color: var(--text); }

/* -------------------------------------------------------- 2. 18+ badge (brand) */
.age {
  width: 32px; height: 32px; flex: 0 0 32px;
  border: 1.5px solid var(--red); border-radius: 50%;
  color: var(--text); background: transparent;
  font-family: var(--ui); font-weight: 600; font-size: 12px; letter-spacing: 0;
}

/* ------------------------------------------------------------- 3. contrast */
/* inputs: visible field boundary */
.askbox__field, .search-form, .menu-page .search-form, .all__select { border-color: var(--line-input); }
.search-form input::placeholder, .askbox__input::placeholder { color: var(--text-3); }
/* red never as small text: lighter red for text, --red stays for borders / fills / brand */
.odds__pick[data-dir="down"] b::after, html body .odds__pick[data-dir="down"] b::after { color: var(--red-text); }
.week__kind { color: var(--text); }
.is-error, .field-error, [aria-invalid="true"] + .meta { color: var(--red-text); }

/* ----------------------------------------------------------- 4. chips = brand */
/* winpot.mx category chips: 8px radius, chip-bg fill, no royal-blue hover */
.askchips button, .chip { border-radius: var(--radius); min-height: 36px; display: inline-flex; align-items: center; gap: 6px; }
.askchips button:hover, .chip:hover { background: var(--surface-3); border-color: var(--line-strong); color: var(--text); }
.chip[aria-pressed="true"], .chip[aria-current="true"] { background: var(--text); color: var(--ground); border-color: var(--text); }
.chip__n { font-size: 12px; font-weight: 600; color: inherit; opacity: .75; }

/* --------------------------------------------- 5. header: solid, like winpot.mx */
/* blur(50px) is costly on low-end phones; brand header is solid navy */
.header { background: var(--ground); -webkit-backdrop-filter: none; backdrop-filter: none; }
body { background-attachment: scroll; }
/* signed-out header pair (markup: DEV ticket R-1): green "Regístrate" + ghost "Entrar", compact on phones */
.header__actions .btn--sm { min-height: 40px; }
@media (max-width: 599px) { .header__actions .btn--sm { min-height: 36px; padding: 0 12px; } }

/* --------------------------------------- 6. "Puntos clave" (markup: DEV ticket R-2) */
.keypoints { margin-top: 16px; padding: 16px 20px; background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius); }
.keypoints__k { display: block; margin-bottom: 8px; font-family: var(--ui); font-size: var(--fs-label); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
.keypoints ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.keypoints li { position: relative; padding-left: 20px; font-family: var(--ui); font-size: 15px; line-height: 1.5; color: var(--text-2); }
.keypoints li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.keypoints li b, .keypoints li strong { color: var(--text); font-weight: 700; }

/* ----------------------------- 7. table of contents for guías (markup: DEV ticket R-3) */
.toc { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.toc summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; justify-content: space-between; font-family: var(--ui); font-size: var(--fs-label); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text); list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "+"; font-size: 20px; color: var(--text-3); }
.toc[open] summary::after { content: "−"; }
.toc li { font-size: 14px; }
.toc a { color: var(--text-2); text-decoration: none; }
.toc a:hover, .toc a[aria-current="true"] { color: var(--text); }
.toc a[aria-current="true"] { font-weight: 700; }
/* two copies: closed under the byline on phones/tablets (.toc--inline), open in the aside on desktop */
.toc { margin-top: 16px; }
@media (max-width: 1023px) { .aside .toc { display: none; } }
@media (min-width: 1024px) { .toc--inline { display: none; } .aside .toc { margin-top: 0; }
  .aside .toc { position: static; } .aside .toc summary { pointer-events: none; } .aside .toc summary::after { display: none; } }

/* --------------------------- 8. category row on mobile (markup: DEV ticket R-4) */
.catrow { display: none; }
@media (max-width: 1023px) {
  .catrow { display: block; border-bottom: 1px solid var(--line); background: var(--ground); }
  .catrow__list { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; padding: 8px var(--gutter); margin: 0; list-style: none; scrollbar-width: none; }
  .catrow__list::-webkit-scrollbar { display: none; }
  .catrow__list a { flex: 0 0 auto; scroll-snap-align: start; display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: var(--radius); background: var(--chip-bg); color: var(--chip-text); font-family: var(--ui); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
  .catrow__list a[aria-current="page"] { background: var(--text); color: var(--ground); }
}

/* ---------------------- 9. responsible-gambling line (markup: DEV ticket R-5) */
.rg-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 24px 0 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ground-2); font-family: var(--ui); font-size: var(--fs-meta); line-height: 1.5; color: var(--text-2); }
.rg-line a { color: var(--accent); }
.rg-line b { color: var(--text); font-weight: 600; }

/* trust line: badge and text sit on one line; the text wraps beside the badge, never under it */
.trust { gap: 12px; flex-wrap: nowrap; }
.trust > .age + span { flex: 1 1 auto; min-width: 0; }
.footer__row { align-items: center; }

/* ------------------------------------------- 10. small polish (pure CSS) */
/* section heads: "ver más" link gets a touch target and an underline on hover */
.section__head a { display: inline-flex; align-items: center; min-height: 44px; }
.section__head a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* TAB-0412: a section head right under the Deportes tab row keeps the same --s-6 gap the "Próximos partidos" head already has */
.sport-tabs + .section__head { margin-top: var(--s-6); }
/* card back row hover: token, not raw hex */
.card__back .card__q:hover, .card__back .card__q:focus-visible { background: var(--surface-1); }
/* skip link (markup: DEV ticket R-6) */
.skip { position: absolute; left: 8px; top: -100px; z-index: 100; padding: 12px 16px; border-radius: var(--radius-btn); background: var(--text); color: var(--ground); font-family: var(--ui); font-weight: 700; text-decoration: none; }
.skip:focus { top: 8px; }

/* ======================================================================
   Home · Todos los artículos (TAB-0043, src/components/AllArticles.astro)
   ====================================================================== */
.all { padding-top: 32px; scroll-margin-top: 88px; }
.all__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-top: 16px; }
.all__chips { display: flex; gap: 8px; flex-wrap: wrap; }
.all__chips .chip { text-decoration: none; }
.all__sort { display: flex; align-items: center; gap: 8px; }
.all__sort[hidden] { display: none; }
.all__sort label { color: var(--text-2); }
.all__select {
  min-height: 44px; padding: 0 36px 0 12px; border: 1px solid var(--line-input); border-radius: var(--radius);
  background: var(--surface-1); color: var(--text); font-family: var(--ui); font-size: 14px; font-weight: 600;
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat;
}
.all__select:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.all__status { margin: 16px 0 0; color: var(--text-2); }
.all__list { margin: 4px 0 0; padding: 0; list-style: none; }
.all__list > li[hidden] { display: none; }
.all__list > li > .guide { height: 100%; }
/* one thumb size for every row (3D art and sprite icons used to render at two sizes) */
.all__list .guide { grid-template-columns: 88px minmax(0, 1fr); gap: 16px; align-items: center; }
.all__list .guide__thumb { width: 88px; aspect-ratio: 1 / 1; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ground-2); box-shadow: none; overflow: hidden; display: grid; place-items: center; }
.all__list .guide__thumb:has(.ill3d) { padding: 0; }
@media (max-width: 480px) { .all__list .guide { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; } .all__list .guide__thumb { width: 72px; padding: 14px; } }
.all__empty { margin-top: 16px; padding: 32px 20px; text-align: center; background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius); }
.all__empty[hidden] { display: none; }
.all__empty p { margin: 0 0 16px; color: var(--text-2); font-family: var(--ui); }
.all__more { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.all__more:not(:has(> :not([hidden]))) { display: none; }
.all__more .btn { min-width: 200px; }
.all__more .btn[hidden] { display: none; }

@media (max-width: 719px) {
  /* chips scroll in one row on phones instead of wrapping into 3-4 lines */
  .all__bar { display: grid; grid-template-columns: minmax(0, 1fr); }
  .all__chips { min-width: 0; flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter); scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); }
  .all__chips::-webkit-scrollbar { display: none; }
  .all__chips .chip { flex: 0 0 auto; white-space: nowrap; scroll-snap-align: start; }
  .all__sort { min-width: 0; }
  .all__sort[hidden] { display: none; }
  .all__more .btn { width: 100%; }
}

/* ======================================================================
   Design review fixes, 2026-11-18 (TAB-0045, docs/design/2026-11-18-design-review.md)
   ====================================================================== */
/* F1 catrow: scroll-snap ate the left gutter at 390 (first chip sat at x=0). Same fix as .all__chips */
.catrow__list { scroll-padding-inline: var(--gutter); }

/* F2 RG line: badge stays beside the text (it wrapped above it), and the body copy rule
   (.paper p, 16px/1.65) no longer inflates it: it is a meta line, 13px */
.rg-line { flex-wrap: nowrap; align-items: flex-start; }
.rg-line > .age { flex: 0 0 32px; }
.rg-line > .age + span { flex: 1 1 auto; min-width: 0; padding-top: 6px; }
.paper .rg-line, .paper p.rg-line { font-size: var(--fs-meta); line-height: 1.5; max-width: none; color: var(--text-2); }

/* F3 compact RG line inside a promo tile: no box in a box, just the badge + link under the CTA */
.tile--promo .rg-line, .fomo__tile .rg-line {
  margin: 12px 0 0; padding: 0; border: 0; background: none; align-items: center;
}
.tile--promo .rg-line > .age + span, .fomo__tile .rg-line > .age + span { padding-top: 0; }

/* F4 odds "En vivo" badge broke into two lines at 390 */
html body .odds__live { white-space: nowrap; flex: none; }

/* ======================================================================
   Tap targets and accent contrast (TAB-0046, QA D16)
   ====================================================================== */
/* --accent was 3.96:1 on surface-3 (AA needs 4.5). #74a0ec: 6.6 ground · 6.0 s-1 · 5.4 s-2 · 4.76 s-3.
   --focus keeps #5F90E8 (a 2px ring needs 3:1: 3.96 on s-3). */
:root { --accent: #74a0ec; --accent-hover: #93b6f1; }

/* ≥ 44px hit area without a bigger look: an invisible ::after centred on the control,
   at least 44 × 44, so the visible size, padding and layout do not change. */
.btn--sm, .helpful button, .chip, .askchips button, .crumbs a, .byline__name a, .brand, .pager a, .odds__foot .btn { position: relative; }
.btn--sm::after, .helpful button::after, .chip::after, .askchips button::after, .crumbs a::after,
.byline__name a::after, .brand::after, .pager a::after, .odds__foot .btn::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%);
}
/* the phone chip row scrolls (overflow clips the hit area): 6px more room above and below, same look */
@media (max-width: 719px) {
  .all__chips { padding-block: 6px; margin-block: -4px; }
}

/* Inline text links: footer row, "Juego responsable" lines, "También" (TAB-0115, WCAG 2.5.8).
   Same invisible ≥ 44px ::after as TAB-0046. inline-block keeps each link one box (a link that wraps
   inside a sentence has no single box to centre the hit area on). */
.footer__row a, .rg-line a, .trust a, .ans__more a, .odds__foot a:not(.btn), .meta a, .acover__credit a { position: relative; display: inline-block; }
.footer__row a::after, .rg-line a::after, .trust a::after, .ans__more a::after, .odds__foot a:not(.btn)::after, .meta a::after, .acover__credit a::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%);
}
/* Where several links share a paragraph and wrap onto stacked lines (footer at every width below ~1500, "También"
   on desktop and phones), each link's line is ≥ 44px tall (21px line + 12px above and below), so the hit areas of
   links on neighbouring lines never overlap. The footer links start on their own line (no tall gap in the middle of
   the legal sentence). Text size, colour and order are unchanged. */
.footer__row a, .ans__more a { margin-block: 12px; }
.footer__row a { white-space: nowrap; }
.footer__links { display: block; margin-top: -4px; }

/* Winners ticker: rendered only when a feed is expected (TAB-0113). The track has the same height empty and filled
   (a filled row measures 39.8px at 13px), also under reduced motion where motion.css shows no skeleton, so the fill
   shifts nothing. border-box: 1.7em row + 9px padding above and below. */
.ticker[data-reserve] .ticker__track { min-height: calc(1.7em + 18px); }

/* Correction note in the byline dates row (TAB-0119): its own full-width line under "Actualizado", server-rendered (no shift). */
.dates__fix { flex-basis: 100%; color: var(--text-2); line-height: 1.5; overflow-wrap: anywhere; }

/* Phones/tablets: the aside stacks under the hero column; keep the 16px card rhythm above it (TAB-0122). */
@media (max-width: 1023px) { .article-grid > .aside { margin-top: 16px; } }

/* "¿Te sirvió…?" (TAB-0120): 44px targets; the thank-you line keeps the same row height, so nothing moves. */
.helpful { min-height: 44px; flex-wrap: wrap; }
.helpful button { min-height: 44px; }
.helpful button:disabled { cursor: default; opacity: .6; }
.helpful button[aria-pressed="true"] { opacity: 1; border-color: var(--text); color: var(--text); }
.helpful__thanks { color: var(--text-2); }

/* TAB-0138: question and its thank-you swap in place. The question takes the free column and Sí/No sit in fixed
   columns, so the buttons never move or wrap whatever the text length. Narrow screens: question on its own row. */
.helpful { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; }
@media (max-width: 380px) { .helpful { grid-template-columns: auto auto 1fr; } .helpful__q { grid-column: 1 / -1; } }

/* TAB-0233: guía cover (spec docs/product/2026-11-20-article-cover.md §4.2, option 3). One element, rendered after the answer
   card: under 1024 px it stays there (the answer card does not move); from 1024 px the left column becomes a flex column and
   the cover moves under the byline, above the answer card. The 16:9 box is reserved before the bytes arrive (no shift).
   Pages without a cover have neither the class nor the element. */
.acover { width: 100%; margin: var(--s-6) 0 0; }
.acover__frame { aspect-ratio: 16 / 9; width: 100%; background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.acover__frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* TAB-0308: photo credit under the cover (CC BY / agency photos). Small and muted; links in the secondary text colour. */
.acover__credit { margin-top: var(--s-2); font-family: var(--ui); font-size: 12px; line-height: 1.4; color: var(--text-3); overflow-wrap: anywhere; }
.acover__credit a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }
.acover__credit a:hover { color: var(--text); }
@media (min-width: 1024px) {
  .art-main--cover { display: flex; flex-direction: column; }
  .art-main--cover > .kicker-cat, .art-main--cover > h1, .art-main--cover > .byline { order: -2; }
  .art-main--cover > .acover { order: -1; margin-top: var(--s-5); }
}

/* game_tiles block (TAB-0321): Winpot lobby tiles, portrait 316×469 kept by aspect-ratio + width/height, so nothing shifts.
   2 per row on phones, 3–4 on tablets, 5–6 on desktop; 3 in the desktop sidebar. The CDN serves one 316 px size, enough
   for a crisp tile up to ~158 CSS px on 2x screens. */
.gtiles { margin: var(--s-6) 0; }
.gtiles__title { margin: 0 0 var(--s-3); font-family: var(--ui); font-weight: 700; font-size: 16px; line-height: 1.3; color: var(--text); text-transform: none; }
.gtiles__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4) var(--s-3); }
@media (min-width: 600px) { .gtiles__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 768px) { .gtiles__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .gtiles__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } .aside .gtiles__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .gtiles__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.gtile { min-width: 0; margin: 0; }
.gtile__link { display: flex; flex-direction: column; gap: var(--s-2); color: var(--text); text-decoration: none; border-radius: var(--radius); }
.gtile__pic { display: block; aspect-ratio: 316 / 469; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.gtile__pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
a.gtile__link .gtile__pic { transition: border-color var(--t-base) var(--ease-out); }
a.gtile__link:hover .gtile__pic { border-color: var(--green); }
.gtile__name { font-family: var(--ui); font-weight: 600; font-size: 13px; line-height: 1.3; color: var(--text); overflow-wrap: anywhere; }
.paper .gtile__name, .paper .gtile__note { margin: 0; }
.gtile__note { align-self: flex-start; padding: 2px 8px; border-radius: var(--radius-sm); background: var(--chip-bg); color: var(--chip-text); font-family: var(--ui); font-weight: 600; font-size: var(--fs-label); line-height: 1.5; }
.gtile__note--off { background: var(--surface-3); color: var(--text-2); }

/* =====================================================================
   Royal flush deck (TAB-0322): the five home cards as 10 J Q K A of one suit.
   Markup: src/components/Deck.astro (suit = one constant there, passed in as --suit-ink).
   Ben asked for real playing cards, so the faces are light card stock on the dark page: the one
   deliberate exception to the flat navy surfaces. Sizes inside a card are in cqi (1cqi = 1% of
   the card width), so the 2.5:3.5 card scales as one piece at every width.
   ===================================================================== */
.deck--royal {
  --card-stock: #f7f2e6; --card-stock-2: #e9e0cc; --card-ink: var(--ground);
  --rf-frame: color-mix(in srgb, var(--suit-ink) 58%, var(--card-stock));
  --rf-gold: #a9823a;
  --rf-foil: linear-gradient(135deg, #8a6420 0%, #e9cf8a 18%, #a77a2c 36%, #f6e6b0 52%, #94702a 70%, #dcb96c 86%, #8a6420 100%);
  --rf-fibre: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .5' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .32 0 0 0 0 .2 0 0 0 .16 -.03'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  --rf-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --rf-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .26 0 0 0 0 .18 0 0 0 .2 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --w: 150px; --step: 0px; --rot: 0deg; --drop: 0px; --lift: 0px;
}
.rf-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.deck--royal .card { container-type: inline-size; }
.deck--royal .card__inner { aspect-ratio: 5 / 7; }
/* hover and keyboard focus lift the card (below); the back with the newest pages turns up on tap/click (lujo.js) or when focus moves into it */
.deck--royal .card:hover .card__inner, .deck--royal .card:focus-within .card__inner { transform: none; }
.deck--royal .card.is-flipped .card__inner, .deck--royal .card:has(.card__back :focus) .card__inner { transform: rotateY(180deg); }
/* iOS Safari/Chrome ignore backface-visibility on faces whose children get their own layers (filters, sheen, glint), so
   the turned-away face showed through mirrored (Ben, 3 Dec, iPhone). Hide it with opacity at the half-turn, when the card
   is edge-on: never visibility, so the back's links stay focusable for the :focus flip. */
.deck--royal .card__front, .deck--royal .card__back { transition: opacity 0s linear 140ms; }
.deck--royal .card__back { opacity: 0; }
.deck--royal .card.is-flipped .card__front, .deck--royal .card:has(.card__back :focus) .card__front { opacity: 0; }
.deck--royal .card.is-flipped .card__back, .deck--royal .card:has(.card__back :focus) .card__back { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .deck--royal .card__front, .deck--royal .card__back { transition: none; } }
.deck--royal .card__front:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }

/* the face: card stock (grain + fibres), fine double inner border, soft shadow, sheen */
.deck--royal .card__face { border: 0; border-radius: 5.5cqi; }
.deck--royal .card__front {
  padding: 0; color: var(--card-ink);
  background: var(--rf-grain), var(--rf-fibre), radial-gradient(130% 95% at 28% 12%, #fffdf7 0%, var(--card-stock) 46%, var(--card-stock-2) 100%);
  background-size: 160px 160px, 220px 220px, auto;
  box-shadow: 0 0 0 .5px rgb(0 0 0 / .3), inset 0 0 0 1px rgb(255 255 255 / .7), inset 0 0 2.4cqi rgb(120 90 40 / .12), 0 1px 2px rgb(0 0 0 / .35),
    0 8px 16px -4px rgb(0 0 0 / .45), 0 24px 44px -14px rgb(0 0 0 / .65);
}
.rf-sheen { position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(118deg, rgb(255 255 255 / 0) 28%, rgb(255 255 255 / .3) 44%, rgb(255 255 255 / .05) 52%, rgb(255 255 255 / 0) 60%),
    linear-gradient(180deg, rgb(255 255 255 / .18), rgb(255 255 255 / 0) 22%, rgb(0 0 0 / 0) 80%, rgb(60 40 20 / .08));
  opacity: .8; transition: opacity var(--t-base) var(--ease-out); }
.rf-sheen::before, .rf-sheen::after { content: ""; position: absolute; border-radius: 3.2cqi; }
.rf-sheen::before, .rf-court::before { padding: 1px; background: var(--rf-foil);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
.rf-sheen::before { inset: 2.4cqi; opacity: .85; }
.rf-sheen::after { inset: 3.4cqi; border: .5px solid var(--rf-frame); border-radius: 2.6cqi; opacity: .6; }
.deck--royal .card:hover .rf-sheen, .deck--royal .card__front:focus-visible .rf-sheen { opacity: 1; }

/* corner indices: rank over suit, top-left and turned 180° bottom-right; a light emboss */
.rf-idx { position: absolute; z-index: 1; display: grid; justify-items: center; width: 12.5cqi; font-family: var(--rf-serif); color: var(--suit-ink); line-height: .9;
  text-shadow: 0 .4cqi 0 rgb(255 255 255 / .85), 0 -.25cqi .2cqi rgb(80 10 15 / .3); }
.rf-idx b { font-size: 12cqi; font-weight: 700; letter-spacing: -.06em; }
.rf-idx i { font-style: normal; font-size: 9.5cqi; line-height: 1; margin-top: .6cqi; }
.rf-idx--tl { top: 5.4cqi; left: 3.6cqi; }
.rf-idx--br { bottom: 5.4cqi; right: 3.6cqi; transform: rotate(180deg); }

/* centre: the court panel, gold-foil outer line + red inner line, guilloche waves, corner flourishes */
.rf-court { position: absolute; inset: 7.5cqi 17cqi; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.2cqi; padding: 4cqi 3cqi;
  overflow: hidden; border: 0; border-radius: 2.2cqi;
  outline: .5px solid color-mix(in srgb, var(--rf-frame) 80%, transparent); outline-offset: -1.8cqi;
  background: radial-gradient(70% 46% at 50% 40%, rgb(255 253 246 / .85), rgb(255 253 246 / 0) 75%), url("deck-waves.svg") 0 0 / 24px 8px; }
.rf-court::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; padding: 1.5px; pointer-events: none; }
.rf-c { position: absolute; z-index: 1; width: 11cqi; height: 11cqi; color: var(--rf-gold); }
.rf-c--tl { top: .6cqi; left: .6cqi; }
.rf-c--tr { top: .6cqi; right: .6cqi; transform: scaleX(-1); }
.rf-c--bl { bottom: .6cqi; left: .6cqi; transform: scaleY(-1); }
.rf-c--br { bottom: .6cqi; right: .6cqi; transform: scale(-1); }
.rf-band { position: relative; z-index: 1; flex: none; width: 92%; height: auto; aspect-ratio: 120 / 24; }
.rf-band--bottom { transform: rotate(180deg); }
.rf-ace { position: absolute; left: 50%; top: 41%; width: 60cqi; height: auto; aspect-ratio: 100 / 92; transform: translate(-50%, -50%); color: var(--suit-ink); }

/* the art: card-palette copies (public/anim/card), printed over a guilloche rosette */
.deck--royal .card__art { position: relative; z-index: 1; flex: none; width: 46cqi; aspect-ratio: 1; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
.deck--royal .card__art::before { content: ""; position: absolute; inset: -12%; z-index: -1; background: url("deck-rosette.svg") center / contain no-repeat; opacity: .9; }
.deck--royal .rf-court--ace .card__art::before { display: none; }
.deck--royal .card__art .ill3d { mix-blend-mode: normal; filter: none; }
.deck--royal .rf-court--ace .card__art { width: 44cqi; }
.deck--royal .card__name { position: relative; z-index: 1; width: 88%; padding: 1.8cqi 1cqi .6cqi; border-top: 1px solid color-mix(in srgb, var(--rf-gold) 70%, transparent);
  background: linear-gradient(90deg, rgb(247 242 230 / 0), var(--card-stock) 18% 82%, rgb(247 242 230 / 0));
  font-family: var(--rf-serif); font-weight: 700; font-size: 7cqi; line-height: 1.12; letter-spacing: .08em; text-transform: uppercase; text-align: center; text-wrap: balance;
  color: var(--card-ink); -webkit-text-fill-color: currentColor; overflow-wrap: anywhere; }

/* foil glint: a bright band of light sweeps across the whole hand once when it is dealt (card by card, so it reads as one
   light passing through the five cards) and over a card on hover/focus. Never under reduced motion. */
.rf-glint { position: absolute; inset: 0; z-index: 3; border-radius: inherit; overflow: hidden; pointer-events: none; mix-blend-mode: normal;
  background: linear-gradient(105deg, rgb(233 207 138 / 0) 38%, rgb(233 207 138 / .55) 45%, rgb(255 255 255 / .95) 50%, rgb(233 207 138 / .55) 55%, rgb(233 207 138 / 0) 62%) no-repeat;
  background-size: 300% 100%; background-position: 130% 0; }
@media (prefers-reduced-motion: no-preference) {
  .mo-deal .rf-glint { animation: rf-glint 900ms cubic-bezier(.45,0,.2,1) 1 both; animation-delay: calc(1300ms + (var(--i) + 2) * 180ms); }
  .deck--royal .card:hover .rf-glint, .deck--royal .card__front:focus-visible .rf-glint { animation: rf-glint 1100ms var(--ease-out) 1 both; }
}
@keyframes rf-glint { from { background-position: 130% 0; } to { background-position: -30% 0; } }

/* the back (newest pages) keeps the navy look, edged in the same card stock */
.deck--royal .card__back { border: 2.6cqi solid var(--card-stock); box-shadow: 0 0 0 .5px rgb(0 0 0 / .3), 0 8px 16px -4px rgb(0 0 0 / .45), 0 24px 44px -14px rgb(0 0 0 / .65); }

/* the back must always hold its label, three titles and the link (QA TAB-0322): titles clamp at 3 lines, the full title stays the link text */
.deck--royal .card__back .card__q { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; flex: none; }
.deck--royal .card__more { flex: none; padding-top: 4px; }
@media (max-width: 899px) {
  .deck--royal .card__back { padding: 8px 8px 8px; }
  .deck--royal .card__back .label { font-size: var(--fs-label); line-height: 1.15; padding-bottom: 5px; margin-bottom: 2px; }
  .deck--royal .card__back .card__q { font-size: 12px; line-height: 1.25; padding: 4px 6px; margin: 0 -6px; }
  .deck--royal .card__more { font-size: 12px; }
  .deck--royal .card__name { font-size: max(12px, 7cqi); letter-spacing: .04em; }
}

/* phones and small tablets (< 768): the same fanned hand as the web, all five cards on screen at once (Ben, 2 Dec: no
   scroll row). Each card keeps its 176px layout (so faces and backs read exactly as before) and is drawn smaller with
   --s; the hand fills the content width. A tapped card comes to the centre at full size and turns over (lujo.js). */
@media (max-width: 767px) {
  .deck.deck--royal { --w: 176px; --h: calc(var(--w) * 1.4); --s: .7; --rot: 4deg; --drop: 4px; --lift: 10px;
    --step: calc((100vw - 2 * var(--gutter) - var(--w) * var(--s) - 28px) / 4);
    --room-top: calc(var(--lift) + 8px - var(--h) * (1 - var(--s)));
    display: block; position: relative; overflow: visible; padding: 0; margin-top: 8px;
    height: calc(var(--room-top) + var(--h) + 4 * var(--drop) + 18px); }
  .deck.deck--royal .card { position: absolute; left: 50%; top: var(--room-top); width: var(--w); margin-left: calc(var(--w) / -2);
    transform: translateX(calc(var(--i) * var(--step))) translateY(calc(var(--i2) * var(--drop))) rotate(calc(var(--i) * var(--rot))) scale(var(--s));
    transform-origin: 50% 100%; z-index: calc(var(--i) + 3); transition: transform var(--t-slow) var(--ease-out); }
  .deck.deck--royal .card.is-flipped { z-index: 20; transform: translateY(calc(-1 * var(--lift))) rotate(0deg) scale(1); }
  /* the questions under the cards have no room in a phone hand: kept for screen readers (aria-describedby), hidden on screen */
  .deck.deck--royal .card__sub { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: 0; }
}
@media (max-width: 359px) { .deck.deck--royal { --s: .62; --rot: 3.5deg; } }
@media (min-width: 480px) and (max-width: 767px) { .deck.deck--royal { --s: .85; } }
/* tablet (768+) and desktop: a hand of cards fanned from the bottom; the hand opens when the pointer or focus comes in (lujo.js) */
@media (min-width: 768px) {
  .deck.deck--royal { --w: 176px; --rot: 2.5deg; --drop: 3px; --lift: 18px; --room-top: 30px; --room-sub: 92px;
    --step: min(160px, (100vw - 2 * var(--gutter) - 1.12 * var(--w)) / 4);
    display: block; position: relative; overflow: visible; padding: 0;
    height: calc(var(--w) * 1.4 + 4 * var(--drop) + var(--room-top) + var(--room-sub)); }
  .deck.deck--royal .card { position: absolute; left: 50%; top: var(--room-top); bottom: auto; width: var(--w); margin-left: calc(var(--w) / -2);
    transform: translateX(calc(var(--i) * var(--step))) translateY(calc(var(--i2) * var(--drop))) rotate(calc(var(--i) * var(--rot)));
    transform-origin: 50% 100%; z-index: calc(var(--i) + 3); transition: transform var(--t-slow) var(--ease-out); }
  .deck.deck--royal .card:focus-within { z-index: 10;
    transform: translateX(calc(var(--i) * var(--step))) translateY(calc(var(--i2) * var(--drop) - var(--lift))) rotate(0deg); }
  .deck.deck--royal .card__sub { position: absolute; top: 100%; left: 50%; right: auto; width: min(var(--w), var(--step) - 12px); margin-top: 18px;
    transform: translateX(-50%); text-align: center; opacity: 0; transition: opacity var(--t-base); }
  .deck.deck--royal.is-spread .card__sub, .deck.deck--royal .card:hover .card__sub, .deck.deck--royal .card:focus-within .card__sub { opacity: 1; }
}
@media (min-width: 768px) and (hover: hover) {
  .deck.deck--royal .card:hover { z-index: 10;
    transform: translateX(calc(var(--i) * var(--step))) translateY(calc(var(--i2) * var(--drop) - var(--lift))) rotate(0deg); }
}
@media (min-width: 900px) {
  .deck.deck--royal { --w: 216px; --rot: 6deg; --drop: 7px; --lift: 26px; --room-top: 34px; --room-sub: 84px;
    --step: min(168px, (100vw - 2 * var(--gutter) - 1.4 * var(--w)) / 4); }
  .deck.deck--royal.is-spread { --rot: 2.5deg; --drop: 2px; --step: min(240px, (100vw - 2 * var(--gutter) - 1.4 * var(--w)) / 4); }
}
@media (prefers-reduced-motion: reduce) {
  .deck--royal .card, .deck--royal .card__inner, .deck--royal .card__sub, .rf-sheen { transition: none; }
}
/* keyboard flip keeps focus on the (now hidden) face: show the focus ring on the back instead (QA TAB-0322 re-check) */
.deck--royal .card.is-flipped:has(.card__front:focus-visible) .card__back { outline: 2px solid var(--focus); outline-offset: 4px; }

/* Tu tablero (home, session open; QA 2 Dec F2/F3 on TAB-0376). `.personal` reset the .wrap side padding, so the section
   sat 0 px from the edge on phones and 40 px wider than the other home sections on desktop: same gutter as every .wrap.
   Its card buttons (.btn--sm, 32 px) are 44 px tall on touch and phone/tablet widths; same colour, radius and type. */
.personal.wrap { padding-left: var(--gutter); padding-right: var(--gutter); }
@media (pointer: coarse), (max-width: 1023px) { .personal .btn--sm { min-height: 44px; } }

/* ---------------------------------------------------------------- match previews (TAB-0394 design review, 2 Dec 2026) */
/* 8px radius like every other card; header on the standard 1px border (no 3px accent bar) */
.match-head, .match-card, .match-markets { border-radius: var(--radius); }
.match-markets { overflow: hidden; }
.match-head { border-top: 1px solid var(--line-strong); }
.match-state, .match-tag, .match-res { border-radius: var(--radius-sm); }
/* green fill is the primary action only: "G" and "Oficial" are status, so status-green outline */
.match-res--G, .match-tag { background: transparent; color: var(--status); border: 1px solid var(--status); }
.match-tag--off { color: var(--text-2); border-color: var(--line-strong); }
/* team news: one marker only (the .paper list rule added a disc bullet next to the left rule) */
.paper .match-news ul { list-style: none; padding-left: 0; }
/* tables: text columns read left, figures right; totals line reads left; dates never break */
.match-table :is(th, td):is(:nth-child(2), :nth-child(3)):not(:last-child) { text-align: left; }
.match-table tbody td:first-child { white-space: nowrap; }
.match-table tfoot td, .match-table tfoot td:last-child { text-align: left; font-size: 13px; font-weight: 500; color: var(--text-2); }
@media (max-width: 599px) {
  .match-table th, .match-table td { padding: var(--s-2) 5px; }
  .match-table th:first-child, .match-table td:first-child { padding-left: var(--s-3); }
  .match-table th:last-child, .match-table td:last-child { padding-right: var(--s-3); }
  .match-table thead th { font-size: 10px; letter-spacing: .06em; }
  .match-table td { font-size: 13px; }
}
/* 360 px and below (QA M3): the 5-column form table must fit its 328 px box, no sideways scroll */
@media (max-width: 374px) {
  .match-table th, .match-table td { padding-left: 3px; padding-right: 3px; }
  .match-table thead th { letter-spacing: .02em; }
  .match-table td { font-size: 12.5px; }
  .match-table td.num, .match-table td .num { font-size: 15px; }
}
/* match cards (/pronosticos/ and Próximos partidos): "Puebla vs León" on one line, two columns on desktop */
.match-card__teams { display: block; }
.match-card__teams small { display: block; margin-top: 4px; }
@media (min-width: 1024px) { .match-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.match-state--finished { color: var(--text-2); border-color: var(--line-strong); }

/* Live board from the BI + jackpot feeds (Ben, 2 Dec; src/components/LiveCells.astro). The jackpot tile takes a full row and
   lists the active jackpots; the figure tiles share the next row(s): 2 per row on phones (an odd last one takes the row),
   all in one row from 900 px. In the sidebar the tiles stack. Server-rendered, so no placeholder or reserved boxes. */
.board__grid[data-board] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.board__grid[data-board] > .cell { grid-column: auto; order: 0; }
.board__grid[data-board] > .cell[data-id="jackpot"] { grid-column: 1 / -1; }
.board__grid[data-board][data-odd] > .cell:last-child:not([data-id="jackpot"]) { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .board__grid[data-board] { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); }
  .board__grid[data-board][data-odd] > .cell:last-child:not([data-id="jackpot"]) { grid-column: auto; }
}
.aside .board__grid[data-board] { grid-template-columns: minmax(0, 1fr); }
.aside .board__grid[data-board][data-odd] > .cell:last-child { grid-column: auto; }
.board__grid[data-board] .cell__value { font-size: clamp(36px, 4.2vw, 64px); }
.aside .board__grid[data-board] .cell__value { font-size: 44px; }
.cell__label { overflow-wrap: anywhere; }
.cell__jackpots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4) var(--s-6); }
@media (min-width: 900px) { .board .wrap .cell__jackpots { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.aside .cell__jackpots { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
.cell__jackpots li { display: grid; gap: 4px; min-width: 0; }
.jp__name { font-family: var(--ui); font-size: 13px; line-height: 1.3; color: var(--text-2); overflow-wrap: anywhere; }
.jp__mxn { font-family: var(--display); font-weight: 800; font-size: clamp(24px, 2.6vw, 40px); line-height: 1; letter-spacing: -.01em; color: var(--green); font-variant-numeric: tabular-nums; }
.aside .jp__mxn { font-size: 26px; }
.cell[data-id="jackpot"] .cell__stamp { flex-wrap: wrap; }
.cell__link { margin-left: auto; display: inline-flex; align-items: center; min-height: 44px; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.cell__link:hover { color: var(--text); }
/* Jackpot total, Winpot casino JackpotWidget style (Ben, 2 Dec: "copy jackpot ticker style"). Only the number treatment, the
   glow and the digit roll are copied; the tile stays on our design system. Teko 700 (Google Fonts has no 800), solid gold, no
   text-shadow; one fixed slot per character, line-height = font-size, digits as 0-9 strips that data-digit places (so the
   first paint is the value lujo.js counts up from: max(total − 30, total with its last two digits at 00), Ben 2 Dec) and
   whose last two roll on each tick of the forward roll-up (one tick per 2 s, a soft 800 ms ease-out roll: Ben, 2 Dec "make it
   move slower", so a digit is never seen half-way for long). Strips are placed in % of their own height (10 digits = -10%
   each), never em, so a font-size change (resize, rotation, fit.js) moves nothing and never replays the roll. .jp--jump: hundreds and up change with no roll. The size follows the tile (cqi, `.cell` is the container) so
   it fits a 360 px phone and the sidebar; fit.js still shrinks .cell__value (the number is 1em of it) if it ever overflows. */
html body .board__grid[data-board] > .cell[data-id="jackpot"] .cell__value { font-size: clamp(34px, 14cqi, 80px); align-items: baseline; filter: none; text-shadow: none; }
.cell[data-id="jackpot"] .v.jp { position: relative; isolation: isolate; display: inline-flex; font: 700 1em/1 var(--jackpot-font); letter-spacing: .02em; color: var(--jackpot); font-variant-numeric: normal; }
.jp__glow { position: absolute; z-index: -1; left: 50%; top: 50%; width: 110%; height: 120%; transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(rgba(var(--jackpot-glow), .3) 0, rgba(var(--jackpot-glow), .1) 40%, transparent 70%); filter: blur(8px); }
html body .jp__reel { display: inline-flex; height: 1em; line-height: 1; overflow: hidden; vertical-align: top; }
html body .jp__reel .reel__d { position: relative; width: .51em; height: 1em; overflow: hidden; }
html body .jp__reel .reel__d.reel__s { width: auto; overflow: visible; padding: 0; }
html body .jp__reel .reel__d > span { position: absolute; inset: 0 0 auto; height: auto; display: flex; flex-direction: column; transition: transform 800ms cubic-bezier(.16, 1, .3, 1) !important; transition-delay: 0s !important; }
html body .jp__reel .reel__d > span > i { display: block; height: 1em; line-height: 1; font: inherit; font-style: normal; text-align: center; }
.jp__reel [data-digit="1"] > span { transform: translateY(-10%); } .jp__reel [data-digit="2"] > span { transform: translateY(-20%); }
.jp__reel [data-digit="3"] > span { transform: translateY(-30%); } .jp__reel [data-digit="4"] > span { transform: translateY(-40%); }
.jp__reel [data-digit="5"] > span { transform: translateY(-50%); } .jp__reel [data-digit="6"] > span { transform: translateY(-60%); }
.jp__reel [data-digit="7"] > span { transform: translateY(-70%); } .jp__reel [data-digit="8"] > span { transform: translateY(-80%); }
.jp__reel [data-digit="9"] > span { transform: translateY(-90%); }
@media (min-width: 768px) { html body .cell[data-id="jackpot"] .cell__unit { font-size: 16px; } }   /* TAB-0418 polish: not orphaned next to the 80 px total */
html body .v.jp.jp--jump .jp__reel .reel__d > span { transition: none !important; }
@media (prefers-reduced-motion: reduce) { html body .jp__reel .reel__d > span { transition: none !important; } }
.fomo.fomo--solo { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .board__grid[data-board] > .cell:not([data-id="jackpot"]) .cell__label { min-block-size: 2lh; } }   /* figures line up when a label wraps */

/* Live numbers link to winpot.mx (Ben, 2 Dec: "every number should be a hyperlink to the relevant page in winpot.mx";
   src/components/LiveCells.astro, Ticker.astro, lujo.js). The number keeps its look (colour, font, size); hover and keyboard
   focus draw a 2 px bar under the whole number (value + unit), focus also the ring. Hit area: the board number is at least
   44 px tall; the ticker amount gets 44 px through padding pulled back with negative margins (no layout change). */
a.cell__value { justify-self: start; max-width: 100%; text-decoration: none; min-block-size: 44px; align-content: center; border-radius: 4px; cursor: pointer;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 2px; transition: background-size var(--t-base) var(--ease-out); }
.cell[data-id="jackpot"] a.cell__value { color: var(--jackpot); }
a.cell__value:hover, a.cell__value:focus-visible { background-size: 100% 2px; }
a.cell__value:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.ticker__go { display: inline-block; padding-block: 12px; margin-block: -12px; color: inherit; text-decoration: none; border-radius: 4px; }
.ticker__go:hover b, .ticker__go:focus-visible b { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.ticker__go:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { a.cell__value { transition: none; } }

/* Footer trust strip (src/components/TrustBadges.astro, Ben 2 Dec): factual badges as text + inline SVG, neutral (green =
   money only, red = errors only); wraps at 360 px. */
.tbadges { list-style: none; margin: 0 0 var(--s-5); padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.tbadge { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm, 8px);
  font-family: var(--ui); font-size: 12.5px; font-weight: 600; line-height: 1.3; color: var(--text-2); background: var(--surface-1); max-width: 100%; }
.tbadge svg { flex: none; width: 16px; height: 16px; color: var(--text); }
.tbadge__sub { font-weight: 500; color: var(--text-3); overflow-wrap: anywhere; }
.tbadge__age { flex: none; display: inline-grid; place-items: center; min-width: 22px; height: 18px; padding: 0 3px; border: 1.5px solid var(--text-2); border-radius: 4px; font-size: 10px; font-weight: 800; color: var(--text); }
.tbadge a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-block: -6px; color: inherit; }
