/* «شريط العروض والأحداث» (tables/banners.js): the banners at the top of a game's home page. Each game sets the
   colours round it (--gb-dot, --gb-dot-on, --gb-gold); the banners carry their own. Old browsers too: the slide's shape
   is a padding (no aspect-ratio), no colour-mix. */
.gb { --gb-gold: #F4B740; --gb-dot: rgba(255, 255, 255, .26); --gb-dot-on: var(--gb-gold); position: relative; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.gb-vp { position: relative; overflow: hidden; border-radius: 18px; touch-action: pan-y; isolation: isolate; transform: translateZ(0);
  box-shadow: 0 14px 34px -16px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08) inset; }
.gb-track { display: flex; transition: transform .6s cubic-bezier(.22, .8, .2, 1); will-change: transform; }
.gb-track.drag { transition: none; }
.gb-s { position: relative; display: block; flex: 0 0 100%; width: 100%; height: 0; padding: 38.75% 0 0; margin: 0; border: 0; overflow: hidden; color: #fff; background: #151a26; font: inherit; text-align: right; cursor: default; }
[dir="ltr"] .gb-s { text-align: left; }
button.gb-s { cursor: pointer; }
button.gb-s:focus-visible { outline: 3px solid var(--gb-gold); outline-offset: -3px; }
.gb-img, .gb-bg, .gb-shade { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; }
.gb-img { object-fit: cover; }
.gb-shade { background: linear-gradient(to left, rgba(6, 8, 14, .78) 0%, rgba(6, 8, 14, .42) 46%, rgba(6, 8, 14, 0) 78%); }
[dir="ltr"] .gb-shade { background: linear-gradient(to right, rgba(6, 8, 14, .78) 0%, rgba(6, 8, 14, .42) 46%, rgba(6, 8, 14, 0) 78%); }
/* the words: the start side, in the middle */
.gb-t { position: absolute; top: 0; bottom: 0; right: 16px; max-width: 64%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
[dir="ltr"] .gb-t { right: auto; left: 16px; }
.gb-t > * + * { margin-top: 4px; }
.gb-t b { display: block; font-size: 20px; font-weight: 800; line-height: 1.22; letter-spacing: -.01em; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.gb-t small { display: block; font-size: 12.5px; line-height: 1.45; opacity: .92; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.gb-k { display: inline-block; font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .02em; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .16); }
.gb-cta { display: inline-flex; align-items: center; margin-top: 9px !important; padding: 6px 12px 6px 9px; border-radius: 999px; background: var(--gb-gold); color: #1a1203; font-size: 12.5px; font-weight: 800; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .5); }
[dir="ltr"] .gb-cta { padding: 6px 9px 6px 12px; }
.gb-cta svg { width: 15px; height: 15px; margin-right: 3px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
[dir="ltr"] .gb-cta svg { margin: 0 0 0 3px; transform: scaleX(-1); }
/* a picture that carries its own words: our button in the end corner, low */
.gb-custom.pic .gb-t { top: auto; bottom: 12px; right: auto; left: 12px; max-width: none; }
[dir="ltr"] .gb-custom.pic .gb-t { left: auto; right: 12px; }
.gb-custom.pic .gb-cta { margin-top: 0 !important; }
/* the time left: the end corner */
.gb-clock { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; padding: 4px 9px 4px 8px; border-radius: 999px; background: rgba(8, 10, 16, .66); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1) inset; }
[dir="ltr"] .gb-clock { left: auto; right: 10px; }
.gb-clock svg { width: 13px; height: 13px; margin-left: 4px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
[dir="ltr"] .gb-clock svg { margin: 0 4px 0 0; }
.gb-clock.hot { background: #E5484D; box-shadow: 0 4px 14px -4px rgba(229, 72, 77, .7); }
.gb-clock.hot svg { animation: gbTick 1s steps(2) infinite; }
@keyframes gbTick { 50% { opacity: .35; } }

/* a store offer: deep red to amber, the price tag on the end side */
.gb-offer .gb-bg { background: radial-gradient(120% 150% at 12% 0%, #FF9A3C 0%, #F2453D 34%, #9C1650 68%, #3A0B2C 100%); }
.gb-offer .gb-bg::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; opacity: .14; background: repeating-linear-gradient(135deg, #fff 0 2px, transparent 2px 14px); }
.gb-tag { position: absolute; bottom: 11%; left: 24px; width: 31%; max-width: 128px; height: 80px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 16px; background: #fff; color: #C21C47;
  transform: rotate(-6deg); box-shadow: 0 14px 28px -10px rgba(40, 0, 20, .65); }
[dir="ltr"] .gb-tag { left: auto; right: 22px; transform: rotate(6deg); }
.gb-tag::before { content: ""; position: absolute; top: 10px; right: 12px; width: 9px; height: 9px; border-radius: 50%; background: #9C1650; box-shadow: 0 0 0 3px rgba(156, 22, 80, .18); }
.gb-tag b { font-size: 40px; font-weight: 900; line-height: 1; letter-spacing: -.03em; }
.gb-tag b i { font-style: normal; font-size: 22px; margin-right: 1px; }
.gb-tag small { font-size: 12px; font-weight: 800; letter-spacing: .04em; margin-top: 2px; color: #9C1650; }
.gb-offer .gb-t { max-width: 58%; }

/* a tournament: the sponsor's colour, the cup and its logo */
.gb-tour { --tc: #2F6BFF; }
.gb-tour .gb-bg { background-color: var(--tc); background-image: radial-gradient(110% 140% at 15% 15%, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 55%), linear-gradient(135deg, rgba(0, 0, 0, .05), rgba(4, 6, 14, .78)); }
.gb-tour .gb-bg::after { content: ""; position: absolute; top: -40%; left: -10%; width: 60%; height: 180%; background: radial-gradient(closest-side, rgba(255, 214, 120, .35), rgba(255, 214, 120, 0)); }
.gb-cup { position: absolute; bottom: 12%; left: 18px; width: 30%; max-width: 120px; height: 88px; display: flex; align-items: center; justify-content: center; }
[dir="ltr"] .gb-cup { left: auto; right: 18px; }
.gb-cup svg { width: 76px; height: 76px; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .45)); }
.gb-cup img { position: absolute; bottom: -4px; right: 50%; margin-right: -42px; width: 84px; height: 30px; padding: 3px 8px; object-fit: contain; border-radius: 9px; background: #fff; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .6); }
.gb-tour .gb-t { max-width: 58%; }

/* the season: a night over the dunes, the season's number in the sun */
.gb-season .gb-bg { background: linear-gradient(180deg, #0D1530 0%, #2A2350 42%, #8E4B55 74%, #E39A52 100%); }
.gb-dune { position: absolute; left: -10%; right: -10%; border-radius: 50% 50% 0 0; }
.gb-dune.a { bottom: -58%; height: 90%; background: linear-gradient(180deg, #C9813F, #7A4321); transform: rotate(-4deg); }
.gb-dune.b { bottom: -66%; height: 92%; left: 30%; background: linear-gradient(180deg, #E0A35A, #9A5A2A); transform: rotate(5deg); }
.gb-stars { position: absolute; top: 0; right: 0; bottom: 40%; left: 0; opacity: .8;
  background-image: radial-gradient(1.4px 1.4px at 12% 22%, #fff, transparent), radial-gradient(1px 1px at 28% 60%, #fff, transparent), radial-gradient(1.2px 1.2px at 44% 18%, #fff, transparent), radial-gradient(1px 1px at 62% 40%, #fff, transparent), radial-gradient(1.5px 1.5px at 80% 14%, #fff, transparent), radial-gradient(1px 1px at 92% 52%, #fff, transparent); }
.gb-sun { position: absolute; bottom: 18%; left: 28px; width: 70px; height: 70px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 38% 34%, #FFF3C4, #F7C35A 52%, #E08B2E); box-shadow: 0 0 0 8px rgba(255, 210, 120, .14), 0 0 40px 10px rgba(255, 180, 80, .35); }
[dir="ltr"] .gb-sun { left: auto; right: 26px; }
.gb-sun b { font-size: 34px; font-weight: 900; color: #7A3C12; line-height: 1; }
.gb-season .gb-t { max-width: 60%; }

/* the dots: the one on show fills while it waits for the next */
.gb-dots { display: flex; justify-content: center; align-items: center; margin-top: 9px; }
.gb-dot { position: relative; width: 22px; height: 22px; margin: 0 1px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.gb-dot i { display: block; width: 6px; height: 6px; border-radius: 999px; background: var(--gb-dot); overflow: hidden; position: relative; transition: width .35s ease, background .35s ease; }
.gb-dot[aria-current="true"] i { width: 22px; background: var(--gb-dot); }
.gb-dot[aria-current="true"] i::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 100%; border-radius: inherit; background: var(--gb-dot-on); transform-origin: right center; }
[dir="ltr"] .gb-dot[aria-current="true"] i::after { right: auto; left: 0; transform-origin: left center; }
.gb-dot.run i::after { animation: gbFill 6.5s linear both; }
@keyframes gbFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.gb-dot:focus-visible { outline: 2px solid var(--gb-gold); outline-offset: 1px; border-radius: 8px; }

@media (min-width: 420px) { .gb-t b { font-size: 22px; } .gb-t small { font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { .gb-track { transition: none; } .gb-clock.hot svg { animation: none; } }
