/* ==================================================================
   SpeedAU-style casino front page
   Mobile-first, max content width 745px like the original shell.
================================================================== */

:root {
  --blue:         #1a3cac;
  --blue-dark:    #0e1999;
  --blue-deep:    #011ca2;
  --blue-mid:     #173eac;
  --gold:         #ffd700;
  --yellow:       #ffff09;
  --red:          #fd3029;
  --orange:       #ec7c25;
  --cream:        #ffe6c7;
  --ink:          #1f2937;
  --muted:        #6a6f78;
  --line:         #e4e8ef;
  --page:         #eff3f4;
  --card:         #ffffff;
  --header-h:     60px;
  --marquee-h:    30px;
  --shell:        745px;
  --radius:       12px;
  --shadow:       0 4px 14px rgba(10, 25, 90, .12);
  --shadow-lg:    0 10px 28px rgba(10, 25, 90, .18);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: Inter, Lato, "Segoe UI", system-ui, -apple-system, sans-serif;
  background: #dfe4ea;
  color: var(--ink);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }
button { font: inherit; }

/* The whole app lives in a centred phone-width shell -------------- */
.shell {
  max-width: var(--shell);
  margin: 0 auto;
  background: var(--page);
  min-height: 100vh;
  position: relative;
  padding-bottom: 90px;
}

/* ---------------- Skip link ---------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--blue);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ================= HEADER ================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  height: calc(var(--header-h) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  background: #fff url('../assets/0548574a854669295f966.png') center / cover no-repeat;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
}
.header__inner {
  max-width: var(--shell);
  height: var(--header-h);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
}
.hamburger {
  border: 0;
  background: none;
  padding: 0;
  width: 40px;
  cursor: pointer;
  flex: 0 0 auto;
}
.hamburger img { width: 40px; height: auto; }
.header__logo { margin: 0 auto; }
.header__logo img { height: 42px; width: auto; }
.header__currency img { height: 34px; width: auto; }

/* ================= MARQUEE ================= */
.marquee {
  position: fixed;
  top: calc(var(--header-h) + env(safe-area-inset-top));
  left: 0;
  right: 0;
  z-index: 110;
  height: var(--marquee-h);
  background: var(--blue) url('../assets/3906086a85466e5ac62f3.png') center / cover;
  overflow: hidden;
  display: flex;
  align-items: center;
}
/* The message list is rendered twice, so shifting by exactly half the
   track width loops seamlessly with no visible gap or snap. */
.marquee__track {
  display: flex;
  flex: 0 0 auto;
  gap: 60px;
  padding-right: 60px;
  white-space: nowrap;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  animation: scroll-left 40s linear infinite;
}
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }

@keyframes scroll-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Body offset for the two fixed bars */
.main { padding-top: calc(var(--header-h) + var(--marquee-h) + env(safe-area-inset-top)); }

/* ================= SIDEBAR ================= */
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 290;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s;
}
.backdrop.is-open { opacity: 1; visibility: visible; }

.sidenav {
  position: fixed;
  top: 0;
  left: 0;
  width: 265px;
  height: 100%;
  background: #fff;
  z-index: 300;
  transform: translateX(-100%);
  transition: transform .35s ease;
  overflow-y: auto;
  padding: 16px 12px calc(30px + env(safe-area-inset-bottom));
}
.sidenav.is-open { transform: translateX(0); }

.sidenav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.sidenav__head img { height: 36px; width: auto; }
.sidenav__close {
  border: 0;
  background: none;
  font-size: 30px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 0 4px;
}

.side-mission {
  position: relative;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  background: url('../assets/slot-game-mission-banner.webp') top left / cover no-repeat;
  display: flex;
  align-items: flex-end;
  padding: 6px 14px;
  margin-bottom: 8px;
}
.side-mission a {
  background: var(--blue-mid);
  color: #fff;
  font-style: italic;
  font-weight: 700;
  font-size: 12px;
  padding: 3px 12px;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(23, 62, 172, .6);
}

.side-checkin {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 7px;
  background: linear-gradient(to right, #ffbf00, #fff7bb);
  margin-bottom: 10px;
}
.side-checkin span { font-weight: 600; font-size: 15px; }
.side-checkin a {
  background: #ff6634;
  color: #fff;
  font-style: italic;
  font-weight: 700;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 6px;
}

.side-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 12px;
}
.side-badges img { width: 100%; height: auto; border-radius: 6px; }

.side-link,
.side-group__btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 6px;
  border: 0;
  border-bottom: 1.5px solid var(--blue-mid);
  background: none;
  font-size: 16px;
  font-weight: 700;
  color: #4d4d4d;
  text-align: left;
  cursor: pointer;
}
.side-link img,
.side-group__btn img { width: 26px; height: 26px; object-fit: contain; }
.side-link:hover,
.side-group__btn:hover { color: var(--orange); background: var(--cream); border-radius: 8px; }

.side-tag {
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: auto;
}
.side-group__btn .caret { margin-left: auto; transition: transform .25s; }
.side-group__btn[aria-expanded="true"] .caret { transform: rotate(180deg); }

.side-group__panel { display: none; padding-left: 10px; }
.side-group__panel.is-open { display: block; }
.side-group__panel a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 4px;
  font-size: 14px;
  font-weight: 600;
  color: #4d4d4d;
}
.side-group__panel img { width: 22px; height: 22px; object-fit: contain; }

/* ================= SECTION CHROME ================= */
.section { padding: 0 8px; margin-bottom: 14px; }

.section__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 8px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: var(--blue-dark);
}
.section__title::before {
  content: '';
  width: 5px;
  height: 18px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--gold), var(--orange));
}

/* ================= HERO CAROUSEL ================= */
.hero { position: relative; overflow: hidden; }
.hero__viewport { overflow: hidden; border-radius: var(--radius); }
.hero__track {
  display: flex;
  transition: transform .5s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}
.hero__slide { min-width: 100%; }
.hero__slide img {
  width: 100%;
  aspect-ratio: 12 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}
.hero__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .35);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.hero__nav--prev { left: 14px; }
.hero__nav--next { right: 14px; }
.hero__dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px 0 2px;
}
.hero__dot {
  width: 7px;
  height: 7px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: #b9c2cf;
  cursor: pointer;
}
.hero__dot.is-active { background: var(--blue); width: 18px; border-radius: 4px; }

.static-banner img { width: 100%; border-radius: var(--radius); }

/* ================= JACKPOT ================= */
.jackpot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 10px 14px;
  margin-bottom: 10px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #0b1a6b, var(--blue) 55%, #2a5bd7);
  border: 1px solid rgba(255, 215, 0, .5);
  box-shadow: var(--shadow);
}
.jackpot__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .8);
}
.jackpot__amount {
  font-size: clamp(22px, 6.5vw, 34px);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
  text-shadow: 0 2px 0 #7a4b00, 0 0 16px rgba(255, 215, 0, .75);
  letter-spacing: .5px;
}
.jackpot__banner img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ================= LIVE WIN FEED ================= */
.livefeed {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  border-radius: var(--radius);
  padding: 8px 12px;
  color: #fff;
  overflow: hidden;
  height: 74px;
}
.livefeed__head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  opacity: .85;
  margin-bottom: 4px;
}
.livefeed__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #35e07a;
  animation: pulse 1.4s infinite;
}
@keyframes pulse { 50% { opacity: .25; } }

.livefeed__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  animation: slide-up .5s ease;
}
.livefeed__row b { color: var(--gold); font-variant-numeric: tabular-nums; }
.livefeed__game { opacity: .8; font-size: 11px; }
@keyframes slide-up {
  from { transform: translateY(12px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* ================= WALLET ================= */
.wallet {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
}
.wallet__balance {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}
.wallet__label { font-size: 12px; color: var(--muted); font-weight: 600; }
.wallet__value {
  font-size: 28px;
  font-weight: 900;
  color: var(--blue-dark);
  font-variant-numeric: tabular-nums;
}
.wallet__auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.wallet__auth img { width: 100%; height: auto; }

.wallet__actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.wallet__actions img { width: 100%; height: auto; }

/* ================= CATEGORY TABS ================= */
.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
  flex: 0 0 auto;
  width: 74px;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  text-align: center;
}
.tab img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  margin: 0 auto 4px;
  transition: filter .2s, transform .2s;
  /* one icon ships as an opaque JPG; multiply drops its white box */
  mix-blend-mode: multiply;
}
.tab__label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.2;
}
.tab.is-active img {
  /* the source art ships greyscale; tint the active one blue */
  filter: sepia(1) saturate(6) hue-rotate(190deg) brightness(.95);
  transform: translateY(-2px);
}
.tab.is-active .tab__label { color: var(--blue-dark); }

/* ================= GAME GRID ================= */
.games {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
@media (min-width: 520px) { .games { grid-template-columns: repeat(4, 1fr); } }

.game {
  position: relative;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s;
}
.game:hover,
.game:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.game img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.game__name {
  padding: 5px 4px 6px;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  color: var(--blue-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game__ribbon {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .5px;
  padding: 2px 6px;
  border-radius: 4px;
  color: #fff;
}
.game__ribbon--hot { background: var(--red); }
.game__ribbon--new { background: #17a34a; }

.games__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 30px 10px;
  color: var(--muted);
  font-size: 14px;
}

/* ================= PROMO STRIPS ================= */
.promo-stack { display: grid; gap: 10px; }
.promo-stack img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }

.lucky-badges { display: grid; gap: 8px; }
.lucky-badges img { width: 100%; border-radius: 8px; }

/* ================= PARTNERS ================= */
.partners {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.partners img { width: 100%; border-radius: 6px; }
/* LV33 logo is 3:1 on a solid dark background; pad it out to the
   same 5:1 pill shape as the other partner tiles. */
.partners img.partner--lv33 {
  aspect-ratio: 5 / 1;
  object-fit: contain;
  background: #191a23;
  border-radius: 999px;
}

/* ================= TRUST / FOOTER ================= */
.trust { display: grid; gap: 12px; padding: 16px 10px; background: #fff; }
.trust img { width: 100%; max-width: 420px; margin: 0 auto; height: auto; }

.footer {
  background: linear-gradient(180deg, var(--blue), var(--blue-deep));
  color: #fff;
  padding: 20px 14px calc(24px + env(safe-area-inset-bottom));
  font-size: 13px;
  line-height: 1.6;
}
.footer h2 { font-size: 15px; margin: 0 0 6px; }
.footer p { margin: 0 0 10px; opacity: .85; }
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 14px;
  font-weight: 600;
}
.footer__links a { opacity: .9; }
.footer__links a:hover { opacity: 1; text-decoration: underline; }
.footer__legal {
  border-top: 1px solid rgba(255, 255, 255, .2);
  padding-top: 12px;
  font-size: 11px;
  opacity: .75;
}
.footer__age {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, .12);
  border-radius: 20px;
  padding: 4px 12px;
  font-weight: 700;
  margin-bottom: 8px;
}

/* ================= SEO CONTENT ================= */
.seo {
  background: #fff;
  padding: 18px 14px;
  font-size: 14px;
  line-height: 1.7;
}
.seo h1 { font-size: 19px; color: var(--blue-dark); margin: 0 0 10px; }
.seo h2 { font-size: 16px; color: var(--blue-dark); margin: 18px 0 6px; }
.seo ul { padding-left: 20px; margin: 0 0 12px; }
.seo li { margin-bottom: 5px; }
.seo table { width: 100%; border-collapse: collapse; font-size: 12px; margin: 10px 0; }
.seo th, .seo td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; }
.seo th { background: var(--page); font-weight: 700; }
.seo__more { display: none; }
.seo__more.is-open { display: block; }
.seo__toggle {
  display: inline-block;
  margin-top: 8px;
  background: var(--blue);
  color: #fff;
  border: 0;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

/* ================= FLOATING WIDGETS ================= */
.floats {
  position: fixed;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  pointer-events: none;
}
.floats > * { pointer-events: auto; }
.floats img { width: 66px; height: auto; }
.floats .float--tall img { width: 28px; }

/* Spin-wheel launcher + radial menu */
.wheel {
  position: fixed;
  left: 8px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 95;
}
.wheel__btn {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  width: 74px;
}
.wheel__btn img { width: 74px; height: 74px; }

.wheel__menu {
  position: absolute;
  left: 0;
  bottom: 82px;
  width: 190px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
  display: none;
}
.wheel__menu.is-open { display: block; }
.wheel__menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 6px;
  font-size: 13px;
  font-weight: 700;
  color: #333;
  border-radius: 8px;
}
.wheel__menu a:hover { background: var(--cream); color: var(--orange); }
.wheel__menu img { width: 28px; height: 28px; object-fit: contain; }

/* On viewports wider than the shell, pin the floating widgets to the
   shell edges instead of the window so they stay next to the content. */
@media (min-width: 761px) {
  .floats { right: calc(50vw - var(--shell) / 2 + 6px); }
  .wheel  { left:  calc(50vw - var(--shell) / 2 + 8px); }
}

/* ================= BOTTOM NAV ================= */
.bottomnav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: var(--shell);
  z-index: 100;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: linear-gradient(180deg, var(--blue), var(--blue-deep));
  box-shadow: 0 -2px 14px rgba(0, 0, 0, .22);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottomnav a {
  display: grid;
  place-items: center;
  gap: 3px;
  padding: 7px 2px 8px;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, .68);
}
/* The nav icon art is white, so "off" state is dimmed rather than tinted */
.bottomnav img { width: 24px; height: 24px; object-fit: contain; opacity: .68; }
.bottomnav a.is-active { color: #fff; }
.bottomnav a.is-active img {
  opacity: 1;
  filter: drop-shadow(0 0 5px rgba(255, 215, 0, .9));
}

/* ================= MISC ================= */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
