/*
 * W88 project skin -- per-project visual identity layer (light theme).
 *
 * Owner decision 2026-09-28: w-88.my is LIGHT, like W88's own site: white
 * pages, a steel-blue navigation bar, red Join button, blue Login button, gold
 * only inside the logo. The shared LuckyStar theme is dark by design (navy
 * backgrounds, white text hardcoded in header.css, footer.css, home.css and
 * casino.css), so this skin re-points the :root variables AND overrides the
 * hardcoded dark component colours.
 *
 * Synced by publish.sh (step 3c) to wp-content/mu-plugins/cf-100cuci-assets/skin.css
 * and enqueued by the project's bridge mu-plugin AFTER project.css. Colour, type
 * and menu sizing only -- no layout changes, so block-content.css keeps working.
 *
 * Primary menu (owner rule): 9 items must fit on ONE line at desktop widths.
 */

:root {
  --w-bg: #f3f6fa;          /* page background */
  --w-surface: #ffffff;     /* article panel, cards */
  --w-surface-2: #eef4fa;   /* zebra rows, soft panels */
  --w-blue: #3a8bc6;        /* W88 nav bar / Login */
  --w-blue-dark: #2a6fa3;   /* hover, headings accent */
  --w-blue-deep: #16324a;   /* footer, table head text */
  --w-red: #d0342c;         /* Join / CTA */
  --w-red-dark: #b3261f;
  --w-gold: #c9a54a;        /* logo gold, tiny accents only */
  --w-ink: #0b0f14;         /* headings (owner: all text black) */
  --w-text: #111111;        /* body (owner: all text black) */
  --w-muted: #647282;
  --w-line: #d9e3ee;

  /* theme variables, re-pointed to the W88 light palette */
  --color-backgroudn: var(--w-bg);
  --color-bg-header: var(--w-surface);
  --color-bg-text: var(--w-surface);
  --color-secondary-bg: var(--w-surface);
  --color-text: var(--w-ink);
  --color-text-muted: var(--w-text);
  --color-primary: var(--w-blue);
  --green-gradient: linear-gradient(180deg, #df4a41 0%, #d0342c 100%);
  --button-bg-color: linear-gradient(180deg, #df4a41 0%, #d0342c 100%);
  --button-box-shadow: 0 6px 16px rgba(208, 52, 44, 0.22);
  --color-before: var(--w-blue);
  --background-before-line: linear-gradient(90deg, var(--w-blue) 0%, var(--w-blue-dark) 100%);
  --border-text: 1px solid var(--w-line);
  --theme-color-accent: transparent;
  --font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-head: Barlow, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

html,
body {
  background: var(--w-bg);
  background-image: none;
  color: var(--w-text);
  font-family: var(--font-family);
}

/* ---- header ----------------------------------------------------------- */
#header {
  z-index: 100;
  background: var(--w-surface);
  border-bottom: 0;
  box-shadow: 0 2px 12px rgba(22, 50, 74, 0.08);
}

/* Menu: the theme puts logo, menu and buttons on ONE row, so W88's separate
   steel-blue bar is not reproducible without layout changes. The row stays
   white; items are dark-blue uppercase links, the active item and hover get
   the W88 blue with an underline. */
.header__wrap {
  background: transparent;
}

.header__wrap ul li a,
.header__wrap ul li > a {
  color: var(--w-blue-deep);
  background: transparent;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-bottom: 3px solid transparent;
  border-radius: 0;
}

.header__wrap ul li:hover a,
.header__wrap ul li a:hover {
  color: var(--w-blue);
  background: transparent;
  border-bottom-color: rgba(58, 139, 198, 0.35);
}

.header__wrap ul .current-menu-item a,
.header__wrap ul .current_page_item a {
  color: var(--w-blue);
  background: transparent;
  border-bottom-color: var(--w-blue);
}

/* 9 primary items on one line: compact type and padding on desktop */
/* theme switches to the burger at 1200px and below */
@media (min-width: 1201px) {
  .header__wrap ul {
    flex-wrap: nowrap;
  }
  .header__wrap ul li a {
    font-size: 14px;
    padding-left: 12px;
    padding-right: 12px;
    white-space: nowrap;
  }
}

@media (min-width: 1201px) and (max-width: 1320px) {
  .header__wrap ul li a {
    font-size: 13px;
    padding-left: 8px;
    padding-right: 8px;
  }
}

.btn_login {
  background: var(--w-blue);
  border: 0;
  color: #ffffff;
  border-radius: 4px;
}

.btn_login:hover {
  background: var(--w-blue-dark);
  color: #ffffff;
}

.btn_registration {
  background-image: none;
  background: var(--w-red);
  color: #ffffff;
  border-radius: 4px;
  box-shadow: none;
}

.btn_registration:hover {
  background: var(--w-red-dark);
  opacity: 1;
}

/* mobile menu panel and burger (theme hardcodes dark navy) */
.menu-cnt,
.header__main .menu-cnt {
  background: var(--w-surface);
}

.open-menu span,
.open-menu::before,
.open-menu::after {
  background-color: var(--w-blue-deep);
}

.search_input {
  background: var(--w-surface-2);
  color: var(--w-ink);
  border: 1px solid var(--w-line);
}

/* ---- article panel and typography --------------------------------------- */
.casino__right,
.casino__right_info,
.games-info__cnt {
  background: var(--w-surface);
  color: var(--w-text);
}

.games-info__cnt {
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(22, 50, 74, 0.06);
}

.games-info__cnt h1,
.games-info__cnt h2,
.games-info__cnt h3,
.games-info__cnt h4 {
  font-family: var(--font-head);
  color: var(--w-ink);
  letter-spacing: 0;
}

.games-info__cnt h1 {
  font-weight: 700;
}

.games-info__cnt h2 {
  border-bottom-color: var(--w-blue);
}

.games-info__cnt h3 {
  color: var(--w-blue-dark);
}

.games-info__cnt p,
.games-info__cnt li,
.games-info__cnt td,
.games-info__cnt th,
.games-info__cnt figcaption {
  font-family: var(--font-family);
  color: var(--w-text);
  line-height: 1.7;
}

.games-info__cnt strong {
  color: var(--w-ink);
}

.games-info__cnt a:not(.wp-block-button__link) {
  color: var(--w-blue-dark);
  text-decoration-color: rgba(42, 111, 163, 0.4);
}

.games-info__cnt a:not(.wp-block-button__link):hover {
  text-decoration-color: var(--w-blue-dark);
}

.games-info__cnt ul > li::before,
.games-info__cnt ol > li::before {
  color: var(--w-blue);
}

/* ---- tables ------------------------------------------------------------ */
.wp-block-table table thead tr th {
  background: var(--w-blue);
  color: #ffffff;
  font-weight: 700;
  border-bottom: 0;
}

.wp-block-table table tbody tr td {
  background: var(--w-surface);
  border: 1px solid var(--w-line);
  color: var(--w-text);
}

.wp-block-table table tbody tr:nth-child(even) td {
  background: var(--w-surface-2);
}

@media (min-width: 641px) {
  .games-info__cnt figure.wp-block-table table {
    min-width: 0;
    width: 100%;
  }
  .games-info__cnt figure.wp-block-table table tr {
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  }
}

/* ---- table of contents ------------------------------------------------ */
#ez-toc-container.ez-toc-black,
#ez-toc-container {
  background: var(--w-surface-2);
  border: 1px solid var(--w-line);
  border-left: 4px solid var(--w-blue);
  border-radius: 6px;
}

#ez-toc-container .ez-toc-title,
#ez-toc-container p.ez-toc-title,
#ez-toc-container .ez-toc-title-container * {
  color: var(--w-ink) !important;
  font-family: var(--font-head);
}

#ez-toc-container a {
  color: var(--w-text) !important;
}

#ez-toc-container a:hover {
  color: var(--w-blue-dark) !important;
}

/* ---- CTA (factory [cta] block renders as a core button) --------------- */
.games-info__cnt .wp-block-buttons {
  margin: 18px 0 28px;
}

.games-info__cnt .wp-block-button__link {
  background: var(--w-red);
  color: #ffffff;
  border-radius: 4px;
  padding: 14px 30px;
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: var(--button-box-shadow);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.games-info__cnt .wp-block-button__link:hover {
  background: var(--w-red-dark);
  color: #ffffff;
  transform: translateY(-1px);
}

/* ---- FAQ ---------------------------------------------------------------- */
.faq__box {
  background: var(--w-surface);
  box-shadow: none;
  border: 1px solid var(--w-line);
  border-left: 4px solid var(--w-blue);
}

.faq__box h4 {
  font-family: var(--font-head);
  color: var(--w-ink);
}

.open .faq__box,
.faq__box:hover {
  border-left-color: var(--w-red);
}

.faq__plus span {
  background-color: var(--w-blue);
}

.submenu p {
  font-family: var(--font-family);
  color: var(--w-text);
}

/* ---- footer: dark blue band, one grid ------------------------------------
   The theme gives only the menu columns an inner offset; the logo row, the
   separators and the bottom rows sat flush against the edge with lines of
   different lengths. Everything now shares one inner padding, separators are
   full-width hairlines, and the three bottom tiles share one style. */
footer,
#footer {
  background: var(--w-blue-deep);
  border-top: 0;
  padding: 36px 48px 20px;
  box-sizing: border-box;
}

footer .footer__main {
  background: transparent;
}

footer .footer__main,
footer .footer__main p,
footer .footer__main a,
footer .footer__link,
footer .footer__item {
  color: #d7e3ef;
}

footer .footer__main a:hover,
footer .footer__link a:hover {
  color: #ffffff;
}

/* logo row: white logo on the dark band, hairline to the right */
footer .logoContainer {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0 0 32px;
}

footer .logoContainer__logo,
footer .logoContainer__logo img {
  width: auto !important;
  max-width: none !important;
  flex: 0 0 auto;
}

footer .logoContainer__logo img {
  height: 26px !important;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

footer .logoContainer__ine,
footer .separator_gradient {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.14) !important;
  background-image: none !important;
  margin-left: 0;
  margin-right: 0;
}

footer .separator_gradient {
  width: 100%;
  margin: 32px 0 0;
}

/* menu columns start at the same left edge as everything else */
footer .footer__main .footer__cnt:first-of-type,
footer .footer__main > .footer__cnt_category:nth-child(2) {
  margin-left: 0;
}

footer .footer__main {
  padding-left: 0;
  margin-left: 0;
}

/* bottom tiles: language, mobile, back to top */
footer .footer__content {
  padding: 20px 0;
}

footer .head-leng__block,
footer .header-button,
footer .scrollup {
  height: 36px;
  min-width: 36px;
  box-sizing: border-box;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08) !important;
  background-image: none !important;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #d7e3ef;
}

footer .header-button svg,
footer .scrollup svg {
  fill: #d7e3ef;
  color: #d7e3ef;
  stroke: currentColor;
}

footer .scrollup:hover,
footer .header-button:hover {
  background: var(--w-blue) !important;
  border-color: var(--w-blue);
}

footer .footer__desc {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

footer .footer__desc,
footer .footer__desc p {
  color: #9fb6cc;
}

footer .footer__cnt_category strong {
  color: #9fb6cc;
  letter-spacing: 0.08em;
}

@media (max-width: 1000px) {
  footer .footer__main .footer__cnt,
  footer .footer__main .footer__cnt_category {
    margin-left: 0 !important;
    padding-left: 0 !important;
  }
  footer .footer__content,
  footer .footer-leng__fl {
    justify-content: flex-start !important;
  }
  footer .footer-leng__fl {
    margin-left: 0 !important;
    margin-right: auto !important;
  }
  footer .footer__desc .footer__plus {
    margin-left: auto !important;
  }
  footer .footer__desc {
    flex-direction: row !important;
    justify-content: space-between !important;
    text-align: left;
  }
  footer .footer__desc p {
    order: 0 !important;
    margin: 0;
  }
  footer .footer__desc .footer__plus {
    order: 1 !important;
    margin: 0;
  }
}

@media (max-width: 640px) {
  footer,
  #footer {
    padding: 28px 16px 16px;
  }
}

/* ---- misc hardcoded dark bits ------------------------------------------ */
.navigation.pagination .page-numbers {
  background: var(--w-blue);
}

.scrollup {
  background: var(--w-blue);
}

/* content panel accent line (theme draws it from --green-gradient, which this
   skin points at the red CTA colour): keep it W88 blue */
.casino__right_info::before {
  background-image: none;
  background: var(--w-blue);
}

/* age badge: the theme hardcodes 18+ in footer.php; W88 requires players to be
   over 21 at sign-up (research.md section 2), so the guide shows 21+ */
.footer__plus .eyting-plus {
  font-size: 0;
  color: transparent;
}

.footer__plus .eyting-plus::after {
  content: "21+";
  font-size: 18px;
  font-weight: 700;
  color: #9fb6cc;
}

/* burger panel (1200px and below): light search field, thin separators
   instead of the desktop underline */
.menu-cnt input,
.menu-cnt input[type="search"],
.menu-cnt input[type="text"],
.search_input input {
  background: var(--w-surface-2) !important;
  color: var(--w-ink) !important;
  border: 1px solid var(--w-line) !important;
}

.menu-cnt button,
.search_input__magnifer {
  background: var(--w-blue) !important;
  border-color: var(--w-blue) !important;
}

@media (max-width: 1200px) {
  .header__wrap ul li a,
  .header__wrap ul li > a {
    border-bottom: 1px solid var(--w-line);
  }
  .header__wrap ul .current-menu-item a,
  .header__wrap ul .current_page_item a {
    border-bottom: 1px solid var(--w-line);
    border-left: 3px solid var(--w-blue);
    padding-left: 10px;
  }
}

/* header logo: W88's wordmark is wide and short. The theme reserves a fixed
   ~89px column for the logo, so let that column size itself to the logo. */
#header .head__block {
  width: auto !important;
  min-width: 0;
  flex: 0 0 auto;
  margin-right: 20px;
}

#header .logotype,
#header .header__logo {
  width: auto !important;
}

#header .logotype img,
#header .header__logo img,
#header .custom-logo {
  height: 26px;
  width: auto;
  max-width: none;
}

@media (max-width: 1200px) {
  #header .logotype img,
  #header .header__logo img,
  #header .custom-logo {
    height: 20px;
  }
  #header .head__block {
    margin-right: 8px;
  }
}

footer .footer__desc p {
  flex: 1;
}

/* narrow phones: logo + Login + Registration + burger must share one row */
@media (max-width: 440px) {
  #header .logotype img,
  #header .header__logo img,
  #header .custom-logo {
    height: 16px;
  }
  #header .head__block {
    margin-right: 4px;
  }
  .btn_login,
  .btn_registration {
    padding: 6px 10px !important;
    font-size: 13px !important;
    min-width: 0 !important;
  }
  .btn_registration .btn_registration__add,
  .btn_registration__add {
    display: none !important;
  }
  .header__buttons {
    gap: 6px;
  }
}

footer .footer__desc {
  display: flex !important;
  width: 100%;
}

footer .footer__desc .footer__plus {
  margin-left: auto !important;
  width: auto !important;
  justify-content: flex-end !important;
  text-align: right;
}

/* ---- lists (owner 2026-09-28: bullets were lost on white; all text black)
   The theme hardcodes white list text and a FontAwesome tick that does not
   render here; lists get black text and the skin's own markers. */
.games-info__cnt ul li,
.games-info__cnt ol li,
.games-info__cnt ul li *,
.games-info__cnt ol li * {
  color: var(--w-text);
}

.games-info__cnt ul li strong,
.games-info__cnt ol li strong {
  color: var(--w-ink);
}

.games-info__cnt ul:not(.ez-toc-list):not(.ez-toc-list-level-3) > li {
  position: relative;
  padding-left: 26px;
}

.games-info__cnt ul:not(.ez-toc-list):not(.ez-toc-list-level-3) > li::before {
  content: "" !important;
  font-family: inherit !important;
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 8px !important;
  height: 8px !important;
  border-radius: 50%;
  background: var(--w-blue) !important;
}

.games-info__cnt ol > li {
  position: relative;
  padding-left: 34px;
}

.games-info__cnt ol > li::before {
  color: #ffffff !important;
  background: var(--w-blue) !important;
  border-radius: 50%;
  width: 24px !important;
  height: 24px !important;
  font-size: 13px !important;
  font-weight: 700;
  top: 0.15em !important;
}

/* every remaining piece of article text is black on the white panel */
.games-info__cnt,
.games-info__cnt p,
.games-info__cnt td,
.games-info__cnt th:not(thead th),
.games-info__cnt figcaption,
.faq__box h4,
.submenu p,
.submenu li {
  color: var(--w-text);
}

.games-info__cnt ul:not(.ez-toc-list):not(.ez-toc-list-level-3),
.games-info__cnt ol {
  list-style: none !important;
  padding-left: 0 !important;
}

.games-info__cnt ul li,
.games-info__cnt ol li {
  font-family: var(--font-family) !important;
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 8px;
}

/* W88 page visuals are annotated product shots (text inside the image), so a
   wide image needs more room than the factory's 640px default to stay legible. */
.games-info__cnt .factory-image--wide {
  max-width: 960px;
}
