/* Wingiler44 (wingiler44.my): the whole site's styles. */

:root {
  /* palette follows wingiler44.bet (its --theme_* variables) */
  --bg: #070f18;
  --bg-raised: #0e1a22;
  --panel: #13232b;
  --text: #fff;
  --muted: #9fb0b6;
  --link: #07dcc2;
  --gold: #07dcc2;
  --btn-1: #70caca;
  --btn-2: #029e95;
  --btn-dark-1: #38514d;
  --btn-dark-2: #23504b;
  --line: rgba(7, 220, 194, 0.22);
  --wide: 1280px;
  --gutter: 30px;
  --gap: 40px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 14px/1.5 "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
p, ul, ol, table { margin: 0 0 1em; }
ul, ol { padding-left: 40px; }
h1, h2, h3, h4 { margin: 0 0 0.6em; line-height: 1.25; font-weight: 600; color: #fff; }
h1 { font-size: 46px; font-weight: 500; }
h2 { font-size: 25px; }
h3 { font-size: 20px; }
h4 { font-size: 17px; }
b, strong { font-weight: 700; }
.center { text-align: center; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 10px; top: 10px; z-index: 100; padding: 8px 12px; background: #fff; color: #000; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 3px;
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  text-align: center;
  background: linear-gradient(90deg, var(--btn-1), var(--btn-2));
  color: #fff;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn--dark { background: linear-gradient(90deg, var(--btn-dark-1), var(--btn-dark-2)); color: #fff; border: 1px solid var(--line); }
.btn--light { background: linear-gradient(90deg, var(--btn-1), var(--btn-2)); color: #fff; }

/* ---------------------------------------------------------------- header */
.site-header { position: relative; z-index: 20; background: var(--bg-raised); border-bottom: 1px solid var(--line); }
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 20px var(--gutter);
}
.site-header .site-logo img { width: 176px; }
.site-nav { margin-left: auto; }
.menu, .submenu { list-style: none; margin: 0; padding: 0; }
.menu { display: flex; align-items: center; gap: 0; }
.menu__item { position: relative; display: flex; align-items: center; }
.menu > li > a {
  display: block;
  padding: 13px 12px;
  color: var(--gold);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}
.menu > li > a[aria-current="page"], .menu > li > a:hover { text-decoration: underline; text-underline-offset: 6px; }
.has-sub > a { padding-right: 6px; }
.sub-toggle {
  width: 24px;
  height: 24px;
  margin-right: 6px;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--gold);
}
.sub-toggle::before {
  content: "";
  display: block;
  margin: auto;
  border: 5px solid transparent;
  border-top: 6px solid currentColor;
  border-bottom: 0;
  width: 0;
}
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  display: none;
}
.submenu a { display: block; padding: 12px 18px; color: var(--text); font-weight: 500; }
.submenu a:hover { background: var(--bg-raised); color: var(--link); text-decoration: none; }
.has-sub:hover > .submenu, .has-sub:focus-within > .submenu, .has-sub.is-open > .submenu { display: block; }
.site-actions { display: flex; gap: 4px; }
.site-actions .btn { padding: 12px 24px; }
.nav-toggle { display: none; }

/* ---------------------------------------------------------------- page blocks */
main { display: block; }
.block {
  max-width: var(--wide);
  margin: 0 auto 60px;
  padding: 0 var(--gutter);
}
.page-home .block:first-child, .page-inner .block:first-child { margin-top: 30px; }
.block > :last-child, .cols > div > :last-child { margin-bottom: 0; }
/* components keep 20px below them; text keeps its own paragraph spacing */
.slider, .tiles, .toc, .faq, .cards, .cols, .text-cols, .vip-table, main img, main a:has(> img) { margin-bottom: 20px; }
.tiles img, .slider img, .cards img, .tiles a, .slider a, .card a { margin-bottom: 0; }
.page-inner h1 { font-size: 48px; text-align: center; margin: 20px 0 40px; }
.r-top { border-radius: 25px 25px 0 0; }
.r-all { border-radius: 7px; }

/* columns */
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); align-items: stretch; }
.cols > .middle { display: flex; flex-direction: column; justify-content: center; }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols img { width: 100%; }
.text-cols { columns: 2; column-gap: 30px; }
.text-cols > * { break-inside: avoid-column; }
.text-cols h2, .text-cols h3 { break-after: avoid-column; }

/* image tiles (game and promotion grids) */
.tiles {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: 30px 44px;
  padding: 0 30px;
}
.tiles img { width: 100%; }

/* sliders */
.slider { position: relative; padding: 0 30px; }
.slider__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--show) - 1) * 10px) / var(--show));
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__slide { scroll-snap-align: start; display: flex; align-items: center; justify-content: center; }
.slider__slide img { width: 100%; }
.slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  width: 30px;
  height: 44px;
  border: 0;
  background: none;
  color: #fff;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
}
.slider__btn--prev { left: -4px; }
.slider__btn--next { right: -4px; }

/* tables (rich text) */
table { width: 100%; border-collapse: collapse; font-size: 0.9em; }
td, th { padding: 15px; border: 1px solid rgba(128, 128, 128, 0.5); line-height: 1.5; vertical-align: top; text-align: left; }
tbody > tr:nth-child(odd) > td { background: rgba(128, 128, 128, 0.07); }

/* table of contents (filled by site.js from the page's h2 and h3) */
.toc { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 3px; }
.toc__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 20px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  font: 600 14px/1.2 inherit;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
}
.toc__head::after { content: ""; width: 8px; height: 8px; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(-45deg); margin-top: 4px; }
.toc__head[aria-expanded="false"] { border-bottom: 0; }
.toc__head[aria-expanded="false"]::after { transform: rotate(135deg); margin-top: -4px; }
.toc__list { margin: 0; padding: 20px 20px 20px 40px; counter-reset: toc; }
.toc__list ol { padding-left: 24px; margin: 0; }
.toc__list li { margin: 0 0 6px; }
.toc__list li::marker { color: var(--muted); }
.toc__list a { color: var(--text); }
.toc__head[aria-expanded="false"] + .toc__list { display: none; }

/* FAQ accordion */
.faq { border: 1px solid var(--line); }
.faq__item + .faq__item { border-top: 1px solid var(--line); }
.faq__item summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before { content: "\27A4"; color: var(--link); font-size: 14px; transform: rotate(-45deg); }
.faq__item[open] summary::before { transform: none; }
.faq__item summary h3 { margin: 0; font-size: 16px; font-weight: 400; }
.faq__answer { padding: 12px 14px 16px; border-top: 1px solid var(--line); }
.faq__answer > :last-child { margin-bottom: 0; }

/* cards (blog) */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 35px 30px; }
.card { background: var(--panel); color: var(--text); border-radius: 3px; padding: 18px; display: flex; flex-direction: column; }
.card__image img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.card__title { margin: 18px 0 0; padding: 0 0 18px; font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--line); }
.card__title a { color: var(--text); }
.card__meta { margin: 12px 0 0; font-size: 12px; color: var(--muted); }
.card__excerpt { margin: 12px 0 0; color: var(--muted); }
.pager { display: flex; gap: 16px; justify-content: center; margin-top: 30px; font-size: 16px; }

/* VIP table (promotions/3-vip-lifetime-benefits) */
.vip-table { width: 100%; margin: 20px 0; }
.vip-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 12px; }
.vip-table table { width: 100%; min-width: 690px; margin: 0; border-collapse: separate; border-spacing: 0; font-size: 14px; text-align: center; color: var(--text); }
.vip-table th { background: var(--bg-raised); color: var(--link); padding: 15px 12px; font-weight: 700; line-height: 1.5; white-space: nowrap; border: 0; text-align: center; }
.vip-table td { padding: 13px 12px; border: 0; border-bottom: 1px solid var(--line); background: var(--panel); white-space: nowrap; text-align: center; }
.vip-table tbody tr:nth-child(odd) td { background: var(--panel); }
.vip-table tbody tr:nth-child(even) td { background: var(--bg-raised); }
.vip-table tbody tr:hover td { background: #1a3038; }
.vip-table tbody tr:last-child td { border-bottom: 0; }
.vip-table td:first-child { font-weight: 700; }
.vip-table .vip-gold { color: var(--link); font-weight: 700; }
.vip-table .vip-featured td { background: #10403d !important; font-weight: 700; }
.vip-table .vip-status { font-size: 12px; font-weight: 600; }

/* blog post */
.crumbs { max-width: var(--wide); margin: 10px auto 20px; padding: 0 var(--gutter); font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--link); }
.post {
  max-width: var(--wide);
  margin: 0 auto 60px;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: var(--gap);
  align-items: start;
}
.post__body h1 { font-size: 35px; font-weight: 600; }
.post__body > :last-child { margin-bottom: 0; }
.post__body img { margin: 20px 0; }
.post__aside { position: sticky; top: 20px; display: grid; gap: 20px; }
.post__cover { width: 100%; }

/* ---------------------------------------------------------------- footer */
.trust img { width: 100%; }
.site-footer { background: var(--bg-raised); border-top: 1px solid var(--line); }
.site-footer__inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 40px var(--gutter) 20px;
}
.site-footer .site-logo img { width: 160px; margin-bottom: 20px; }
.site-footer h2 { font-size: 16px; margin: 10px 0 20px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer__links li { margin-bottom: 8px; }
.site-footer__links a { color: #fff; }
.pay { display: grid; grid-template-columns: repeat(4, 76px); gap: 5px; }
.pay img { width: 76px; height: 76px; object-fit: contain; border-radius: 6px; }
.site-footer__copy { margin: 0; padding: 10px 10px 40px; border-bottom: 1px solid var(--bg); }

/* ---------------------------------------------------------------- tablet */
@media (max-width: 1024px) {
  .site-header__inner { flex-wrap: wrap; padding: 6px var(--gutter); gap: 10px; }
  .site-header .site-logo img { width: 190px; }
  .nav-toggle {
    display: block;
    margin-left: auto;
    width: 44px;
    height: 44px;
    border: 0;
    background: none;
    cursor: pointer;
    position: relative;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    position: absolute;
    left: 11px;
    width: 22px;
    height: 3px;
    border-radius: 2px;
    background: #fff;
    content: "";
  }
  .nav-toggle span { top: 21px; }
  .nav-toggle span::before { top: -7px; left: 0; }
  .nav-toggle span::after { top: 7px; left: 0; }
  .nav-toggle[aria-expanded="true"] span { background: transparent; }
  .nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
  .site-nav { order: 3; width: 100%; margin: 0; display: none; }
  .site-nav.is-open { display: block; }
  .menu { flex-direction: column; align-items: stretch; background: var(--panel); }
  .menu__item { flex-wrap: wrap; }
  .menu > li > a { flex: 1; color: var(--text); padding: 14px 20px; }
  .sub-toggle { color: var(--link); width: 48px; height: 44px; margin: 0; }
  .submenu { position: static; width: 100%; box-shadow: none; background: var(--bg-raised); }
  .has-sub:hover > .submenu, .has-sub:focus-within > .submenu { display: none; }
  .has-sub.is-open > .submenu { display: block; }
  .submenu a { padding-left: 36px; }
  .site-actions { order: 4; width: 100%; padding: 0 10px 10px; }
  .site-actions .btn { flex: 1; }
  .tiles { gap: 20px; padding: 0; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post { grid-template-columns: minmax(0, 1fr); }
  .post__aside { position: static; }
  .toc__head[aria-expanded="true"] { border-bottom: 1px solid var(--line); }
  .site-footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------------------------------------------------------------- phone */
@media (max-width: 767px) {
  :root { --gutter: 20px; --gap: 20px; }
  h1, .page-inner h1 { font-size: 30px; }
  h2 { font-size: 20px; }
  h3 { font-size: 17px; }
  .post__body h1 { font-size: 26px; }
  .block { margin-bottom: 40px; }
  .site-header .site-logo img { width: 180px; }
  .site-actions .btn { padding: 12px 10px; }
  .cols, .cols-3 { grid-template-columns: minmax(0, 1fr); }
  .text-cols { columns: 1; }
  .tiles { grid-template-columns: repeat(var(--cols-m), minmax(0, 1fr)); gap: 6px; padding: 0 0; }
  .slider { padding: 0 24px; }
  .slider__track { grid-auto-columns: calc((100% - (var(--show-m) - 1) * 10px) / var(--show-m)); }
  .cards { grid-template-columns: minmax(0, 1fr); }
  ul, ol { padding-left: 24px; }
  .site-footer__inner { grid-template-columns: minmax(0, 1fr); }
  .pay { grid-template-columns: repeat(4, minmax(0, 76px)); }
}
