/* ==========================================================================
   399 bear — adaptive canvas stylesheet
   Mobile-first 320-430px phone canvas, centered on wide screens.
   Palette anchors: #1E1E1E (canvas) / #6A5ACD (brand accent).
   Design language: humanist headings + clear body text, small radii,
   high density, outlined tile game cards, fact-summary-first rhythm,
   state-color-only motion budget, full-width primary CTAs.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens (all variables carry the uif45be- prefix)
   -------------------------------------------------------------------------- */
:root {
  --uif45be-canvas: #1e1e1e;
  --uif45be-canvas-deep: #161616;
  --uif45be-surface: #242424;
  --uif45be-surface-lift: #2b2b2b;
  --uif45be-line: #3a3a44;
  --uif45be-line-soft: #2f2f36;
  --uif45be-brand: #6a5acd;
  --uif45be-brand-strong: #8478e3;
  --uif45be-brand-dim: rgba(106, 90, 205, 0.18);
  --uif45be-brand-glow: rgba(106, 90, 205, 0.42);
  --uif45be-ink: #efedf8;
  --uif45be-ink-soft: #c9c4e2;
  --uif45be-ink-mute: #9d97bd;
  --uif45be-danger: #d96a6a;
  --uif45be-ok: #6ac483;
  --uif45be-radius-xs: 3px;
  --uif45be-radius-sm: 5px;
  --uif45be-radius-md: 7px;
  --uif45be-gap: 10px;
  --uif45be-pad: 14px;
  --uif45be-tap: 44px;
  --uif45be-font:
    "Segoe UI", "Nirmala UI", "Noto Sans Bengali", "Hind Siliguri",
    "SolaimanLipi", "Kalpurush", system-ui, -apple-system, sans-serif;
  --uif45be-topbar-h: 96px;
  --uif45be-dock-h: 66px;
}

/* --------------------------------------------------------------------------
   2. Base reset + canvas
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--uif45be-canvas-deep);
  color: var(--uif45be-ink);
  font-family: var(--uif45be-font);
  font-size: 15px;
  line-height: 1.72;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--uif45be-brand-strong);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--uif45be-ink);
}

button {
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--uif45be-brand-strong);
  outline-offset: 2px;
  border-radius: var(--uif45be-radius-xs);
}

/* The phone canvas stays centered and clamped on any screen. */
.uif45be-canvas {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--uif45be-canvas);
  box-shadow: 0 0 0 1px var(--uif45be-line-soft);
}

@media (min-width: 431px) {
  .uif45be-canvas {
    box-shadow:
      0 0 0 1px var(--uif45be-line-soft),
      0 0 42px rgba(0, 0, 0, 0.55);
  }
}

/* Reserve room for the fixed top bar and the raised bottom dock. */
.uif45be-main {
  padding: calc(var(--uif45be-topbar-h) + 10px) var(--uif45be-pad)
    calc(var(--uif45be-dock-h) + 26px);
}

/* --------------------------------------------------------------------------
   3. Top bar — edge-aligned functional header
   -------------------------------------------------------------------------- */
.uif45be-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 60;
  background: rgba(30, 30, 30, 0.96);
  border-bottom: 1px solid var(--uif45be-line-soft);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.uif45be-topbarInner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px var(--uif45be-pad) 9px;
}

/* Brand row: only the real logo image + site name. */
.uif45be-brandRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
}

.uif45be-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--uif45be-ink);
}

.uif45be-logo {
  width: 34px;
  height: 34px;
  border-radius: var(--uif45be-radius-sm);
  border: 1px solid var(--uif45be-line);
  object-fit: cover;
  flex: none;
}

.uif45be-brandName {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.2px;
  line-height: 1.2;
}

.uif45be-menuBtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--uif45be-tap);
  padding: 8px 13px;
  background: transparent;
  color: var(--uif45be-ink-soft);
  border: 1px solid var(--uif45be-line);
  border-radius: var(--uif45be-radius-sm);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.uif45be-menuBtn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
}

.uif45be-menuBtn.is-open {
  color: var(--uif45be-brand-strong);
  border-color: var(--uif45be-brand);
  background: var(--uif45be-brand-dim);
}

/* Action row: register / login sit outside the brand cluster. */
.uif45be-actionRow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.uif45be-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--uif45be-tap);
  padding: 10px 12px;
  border-radius: var(--uif45be-radius-sm);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    color 0.15s ease;
}

.uif45be-btnPrimary {
  background: var(--uif45be-brand);
  color: #ffffff;
}

.uif45be-btnPrimary:hover,
.uif45be-btnPrimary:focus-visible {
  background: var(--uif45be-brand-strong);
  color: #ffffff;
}

.uif45be-btnGhost {
  background: transparent;
  color: var(--uif45be-ink-soft);
  border-color: var(--uif45be-line);
}

.uif45be-btnGhost:hover,
.uif45be-btnGhost:focus-visible {
  color: var(--uif45be-ink);
  border-color: var(--uif45be-brand);
}

.uif45be-btnBlock {
  width: 100%;
}

/* --------------------------------------------------------------------------
   4. Sectioned menu panel (slides under the header)
   -------------------------------------------------------------------------- */
.uif45be-menu {
  display: none;
  position: fixed;
  top: var(--uif45be-topbar-h);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  max-height: calc(100vh - var(--uif45be-topbar-h) - var(--uif45be-dock-h));
  overflow-y: auto;
  z-index: 55;
  background: var(--uif45be-canvas);
  border-bottom: 1px solid var(--uif45be-line);
  padding: 6px var(--uif45be-pad) 18px;
}

.uif45be-menu.is-open {
  display: block;
}

.uif45be-menuGroup {
  margin-top: 14px;
}

.uif45be-menuGroupTitle {
  margin: 0 0 6px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--uif45be-line-soft);
  color: var(--uif45be-ink-mute);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.uif45be-menuList {
  list-style: none;
  margin: 0;
  padding: 0;
}

.uif45be-menuLink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 46px;
  padding: 10px 10px 10px 12px;
  color: var(--uif45be-ink);
  font-size: 14.5px;
  font-weight: 600;
  border-radius: var(--uif45be-radius-xs);
  border-bottom: 1px solid var(--uif45be-line-soft);
}

.uif45be-menuLink svg {
  width: 15px;
  height: 15px;
  stroke: var(--uif45be-ink-mute);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.uif45be-menuLink:hover,
.uif45be-menuLink:focus-visible {
  color: var(--uif45be-brand-strong);
  background: var(--uif45be-brand-dim);
}

.uif45be-menuLink > span:first-child {
  flex: 1 1 auto;
}

/* --------------------------------------------------------------------------
   5. Hero: unique H1, fact summary, promo carousel
   -------------------------------------------------------------------------- */
.uif45be-hero {
  padding-top: 4px;
}

.uif45be-hero h1 {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.38;
  font-weight: 800;
  color: var(--uif45be-ink);
}

.uif45be-fact {
  margin: 0 0 10px;
  padding: 9px 12px;
  border-left: 3px solid var(--uif45be-brand);
  border-radius: var(--uif45be-radius-xs);
  background: var(--uif45be-brand-dim);
  color: var(--uif45be-ink);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.6;
}

.uif45be-lead {
  margin: 0 0 14px;
  color: var(--uif45be-ink-soft);
  font-size: 14px;
}

/* Carousel: snap track, real banner images, dot controls. */
.uif45be-carousel {
  position: relative;
  margin: 0 0 10px;
}

.uif45be-heroTrack {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border: 1px solid var(--uif45be-line);
  border-radius: var(--uif45be-radius-md);
  background: var(--uif45be-surface);
}

.uif45be-heroTrack::-webkit-scrollbar {
  display: none;
}

.uif45be-slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: start;
  aspect-ratio: 16 / 8;
  overflow: hidden;
}

.uif45be-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.uif45be-slideCaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 26px 12px 10px;
  background: linear-gradient(
    to top,
    rgba(22, 22, 22, 0.92),
    rgba(22, 22, 22, 0)
  );
  color: var(--uif45be-ink);
  pointer-events: none;
}

.uif45be-slideCaption strong {
  font-size: 15px;
  font-weight: 800;
}

.uif45be-slideCaption span {
  font-size: 11.5px;
  color: var(--uif45be-ink-soft);
}

.uif45be-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 9px 0 2px;
}

.uif45be-dot {
  width: 30px;
  height: 26px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
}

.uif45be-dot::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 6px;
  width: 18px;
  height: 5px;
  border-radius: 3px;
  background: var(--uif45be-line);
  transition: background-color 0.15s ease;
}

.uif45be-dot.is-active::after {
  background: var(--uif45be-brand-strong);
}

/* --------------------------------------------------------------------------
   6. Category quick strip
   -------------------------------------------------------------------------- */
.uif45be-catStrip {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 4px 0 10px;
  scrollbar-width: none;
}

.uif45be-catStrip::-webkit-scrollbar {
  display: none;
}

.uif45be-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 13px;
  border: 1px solid var(--uif45be-line);
  border-radius: 999px;
  color: var(--uif45be-ink-soft);
  font-size: 12.5px;
  font-weight: 700;
  background: var(--uif45be-surface);
}

.uif45be-chip:hover,
.uif45be-chip:focus-visible {
  color: var(--uif45be-ink);
  border-color: var(--uif45be-brand);
}

/* --------------------------------------------------------------------------
   7. Section shell + headings
   -------------------------------------------------------------------------- */
.uif45be-section {
  margin-top: 26px;
}

.uif45be-sectionHead {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 0 0 8px;
}

.uif45be-sectionHead::before {
  content: "";
  align-self: stretch;
  width: 4px;
  border-radius: 2px;
  background: var(--uif45be-brand);
}

.uif45be-section h2 {
  margin: 0;
  font-size: 17.5px;
  line-height: 1.45;
  font-weight: 800;
  color: var(--uif45be-ink);
}

.uif45be-sectionIntro {
  margin: 0 0 12px;
  color: var(--uif45be-ink-soft);
  font-size: 13.5px;
}

.uif45be-section p {
  overflow-wrap: break-word;
}

/* --------------------------------------------------------------------------
   8. Game grid — outlined tile cards, 4 cols at 320px, 5 cols 400px+
   -------------------------------------------------------------------------- */
.uif45be-gameGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

@media (min-width: 400px) {
  .uif45be-gameGrid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.uif45be-tile {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  background: var(--uif45be-surface);
  border: 1px solid var(--uif45be-line);
  border-radius: var(--uif45be-radius-sm);
  color: var(--uif45be-ink-soft);
  text-align: center;
  min-width: 0;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.uif45be-tile:hover,
.uif45be-tile:focus-visible {
  border-color: var(--uif45be-brand);
  background: var(--uif45be-surface-lift);
  color: var(--uif45be-ink);
}

.uif45be-tileImg {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--uif45be-radius-xs);
  border: 1px solid var(--uif45be-line-soft);
  background: var(--uif45be-canvas-deep);
}

.uif45be-tileName {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 10.5px;
  line-height: 1.4;
  font-weight: 600;
  min-height: 29px;
}

/* Count badge next to a game section heading. */
.uif45be-countTag {
  flex: none;
  padding: 2px 8px;
  border: 1px solid var(--uif45be-line);
  border-radius: 999px;
  color: var(--uif45be-ink-mute);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   9. Content modules: factor rows, steps, style cards, checklists
   -------------------------------------------------------------------------- */
.uif45be-factorList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.uif45be-factor {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  padding: 10px 11px;
  background: var(--uif45be-surface);
  border: 1px solid var(--uif45be-line-soft);
  border-radius: var(--uif45be-radius-sm);
}

.uif45be-factorNo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--uif45be-radius-xs);
  background: var(--uif45be-brand-dim);
  border: 1px solid var(--uif45be-brand);
  color: var(--uif45be-brand-strong);
  font-size: 13px;
  font-weight: 800;
}

.uif45be-factorBody {
  min-width: 0;
}

.uif45be-factorBody strong {
  display: block;
  color: var(--uif45be-ink);
  font-size: 13.5px;
  margin-bottom: 2px;
}

.uif45be-factorBody p {
  margin: 0;
  color: var(--uif45be-ink-mute);
  font-size: 12.5px;
  line-height: 1.6;
}

/* Comparison rows for play styles. */
.uif45be-styleRow {
  display: grid;
  gap: 2px;
  padding: 11px 12px;
  margin-bottom: 8px;
  background: var(--uif45be-surface);
  border: 1px solid var(--uif45be-line-soft);
  border-left: 3px solid var(--uif45be-brand);
  border-radius: var(--uif45be-radius-sm);
}

.uif45be-styleRow strong {
  color: var(--uif45be-ink);
  font-size: 13.5px;
}

.uif45be-styleRow p {
  margin: 0;
  color: var(--uif45be-ink-mute);
  font-size: 12.5px;
  line-height: 1.62;
}

/* Checklist items. */
.uif45be-checkList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}

.uif45be-checkItem {
  position: relative;
  padding: 8px 10px 8px 32px;
  background: var(--uif45be-surface);
  border: 1px solid var(--uif45be-line-soft);
  border-radius: var(--uif45be-radius-xs);
  color: var(--uif45be-ink-soft);
  font-size: 13px;
}

.uif45be-checkItem::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 13px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--uif45be-brand-strong);
  border-bottom: 2px solid var(--uif45be-brand-strong);
  transform: rotate(-45deg);
}

/* Inline promo text link inside body copy. */
.uif45be-inlinePromo {
  color: var(--uif45be-brand-strong);
  font-weight: 700;
  cursor: pointer;
}

.uif45be-inlinePromo:hover,
.uif45be-inlinePromo:focus-visible {
  text-decoration: underline;
  color: var(--uif45be-ink);
}

/* Paragraph blocks inside analysis modules. */
.uif45be-copy {
  margin: 0 0 10px;
  color: var(--uif45be-ink-soft);
  font-size: 13.5px;
}

.uif45be-copy strong {
  color: var(--uif45be-ink);
}

/* FAQ via native details elements. */
.uif45be-faq {
  border: 1px solid var(--uif45be-line-soft);
  border-radius: var(--uif45be-radius-sm);
  background: var(--uif45be-surface);
  margin-bottom: 8px;
  overflow: hidden;
}

.uif45be-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 11px 12px;
  cursor: pointer;
  list-style: none;
  color: var(--uif45be-ink);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.5;
}

.uif45be-faq summary::-webkit-details-marker {
  display: none;
}

.uif45be-faq summary::after {
  content: "+";
  flex: none;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--uif45be-line);
  border-radius: 50%;
  color: var(--uif45be-brand-strong);
  font-size: 15px;
  font-weight: 800;
}

.uif45be-faq[open] summary::after {
  content: "−";
  background: var(--uif45be-brand-dim);
  border-color: var(--uif45be-brand);
}

.uif45be-faqBody {
  padding: 0 12px 12px;
  margin: 0;
  color: var(--uif45be-ink-mute);
  font-size: 13px;
  line-height: 1.66;
}

/* Mini stat strip used in the RTP module. */
.uif45be-statStrip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 4px 0 12px;
}

.uif45be-stat {
  padding: 9px 6px;
  text-align: center;
  background: var(--uif45be-surface);
  border: 1px solid var(--uif45be-line-soft);
  border-radius: var(--uif45be-radius-xs);
}

.uif45be-stat b {
  display: block;
  color: var(--uif45be-brand-strong);
  font-size: 15px;
  font-weight: 800;
}

.uif45be-stat span {
  color: var(--uif45be-ink-mute);
  font-size: 10.5px;
  line-height: 1.4;
  display: block;
}

/* Step list (mobile access / withdrawal). */
.uif45be-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.uif45be-step {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--uif45be-line-soft);
  color: var(--uif45be-ink-soft);
  font-size: 13px;
}

.uif45be-step:last-child {
  border-bottom: none;
}

.uif45be-step b {
  color: var(--uif45be-brand-strong);
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   10. Extended footer: two-column directory, brand, promotions, disclaimer
   -------------------------------------------------------------------------- */
.uif45be-extFooter {
  margin-top: 30px;
  padding: 16px 12px 14px;
  border: 1px solid var(--uif45be-line-soft);
  border-radius: var(--uif45be-radius-md);
  background: var(--uif45be-canvas-deep);
}

.uif45be-extTitle {
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--uif45be-line-soft);
  color: var(--uif45be-ink);
  font-size: 14px;
  font-weight: 800;
}

.uif45be-dirGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 10px;
  margin-bottom: 16px;
}

.uif45be-dirLink {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 7px 4px;
  color: var(--uif45be-ink-soft);
  font-size: 12.5px;
  font-weight: 600;
  border-bottom: 1px solid var(--uif45be-line-soft);
  line-height: 1.4;
}

.uif45be-dirLink svg {
  width: 14px;
  height: 14px;
  flex: none;
  stroke: var(--uif45be-brand-strong);
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.uif45be-dirLink:hover,
.uif45be-dirLink:focus-visible {
  color: var(--uif45be-brand-strong);
}

.uif45be-extBrand {
  margin: 0 0 14px;
  color: var(--uif45be-ink-mute);
  font-size: 12.5px;
  line-height: 1.66;
}

.uif45be-extBrand strong {
  color: var(--uif45be-ink);
}

.uif45be-promoGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.uif45be-promoEntry {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 56px;
  padding: 9px 10px;
  background: var(--uif45be-surface);
  border: 1px solid var(--uif45be-line);
  border-radius: var(--uif45be-radius-sm);
  color: var(--uif45be-ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.uif45be-promoEntry:hover,
.uif45be-promoEntry:focus-visible {
  border-color: var(--uif45be-brand);
  background: var(--uif45be-surface-lift);
}

.uif45be-promoEntry svg {
  width: 20px;
  height: 20px;
  flex: none;
  stroke: var(--uif45be-brand-strong);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.uif45be-extNote {
  padding-top: 10px;
  border-top: 1px solid var(--uif45be-line-soft);
  color: var(--uif45be-ink-mute);
  font-size: 11px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   11. Common footer (copyright only)
   -------------------------------------------------------------------------- */
.uif45be-footer {
  margin-top: 18px;
  padding: 14px var(--uif45be-pad) 8px;
  border-top: 1px solid var(--uif45be-line-soft);
  text-align: center;
  color: var(--uif45be-ink-mute);
  font-size: 11.5px;
  line-height: 1.6;
}

.uif45be-footer b {
  color: var(--uif45be-ink-soft);
}

/* --------------------------------------------------------------------------
   12. Bottom dock: central raised navigation, 5 semantic roles
   -------------------------------------------------------------------------- */
.uif45be-dock {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 70;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  min-height: var(--uif45be-dock-h);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
  background: rgba(22, 22, 22, 0.97);
  border-top: 1px solid var(--uif45be-line);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.uif45be-dockItem {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 52px;
  padding: 6px 2px;
  background: transparent;
  border: none;
  border-radius: var(--uif45be-radius-sm);
  color: var(--uif45be-ink-mute);
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}

.uif45be-dockItem svg {
  width: 23px;
  height: 23px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.uif45be-dockItem:hover,
.uif45be-dockItem:focus-visible {
  color: var(--uif45be-ink);
}

/* Active role: filled icon accent + short vertical lift. */
.uif45be-dockItem.is-active {
  color: var(--uif45be-brand-strong);
  transform: translateY(-2px);
}

.uif45be-dockItem.is-active svg {
  fill: var(--uif45be-brand-dim);
  stroke: var(--uif45be-brand-strong);
}

.uif45be-dockItem:active {
  transform: translateY(-2px);
}

/* Central raised promo button (middle role). */
.uif45be-dockCenter {
  position: relative;
}

.uif45be-dockCenter .uif45be-dockBtnCore {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 54px;
  height: 54px;
  margin: -24px auto 0;
  background: linear-gradient(160deg, var(--uif45be-brand-strong), var(--uif45be-brand));
  border: 2px solid rgba(239, 237, 248, 0.85);
  border-radius: 50%;
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 5px 16px var(--uif45be-brand-glow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.uif45be-dockCenter .uif45be-dockBtnCore svg {
  width: 20px;
  height: 20px;
  stroke: #ffffff;
  stroke-width: 1.9;
}

.uif45be-dockCenter .uif45be-dockBtnCore:hover,
.uif45be-dockCenter .uif45be-dockBtnCore:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px var(--uif45be-brand-glow);
}

/* --------------------------------------------------------------------------
   13. Accessibility + motion preferences
   -------------------------------------------------------------------------- */
.uif45be-skipLink {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 14px;
  background: var(--uif45be-brand);
  color: #ffffff;
  font-weight: 700;
  border-radius: var(--uif45be-radius-xs);
}

.uif45be-skipLink:focus {
  left: 10px;
  top: 10px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Smooth in-page anchor travel for the category strip. */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--uif45be-topbar-h) + 8px);
}

/* Help pages use an editorial rail instead of the homepage game rhythm. */
.uif45be-helpMain {
  padding-top: calc(var(--uif45be-topbar-h) + 14px);
}

.uif45be-helpHero {
  padding: 10px 0 6px;
  border-bottom: 1px solid var(--uif45be-line);
}

.uif45be-helpHero h1 {
  margin: 0 0 10px;
  color: var(--uif45be-ink);
  font-size: 22px;
  line-height: 1.35;
  font-weight: 850;
}

.uif45be-helpHero p {
  margin: 0 0 11px;
  color: var(--uif45be-ink-soft);
  font-size: 14px;
}

.uif45be-helpKicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 9px;
  padding: 4px 10px;
  border: 1px solid var(--uif45be-brand);
  border-radius: var(--uif45be-radius-xs);
  background: var(--uif45be-brand-dim);
  color: var(--uif45be-brand-strong);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .35px;
}

.uif45be-helpCta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  margin: 12px 0 4px;
  padding: 10px 13px;
  border: 1px solid var(--uif45be-brand);
  border-radius: var(--uif45be-radius-sm);
  background: var(--uif45be-brand);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.uif45be-helpCta:hover,
.uif45be-helpCta:focus-visible {
  background: var(--uif45be-brand-strong);
  color: #fff;
}

.uif45be-helpCta span:last-child {
  flex: none;
  color: rgba(255, 255, 255, .8);
  font-size: 18px;
  line-height: 1;
}

.uif45be-helpSection {
  margin-top: 24px;
  padding-top: 2px;
}

.uif45be-helpSection > h2 {
  margin: 0 0 8px;
  padding-left: 11px;
  border-left: 4px solid var(--uif45be-brand);
  color: var(--uif45be-ink);
  font-size: 18px;
  line-height: 1.45;
}

.uif45be-helpSection > p {
  margin: 0 0 11px;
  color: var(--uif45be-ink-soft);
  font-size: 13.5px;
}

.uif45be-helpNote {
  margin: 10px 0 12px;
  padding: 11px 12px;
  border: 1px solid var(--uif45be-line);
  border-left: 3px solid var(--uif45be-brand-strong);
  border-radius: var(--uif45be-radius-xs);
  background: var(--uif45be-surface);
  color: var(--uif45be-ink-soft);
  font-size: 13px;
  line-height: 1.65;
}

.uif45be-helpColumns {
  display: grid;
  gap: 8px;
}

.uif45be-helpPanel {
  padding: 11px 12px;
  border: 1px solid var(--uif45be-line-soft);
  border-radius: var(--uif45be-radius-sm);
  background: var(--uif45be-surface);
}

.uif45be-helpPanel h3 {
  margin: 0 0 4px;
  color: var(--uif45be-ink);
  font-size: 14px;
  line-height: 1.45;
}

.uif45be-helpPanel p {
  margin: 0;
  color: var(--uif45be-ink-mute);
  font-size: 12.8px;
  line-height: 1.65;
}

.uif45be-helpList {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: uif45be-helpStep;
}

.uif45be-helpList li {
  position: relative;
  min-height: 44px;
  padding: 9px 10px 9px 39px;
  border: 1px solid var(--uif45be-line-soft);
  border-radius: var(--uif45be-radius-xs);
  background: var(--uif45be-surface);
  color: var(--uif45be-ink-soft);
  font-size: 13px;
  line-height: 1.6;
  counter-increment: uif45be-helpStep;
}

.uif45be-helpList li::before {
  content: counter(uif45be-helpStep);
  position: absolute;
  left: 10px;
  top: 9px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--uif45be-brand-dim);
  color: var(--uif45be-brand-strong);
  font-size: 12px;
  font-weight: 800;
}

.uif45be-helpTable {
  width: 100%;
  border-collapse: collapse;
  color: var(--uif45be-ink-soft);
  font-size: 12.5px;
}

.uif45be-helpTable th,
.uif45be-helpTable td {
  padding: 9px 7px;
  border-bottom: 1px solid var(--uif45be-line-soft);
  text-align: left;
  vertical-align: top;
}

.uif45be-helpTable th {
  color: var(--uif45be-brand-strong);
  font-size: 12px;
}

.uif45be-helpTable td strong {
  color: var(--uif45be-ink);
}

.uif45be-checkGrid {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.uif45be-checkGrid li {
  position: relative;
  padding: 9px 10px 9px 33px;
  border: 1px solid var(--uif45be-line-soft);
  border-radius: var(--uif45be-radius-xs);
  background: var(--uif45be-surface);
  color: var(--uif45be-ink-soft);
  font-size: 13px;
  line-height: 1.58;
}

.uif45be-checkGrid li::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 13px;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--uif45be-brand-strong);
  border-bottom: 2px solid var(--uif45be-brand-strong);
  transform: rotate(-45deg);
}

.uif45be-trouble {
  display: grid;
  gap: 8px;
}

.uif45be-troubleRow {
  padding: 10px 11px;
  border-top: 1px dashed var(--uif45be-line);
}

.uif45be-troubleRow:first-child {
  border-top: none;
}

.uif45be-troubleRow strong {
  display: block;
  margin-bottom: 3px;
  color: var(--uif45be-ink);
  font-size: 13.5px;
}

.uif45be-troubleRow span {
  display: block;
  color: var(--uif45be-ink-mute);
  font-size: 12.8px;
  line-height: 1.62;
}

.uif45be-helpFaq {
  margin-bottom: 8px;
}

.uif45be-helpFooterLinks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 23px;
}

.uif45be-helpFooterLinks a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--uif45be-line);
  border-radius: var(--uif45be-radius-xs);
  color: var(--uif45be-ink-soft);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.uif45be-helpFooterLinks a:hover,
.uif45be-helpFooterLinks a:focus-visible {
  border-color: var(--uif45be-brand);
  color: var(--uif45be-brand-strong);
}

@media (min-width: 390px) {
  .uif45be-helpColumns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
