/* Home. Hero + deal fan from the mockup; new sections in its language. */

/* ── hero (mockup) ──────────────────────────────────────────────────────── */
.hero { position: relative; min-height: min(100svh, 900px); display: flex; align-items: flex-end; padding: calc(var(--header-h) + 48px) 0 0; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg picture, .hero__bg img { width: 100%; height: 100%; }
.hero__bg img { object-fit: cover; object-position: center 40%; transform: scale(1.06); animation: bg-drift 24s var(--ease) infinite alternate; }
@keyframes bg-drift { to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); } }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgb(16 20 29 / .96) 0%, rgb(16 20 29 / .82) 38%, rgb(16 20 29 / .35) 70%, rgb(16 20 29 / .55) 100%),
              linear-gradient(0deg, var(--color-bg) 0%, rgb(16 20 29 / 0) 38%),
              radial-gradient(60% 70% at 78% 52%, rgb(168 85 247 / .28), transparent 70%);
}
.hero__grain { position: absolute; inset: 0; z-index: -1; opacity: .12; mix-blend-mode: overlay; pointer-events: none; background-image: radial-gradient(rgb(255 255 255 / .5) 1px, transparent 1px); background-size: 3px 3px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(24px, 4vw, 64px); align-items: end; }
.hero__copy { padding-bottom: clamp(40px, 6vw, 88px); }
.hero__grid > * { min-width: 0; }
.hero h1 { margin-top: 22px; font-size: var(--fs-h1); font-weight: 800; letter-spacing: -.045em; line-height: .98; }
.hero h1 .accent { position: relative; display: inline-block; color: var(--color-accent); }
.hero h1 .accent .spark { position: absolute; right: -.42em; top: -.1em; width: .32em; height: .32em; }
.hero__sub { margin-top: 22px; max-width: 46ch; font-size: clamp(1.02rem, .95rem + .35vw, 1.25rem); color: var(--color-text-2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }

/* signature: the deal fan (mockup) */
.deck { position: relative; height: clamp(380px, 42vw, 560px); margin-bottom: clamp(24px, 4vw, 64px); }
.deck__label { position: absolute; right: 0; top: 6%; display: flex; align-items: center; gap: 10px; font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--color-text-2); font-weight: 600; }
.deck__label .bar { width: 72px; height: 3px; border-radius: 3px; background: rgb(255 255 255 / .12); overflow: hidden; }
.deck__label .bar i { display: block; height: 100%; width: 100%; background: var(--color-accent); transform-origin: left; animation: deal-bar 4.2s linear infinite; }
.deck.is-paused .deck__label .bar i { animation-play-state: paused; }
@keyframes deal-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.deck__hand { position: absolute; left: 50%; bottom: 0; width: 0; height: 100%; }
.pcard {
  --r: 0deg; --x: 0px; --y: 0px; --w: clamp(150px, 15.5vw, 222px);
  position: absolute; left: calc(var(--w) / -2); bottom: 6%; width: var(--w); padding: 6px 6px 0;
  border-radius: var(--radius-md); background: var(--surface-2); border: 1px solid var(--line-strong); box-shadow: var(--shadow-3);
  color: #fff; text-align: left; transform-origin: 50% 115%; transform: translate(var(--x), var(--y)) rotate(var(--r));
  transition: transform .7s var(--spring), opacity .45s var(--ease);
}
.pcard img { width: 100%; aspect-ratio: 1; border-radius: 10px; object-fit: contain; background: var(--color-bg); }
.pcard__cap { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 6px 11px; font-size: var(--fs-xs); color: var(--color-text-2); }
.pcard__cap b { color: #fff; font-weight: 600; font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard__cap .spark { width: 9px; height: 9px; }
.pcard:nth-child(1) { --r: -26deg; --x: -46%; --y: 4%; z-index: 1; }
.pcard:nth-child(2) { --r: -13deg; --x: -24%; --y: -2%; z-index: 2; }
.pcard:nth-child(3) { --r: 0deg; --x: 0%; --y: -5%; z-index: 3; }
.pcard:nth-child(4) { --r: 13deg; --x: 24%; --y: -2%; z-index: 4; }
.pcard:nth-child(5) { --r: 26deg; --x: 46%; --y: 4%; z-index: 5; }
.pcard:hover, .pcard:focus-visible { transform: translate(var(--x), calc(var(--y) - 9%)) rotate(var(--r)); z-index: 9; }
.deck.is-dealing .pcard { transform: translate(0, 30%) rotate(0deg); opacity: 0; transition-duration: .45s; }

/* ── chips row ──────────────────────────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.game-grid--home .gcard.is-over { display: none; }

/* ── live casino ────────────────────────────────────────────────────────── */
.live .section-head { margin-bottom: 28px; }
.live-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 28px; }
.live-cat {
  position: relative; display: flex; align-items: flex-end; min-height: 260px; padding: 20px; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-lg); border: 1px solid var(--line); text-decoration: none; box-shadow: var(--shadow-2);
  transition: transform .35s var(--ease), border-color .35s;
}
.live-cat picture { position: absolute; inset: 0; z-index: -2; }
.live-cat img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.live-cat::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(16 20 29 / .96) 10%, rgb(16 20 29 / .45) 60%, rgb(16 20 29 / .2)); }
.live-cat:hover { transform: translateY(-4px); border-color: rgb(245 158 11 / .5); }
.live-cat:hover img { transform: scale(1.06); }
.live-cat__body { display: grid; gap: 6px; }
.live-cat .badge { position: static; justify-self: start; }
.live-cat b { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; letter-spacing: -.02em; }
.live-cat__body > span:last-child { color: var(--color-text-2); font-size: var(--fs-small); }
.shelf--live { padding-bottom: 6px; }

/* ── loyalty ────────────────────────────────────────────────────────────── */
.loyalty__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.loyalty__facts { display: grid; gap: 14px; margin-top: 28px; }
.loyalty__facts li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.loyalty__facts .icon { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--tint-brand); color: var(--color-brand); }
.loyalty__facts b { display: block; font-weight: 600; }
.loyalty__facts span { color: var(--color-text-2); font-size: .95rem; }
.loyalty__facts a { color: #fff; text-underline-offset: 3px; }
.levels { display: grid; gap: 10px; }
.level {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: center; padding: 16px 18px;
  margin-left: calc(var(--i) * 18px); border-radius: var(--radius-md); background: var(--surface-2); border: 1px solid var(--line);
  box-shadow: var(--shadow-1); transition: transform .3s var(--ease), border-color .3s;
}
.level:hover { transform: translateX(4px); border-color: rgb(245 158 11 / .45); }
.level__num { font-family: var(--font-display); font-weight: 600; color: var(--color-accent); }
.level b { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; }
.level b .spark { width: 10px; height: 10px; }
.level div span { display: block; margin-top: 2px; color: var(--color-text-2); font-size: var(--fs-small); }
.level__pts { padding: 6px 10px; border-radius: var(--radius-pill); background: var(--surface-1); border: 1px solid var(--line); font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; }

/* ── payments ───────────────────────────────────────────────────────────── */
.pay-name { display: inline-flex; align-items: center; gap: 12px; }
.pay-logo { display: grid; place-items: center; width: 72px; height: 34px; flex: none; border-radius: var(--radius-sm); background: #fff; }
.pay-logo img { height: 18px; width: auto; max-width: 60px; }
.pay-logo--icon { background: var(--tint-brand); color: var(--color-brand); }

/* ── about ──────────────────────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.tile--wide { grid-column: 1 / -1; display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 8px 20px; }
.tile--wide p { grid-column: 2; }
.tile--wide h3 { grid-column: 2; }
.tile--wide .tile__icon { grid-row: 1 / span 2; }
.tile--wide .more { grid-column: 3; grid-row: 1 / span 2; margin: 0; }

/* ── responsible gambling band ──────────────────────────────────────────── */
.rg-band { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(56px, 7vw, 96px); }
.rg-band__bg { position: absolute; inset: 0; z-index: -1; }
.rg-band__bg picture, .rg-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.rg-band__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(16 20 29 / .94), rgb(16 20 29 / .72)); }
.rg-band__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.rg-band__inner img { width: 70px; height: 70px; }
.rg-band h2 { font-size: var(--fs-h2); font-weight: 600; letter-spacing: -.035em; }
.rg-band p { margin-top: 10px; max-width: 60ch; color: #e3e8f0; font-size: 1.05rem; }

/* ── licensing ──────────────────────────────────────────────────────────── */
.lic { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.lic .btn { margin-top: 24px; }

/* ── responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .live-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .loyalty__grid, .lic { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hero { min-height: auto; padding-top: calc(64px + 28px); }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy { padding-bottom: 0; }
  .deck { height: 270px; margin: 8px 0 24px; }
  .pcard { --w: 124px; bottom: 4%; }
  .deck__label { top: 0; left: 0; right: auto; }
  .rg-band__inner { grid-template-columns: auto 1fr; }
  .rg-band__inner .btn { grid-column: 1 / -1; justify-self: start; }
  .tile--wide { grid-template-columns: 48px 1fr; }
  .tile--wide .more { grid-column: 2; grid-row: auto; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 2.15rem; letter-spacing: -.04em; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__meta { margin-top: 24px; }
  .section-head { margin-bottom: 24px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .chips .chip { flex: none; }
  .live-cats { grid-template-columns: 1fr; }
  .live-cat { min-height: 190px; }
  .about-grid { grid-template-columns: 1fr; }
  .level { margin-left: 0; grid-template-columns: 32px 1fr; }
  .level__pts { grid-column: 2; justify-self: start; }
  .rg-band__inner { grid-template-columns: 1fr; }
  .rg-band__inner .btn { width: 100%; white-space: normal; }
  .pay-table th:nth-child(5), .pay-table td:nth-child(5), .pay-table th:nth-child(6), .pay-table td:nth-child(6) { display: none; }
}
@media (max-width: 389px) {
  .hero h1 { font-size: 1.85rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__bg img { transform: none; animation: none; }
}
