/* ============================================================
   Ruby Fortune — v5 · light theme, proper z-index layering
   ~30% structural/visual refresh. All images & logos kept.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap');

:root {
  --rf-red: #c8102e;
  --rf-red-2: #8a0a20;
  --rf-red-glow: #ff2247;
  --rf-gold: #ffd54a;
  --rf-gold-2: #f5b400;
  --rf-ink: #1a1a1a;
  --rf-bg: #fafafa;
  --rf-surface: #ffffff;
  --rf-border: #ececec;
  --rf-ease: cubic-bezier(.22,1,.36,1);
  --rf-spring: cubic-bezier(.34,1.56,.64,1);

  /* z-index scale — single source of truth */
  --z-bg: -2;
  --z-wash: -1;
  --z-base: 1;
  --z-content: 5;
  --z-decor: 6;          /* pseudo decorations sit ABOVE base but BELOW content */
  --z-nav: 50;
  --z-overlay: 100;
  --z-modal: 9999;
}

/* ---------- TYPOGRAPHY ---------- */
html, body { background: var(--rf-bg) !important; color: var(--rf-ink); }
html, body,
.footer-inner, .nav__mobile, .nav__desk,
.content__Block__Text__Paragraph, .content__Block__Text__Sub__Heading,
.mob__menu__item a, .left__menu__item a, .footer-links a, .label,
h1, h2, h3,
.content__Block__Text__Heading__H2,
.offer__area__hero h1,
.offer__area__hero h2 {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif !important;
}
h1, h2, h3,
.content__Block__Text__Heading__H2,
.offer__area__hero h1,
.offer__area__hero h2 {
  letter-spacing: -.015em !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
}

/* ============================================================
   HERO — light, parallax background, side accent
   ============================================================ */
.site__hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--rf-surface) !important;
  z-index: var(--z-base);
}

/* parallax image layer — locked below everything */
.site__hero::before {
  content: '';
  position: absolute;
  inset: -6% -3% -12% -3%;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #fff;
  transform: translate3d(0, var(--rf-parallax, 0px), 0) scale(1.04);
  transition: transform .12s linear;
  z-index: var(--z-bg);
  pointer-events: none;
  will-change: transform;
}

/* light wash — never blocks clicks */
.site__hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 40% at 50% 0%,  rgba(255,255,255,.55), transparent 70%),
    radial-gradient(80% 50% at 50% 100%, rgba(255,255,255,.45), transparent 70%);
  z-index: var(--z-wash);
  pointer-events: none;
}

/* lift actual hero content above decorations */
.site__hero > *,
.offer__area__hero,
.offer__area__hero__content {
  position: relative;
  z-index: var(--z-content);
}

/* clean dark headlines */
.offer__area__hero h1,
.offer__area__hero h2 {
  color: var(--rf-ink) !important;
  -webkit-text-fill-color: var(--rf-ink) !important;
  text-shadow: 0 1px 2px rgba(255,255,255,.6);
  animation: rfHeroIn .8s var(--rf-ease) both;
}
.offer__area__hero h1 { font-size: clamp(38px, 5vw, 64px) !important; font-weight: 800 !important; }
.offer__area__hero h2 { animation-delay: .1s; font-weight: 500 !important; color: #3a3a3a !important; -webkit-text-fill-color:#3a3a3a !important; }
.offer__area__hero p  { animation: rfHeroIn .8s var(--rf-ease) .2s both; }
.offer__area__hero .a,
.offer__area__hero a.a { animation: rfHeroIn .8s var(--rf-spring) .32s both; }

@keyframes rfHeroIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* kill old decorative elements */
.hero-overlay { display: none !important; }
.offer__area__hero h1::after { content: none !important; }
.offer__area__hero__content::before { content: none !important; }

/* NEW: side accent rail (left edge) */
.site__hero > header[data-auto="HeaderMenu"] { position: relative; z-index: var(--z-nav); }

/* ============================================================
   IGOCSE banner — kept above hero
   ============================================================ */
.igocse-banner {
  position: relative;
  z-index: var(--z-overlay);
  background: var(--rf-surface);
  border-bottom: 1px solid var(--rf-border);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.a, a.a, .back__to__top, .headerRegLink, .headerLoginLink,
.content__Block__Text__Link, .mob__menu__item.hyper a {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 10px !important;
  transition:
    transform .25s var(--rf-ease),
    box-shadow .25s var(--rf-ease),
    background-color .25s var(--rf-ease) !important;
}

/* sheen — capped to button area, never bleeds */
.a::before, a.a::before,
.content__Block__Text__Link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.4) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform .6s var(--rf-ease);
  pointer-events: none;
  z-index: 1;
}
.a:hover::before, a.a:hover::before,
.content__Block__Text__Link:hover::before { transform: translateX(110%); }

.a::after, a.a::after,
.content__Block__Text__Link::after,
.mob__menu__item.hyper a::after { content: none !important; }

.a:hover, a.a:hover,
.content__Block__Text__Link:hover,
.mob__menu__item.hyper a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -10px rgba(200,16,46,.5);
  filter: brightness(1.04);
}
.a:active, a.a:active { transform: translateY(0); }

.back__to__top {
  border-radius: 999px !important;
  z-index: var(--z-overlay);
  transition: transform .3s var(--rf-spring), box-shadow .25s var(--rf-ease) !important;
}
.back__to__top:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -10px rgba(200,16,46,.55),
              0 0 0 3px rgba(255,213,74,.35);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
header[data-auto="HeaderMenu"] { z-index: var(--z-nav); }

.left__menu__item, .mob__menu__item { position: relative; }
.left__menu__item > a,
.mob__menu__item > a {
  position: relative;
  transition: color .2s var(--rf-ease) !important;
}
.left__menu__item > a::after,
.mob__menu__item > a::after {
  content: '';
  position: absolute;
  left: 16%; right: 16%; bottom: 4px;
  height: 2px;
  background: linear-gradient(90deg, var(--rf-red), var(--rf-gold));
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .3s var(--rf-ease);
  border-radius: 2px;
  pointer-events: none;
}
.left__menu__item:hover > a::after,
.mob__menu__item:hover > a::after {
  transform: scaleX(1);
  transform-origin: left center;
}

/* gold dot indicator */
.left__menu__item > a::before,
.mob__menu__item > a::before {
  content: '';
  position: absolute;
  left: 50%; top: 2px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--rf-gold);
  transform: translate(-50%, -4px) scale(0);
  opacity: 0;
  transition: transform .25s var(--rf-spring), opacity .2s var(--rf-ease);
  pointer-events: none;
}
.left__menu__item:hover > a::before,
.mob__menu__item:hover > a::before {
  transform: translate(-50%, 0) scale(1);
  opacity: 1;
}

/* ============================================================
   CONTENT BLOCKS — light cards with proper layering
   ============================================================ */
.content__Block {
  position: relative;
  z-index: var(--z-base);
  background: var(--rf-surface);
  border: 1px solid var(--rf-border);
  border-radius: 16px;
  overflow: hidden;
  opacity: 1 !important;
  transform: none !important;
  transition: box-shadow .3s var(--rf-ease) !important;
}
.content__Block.rf-in { opacity: 1 !important; transform: none !important; }
.content__Block:hover {
  box-shadow: 0 12px 28px -16px rgba(0,0,0,.15);
}

/* keep block text/buttons clickable & above any decoration */
.content__Block > *,
.content__Block__Text,
.content__Block__Text__Link {
  position: relative;
  z-index: var(--z-content);
}

.content__Block__Picture,
.content__Block__Image {
  overflow: hidden;
  position: relative;
  z-index: var(--z-base);
}
.content__Block__Picture img,
.content__Block__Image img {
  transition: transform .8s var(--rf-ease) !important;
  display: block;
  width: 100%;
}
.content__Block:hover .content__Block__Picture img,
.content__Block:hover .content__Block__Image img {
  transform: scale(1.04);
}

/* gold corner accent — decorative only, pinned, non-blocking */
.content__Block::after {
  content: '' !important;
  position: absolute;
  top: 10px; right: 10px;
  width: 12px; height: 12px;
  border-top: 2px solid var(--rf-gold);
  border-right: 2px solid var(--rf-gold);
  opacity: 0;
  transition: opacity .35s var(--rf-ease), transform .35s var(--rf-ease);
  transform: translate(-4px, 4px);
  z-index: var(--z-decor);
  pointer-events: none;
}
.content__Block:hover::after { opacity: .9; transform: translate(0, 0); }
.content__Block::before { content: none !important; }

/* simple heading */
.content__Block__Text__Heading__H2 {
  position: relative;
  display: inline-block;
}
.content__Block__Text__Heading__H2::after {
  content: '' !important;
  position: absolute;
  left: 0; bottom: -6px;
  width: 36px; height: 3px;
  background: linear-gradient(90deg, var(--rf-red), var(--rf-gold));
  border-radius: 2px;
  pointer-events: none;
}

/* ============================================================
   JACKPOT
   ============================================================ */
.jackpot_value,
.content__Block__Text__Jackpot__Ticker {
  text-shadow: 0 0 14px rgba(255,213,74,.5), 0 0 4px rgba(255,213,74,.7);
  animation: rfPulse 2.6s ease-in-out infinite;
}
@keyframes rfPulse {
  0%, 100% { text-shadow: 0 0 14px rgba(255,213,74,.5), 0 0 4px rgba(255,213,74,.7); }
  50%      { text-shadow: 0 0 22px rgba(255,213,74,.75), 0 0 8px rgba(255,213,74,.9); }
}

/* ============================================================
   FOOTER
   ============================================================ */
footer, .site__footer { position: relative; z-index: var(--z-base); }
footer::before, .site__footer::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--rf-red), var(--rf-gold), var(--rf-red), transparent);
  opacity: .6;
  pointer-events: none;
  z-index: var(--z-decor);
}

.footer-icons a, .footer-icons img {
  transition: transform .25s var(--rf-spring), filter .25s var(--rf-ease);
}
.footer-icons a:hover img {
  transform: translateY(-2px) scale(1.05);
  filter: drop-shadow(0 4px 8px rgba(255,213,74,.35));
}
.footer-links a {
  position: relative;
  transition: color .2s var(--rf-ease), padding-left .25s var(--rf-spring) !important;
}
.footer-links a:hover { color: var(--rf-gold) !important; padding-left: 6px; }
.footer-links a::before {
  content: '›';
  position: absolute;
  left: -2px; top: 50%;
  transform: translate(-8px,-50%);
  opacity: 0;
  color: var(--rf-gold);
  font-weight: 700;
  transition: opacity .2s var(--rf-ease), transform .25s var(--rf-spring);
  pointer-events: none;
}
.footer-links a:hover::before { opacity: 1; transform: translate(0,-50%); }

.igocse-banner img { transition: transform .25s var(--rf-spring); }
.igocse-banner a:hover img { transform: scale(1.04); }

/* ============================================================
   GLOBAL
   ============================================================ */
header[data-auto="HeaderMenu"] { transform: none !important; }

::selection { background: var(--rf-red); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--rf-red), var(--rf-red-2));
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(var(--rf-red-glow), var(--rf-red)); }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--rf-red);
  outline-offset: 3px;
  border-radius: 6px;
}

/* universal safety: ALL decorative pseudo-elements never block clicks */
.site__hero::before, .site__hero::after,
.content__Block::before, .content__Block::after,
footer::before, .site__footer::before,
.a::before, a.a::before,
.content__Block__Text__Link::before,
.left__menu__item > a::before, .left__menu__item > a::after,
.mob__menu__item > a::before,  .mob__menu__item > a::after {
  pointer-events: none;
}

/* ============================================================
   v5.1 — narrower container + creative hero
   ============================================================ */

/* Narrower content container — site feels tighter, more premium */
.container,
.content-area,
.content-full,
.main-content,
.footer-inner,
.contain_header_navs,
.box_content_inner,
.cta__inner {
  max-width: 1480px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}

/* ============================================================
   HERO v2 — diagonal split, ribbon, floating badge, gradient mesh
   ============================================================ */
.site__hero {
  min-height: clamp(520px, 70vh, 760px);
  background-color: #fff !important;
}

/* diagonal cut bottom */
.site__hero {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 48px), 0 100%);
}

/* gradient mesh wash sitting above bg image but below content */
.site__hero::after {
  background:
    radial-gradient(40% 60% at 12% 30%, rgba(255,213,74,.22), transparent 60%),
    radial-gradient(45% 55% at 88% 70%, rgba(200,16,46,.18), transparent 65%),
    radial-gradient(70% 50% at 50% 100%, rgba(255,255,255,.55), transparent 70%);
}

/* floating decorative ribbon — top-left corner */
.site__hero > .offer__area__hero::before {
  content: 'NEW PLAYERS';
  position: absolute;
  top: 110px;
  left: -40px;
  transform: rotate(-35deg);
  background: linear-gradient(135deg, #c8102e, #8a0a20);
  color: #fff;
  padding: 6px 60px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow: 0 6px 18px -6px rgba(200,16,46,.55);
  z-index: var(--z-decor);
  pointer-events: none;
}

/* floating gold badge — bottom-right of hero text area */
.site__hero > .offer__area__hero::after {
  content: '$750 BONUS';
  position: absolute;
  bottom: 90px;
  right: 6%;
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffe27a, #ffd54a 60%, #e6a900);
  color: #4a2a00;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  box-shadow:
    0 0 0 6px rgba(255,213,74,.18),
    0 16px 36px -10px rgba(229,170,0,.55),
    inset 0 -6px 14px rgba(0,0,0,.12);
  z-index: var(--z-decor);
  pointer-events: none;
  animation: rfBadgeFloat 4s ease-in-out infinite;
}

@keyframes rfBadgeFloat {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50%      { transform: translateY(-10px) rotate(4deg); }
}

@media (max-width: 768px) {
  .site__hero > .offer__area__hero::after { display: none; }
  .site__hero > .offer__area__hero::before { top: 70px; }
}

/* offer area positioning so absolute pseudos anchor correctly */
.site__hero > .offer__area__hero { position: relative; }

/* headline accent — small diamond + thin gold line */
.offer__area__hero h1 {
  position: relative;
  display: inline-block;
}
.offer__area__hero h1::before {
  content: '◆';
  display: block;
  font-size: 14px;
  color: var(--rf-gold);
  margin-bottom: 14px;
  letter-spacing: 8px;
}

/* subtle vignette so text reads on busy bg */
.site__hero > .offer__area__hero {
  background: radial-gradient(60% 80% at 50% 50%, rgba(255,255,255,.55), transparent 70%);
}

/* corner ornaments — top-right thin lines (creative touch) */
.site__hero > .igocse-banner,
.site__hero > .nav__mobile__open__wrapper { position: relative; z-index: var(--z-nav); }

/* slim animated marquee strip just below hero diagonal */
.site__hero + section,
.site__hero + div,
.site__hero + .content-area {
  position: relative;
}
.site__hero + section::before,
.site__hero + div::before,
.site__hero + .content-area::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--rf-red), var(--rf-gold), var(--rf-red), var(--rf-gold), var(--rf-red));
  background-size: 200% 100%;
  animation: rfMarquee 8s linear infinite;
  margin-bottom: 24px;
  border-radius: 2px;
}
@keyframes rfMarquee {
  from { background-position: 0% 0; }
  to   { background-position: -200% 0; }
}
