/* The site top bar on luckincorporated.com pages that are not in the Site 2 design (generated by apply_nav.py; served as
   /assets/site2/topbar.css). The bar's markup is the Site 2 header, byte for byte; these are the rules /assets/site2/site.css
   gives that header on an interior Site 2 page (the cascade of site.css resolved, body.interior), written so they apply to the
   header alone: every selector starts at an element the generated block itself carries (.site-header, .skip-link,
   .site-skip-target, .site-header-spacer), so nothing reaches the page's own content. The page's own stylesheet
   (tailwind.css) is left alone.

   Differences from a Site 2 page, each on purpose:
   - The bar is position: fixed (Site 2: sticky). These pages were laid out under a fixed bar (their top padding clears it),
     so a fixed bar leaves every page's content where it was.
   - Font: Site 2 names Inter first but loads no Inter, so its header is drawn in Segoe UI (Windows) or Helvetica (Apple).
     These pages DO load Inter from Google Fonts, so naming it here would draw the bar in a different face; the stack below
     is site.css's without Inter.
   - Below 1121 px the menu is closed until topbar.js marks the header ready (Site 2 shows the menu as an open column before
     its script runs); with a fixed bar an open column would cover the page while the script loads. Without script the bar
     shows the logo and Live, as the old bar did on phones.
   - z-index 50 (the old bar's), above every layer these pages use (their own fixed tab bars use 40). */

.site-header {
  --tb-ink: #f6f4f8;
  --tb-soft: #201d24;
  --tb-accent: #d3bafd;
  --tb-gutter: clamp(20px, 4.4vw, 72px);
  --tb-font: "Segoe UI", Helvetica, Arial, sans-serif;
  --tb-mono: "IBM Plex Mono", Consolas, monospace;
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: block; margin: 0; padding: 0;
  color-scheme: dark;
  color: var(--tb-ink);
  font: 400 16px/1.58 var(--tb-font);
  font-feature-settings: "ss01", "cv11";
  letter-spacing: normal; text-align: start; text-transform: none;
  -webkit-font-smoothing: antialiased;
  background: #0d0d0ee8;
  border: 0; border-bottom: 1px solid #ffffff14;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
/* The line under the current item takes the colour it has on that item's own Site 2 page (the interior lilac otherwise). */
.site-header .primary-nav > a[href="https://luckincorporated.com/ugc"][aria-current]::after { background: #f3ce82; }
.site-header .primary-nav > a[href="https://luckincorporated.com/advertise"][aria-current]::after { background: #91e5b6; }
.site-header .chance-menu[data-current]:has(a[href="https://luckincorporated.com/winners"][aria-current]) > summary::after { background: #f0d39c; }
.site-header .chance-menu[data-current]:has(a[href="https://luckincorporated.com/games-like-krillion"][aria-current]) > summary::after,
.site-header .chance-menu[data-current]:has(a[href="https://luckincorporated.com/ecosystem"][aria-current]) > summary::after { background: #d6bbff; }
.site-header *, .site-header *::before, .site-header *::after { box-sizing: border-box; }
.site-header a { color: inherit; text-underline-offset: .22em; }
.site-header img { display: block; max-width: 100%; border: 0; vertical-align: baseline; }
.site-header button, .site-header summary { font: inherit; color: inherit; }
.site-header button { cursor: pointer; margin: 0; }
.site-header [hidden] { display: none !important; }
.site-header :focus-visible { outline: 2px solid var(--tb-accent); outline-offset: 5px; }
.site-header ::selection { background: var(--tb-accent); color: #15160d; }
.site-header .shell { width: min(1320px, calc(100% - 2 * var(--tb-gutter))); margin-inline: auto; }
.site-header .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; clip: rect(0,0,0,0); overflow: hidden; white-space: nowrap; }

.site-header .nav-shell { min-height: 78px; display: flex; align-items: center; gap: clamp(12px, 1.8vw, 28px); }
.site-header .brand { display: inline-flex; flex: none; align-items: center; gap: 9px; font-size: 1.02rem; font-weight: 750; line-height: 1; letter-spacing: -.04em; text-decoration: none; }
.site-header .brand img { width: 58px; height: 58px; object-fit: contain; mix-blend-mode: screen; }

.site-header .primary-nav { display: flex; align-items: center; justify-content: center; gap: clamp(15px, 1.8vw, 27px); flex: 1; margin: 0; padding: 0; }
.site-header .primary-nav > a, .site-header .chance-menu > summary { position: relative; display: flex; align-items: center; gap: 5px; min-height: 44px; color: #bfbfc2; font-size: .8rem; line-height: 1.25; font-weight: 550; letter-spacing: -.011em; white-space: nowrap; cursor: pointer; text-decoration: none; transition: color .18s ease; }
.site-header .primary-nav > a:hover, .site-header .chance-menu > summary:hover { color: #fff; text-decoration: none; }
.site-header .primary-nav > a[aria-current], .site-header .chance-menu[data-current] > summary { color: #fff; text-decoration: none; }
.site-header .primary-nav > a[aria-current]::after, .site-header .chance-menu[data-current] > summary::after { content: ""; position: absolute; height: 2px; inset: auto 0 -17px; background: var(--tb-accent); }
.site-header .chance-menu { position: relative; display: block; margin: 0; padding: 0; }
.site-header .chance-menu > summary { list-style: none; padding-right: 2px; }
.site-header .chance-menu > summary::-webkit-details-marker { display: none; }
.site-header .chevron { width: 7px; height: 7px; margin: -4px 2px 0 2px; border: 0; border-right: 1px solid; border-bottom: 1px solid; transform: rotate(45deg); transition: transform .18s ease; }
.site-header .chance-menu[open] .chevron { margin-top: 2px; transform: rotate(225deg); }

.site-header .chance-links { position: absolute; top: calc(100% + 17px); left: -20px; width: max-content; min-width: 330px; display: grid; padding: 8px; border: 1px solid #ffffff24; border-radius: 14px; background: #19191c; box-shadow: 0 24px 64px #0009; }
.site-header .chance-menu:not([open]) .chance-links { display: none; }
.site-header .chance-menu-intro { display: flex; align-items: center; gap: 12px; padding: 10px 12px 16px; border-bottom: 1px solid #ffffff16; margin-bottom: 6px; }
.site-header .chance-menu-intro img { width: 48px; height: auto; }
.site-header .chance-menu-intro > span { color: #f5f5f5; font-size: .86rem; font-weight: 600; }
.site-header .chance-menu-intro small, .site-header .chance-links a small { display: block; color: #aaa8b0; margin-top: 4px; font-size: .72rem; font-weight: 400; line-height: 1.45; }
.site-header .chance-links a { display: grid; grid-template-columns: 20px 1fr 12px; column-gap: 10px; align-items: center; min-height: 42px; padding: 13px 12px; border-radius: 8px; font-size: .84rem; font-weight: 600; color: #f3f3f5; text-decoration: none; }
.site-header .chance-links a[aria-current] { background: #38333e; }
.site-header .chance-links a:hover { background: #ffffff0c; }
.site-header .nav-link-index { color: #8c8a93; font: .61rem var(--tb-mono); }
.site-header .nav-link-arrow { color: #93909d; transition: transform .2s ease; }
.site-header .chance-links a:hover .nav-link-arrow { transform: translate(2px, -2px); }

.site-header .live-button { flex: none; display: inline-flex; align-items: center; gap: 9px; min-height: 39px; padding: 0 17px; border: 1px solid #ffffff32; border-radius: 7px; background: #ffffff08; color: #f8f8f8; font-size: .85rem; font-weight: 650; text-decoration: none; transition: background .16s ease; }
.site-header .live-button:hover { background: #ffffff12; border-color: #ffffff60; }
/* A static dot: no pulse, no ping. */
.site-header .live-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #ff4242; box-shadow: 0 0 0 3px #ff424227; }

.site-header .menu-toggle { display: none; place-items: center; width: 44px; height: 44px; padding: 1px 6px; border: 1px solid #ffffff24; border-radius: 7px; background: transparent; }
.site-header .menu-toggle:hover { background: var(--tb-soft); }
.site-header .menu-glyph { width: 18px; height: 14px; border: 0; border-block: 1px solid; background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat; }

/* Phones, tablets and small laptops: the menu button and a drop-down panel. */
@media (max-width: 1120px) {
  .site-header .nav-shell { min-height: 70px; flex-wrap: wrap; }
  .site-header .nav-shell > .brand { margin-right: auto; }
  .site-header .brand img { width: 52px; height: 52px; }
  .site-header .nav-shell > .live-button { order: 2; }
  .site-header .menu-toggle { display: grid; order: 1; }
  .site-header .primary-nav { display: none; order: 3; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; position: absolute; top: 100%; inset-inline: 0; padding: 9px var(--tb-gutter) 22px; border-bottom: 1px solid #343139; background: #131315; box-shadow: 0 20px 36px #0008; max-height: calc(100vh - 70px); max-height: calc(100dvh - 70px); overflow: auto; }
  .site-header .primary-nav[data-open] { display: flex; justify-content: flex-start; }
  .site-header .primary-nav > a, .site-header .chance-menu > summary { font-size: .92rem; min-height: 54px; border-bottom: 1px solid #ffffff15; white-space: normal; }
  .site-header .chance-menu > summary { justify-content: space-between; }
  .site-header .primary-nav > a[aria-current]::after, .site-header .chance-menu[data-current] > summary::after { display: none; }
  .site-header .chance-links { position: static; width: 100%; min-width: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; padding: 5px 0 10px; }
  .site-header .chance-menu-intro { display: none; }
  .site-header .chance-links a { min-height: 44px; padding: 12px 8px; }
}

/* Skip link (Site 2's) and its target, the end of the generated block. */
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 60; padding: 10px 16px; border: 1px solid; background: #101012; color: #f6f4f8; font: 400 16px/1.58 "Segoe UI", Helvetica, Arial, sans-serif; text-decoration: underline; text-underline-offset: .22em; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.skip-link:focus-visible { outline: 2px solid #d3bafd; outline-offset: 5px; }
.site-skip-target { display: block; height: 0; margin: 0; padding: 0; }
.site-skip-target:focus { outline: 0; }
/* The two legal pages start their content under a spacer the height of the bar (78 px + its 1 px border; 70 + 1 below 1121 px). */
.site-header-spacer { display: block; height: 79px; margin: 0; padding: 0; }
@media (max-width: 1120px) { .site-header-spacer { height: 71px; } }

/* /daily inside another site's frame hides the site's bar (daily.html marks the frame on <html>). */
html.is-framed .site-header, html.is-framed .skip-link { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .site-header, .site-header *, .site-header *::before, .site-header *::after, .skip-link { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* DOWNLOAD-CONTROL (2026-11-18, site-dl1118): the Download control at the foot of the Chance Infinite menu. Its summary
   opens, under it, the App Store and Google Play links and the sweepstakes disclosure. The same rules close
   /assets/site2/site.css and /assets/site2/topbar.css; every selector starts at .site-header, and each one is specific
   enough to beat the menu's own ".chance-links a" rules (the store links and the rules link sit inside .chance-links).
   Colours are the menu's own: the hairline of its intro row, the Live button's outline, the menu's small grey text
   (#aaa8b0 at .72rem, as under each menu link) and its link colour (#f3f3f5). */
.site-header .nav-download { display: block; margin: 6px 0 0; padding: 12px 4px 4px; border: 0; border-top: 1px solid #ffffff16; }
.site-header .nav-download > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin: 0; padding: 0 15px; border: 1px solid #ffffff32; border-radius: 7px; background: #ffffff08; color: #f8f8f8; font-size: .84rem; font-weight: 650; line-height: 1.25; letter-spacing: -.011em; white-space: nowrap; list-style: none; cursor: pointer; transition: background .16s ease, border-color .16s ease; }
.site-header .nav-download > summary::-webkit-details-marker { display: none; }
.site-header .nav-download > summary:hover, .site-header .nav-download[open] > summary { background: #ffffff12; border-color: #ffffff60; }
.site-header .nav-download-chevron { flex: none; width: 7px; height: 7px; margin: -4px 2px 0; border: 0; border-right: 1px solid; border-bottom: 1px solid; transform: rotate(45deg); transition: transform .18s ease; }
.site-header .nav-download[open] .nav-download-chevron { margin-top: 2px; transform: rotate(225deg); }
.site-header .nav-download-panel { display: grid; gap: 11px; margin: 0; padding: 10px 0 2px; }
.site-header .nav-store-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; padding: 0; }
.site-header .nav-download a.nav-store { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; margin: 0; padding: 0 12px; border: 1px solid #f3f3f5; border-radius: 7px; background: #f3f3f5; color: #141416; font-size: .82rem; font-weight: 650; line-height: 1.25; letter-spacing: -.011em; text-decoration: none; white-space: nowrap; transition: background .16s ease, border-color .16s ease; }
.site-header .nav-download a.nav-store:hover { background: #d9d8dd; border-color: #d9d8dd; color: #141416; }
.site-header .nav-download a.nav-store > span { color: #55535c; }
.site-header .nav-download .nav-download-note { width: 0; min-width: 100%; margin: 0; padding: 0 2px; color: #aaa8b0; font-size: .72rem; font-weight: 400; line-height: 1.45; letter-spacing: normal; white-space: normal; }
.site-header .nav-download .nav-download-note a { display: inline; min-height: 0; margin: 0; padding: 0; border-radius: 0; background: none; color: #f3f3f5; font: inherit; text-decoration: underline; text-underline-offset: .2em; }
.site-header .nav-download .nav-download-note a:hover { background: none; color: #ffffff; }
.site-header .nav-download :focus-visible { outline-offset: 3px; }
/* A short window (a 1920 x 1080 laptop at 150 % is 1280 x 600 or so inside the browser) cannot show the open card whole, and
   the bar is fixed or sticky, so the page cannot scroll its foot into view. Above 1120 px the card therefore stops 14 px
   above the window's foot and scrolls inside itself; on a tall window nothing changes. */
@media (min-width: 1121px) {
  .site-header .chance-links { max-height: calc(100vh - 92px); max-height: calc(100dvh - 92px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #ffffff38 transparent; }
}
@media (max-width: 1120px) {
  .site-header .nav-download { margin-top: 4px; padding: 12px 0 6px; border-top-color: #ffffff15; }
  .site-header .nav-download > summary { min-height: 48px; font-size: .9rem; }
  .site-header .nav-download a.nav-store { min-height: 48px; font-size: .88rem; }
  .site-header .nav-download .nav-download-note { font-size: .72rem; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header .nav-download > summary, .site-header .nav-download-chevron, .site-header .nav-download a.nav-store { transition: none; }
}
/* /DOWNLOAD-CONTROL */
