/* ==========================================================================
   88M — shared design tokens
   Layout, colour and type scale sampled from the reference site so that the
   desktop (/web) and mobile (/m) builds stay visually identical.
   ========================================================================== */

/* Poppins is served from this build's own vendor/ — no request to
   fonts.googleapis.com or fonts.gstatic.com is made, so a page never waits on
   Google's edge and a firewall that blocks it does not swap the site out from
   under the member. See assets/vendor/poppins/poppins.css. */
@import url('../vendor/poppins/poppins.css');

:root {
  /* MS39 — black + gold. The old token names are kept so every rule already
     written against them repaints without being touched: "blue" was the
     primary accent and is now gold, "orange" was the CTA and is now the
     bright gold of the buttons. */
  --c-blue:        #d4a937;
  --c-blue-mid:    #e2bb52;
  --c-blue-light:  #b8902a;
  --c-blue-deep:   #1a1608;
  --c-yellow:      #f3cf6a;
  --c-orange:      #e0b448;
  --c-orange-dark: #c8961f;
  --c-red:         #e0484f;
  --c-red-badge:   #d63a41;
  --c-green:       #3fb46f;
  --c-purple-1:    #2a2110;
  --c-purple-2:    #4a3a14;
  --c-gold:        #d4a937;

  --c-logo-green:       #d4a937;
  --c-logo-green-lit:   #e9c35f;
  --c-logo-green-deep:  #a9821f;
  --c-logo-orange:      #d4a937;
  --c-logo-orange-lit:  #ecc865;
  --c-logo-orange-deep: #a47c1c;

  /* Gold ramp + the gradient every primary button wears */
  --gold:          #d4a937;
  --gold-lit:      #f5d97f;
  --gold-deep:     #9c7417;
  --gold-grad:     linear-gradient(180deg, #f7dc85 0%, #e0b448 48%, #b88a22 100%);
  --gold-line:     rgba(212, 169, 55, .28);
  --gold-glow:     rgba(212, 169, 55, .16);
  --on-gold:       #1a1405;

  /* Ink & surfaces (dark) */
  --c-bg:          #0a0a0b;
  --c-ink:         #f4efe2;
  --c-body:        #cdc6b4;
  --c-muted:       #918a7a;
  --c-faint:       #5f5a4f;
  --c-line:        #2a2721;
  --c-surface:     #141416;
  --c-soft:        #1b1b1e;
  --c-soft-2:      #232327;

  /* Layout */
  --container:     1340px;
  --header-h:      70px;
  --radius-sm:     8px;
  --radius:        12px;
  --radius-lg:     18px;
  --radius-pill:   999px;

  /* Type */
  --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fs-section: 18px;
  --fs-body: 14px;

  --shadow-card: 0 2px 14px rgba(0, 0, 0, .45);
  --shadow-pop:  0 10px 36px rgba(0, 0, 0, .6);
}

/* --- Base ---------------------------------------------------------------- */
* { -webkit-tap-highlight-color: transparent; }

body {
  /* **Ours, not Bootstrap's.** The reboot in bootstrap.min.css zeroes this,
     and relying on it cost a day: the copy of that file on production
     uploaded as 0 bytes, the browser fell back to its own 8px body margin,
     and every full-bleed band on the site — the product-page hero banners
     most visibly — got a white frame down both sides. A third-party file we
     do not control must not be the only thing holding the page against its
     own edges. */
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
a:hover { color: inherit; }
img { max-width: 100%; }

/* Bootstrap overrides so utility classes inherit the palette */
.btn { font-family: var(--font); border: 0; }
.btn:focus, .btn:active, .form-control:focus, .form-select:focus {
  box-shadow: none !important;
  outline: none;
}

/* --- Shared brand atoms -------------------------------------------------- */
.btn-orange {
  background: var(--c-orange);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 16px;
  padding: 5px 15px;
  transition: filter .15s ease;
}
.btn-orange:hover { background: var(--c-orange); color: #fff; filter: brightness(1.06); }

/* **A badge is the fixed half of a row; the name is the half that gives way.**
   Both are flex items in `.m-game-card .name`, and without these two a long
   game name took the width it wanted and the badge was shrunk under its own
   content: 热门 wrapped to two stacked characters, the pill went from 38×22 to
   29×34, and the whole line grew — which pushed the provider under it out of
   line with the cards either side. Reported on 8 Sep 2026 against the home
   rails, where a synced catalogue supplies names nobody here chose.

   `flex: 0 0 auto` is what stops the squeeze and `nowrap` is what stops the
   wrap; either alone leaves half the fault. The name already carries
   `overflow: hidden`, so it is the one that ellipsises, which is what it is
   for. /web escapes this by accident — `.game-card .name` sets
   `white-space: nowrap` on the container for its own ellipsis and the badge
   inherits it — so it is fixed here, where the badge is. */
.pill-hot,
.pill-new {
  display: inline-block;
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1;
  padding: 5px 7px;
  border-radius: var(--radius-pill);
  color: #fff;
}
.pill-hot { background: var(--c-orange-dark); }
.pill-new { background: var(--c-red-badge); }

.pill-rtp {
  display: inline-block;
  background: var(--c-blue-light);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  padding: 5px 8px;
  border-radius: 4px;
}

/* Logo lockup. The PNG is 276x108 with a transparent plate; height is set and
   width follows, so swapping in a differently proportioned mark still works. */
.brand-logo { display: flex; align-items: center; }
.brand-logo img {
  height: 34px;
  width: auto;
  display: block;
}

/* Placeholder artwork.
   Every visual on the reference site is licensed art, so layout blocks ship as
   gradient plates. Drop a real image in and delete the .art class to swap. */
.art {
  position: relative;
  background: radial-gradient(120% 90% at 85% 20%, rgba(212,169,55,.35), transparent 60%), linear-gradient(135deg, #0c0c0e 0%, #1d1810 55%, #3a2c10 100%);
  overflow: hidden;
  color: #fff;
}
.art::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .38);
  pointer-events: none;
}
/* Large plates park the placeholder caption out of the copy's way */
.art-wide::after { align-items: flex-end; justify-content: flex-end; padding: 18px 24px; }
.art-purple { background: linear-gradient(135deg, #1a1408 0%, #4a3812 55%, #8a6a1f 100%); }
.art-green  { background: linear-gradient(135deg, #0d1a12 0%, #1d3a26 55%, #2f5c3b 100%); }
.art-red    { background: linear-gradient(135deg, #1c0b0d 0%, #4a1418 55%, #7a2a24 100%); }
.art-gold   { background: linear-gradient(135deg, #2a1d05 0%, #8a6514 55%, #d4a937 100%); }
.art-teal   { background: linear-gradient(135deg, #0b1416 0%, #1c2c2f 55%, #3a4a3a 100%); }
.art-dark   { background: linear-gradient(135deg, #0b0b0c 0%, #19191c 60%, #2a2822 100%); }
.art-pink   { background: linear-gradient(135deg, #1c0b14 0%, #43192f 55%, #7a3a3a 100%); }
.art-night  { background: linear-gradient(135deg, #060606 0%, #17140c 55%, #2e2614 100%); }
.art-flat   { background: var(--c-soft-2); }
.art-flat::after { color: var(--c-faint); }

/* Burger, sponsor plate and language chip — used by both headers */
.burger {
  width: 26px;
  border: 0;
  background: none;
  padding: 0;
  display: grid;
  gap: 5px;
}
.burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--c-blue-mid);
}
.burger span:nth-child(2) { width: 78%; }

/* --- Flags ---------------------------------------------------------------
   Drawn in CSS rather than shipped as images: Windows renders flag emoji as
   letter pairs, so 🇲🇾 would come out as "MY". */
.flag {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: var(--c-soft-2);
}
.flag > i { position: absolute; inset: 0; display: grid; place-items: center; font-size: 17px; color: var(--c-blue-mid); }

.flag-th { background: linear-gradient(#a51931 0 16.7%, #f4f5f8 16.7% 33.3%, #2d2a4a 33.3% 66.7%, #f4f5f8 66.7% 83.3%, #a51931 83.3%); }
.flag-id { background: linear-gradient(#ce1126 0 50%, #fff 50%); }
.flag-my { background: repeating-linear-gradient(#cc0001 0 7.14%, #fff 7.14% 14.28%); }
.flag-my::after { content: ''; position: absolute; inset: 0 50% 50% 0; background: #010066; }
.flag-vn { background: #da251d; }
.flag-vn::after {
  content: '★';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffff00;
  font-size: 15px;
  line-height: 1;
}
.flag-sg { background: linear-gradient(#ef3340 0 50%, #fff 50%); }
.flag-sg::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-soft);
}
.flag-au { background: #00247d; }
.flag-au::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 13px;
  height: 9px;
  background:
    var(--c-soft) center / 2px 100% no-repeat;
}
.flag-au::after {
  content: '★';
  position: absolute;
  right: 4px;
  bottom: 1px;
  color: #fff;
  font-size: 11px;
  line-height: 1;
}
.flag-hk { background: #de2910; }
.flag-hk::after {
  content: '✿';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 15px;
  line-height: 1;
}
.flag-intl { background: var(--c-soft); }

/* --- Region & language list (same markup in the desktop dropdown and the
   mobile drawer pane) ------------------------------------------------------ */
.region-row {
  display: flex;
  padding-bottom: 15px;
}
.region-row .region-body { margin-left: 20px; flex: 1; min-width: 0; }
.region-row .region-name {
  font-size: 12px;
  color: var(--c-ink);
  margin: 0 0 11px;
}
.region-row .region-cur {
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 9px;
  background: var(--c-soft);
  color: var(--c-body);
  font-size: 10px;
  letter-spacing: .3px;
}
.region-row .lang-opts { line-height: 1.9; }
.lang-opt {
  font-size: 13px;
  color: #8697a2;
  padding: 0 12px;
  border-right: 1px solid #ccc;
  white-space: nowrap;
}
.lang-opt:first-child { padding-left: 0; }
.lang-opt:last-child { border-right: 0; }
.lang-opt:hover { color: var(--c-blue-light); }
.lang-opt.active { color: var(--gold); text-decoration: underline; }

/* Footer atoms */
.foot-select {
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--c-muted);
  padding: 6px 10px;
  max-width: 150px;
}
/* Footer badges — payment marks, the regulators, the licence. Every one is a
   third party's own artwork, so the row holds their **height** in common and
   nothing else: a fixed box would letterbox the square marks or squash the
   wide ones, and either way it would be somebody else's logo drawn wrong. */
.foot-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.foot-badges img { height: 30px; width: auto; max-width: 100%; display: block; }
.foot-badges.lg img { height: 34px; }
.social-row { display: flex; gap: 12px; }
.social-row a {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--c-soft-2);
  display: grid;
  place-items: center;
  color: var(--c-muted);
  font-size: 13px;
}
.copyright { font-size: 12px; color: var(--c-faint); padding: 26px 0 30px; }

/* Scroll rails used by every card carousel */
.rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { flex: 0 0 auto; }

.rail-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--c-soft);
  color: var(--c-blue-light);
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(15, 22, 31, .18);
  font-size: 13px;
  cursor: pointer;
  border: 0;
  z-index: 3;
}

/* Floating furniture shared by both builds */
.float-chat {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--c-blue-mid);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 20px;
  box-shadow: var(--shadow-pop);
  z-index: 60;
  border: 0;
}
.float-top {
  position: fixed;
  right: 24px;
  bottom: 84px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--c-blue-mid);
  color: #fff;
  display: none;
  place-items: center;
  box-shadow: var(--shadow-pop);
  z-index: 59;
  border: 0;
}
.float-top.show { display: grid; }


/* Form validation feedback */
.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: var(--c-soft);
  border: 1px solid #f5c2c2;
  color: #ff7b81;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.45;
  padding: 10px 12px;
  margin-bottom: 16px;
}
.field-err { font-size: 12px; color: #ff7b81; margin-top: 5px; line-height: 1.4; }
.field-hint { font-size: 12px; color: var(--c-muted); margin-top: 5px; line-height: 1.4; }
.field-note { font-size: 12px; color: #d4b26a; margin-top: 5px; line-height: 1.4; }
.form-control.is-invalid, .form-select.is-invalid {
  border-color: #e08585 !important;
  background-image: none;
}

/* Utility */
.text-muted-2 { color: var(--c-muted) !important; }
.hr-line { height: 1px; background: var(--c-line); border: 0; }

/* A platform under maintenance: still listed, and saying so. Grey rather than
   orange or red — "back soon" is neither a promotion nor an error. */
.pill-maint {
  display: inline-block;
  font-size: 11px;
  line-height: 1;
  padding: 5px 7px;
  border-radius: var(--radius-pill);
  background: var(--c-muted);
  color: #fff;
  white-space: nowrap;
}
