/* aviator-br: custom hero layer (projects/aviator-br/custom/hero-patch.js). Loaded after site.css. */
.hx { --hx-red: var(--primary); --hx-glow: rgba(245, 38, 61, .35); background: #000; padding: clamp(36px, 6vw, 84px) 0 clamp(36px, 5vw, 72px); isolation: isolate; }
.hx::before { display: none; }

/* Sunburst rays — a nod to the game's background, purely decorative. */
.hx-rays { position: absolute; inset: -40% -10% -40% 30%; z-index: -1; pointer-events: none;
  background: repeating-conic-gradient(from 0deg at 70% 55%, rgba(255, 255, 255, .045) 0deg 6deg, transparent 6deg 18deg);
  -webkit-mask-image: radial-gradient(closest-side at 70% 55%, #000 30%, transparent 100%); mask-image: radial-gradient(closest-side at 70% 55%, #000 30%, transparent 100%); }
.hx::after { content: ""; position: absolute; z-index: -1; right: -10%; top: 10%; width: 60%; height: 90%; pointer-events: none;
  background: radial-gradient(closest-side, var(--hx-glow), transparent 75%); filter: blur(10px); }

/* Typography */
.hx h1 { font-size: clamp(2rem, 3.7vw, 3.05rem); line-height: 1.02; letter-spacing: -.035em; margin-bottom: .4em; }
.hx h1 em { font-style: normal; display: block; color: var(--hx-red); }
.hx .hero__lead { font-size: 1.08rem; max-width: 560px; color: #cfcfcf; }
.hx .badges { gap: 0; margin-bottom: 18px; }
.hx .badge { background: none; border: 0; padding: 0; min-height: 0; font-size: .82rem; font-weight: 700; letter-spacing: .02em; color: #e8e8e8; }
.hx .badge + .badge::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 12px 2px; border-radius: 50%; background: var(--hx-red); }
.hx .badge .icon { display: none; }

/* Stats: a single strip instead of boxed cards */
.hx .hero__stats { display: flex; flex-wrap: wrap; gap: 0; max-width: 600px; margin-top: 30px; border-top: 1px solid #262626; padding-top: 18px; }
.hx .stat { background: none; border: 0; border-radius: 0; padding: 0 22px 0 0; margin: 0 22px 8px 0; border-right: 1px solid #262626; 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.35rem; font-weight: 900; color: #fff; line-height: 1.1; margin: 0; }
.hx .stat dt { font-size: .74rem; color: #9a9a9a; margin-top: 4px; }

.hx .hero__note { color: #8a8a8a; }
.hx .hero__summary { border-left: 3px solid var(--hx-red); border-radius: 0 8px 8px 0; background: #0d0d0d; }

/* ---------- Home: tilted game screen ---------- */
.hx--home .hero__inner--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.hx-screen { position: relative; margin: 0; perspective: 1400px; padding: 26px 0 30px; }
.hx-screen__frame { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid #2c2c2c; background: #0b0b0b;
  transform: rotateY(-13deg) rotateX(5deg) rotateZ(.5deg); transform-origin: 60% 50%;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .03), -30px 30px 90px -30px var(--hx-glow); }
.hx-screen__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, .08), transparent 35%); pointer-events: none; }
.hx-screen__img { display: block; width: 100%; height: auto; }
.hx-tag { position: absolute; z-index: 2; display: inline-flex; gap: 6px; align-items: baseline; padding: 9px 14px; border-radius: 999px; font-size: .86rem; color: #ddd; white-space: nowrap;
  background: rgba(10, 10, 10, .82); border: 1px solid #333; backdrop-filter: blur(8px); box-shadow: 0 10px 30px rgba(0, 0, 0, .6); }
.hx-tag b { color: #fff; font-size: 1.05rem; }
.hx-tag--a { left: -18px; top: 6px; }
.hx-tag--b { right: 4px; top: 38%; background: var(--cta); border-color: transparent; color: #fff; }
.hx-tag--c { left: 12%; bottom: 0; }
.hx-screen figcaption { position: absolute; right: 6px; bottom: 2px; font-size: .7rem; color: #6f6f6f; }

/* ---------- Demo: stage with a screen and a big play button ---------- */
.hx-bg { position: absolute; inset: -20px; z-index: -2; background-size: cover; background-position: center; filter: blur(14px) saturate(1.2); opacity: .22; transform: scale(1.05); }
.hx--demo::before { display: block; content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #000 30%, rgba(0, 0, 0, .55) 70%, rgba(0, 0, 0, .3)), linear-gradient(0deg, #000, transparent 40%); opacity: 1; -webkit-mask-image: none; mask-image: none; }
.hx-stage__screen { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid #333; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .9), 0 0 60px -10px var(--hx-glow); }
.hx-stage__img { display: block; width: 100%; height: auto; filter: brightness(.55); 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; }
.hx-stage__btn { width: 84px; height: 84px; border-radius: 50%; background: var(--cta); box-shadow: 0 0 0 10px rgba(245, 38, 61, .2), 0 0 0 22px rgba(245, 38, 61, .08); position: relative; transition: transform .15s; }
.hx-stage__btn::after { content: ""; position: absolute; left: 34px; top: 26px; border-left: 26px solid #fff; border-top: 16px solid transparent; border-bottom: 16px solid transparent; }
.hx-stage__play:hover .hx-stage__btn { transform: scale(1.06); }
.hx-stage__screen:hover .hx-stage__img { filter: brightness(.7); }
.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 #333; background: rgba(0, 0, 0, .6); font-size: .84rem; color: #cfcfcf; }
.hx-stage__facts b { color: #fff; }
.hx--demo .hero__inner--split { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }

/* ---------- App: phone mock-up with the game cropped into it ---------- */
.hx-phone-wrap { position: relative; display: flex; justify-content: center; padding: 10px 0; }
.hx-phone { position: relative; width: 250px; aspect-ratio: 9 / 18.5; border-radius: 38px; padding: 10px; background: linear-gradient(145deg, #2b2b2b, #0c0c0c);
  box-shadow: 0 0 0 1px #3a3a3a, 0 40px 80px -20px rgba(0, 0, 0, .95), 0 0 80px -10px var(--hx-glow); transform: rotate(-6deg); }
.hx-phone__screen { width: 100%; height: 100%; border-radius: 29px; overflow: hidden; background: #000; }
.hx-phone__img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 45%; 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: 210px; padding: 14px 16px; border-radius: 14px; background: #fff; color: #111; transform: rotate(4deg); box-shadow: 0 18px 40px rgba(0, 0, 0, .6); }
.hx-sticker b { display: block; font-size: 1.05rem; color: var(--cta); }
.hx-sticker span { font-size: .84rem; line-height: 1.35; display: block; margin-top: 4px; }

/* ---------- Strategies: payout calculator card ---------- */
.hx-curve { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 70%; z-index: -1; pointer-events: none; }
.hx-curve path { fill: rgba(245, 38, 61, .07); }
.hx-curve .hx-curve__line { fill: none; stroke: var(--hx-red); stroke-width: 3; opacity: .55; vector-effect: non-scaling-stroke; }
.hx-calc { max-width: 380px; margin-left: auto; padding: 26px 26px 22px; border-radius: 18px; background: #0c0c0c; border: 1px solid #2a2a2a; 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; color: var(--hx-red); }
.hx-calc__row, .hx-calc__eq { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 14px; border-radius: 10px; background: #151515; }
.hx-calc__row span, .hx-calc__eq span { color: #a8a8a8; font-size: .9rem; }
.hx-calc__row b { font-size: 1.4rem; color: #fff; }
.hx-calc__op { text-align: center; font-size: 1.4rem; color: #777; line-height: 1.6; }
.hx-calc__eq { margin-top: 12px; background: var(--cta); }
.hx-calc__eq span { color: rgba(255, 255, 255, .85); }
.hx-calc__eq b { font-size: 1.9rem; color: #fff; }
.hx-calc__note { margin: 14px 0 0; font-size: .8rem; color: #8f8f8f; 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, #121212, #0a0a0a); border: 1px solid #2a2a2a; position: relative; transition: border-color .15s, transform .15s; }
.hx-ticket a::before { content: ""; position: absolute; left: 106px; top: 10px; bottom: 10px; border-left: 2px dashed #2f2f2f; }
.hx-ticket a:hover { border-color: var(--hx-red); 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: #fff; 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: #a3a3a3; }
.hx-ticket__meta b { color: #fff; }
.hx-ticket__go { font-size: 1.3rem; color: var(--hx-red); }

/* ---------- Game + casino: casino card over the game screen ---------- */
.hx-card { position: relative; padding: 30px 0 10px 40px; }
.hx-card__shot { position: absolute; right: 0; top: 0; width: 82%; border-radius: 14px; overflow: hidden; border: 1px solid #262626; opacity: .55; transform: rotate(3deg); }
.hx-card__img { display: block; width: 100%; height: auto; filter: grayscale(.2) brightness(.7); }
.hx-card__panel { position: relative; max-width: 360px; padding: 22px; border-radius: 18px; background: rgba(12, 12, 12, .92); border: 1px solid #2c2c2c; backdrop-filter: blur(10px); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .95), 0 0 60px -20px var(--hx-glow); margin-top: 60px; }
.hx-card__brand { display: flex; align-items: center; gap: 10px; padding-bottom: 16px; margin-bottom: 6px; border-bottom: 1px solid #262626; }
.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: #666; font-size: 1.2rem; }
.hx-card__game { font-weight: 900; font-size: 1.25rem; color: var(--hx-red); 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 #1d1d1d; }
.hx-card__rows div:last-child { border-bottom: 0; }
.hx-card__rows dt { color: #9a9a9a; 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; }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .hx .hero__inner--split, .hx--home .hero__inner--split, .hx--demo .hero__inner--split { grid-template-columns: 1fr; gap: 28px; }
  .hx .hero__motif.hx-visual { max-width: none; }
  .hx::after { width: 100%; right: -30%; top: 40%; }
  .hx-rays { inset: 20% -50% -30% -20%; }
  .hx-screen { padding: 34px 0 40px; perspective: none; }
  .hx-screen__frame { transform: none; }
  .hx-tag { font-size: .78rem; padding: 7px 11px; }
  .hx-tag--a { left: 0; top: 0; }
  .hx-tag--b { right: 0; top: auto; bottom: 8px; }
  .hx-tag--c { display: none; }
  .hx-screen figcaption { position: static; text-align: left; margin-top: 46px; }
  .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; }
}
@media (max-width: 520px) {
  .hx .stat { padding-right: 14px; margin-right: 14px; }
  .hx .stat dd { font-size: 1.12rem; }
  .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; } }
