/* chicken-road-br: custom hero layer (projects/chicken-road-br/custom/hero-patch.js). Loaded after site.css.
   Palette from the game: night indigo (bg), stone walls (surface), gold coins (primary), fire of the grates (accent),
   green Jogar button (cta), yellow Cash Out (secondary), red comb only as large decoration. */
.hx { --hx-gold: var(--primary); --hx-fire: #ff7a1a; --hx-comb: #ff4b3e; --hx-night: #1b1830; --hx-stone: #26223f; --hx-panel: #211d38; --hx-line: #3a3560; --hx-muted: #a9a3cc;
  background: var(--hx-night); padding: clamp(36px, 6vw, 84px) 0 clamp(40px, 5vw, 76px); isolation: isolate; overflow: hidden; text-align: left; }
.hx::before { display: none; }

/* Backdrop: dashed lane markings + warm glow of the fire grates along the bottom edge. */
.hx-scene { position: absolute; z-index: -1; inset: 0; pointer-events: none; }
.hx-lanes { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 148px, rgba(255, 255, 255, .09) 148px 151px);
  -webkit-mask-image: repeating-linear-gradient(180deg, #000 0 22px, transparent 22px 40px), linear-gradient(90deg, transparent 0%, #000 45%);
  -webkit-mask-composite: source-in; mask-image: repeating-linear-gradient(180deg, #000 0 22px, transparent 22px 40px), linear-gradient(90deg, transparent 0%, #000 45%); mask-composite: intersect; }
.hx-glow { position: absolute; left: 0; right: 0; bottom: 0; height: 55%;
  background: radial-gradient(60% 90% at 72% 100%, rgba(255, 122, 26, .38) 0%, rgba(255, 122, 26, .12) 45%, transparent 75%); }

/* Typography */
.hx h1 { font-size: clamp(1.9rem, 3.1vw, 2.6rem); line-height: 1.08; letter-spacing: -.03em; margin-bottom: .4em; color: #fff; }
.hx h1 em { font-style: normal; display: block; color: var(--hx-gold); }
.hx .hero__lead { font-size: 1.06rem; max-width: 560px; color: #ece9ff; }
.hx .badges { gap: 0; margin-bottom: 18px; justify-content: flex-start; }
.hx .badge { background: none; border: 0; padding: 0; min-height: 0; font-size: .82rem; font-weight: 700; letter-spacing: .02em; color: #ece9ff; }
.hx .badge + .badge::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 12px 2px; border-radius: 50%; background: var(--hx-gold); }
.hx .badge .icon { display: none; }

/* Stats: a single strip */
.hx .hero__stats { display: flex; flex-wrap: wrap; gap: 0; max-width: 600px; margin: 30px 0 0; border-top: 1px solid var(--hx-line); padding-top: 18px; }
.hx .stat { background: none; border: 0; border-radius: 0; padding: 0 20px 0 0; margin: 0 20px 8px 0; border-right: 1px solid var(--hx-line); display: flex; flex-direction: column-reverse; min-width: 0; }
.hx .stat:last-child { border-right: 0; margin-right: 0; }
.hx .stat__icon { display: none; }
.hx .stat dd { font-size: 1.25rem; font-weight: 900; color: #fff; line-height: 1.15; margin: 0; }
.hx .stat dt { font-size: .74rem; color: var(--hx-muted); margin-top: 4px; }
.hx .hero__note { color: var(--hx-muted); }
.hx .hero__summary { border-left: 3px solid var(--hx-gold); border-radius: 0 8px 8px 0; background: var(--hx-stone); }
.hx .hero__inner--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; justify-items: stretch; align-items: center; }
.hx .hero__text { margin: 0; }
.hx .hero__actions { justify-content: flex-start; }
.hx .hero__media.hx-visual { max-width: none; min-width: 0; }

/* ---------- Home: key art in a fire halo + fact chips ---------- */
.hx-key { position: relative; margin: 0 auto; max-width: 440px; padding: 10px 0 30px; }
.hx-key__halo { position: absolute; z-index: -1; inset: 6% 4% 10%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 194, 51, .45) 0%, rgba(255, 122, 26, .25) 40%, transparent 70%); filter: blur(6px); }
.hx-key__img { display: block; width: 100%; height: auto; border-radius: 28px; box-shadow: 0 0 0 3px rgba(255, 194, 51, .55), 0 40px 80px -24px rgba(0, 0, 0, .9); }
.hx-chips { position: absolute; z-index: 2; right: -18px; top: 22px; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.hx-chips li { padding: 7px 13px; border-radius: 999px; font-size: .84rem; color: #ece9ff; white-space: nowrap; background: rgba(27, 24, 48, .92); border: 1px solid var(--hx-line); box-shadow: 0 8px 22px rgba(0, 0, 0, .45); }
.hx-chips b { color: var(--hx-gold); }
.hx-chips li:first-child { background: var(--cta); border-color: transparent; color: var(--on-cta, #0f1a10); }
.hx-chips li:first-child b { color: #0f1a10; }
.hx-key figcaption { margin-top: 10px; font-size: .74rem; color: var(--hx-muted); text-align: center; }

/* ---------- Demo: stage with the screen and a big green play button ---------- */
.hx-stage__screen { position: relative; border-radius: 16px; overflow: hidden; border: 4px solid var(--hx-line); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .9), 0 0 60px -10px rgba(255, 122, 26, .35); }
.hx-stage__img { display: block; width: 100%; height: auto; filter: brightness(.42); transition: filter .2s; }
.hx-stage__play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #fff; font-weight: 800; text-decoration: none; font-size: 1.02rem; text-shadow: 0 2px 6px #000; }
.hx-stage__btn { width: 84px; height: 84px; border-radius: 50%; background: var(--cta); box-shadow: 0 0 0 10px rgba(70, 195, 77, .3), 0 0 0 22px rgba(70, 195, 77, .1); position: relative; transition: transform .15s; }
.hx-stage__btn::after { content: ""; position: absolute; left: 34px; top: 26px; border-left: 26px solid #0f1a10; border-top: 16px solid transparent; border-bottom: 16px solid transparent; }
.hx-stage__play:hover .hx-stage__btn, .hx-stage__play:focus-visible .hx-stage__btn { transform: scale(1.06); }
.hx-stage__screen:hover .hx-stage__img { filter: brightness(.58); }
.hx-stage__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 14px 0 0; }
.hx-stage__facts li { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--hx-line); background: rgba(27, 24, 48, .92); font-size: .84rem; color: #ece9ff; }
.hx-stage__facts b { color: var(--hx-gold); }

/* ---------- App: phone mock-up with the screen cropped vertically on the chicken ---------- */
.hx-phone-wrap { position: relative; display: flex; justify-content: center; padding: 10px 0; }
.hx-phone { position: relative; width: 240px; aspect-ratio: 9 / 18.5; border-radius: 38px; padding: 10px; background: linear-gradient(145deg, #3a3560, #120f22);
  box-shadow: 0 0 0 1px #4a4478, 0 40px 80px -20px rgba(0, 0, 0, .9), 0 0 70px -20px rgba(255, 122, 26, .45); transform: rotate(-6deg); }
.hx-phone__screen { width: 100%; height: 100%; border-radius: 29px; overflow: hidden; background: #000; }
/* object-position keeps the chicken (left third of the screenshot) and one lane in the frame. */
.hx-phone__img { width: 100%; height: 100%; object-fit: cover; object-position: 26% 50%; display: block; }
.hx-phone__notch { position: absolute; z-index: 1; left: 50%; top: 18px; width: 80px; height: 20px; margin-left: -40px; border-radius: 999px; background: #000; }
.hx-sticker { position: absolute; left: calc(50% + 70px); bottom: 14%; z-index: 2; max-width: 220px; padding: 14px 16px; border-radius: 14px; background: var(--hx-gold); color: var(--hx-night); transform: rotate(4deg); box-shadow: 0 18px 40px rgba(0, 0, 0, .6); }
.hx-sticker b { display: block; font-size: 1.05rem; }
.hx-sticker span { font-size: .84rem; line-height: 1.35; display: block; margin-top: 4px; }

/* ---------- Strategies: Cash Out calculator ---------- */
.hx-calc { max-width: 380px; margin-left: auto; padding: 26px 26px 22px; border-radius: 18px; background: var(--hx-stone); border: 1px solid var(--hx-line); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9); font-variant-numeric: tabular-nums; }
.hx-calc__label { margin: 0 0 16px; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--hx-gold); }
.hx-calc__row, .hx-calc__eq { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 14px; border-radius: 10px; background: var(--hx-panel); }
.hx-calc__row + .hx-calc__row { margin-top: 6px; }
.hx-calc__row span, .hx-calc__eq span { color: var(--hx-muted); font-size: .9rem; }
.hx-calc__row b { font-size: 1.15rem; color: #fff; }
.hx-calc__row:nth-child(5) b { color: var(--hx-gold); font-size: 1.35rem; }
.hx-calc__eq { margin-top: 12px; background: var(--hx-gold); }
.hx-calc__eq span { color: var(--hx-night); font-weight: 700; }
.hx-calc__eq b { font-size: 1.8rem; color: var(--hx-night); }
.hx-calc__note { margin: 14px 0 0; font-size: .8rem; color: var(--hx-muted); line-height: 1.45; }

/* ---------- Casinos hub: tickets ---------- */
.hx-tickets { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hx-ticket { transform: translateX(calc(var(--i) * 22px)); }
.hx-ticket a { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 14px 18px 14px 14px; border-radius: 14px; text-decoration: none; color: #fff;
  background: linear-gradient(90deg, var(--hx-stone), var(--hx-panel)); border: 1px solid var(--hx-line); position: relative; box-shadow: 0 16px 34px -18px rgba(0, 0, 0, .8); transition: border-color .15s, transform .15s; }
.hx-ticket a::before { content: ""; position: absolute; left: 106px; top: 10px; bottom: 10px; border-left: 2px dashed #4a4478; }
.hx-ticket a:hover, .hx-ticket a:focus-visible { border-color: var(--hx-gold); transform: translateX(-4px); }
.hx-ticket__logo { display: flex; align-items: center; justify-content: center; height: 46px; border-radius: 10px; background: #fff; padding: 6px 10px; }
.hx-logo { max-width: 100%; max-height: 32px; width: auto; height: auto; object-fit: contain; }
.hx-logo--mono { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; background: var(--cta); color: #0f1a10; font-weight: 900; }
.hx-logo__name { margin-left: 6px; color: #111; font-weight: 900; font-size: .9rem; }
.hx-ticket__body { display: flex; flex-direction: column; min-width: 0; padding-left: 8px; }
.hx-ticket__name { font-weight: 800; font-size: 1.05rem; }
.hx-ticket__meta { font-size: .84rem; color: var(--hx-muted); }
.hx-ticket__meta b { color: var(--hx-gold); }
.hx-ticket__go { font-size: 1.3rem; color: var(--hx-gold); }

/* ---------- Game + casino: casino card over the game banner ---------- */
.hx-card { position: relative; padding: 30px 0 10px 40px; }
.hx-card__shot { position: absolute; right: 0; top: 0; width: 84%; border-radius: 14px; overflow: hidden; border: 3px solid var(--hx-line); transform: rotate(3deg); }
.hx-card__img { display: block; width: 100%; height: auto; filter: brightness(.7); }
.hx-card__panel { position: relative; max-width: 360px; padding: 22px; border-radius: 18px; background: rgba(33, 29, 56, .96); border: 1px solid var(--hx-line); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .95); margin-top: 90px; }
.hx-card__brand { display: flex; align-items: center; gap: 10px; padding-bottom: 16px; margin-bottom: 6px; border-bottom: 1px solid var(--hx-line); }
.hx-card__brand .hx-logo { height: 40px; max-height: 40px; max-width: 120px; padding: 6px 10px; border-radius: 10px; background: #fff; box-sizing: content-box; }
.hx-card__brand .hx-logo__name { color: #fff; }
.hx-card__x { color: var(--hx-muted); font-size: 1.2rem; }
.hx-card__game { font-weight: 900; font-size: 1.2rem; color: var(--hx-gold); letter-spacing: -.02em; }
.hx-card__rows { margin: 0; }
.hx-card__rows div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--hx-stone); }
.hx-card__rows div:last-child { border-bottom: 0; }
.hx-card__rows dt { color: var(--hx-muted); font-size: .86rem; }
.hx-card__rows dd { margin: 0; color: #fff; font-weight: 700; font-size: .9rem; text-align: right; }
.hx--operator .hero__pair { display: none; }

/* Long source URLs (official demo) must wrap on phones. */
.sources a { overflow-wrap: anywhere; word-break: break-word; }

/* ---------- Chicken Road 2 block (custom/cr2-patch.js) ---------- */
.cr2-table tbody th { white-space: nowrap; }
.cr2-table td:nth-child(2) { background: color-mix(in srgb, var(--primary) 6%, transparent); }
#chicken-road-2 .table-wrap + p { margin-top: 18px; }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .hx .hero__inner--split { grid-template-columns: 1fr; gap: 28px; }
  .hx-lanes { -webkit-mask-image: repeating-linear-gradient(180deg, #000 0 22px, transparent 22px 40px); mask-image: repeating-linear-gradient(180deg, #000 0 22px, transparent 22px 40px); opacity: .6; }
  .hx-glow { height: 35%; background: radial-gradient(80% 90% at 50% 100%, rgba(255, 122, 26, .3) 0%, transparent 70%); }
  .hx-key { max-width: 340px; padding-bottom: 0; }
  .hx-chips { position: static; flex-direction: row; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
  .hx-chips li { font-size: .8rem; padding: 6px 11px; }
  .hx-ticket { transform: none; }
  .hx-calc { margin: 0 auto; }
  .hx-card { padding: 0; }
  .hx-card__shot { display: none; }
  .hx-card__panel { margin: 0; max-width: none; }
  .hx-sticker { left: auto; right: 0; bottom: 8%; max-width: 170px; }
  .hx-phone { width: 200px; }
  /* CR2 table: the engine turns .compare rows into cards (data-label); only the row title is styled here. */
  .data-table.cr2-table tbody th { display: block; white-space: normal; color: var(--primary); padding: 6px 16px 2px; border: 0; }
  /* Label above the value: the theme row has full sentences that do not fit beside a label. */
  .data-table.cr2-table td { display: block; }
  .data-table.cr2-table td::before { display: block; font-size: .76rem; margin-bottom: 2px; }
  .cr2-table td:nth-child(2) { background: none; }
}
@media (max-width: 520px) {
  /* Badges as small pills: a dot separator would start a wrapped line. */
  .hx .badges { gap: 6px; }
  .hx .badge { padding: 3px 9px; border: 1px solid var(--hx-line); border-radius: 999px; }
  .hx .badge + .badge::before { display: none; }
  .hx .stat { padding-right: 14px; margin-right: 14px; }
  .hx .stat dd { font-size: 1.05rem; }
  .hx-ticket a { grid-template-columns: 76px minmax(0, 1fr) auto; gap: 12px; }
  .hx-ticket a::before { left: 88px; }
  .hx-stage__btn { width: 64px; height: 64px; }
  .hx-stage__btn::after { left: 26px; top: 19px; border-left-width: 20px; border-top-width: 13px; border-bottom-width: 13px; }
  .hx-phone-wrap { justify-content: flex-start; padding-left: 8px; }
}
@media (prefers-reduced-motion: reduce) { .hx-ticket a, .hx-stage__btn, .hx-stage__img { transition: none; } }
