/* ==========================================================================
   娛樂城體驗金 — 站台樣式表
   Standalone. No vendor stylesheet, no icon CDN, no hue-rotate filter.
   Every colour on the page resolves from the token block below: change the
   three seed hues in --g-mint / --g-teal / --g-blue and the whole site moves.
   ========================================================================== */

/* --- 1. tokens ---------------------------------------------------------- */
:root {
  /* seed hues: green -> blue */
  --g-mint: #2ee6c5;
  --g-teal: #12a8b8;
  --g-blue: #2f7ff0;

  /* gradients built from the seeds */
  --grad:        linear-gradient(135deg, var(--g-mint) 0%, var(--g-teal) 52%, var(--g-blue) 100%);
  --grad-soft:   linear-gradient(135deg, #0d4b52 0%, #0a3a56 100%);
  --grad-bar:    linear-gradient(90deg,  #0c4a50 0%, #0a3550 100%);
  --grad-header: linear-gradient(180deg, #0a3644 0%, #05222c 100%);
  --grad-deep:   linear-gradient(180deg, #062a34 0%, #03141a 100%);

  /* surfaces */
  --ink:      #04181f;
  --ink-2:    #062a34;
  --panel:    #0a3542;
  --panel-2:  #0e4353;

  /* lines */
  --line:     rgba(46, 230, 197, .22);
  --line-2:   rgba(46, 230, 197, .55);

  /* type */
  --text:     #eafcff;
  --body:     #c6dfe4;
  --mute:     #9dc3cd;
  --on-mint:  #032723;

  --radius:   12px;
  --shadow:   0 6px 22px rgba(0, 0, 0, .45);
  --wrap:     1170px;
}

/* --- 2. reset & base ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  /* the original webfonts were CDN-only and carry no CJK glyphs, so this
     falls straight through to the platform UI faces */
  font-family: 'Microsoft JhengHei', '微軟正黑體', 'PingFang TC', 'Heiti TC',
    'Noto Sans TC', 'Noto Sans CJK TC', -apple-system, 'Segoe UI', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--body);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; border: 0; }
a { color: var(--g-mint); text-decoration: none; }
a:hover { color: #7ff3de; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1.35; color: var(--text); }
p { margin: 0 0 14px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 26px 0; }

/* --- 3. grid ------------------------------------------------------------ */
.container { max-width: var(--wrap); margin: 0 auto; padding: 0 15px; }
.row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.row > [class*="col-"] { padding: 0 15px; }
.col-md-12 { width: 100%; }
.col-sm-9, .col-md-9 { width: 75%; }
.col-sm-3, .col-md-3 { width: 25%; }
.text-center { text-align: center; }

/* --- 4. buttons --------------------------------------------------------- */
.register-button,
.btn-primary,
.standard-secondary-button,
.lotto-btn-register,
.lotto-cta,
.nexus-cta-primary {
  display: inline-block;
  background: var(--grad);
  color: var(--on-mint);
  font-weight: 700;
  text-align: center;
  border: 0;
  border-radius: 999px;
  padding: 9px 22px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 4px 14px rgba(18, 168, 184, .32);
}
.register-button:hover,
.btn-primary:hover,
.standard-secondary-button:hover,
.lotto-btn-register:hover,
.nexus-cta-primary:hover {
  color: var(--on-mint);
  transform: translateY(-1px);
  box-shadow: 0 7px 20px rgba(18, 168, 184, .45);
}

.login-button, .lotto-btn-login {
  display: inline-block;
  padding: 8px 21px;
  border: 2px solid var(--line-2);
  border-radius: 999px;
  color: var(--g-mint);
  font-weight: 700;
  background: transparent;
  transition: background .15s ease, border-color .15s ease;
}
.login-button:hover, .lotto-btn-login:hover {
  background: rgba(46, 230, 197, .1);
  border-color: var(--g-mint);
}

/* --- 5. icons (inline SVG, no CDN) -------------------------------------- */
i[data-icon] {
  display: inline-block;
  width: 18px; height: 18px;
  vertical-align: -3px;
  background: center / contain no-repeat;
}
i[data-icon="telegram"]    { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27%232ee6c5%27%3E%3Cpath%20d%3D%27M21.94%204.3%202.9%2011.53c-1.03.39-1.02%201.72.02%202.09l4.6%201.6%201.79%205.4c.31.92%201.45%201.15%202.06.4l2.45-2.6%204.62%203.4c.79.58%201.9.16%202.1-.8l3-14.4c.21-1-.72-1.83-1.6-1.32Z%27%2F%3E%3C%2Fsvg%3E"); }
i[data-icon="contact-us"]  { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27%232ee6c5%27%3E%3Cpath%20d%3D%27M12%202a8%208%200%200%200-8%208v5a3%203%200%200%200%203%203h1a1%201%200%200%200%201-1v-5a1%201%200%200%200-1-1H6v-1a6%206%200%201%201%2012%200v1h-2a1%201%200%200%200-1%201v5a1%201%200%200%200%201%201h1.5a2.5%202.5%200%200%201-2.5%202H13a1%201%200%201%200%200%202h2a4.5%204.5%200%200%200%204.46-4.03A3%203%200%200%200%2020%2015v-5a8%208%200%200%200-8-8Z%27%2F%3E%3C%2Fsvg%3E"); }
i[data-icon="search"]      { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27%232ee6c5%27%3E%3Cpath%20d%3D%27M10.5%203a7.5%207.5%200%201%200%204.55%2013.46l4.24%204.25a1.2%201.2%200%200%200%201.7-1.7l-4.25-4.24A7.5%207.5%200%200%200%2010.5%203Zm0%202.4a5.1%205.1%200%201%201%200%2010.2%205.1%205.1%200%200%201%200-10.2Z%27%2F%3E%3C%2Fsvg%3E"); }
i[data-icon="announcement"]{ background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27%232ee6c5%27%3E%3Cpath%20d%3D%27M18.5%203.2a1.3%201.3%200%200%200-1.36.13L10.9%208H6a3%203%200%200%200-3%203v2a3%203%200%200%200%203%203h.7l1.3%204.3a1%201%200%200%200%20.96.7h1.7a1%201%200%200%200%20.95-1.32L10.5%2016h.4l6.24%204.67A1.3%201.3%200%200%200%2019.2%2019.6V4.4a1.3%201.3%200%200%200-.7-1.2Z%27%2F%3E%3C%2Fsvg%3E"); width: 20px; height: 20px; }

/* the menu-slide arrows needed a webfont + JS carousel; the menu wraps
   natively now, so they are removed rather than left as empty boxes */
.menu-slide > .glyphicon { display: none; }

/* --- 6. topbar ---------------------------------------------------------- */
.topbar-container {
  background: var(--grad-bar);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.topbar-container .row { align-items: center; justify-content: space-between; }
.topbar-left-container, .topbar-right-container { padding: 0 15px; }
.topbar-left-section { display: flex; align-items: center; gap: 18px; }
.topbar-item a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 0; color: var(--g-mint); font-weight: 600;
}
.topbar-item a:hover { color: #8ff5e2; }
.login-panel { display: flex; align-items: center; gap: 10px; padding: 7px 0; }

/* --- 7. header + menu --------------------------------------------------- */
.site-header {
  background: var(--grad-header);
  border-bottom: 1px solid var(--line);
}
.site-header .row { flex-direction: column; }
.header-logo-col { display: flex; justify-content: center; }
.header-menu-col { width: 100%; }

.logo { display: block; padding: 16px 0 12px; line-height: 0; }
.logo img { display: block; height: 46px; width: auto; }

/* The strip holds 11 items. It stays on one line at every width: the label
   sits beside the icon while that fits, drops under it when it does not,
   and the whole thing turns into a swipeable rail on phones. */
.menu-slide { position: relative; }
.top-menu {
  display: flex; flex-wrap: nowrap;
  align-items: stretch; justify-content: center;
}
.top-menu > li { position: static; flex: 0 1 auto; min-width: 0; }
.top-menu > li + li { border-left: 1px solid var(--line); }
.top-menu > li > a {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px;
  padding: 12px 11px 10px;
  color: var(--text); font-size: 14px; font-weight: 700;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.top-menu > li > a img { width: 26px; height: 26px; flex: none; }
.top-menu > li:hover > a {
  color: var(--g-mint);
  border-bottom-color: var(--g-mint);
  background: rgba(46, 230, 197, .07);
}

/* dropdown: CSS-only, the original needed the vendor JS.
   li goes static so the panel spans the whole menu strip instead of hanging
   off one item - a 36-provider list has nowhere to go otherwise. */
.top-menu > li { position: static; }
.game-list {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 60;
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 6px; padding: 14px;
  max-height: 396px; overflow-y: auto;
  background: rgba(6, 38, 47, .98);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
.game-list::-webkit-scrollbar { width: 8px; }
.game-list::-webkit-scrollbar-thumb {
  background: var(--line-2); border-radius: 999px;
}
.top-menu > li:hover > .game-list { display: grid; }
.game-list li a {
  position: relative; display: block; height: 76px;
  transition: transform .15s ease;
}
.game-list li a:hover { transform: translateY(-2px); }
/* the pills carry their own stroke and a transparent background */
.game-list .background { display: none; }
.game-list .foreground {
  position: absolute; inset: 0;
  background: center / contain no-repeat;
}
.game-list a[data-maintenance-status="true"]::after {
  content: var(--maintenance-text, '維護中');
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(3, 20, 26, .8);
  color: var(--mute); font-size: 12px; font-weight: 700;
  border-radius: 999px;
}

/* --- 7b. menu breakpoints -----------------------------------------------
   11 items on one line. Measured against Noto Sans CJK at each step, the
   strip needs 868 / 780 / 692px and the container gives 1110 / 940 / 800,
   so it never wraps before the phone breakpoint takes over. */
@media (max-width: 1000px) {
  .top-menu > li > a { padding: 11px 9px 9px; font-size: 13px; gap: 5px; }
  .top-menu > li > a img { width: 24px; height: 24px; }
}
@media (max-width: 900px) {
  .top-menu > li > a { padding: 10px 7px 8px; font-size: 12px; }
  .top-menu > li > a img { width: 22px; height: 22px; }
}
@media (max-width: 768px) {
  /* swipeable rail; dropdowns are off below this width, so overflow
     scrolling has no panel to clip */
  .top-menu {
    justify-content: flex-start;
    overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px,
      #000 calc(100% - 16px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 16px,
      #000 calc(100% - 16px), transparent 100%);
  }
  .top-menu::-webkit-scrollbar { display: none; }
  .top-menu > li { flex: 0 0 auto; scroll-snap-align: start; }
  .top-menu > li > a { padding: 10px 12px 8px; font-size: 12.5px; }
  .logo { padding: 12px 0 8px; }
  .logo img { height: 34px; }
}

/* --- 8. banner ---------------------------------------------------------- */
.banner { background: var(--grad-deep); }
.banner > a { display: block; max-width: var(--wrap); margin: 0 auto; }
.banner > a picture { display: block; }
.banner > a img { display: block; width: 100%; height: auto; }
/* one artwork at every width - the <picture> no longer swaps a mobile
   crop in, so the image just scales down inside the container cap */

/* artwork slots (logo / banner / game tiles) are supplied per-site; until
   they are in place the alt text is what shows, so give it the palette
   rather than the browser's default black-on-nothing */
.logo img { color: #f3fb00; font-size: 20px; font-weight: 800; }
.banner img, .telegram-banner-container img { color: var(--mute); font-size: 13px; }
.lotto-game img { color: var(--mute); font-size: 11px; }

/* --- 9. deposit strip + CTA pair ---------------------------------------- */
.fx-deposit-strip {
  max-width: var(--wrap); margin: 12px auto 0; padding: 14px 16px;
  background: var(--grad-soft);
  border: 2px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .4) inset, var(--shadow);
  text-align: center;
}
.fx-ds-lead {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline;
  gap: 4px 26px; margin: 0;
  font-size: 17px; font-weight: 700; color: #d9f6f4;
}
.fx-ds-pair { white-space: nowrap; }
.fx-ds-lead strong {
  margin-left: 5px; font-size: 29px; font-weight: 900;
  color: var(--g-mint);
  text-shadow: 0 0 16px rgba(46, 230, 197, .45);
}
.fx-ds-sub { margin: 8px 0 0; font-size: 14px; color: #c3e5e6; }
.fx-ds-sub span { display: inline-block; margin: 0 9px; }
.fx-ds-sub span + span::before {
  content: ""; display: inline-block;
  width: 5px; height: 5px; margin-right: 12px;
  border-radius: 50%; background: var(--line-2); vertical-align: middle;
}

.lotto-auth-btns {
  display: flex; gap: 14px; justify-content: center;
  padding: 24px 16px 28px;
  /* a pool of light under the pair so they lift off the flat background */
  background:
    radial-gradient(58% 130% at 50% 0%, rgba(46, 230, 197, .12), transparent 72%),
    var(--ink);
}
.lotto-btn {
  position: relative; overflow: hidden;
  flex: 1 1 0; max-width: 330px; text-align: center;
  padding: 18px 26px; border-radius: 999px;
  font-weight: 800; font-size: 19px; letter-spacing: .04em;
  transition: transform .18s ease, box-shadow .18s ease,
              background .18s ease, color .18s ease;
}
.lotto-btn:active { transform: translateY(1px); }

/* --- 9b. CTA emphasis ---------------------------------------------------
   The primary carries a halo ring, a lifted drop shadow and a slow sheen;
   the secondary stops being a transparent outline and gets a filled well
   with a full-strength mint edge, so it reads as a real button next to it. */
.lotto-btn-register {
  background: var(--grad);
  color: var(--on-mint);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .25);
  animation: fx-cta-halo 2.8s ease-in-out infinite;
}
.lotto-btn-register::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%,
    rgba(255, 255, 255, .5) 50%, transparent 62%);
  transform: translateX(-130%);
  animation: fx-cta-sheen 3.6s ease-in-out infinite;
}
.lotto-btn-register:hover {
  transform: translateY(-2px);
  animation-play-state: paused;
  box-shadow: 0 0 0 4px rgba(46, 230, 197, .45),
              0 16px 36px rgba(18, 168, 184, .62),
              inset 0 1px 0 rgba(255, 255, 255, .4);
}
@keyframes fx-cta-halo {
  0%, 100% { box-shadow: 0 0 0 2px rgba(46, 230, 197, .34),
                         0 10px 26px rgba(18, 168, 184, .40),
                         inset 0 1px 0 rgba(255, 255, 255, .35); }
  50%      { box-shadow: 0 0 0 6px rgba(46, 230, 197, .14),
                         0 13px 34px rgba(18, 168, 184, .64),
                         inset 0 1px 0 rgba(255, 255, 255, .35); }
}
@keyframes fx-cta-sheen {
  0%        { transform: translateX(-130%); }
  55%, 100% { transform: translateX(130%); }
}

.lotto-btn-login {
  background: linear-gradient(180deg, rgba(11, 58, 71, .96), rgba(6, 32, 40, .96));
  border: 2px solid var(--g-mint);
  color: var(--g-mint);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .45),
              inset 0 0 24px rgba(46, 230, 197, .12);
}
.lotto-btn-login:hover {
  background: rgba(46, 230, 197, .16);
  color: #c8fbef;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .5),
              0 0 0 4px rgba(46, 230, 197, .22),
              inset 0 0 26px rgba(46, 230, 197, .18);
}

/* same halo on the sticky phone bar so the two agree */
.nexus-cta-bar a { animation: fx-cta-halo 2.8s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .lotto-btn-register, .nexus-cta-bar a { animation: none; }
  .lotto-btn-register {
    box-shadow: 0 0 0 3px rgba(46, 230, 197, .3),
                0 12px 30px rgba(18, 168, 184, .5);
  }
  .lotto-btn-register::after { display: none; }
}

/* --- 10. announcement bar ----------------------------------------------- */
.home-info-container { background: var(--ink); padding: 18px 0 4px; }
.announcement-container {
  display: flex; align-items: center; gap: 16px;
  padding: 10px 16px; margin-bottom: 18px;
  background: var(--grad-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.announcement-container [data-section="title"] {
  display: flex; align-items: center; gap: 8px;
  flex: none; color: var(--g-mint); font-weight: 700; white-space: nowrap;
}
.announcement-container [data-section="announcements"] { flex: 1; min-width: 0; }
.announcement-container [data-section="date"] {
  flex: none; color: var(--mute); font-size: 13px; white-space: nowrap;
}
.tickercontainer, .mask { overflow: hidden; }
.announcement-list {
  display: flex; gap: 56px; white-space: nowrap;
  animation: fx-ticker 34s linear infinite;
}
.announcement-list li { color: #d9f6f4; }
.announcement-container:hover .announcement-list { animation-play-state: paused; }
@keyframes fx-ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .announcement-list { animation: none; }
}

/* --- 11. game grid ------------------------------------------------------ */
.lotto-games { max-width: 1080px; margin: 8px auto 24px; padding: 0 16px; }
.lotto-games-head { margin: 0 0 14px; }
.lotto-games-head span {
  display: inline-block;
  background: var(--grad-bar);
  border: 1px solid var(--line);
  color: var(--g-mint);
  font-size: 18px; font-weight: 700;
  padding: 8px 26px;
  border-radius: 6px 24px 6px 6px;
}
.lotto-games-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.lotto-game {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px; text-align: center;
  transition: border-color .2s ease, transform .2s ease;
}
.lotto-game:hover { border-color: var(--g-mint); transform: translateY(-2px); }
.lotto-game img { width: 100%; border-radius: 8px; }
.lotto-game-name { color: var(--text); font-weight: 700; font-size: 14px; }
.lotto-game-sub { color: var(--mute); font-size: 11px; }

.lotto-games-more {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center; align-items: center; margin-top: 16px;
}
.lotto-games-more-label { color: var(--g-mint); font-size: 13px; font-weight: 700; margin-right: 4px; }
.lotto-chip {
  background: rgba(10, 53, 66, .9);
  border: 1px solid var(--line);
  color: #bdeee6;
  border-radius: 999px; padding: 6px 14px; font-size: 12px;
}
.lotto-chip:hover { border-color: var(--g-mint); color: #fff; }

/* --- 12. mid-page CTA --------------------------------------------------- */
.download-apk-container { background: var(--grad-deep); padding: 8px 0 26px; }
.fx-midcta { padding: 26px 16px 6px; text-align: center; }
.fx-midcta-title { margin: 0; font-size: 26px; font-weight: 800; color: #fff; }
.fx-midcta-sub { margin: 8px auto 0; max-width: 640px; font-size: 15px; color: #d6f4f4; }
.fx-midcta-sub strong {
  color: var(--g-mint); font-size: 1.35em; font-weight: 900;
  text-shadow: 0 0 12px rgba(46, 230, 197, .45);
}
.fx-rates {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin: 14px auto 0; max-width: 640px;
}
.fx-rates li {
  flex: 1 1 150px; padding: 9px 10px; border-radius: 9px;
  background: rgba(4, 24, 31, .45);
  border: 1px solid var(--line);
}
.fx-rates b { display: block; font-size: 13px; font-weight: 600; color: #d6f4f4; }
.fx-rates span { display: block; font-size: 20px; font-weight: 900; color: var(--g-mint); }
.fx-midcta-link { margin: 14px 0 0; font-size: 15px; }
.fx-midcta-link a { text-decoration: underline; text-underline-offset: 3px; }

/* --- 13. secondary banner ---------------------------------------------- */
.telegram-banner-container { padding: 10px 0 26px; background: var(--ink); }
.telegram-banner-container img { width: 100%; border-radius: var(--radius); }

/* --- 13b. provider tiles ------------------------------------------------ */
.provider-section { background: var(--ink); padding: 30px 0 34px; }
.provider-title {
  font-size: 22px; color: var(--g-mint); text-align: center; margin: 0 0 6px;
}
.provider-sub {
  text-align: center; color: var(--mute); font-size: 14px; margin: 0 0 22px;
}
.provider-group { margin-bottom: 22px; }
.provider-cat {
  display: inline-block; margin-bottom: 12px;
  background: var(--grad-bar); border: 1px solid var(--line);
  color: var(--g-mint); font-size: 15px; font-weight: 700;
  padding: 6px 20px; border-radius: 6px 20px 6px 6px;
}
.provider-grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}
.provider-tile {
  display: block; line-height: 0; border-radius: 999px;
  transition: transform .18s ease, filter .18s ease;
}
.provider-tile img { width: 100%; height: auto; }
.provider-tile:hover { transform: translateY(-3px); }
@media (max-width: 768px) {
  .provider-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
  .provider-title { font-size: 19px; }
}

/* --- 14. footer --------------------------------------------------------- */
.site-footer {
  background: var(--grad-deep);
  border-top: 2px solid transparent;
  border-image: var(--grad) 1;
  padding: 34px 0 10px;
}
.footer-description-section h1 { font-size: 30px; margin-bottom: 18px; color: var(--text); }
.footer-description-section h2 {
  font-size: 23px; margin: 34px 0 12px;
  padding-left: 12px; border-left: 4px solid var(--g-teal);
  color: var(--g-mint);
}
.footer-description-section h3 {
  font-size: 17px; margin: 22px 0 8px; color: #9df0dd;
}
.footer-description-section p { line-height: 1.9; }

.footer-sitemap-section {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px;
}
.footer-sitemap-section h4 {
  font-size: 15px; margin-bottom: 12px; color: #bdeee6;
}
.footer-links li, .contact-list li, .social-media-list li { margin-bottom: 8px; }
.footer-links a, .contact-list a, .social-media-list a {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--body); font-size: 13px;
}
.footer-links a:hover, .contact-list a:hover, .social-media-list a:hover { color: var(--g-mint); }

.footer-featured-product-section .site-info-description {
  padding: 16px; height: 100%;
  background: rgba(10, 53, 66, .5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.site-info-img-header { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.site-info-img-header h4 { font-size: 15px; color: var(--g-mint); }
.footer-featured-product-section p { margin: 0; font-size: 13px; line-height: 1.75; }

.banking-footer-section { display: flex; justify-content: center; }
.bank-service-container { display: flex; gap: 48px; flex-wrap: wrap; justify-content: center; }
.bank-service-container .site-info-description { display: flex; align-items: center; gap: 12px; }
.bank-service-container h4 { font-size: 14px; color: #bdeee6; }
.bank-service-container p { margin: 0; font-size: 13px; color: var(--g-mint); font-weight: 700; }

.footer-copyright-section .col-md-12 {
  display: flex; flex-wrap: wrap; gap: 28px 46px; align-items: flex-start;
}
.footer-section-title {
  margin: 0 0 10px; font-size: 12px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--mute);
}
.hover-list { display: flex; align-items: center; gap: 12px; }
.footer-banking-section { padding: 6px 0; }
.powered-by-link { display: inline-block; line-height: 0; }
.powered-by-logo { height: 40px; width: auto; }
/* each item ships a normal + an active image; show one, swap on hover */
.hover-list li { line-height: 0; }
.hover-list li > picture + picture { display: none; }
.hover-list li:hover > picture:first-of-type { display: none; }
.hover-list li:hover > picture + picture { display: inline-block; }
.supported-browser-container { margin-left: auto; }
.copyright {
  width: 100%; padding-top: 8px;
  color: var(--mute); font-size: 12px;
}
.footer-separator { margin: 24px 0; }

/* --- 15. modals & forms ------------------------------------------------- */
/* hidden by default - the vendor bundle used to provide this, and without it
   every modal would render inline as page content */
.modal {
  display: none;
  position: fixed; inset: 0; z-index: 1050;
  overflow: auto;
  background: rgba(2, 12, 16, .78);
}
.modal:target { display: block; }
.modal-dialog { max-width: 460px; margin: 60px auto; padding: 0 15px; }
.modal-content {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.modal-header { position: relative; padding: 18px 22px 0; }
.modal-title { font-size: 18px; color: var(--g-mint); }
.modal-body { padding: 6px 22px 22px; }
.close {
  position: absolute; top: 12px; right: 16px;
  background: none; border: 0; cursor: pointer;
  font-size: 24px; line-height: 1; color: var(--mute);
}
.close:hover { color: var(--g-mint); }

.form-group, .standard-inline-form-group { margin-bottom: 14px; }
label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--mute); }
.form-control {
  width: 100%; padding: 10px 12px;
  background: rgba(4, 24, 31, .6);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text); font-size: 14px; font-family: inherit;
}
.form-control:focus {
  outline: none;
  border-color: var(--g-mint);
  box-shadow: 0 0 0 3px rgba(46, 230, 197, .16);
}
.standard-button-group { margin-top: 16px; }
.standard-button-group .btn, .standard-button-group input { width: 100%; padding: 12px 22px; }
.alert-danger {
  padding: 9px 12px; border-radius: 8px; font-size: 13px;
  background: rgba(255, 96, 96, .12); border: 1px solid rgba(255, 96, 96, .4); color: #ff9b9b;
}
.alert-success {
  padding: 9px 12px; border-radius: 8px; font-size: 13px;
  background: rgba(46, 230, 197, .12); border: 1px solid var(--line-2); color: var(--g-mint);
}
.standard-required-message { display: block; margin-top: 5px; font-size: 12px; color: #ff9b9b; }
.register-page-reminder { margin-top: 14px; font-size: 12px; color: var(--mute); line-height: 1.7; }
.register-page-link { margin-top: 8px; font-size: 12px; }

.popup-loader-container { display: none; padding: 30px 0; text-align: center; }
.popup-loader-container.display { display: block; }
.loader-spinner span {
  display: inline-block; width: 30px; height: 30px;
  border: 3px solid var(--line);
  border-top-color: var(--g-mint);
  border-radius: 50%;
  animation: fx-spin .8s linear infinite;
}
@keyframes fx-spin { to { transform: rotate(360deg); } }

/* --- 16. sticky mobile CTA ---------------------------------------------- */
.nexus-cta-bar { display: none; }

/* --- 17. responsive ----------------------------------------------------- */
@media (max-width: 992px) {
  .footer-sitemap-section { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  html, body { overflow-x: hidden; }
  .row > [class*="col-"],
  .col-sm-3, .col-md-3, .col-sm-9, .col-md-9 { width: 100%; }

  .topbar-container .row { justify-content: center; }
  /* hover dropdowns are unusable on touch; the labels stay as links */
  .game-list { display: none !important; }

  .announcement-container { flex-direction: column; align-items: flex-start; gap: 8px; }
  .announcement-container > * { min-width: 0; }
  /* flex:1 becomes a zero HEIGHT basis in column - the ticker collapsed
     and the date row printed through it */
  .announcement-container [data-section="announcements"] {
    flex: 0 0 auto; width: 100%;
  }

  .fx-deposit-strip { margin: 10px 10px 0; padding: 12px; }
  .fx-ds-lead { font-size: 14.5px; gap: 2px 16px; }
  .fx-ds-lead strong { font-size: 25px; }
  .fx-ds-sub { font-size: 13px; }
  .lotto-games-grid { grid-template-columns: repeat(3, 1fr); }
  .fx-midcta { padding: 20px 12px 4px; }
  .fx-midcta-title { font-size: 21px; }
  .fx-midcta-sub { font-size: 14px; }
  .fx-rates span { font-size: 18px; }

  .footer-description-section h1 { font-size: 23px; }
  .footer-description-section h2 { font-size: 19px; }
  .footer-sitemap-section { grid-template-columns: repeat(2, 1fr); }
  .supported-browser-container { margin-left: 0; }

  /* sticky register bar */
  .nexus-cta-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
    padding: 8px 10px;
    background: rgba(4, 24, 31, .96);
    border-top: 1px solid var(--line-2);
    box-shadow: 0 -4px 18px rgba(0, 0, 0, .55);
  }
  .nexus-cta-bar a { flex: 1; padding: 13px 8px; border-radius: 10px; font-size: 16px; }
  body { padding-bottom: 66px; }
}

@media (max-width: 480px) {
  .lotto-games-grid { grid-template-columns: repeat(2, 1fr); }
  .lotto-auth-btns { flex-direction: column; align-items: stretch; }
  /* flex:1 1 0 on the row sizes width; once this container is column
     that basis lands on HEIGHT and collapses the button, so hand the
     main axis back to the content */
  .lotto-btn {
    flex: 0 0 auto;
    max-width: none; font-size: 18px; padding: 17px 20px;
  }
  .footer-sitemap-section { grid-template-columns: 1fr; }
}
