/* ==========================================================================
   mostbet affiliate - mobile-first viewport stylesheet
   All classes and variables use the site prefix "ui086b4-".
   Palette: #FF1493 (accent) / #F0F8FF (ink) / #2E4057 (canvas)
   Design tone: bold headings + light body, mixed radii, square CTAs,
   menu slide-in + card lift motion.
   ========================================================================== */

:root {
  --ui086b4-ink: #F0F8FF;
  --ui086b4-muted: #A9BDD6;
  --ui086b4-canvas: #2E4057;
  --ui086b4-deep: #263850;
  --ui086b4-deeper: #1D2C41;
  --ui086b4-accent: #FF1493;
  --ui086b4-accent-ink: #FFFFFF;
  --ui086b4-accent-soft: rgba(255, 20, 147, 0.14);
  --ui086b4-line: rgba(240, 248, 255, 0.16);
  --ui086b4-r-sec: 16px;
  --ui086b4-r-panel: 12px;
  --ui086b4-r-card: 8px;
  --ui086b4-r-chip: 999px;
  --ui086b4-r-cta: 2px;
  --ui086b4-topbar-h: 56px;
  --ui086b4-bottomnav-h: 62px;
  --ui086b4-shell-w: 430px;
  --ui086b4-font: "Hind Siliguri", "Noto Sans Bengali", "SolaimanLipi",
    -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  background: #141E2B;
  color: var(--ui086b4-ink);
  font-family: var(--ui086b4-font);
  font-size: 14px;
  line-height: 1.65;
  overflow-x: hidden;
}

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

button { font-family: inherit; }

a { color: var(--ui086b4-ink); }

:focus-visible {
  outline: 2px solid var(--ui086b4-accent);
  outline-offset: 2px;
  border-radius: 3px;
}

/* --------------------------------------------------------------------------
   Phone canvas: fixed at 320-430px, centered on wide screens
   -------------------------------------------------------------------------- */

.ui086b4-shell {
  position: relative;
  max-width: var(--ui086b4-shell-w);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--ui086b4-canvas);
  box-shadow: 0 0 0 1px rgba(240, 248, 255, 0.07);
  padding-top: var(--ui086b4-topbar-h);
  /* keep clear of the fixed bottom action bar */
  padding-bottom: calc(var(--ui086b4-bottomnav-h) + 26px + env(safe-area-inset-bottom));
  overflow-x: hidden;
}

.ui086b4-main { padding: 0 14px; }

.ui086b4-skip {
  position: absolute;
  left: -999px;
  top: 4px;
  z-index: 100;
  background: var(--ui086b4-accent);
  color: var(--ui086b4-accent-ink);
  padding: 8px 14px;
  border-radius: var(--ui086b4-r-cta);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
}

.ui086b4-skip:focus { left: 12px; }

/* --------------------------------------------------------------------------
   Top action band: brand (logo + name only) left, actions right
   -------------------------------------------------------------------------- */

.ui086b4-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--ui086b4-shell-w);
  height: var(--ui086b4-topbar-h);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: rgba(38, 56, 80, 0.97);
  border-bottom: 1px solid var(--ui086b4-line);
}

.ui086b4-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-right: auto;
  min-width: 0;
  text-decoration: none;
}

.ui086b4-brand-logo {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 9px;
  object-fit: cover;
  background: #F0F8FF;
  border: 1px solid var(--ui086b4-line);
}

.ui086b4-brand-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.2px;
  white-space: nowrap;
  color: var(--ui086b4-ink);
}

/* square, high-contrast CTAs */
.ui086b4-btn {
  appearance: none;
  border: 0;
  border-radius: var(--ui086b4-r-cta);
  min-height: 38px;
  padding: 0 13px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.ui086b4-btn:active { transform: translateY(1px); }

.ui086b4-btn--reg {
  background: var(--ui086b4-accent);
  color: var(--ui086b4-accent-ink);
  box-shadow: 0 3px 0 rgba(190, 10, 105, 0.65);
}

.ui086b4-btn--reg:active { box-shadow: 0 1px 0 rgba(190, 10, 105, 0.65); }

.ui086b4-btn--ghost {
  background: transparent;
  color: var(--ui086b4-ink);
  border: 1px solid var(--ui086b4-line);
}

.ui086b4-btn--bar { min-height: 34px; padding: 0 11px; }

.ui086b4-burger {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  gap: 0;
  background: transparent;
  border: 1px solid var(--ui086b4-line);
  border-radius: var(--ui086b4-r-cta);
  cursor: pointer;
}

.ui086b4-burger span {
  display: block;
  width: 17px;
  height: 2px;
  background: var(--ui086b4-ink);
  margin: 2.5px 0;
  border-radius: 1px;
  transition: transform 0.22s ease, opacity 0.18s ease;
}

.ui086b4-burger span:nth-child(2) { width: 12px; }

/* --------------------------------------------------------------------------
   Side drawer menu (slides in over the canvas)
   -------------------------------------------------------------------------- */

.ui086b4-scrim {
  position: fixed;
  inset: 0;
  background: rgba(9, 14, 23, 0.62);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  z-index: 70;
}

.ui086b4-scrim.ui086b4-open { opacity: 1; pointer-events: auto; }

.ui086b4-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  width: min(84vw, 328px);
  z-index: 80;
  display: flex;
  flex-direction: column;
  background: var(--ui086b4-deep);
  border-right: 1px solid var(--ui086b4-line);
  transform: translateX(-50%) translateX(-118%);
  transition: transform 0.32s cubic-bezier(0.22, 0.9, 0.3, 1);
  overflow-y: auto;
  padding-bottom: 16px;
}

.ui086b4-drawer.ui086b4-open { transform: translateX(-50%); }

.ui086b4-drawer-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--ui086b4-line);
  position: sticky;
  top: 0;
  background: var(--ui086b4-deep);
  z-index: 2;
}

.ui086b4-drawer-head img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  background: #F0F8FF;
}

.ui086b4-drawer-title {
  font-size: 14.5px;
  font-weight: 800;
  margin-right: auto;
}

.ui086b4-drawer-close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--ui086b4-line);
  border-radius: var(--ui086b4-r-cta);
  color: var(--ui086b4-ink);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.ui086b4-dnav { list-style: none; padding: 8px 0; }

.ui086b4-dnav a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  min-height: 50px;
  padding: 7px 16px 7px 13px;
  border-left: 3px solid transparent;
  text-decoration: none;
  color: var(--ui086b4-ink);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.ui086b4-dnav a strong { font-size: 14px; font-weight: 700; }

.ui086b4-dnav a small {
  font-size: 11px;
  color: var(--ui086b4-muted);
  line-height: 1.4;
}

.ui086b4-dnav a:hover,
.ui086b4-dnav a.ui086b4-active {
  background: var(--ui086b4-accent-soft);
  border-left-color: var(--ui086b4-accent);
}

.ui086b4-drawer-cta { padding: 12px 16px 4px; }

.ui086b4-drawer-cta .ui086b4-btn { width: 100%; min-height: 44px; }

/* --------------------------------------------------------------------------
   Hero: single H1 + definition answer
   -------------------------------------------------------------------------- */

.ui086b4-hero { padding: 18px 14px 0; }

.ui086b4-hero-eyebrow {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ui086b4-accent);
  border: 1px solid rgba(255, 20, 147, 0.45);
  border-radius: var(--ui086b4-r-chip);
  padding: 3px 11px;
  margin-bottom: 9px;
}

.ui086b4-hero h1 {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.42;
  letter-spacing: 0.2px;
}

.ui086b4-hero-def {
  margin-top: 9px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ui086b4-muted);
}

.ui086b4-hero-cta { display: flex; gap: 10px; margin-top: 13px; }

.ui086b4-hero-cta .ui086b4-btn { flex: 1; min-height: 44px; font-size: 13.5px; }

/* --------------------------------------------------------------------------
   Promo banner carousel
   -------------------------------------------------------------------------- */

.ui086b4-carousel {
  position: relative;
  margin: 16px 14px 0;
  border: 1px solid var(--ui086b4-line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--ui086b4-deeper);
}

.ui086b4-ctrack { display: flex; transition: transform 0.5s ease; }

.ui086b4-cslide { min-width: 100%; position: relative; }

.ui086b4-cslide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.ui086b4-ccaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 12px 11px;
  background: linear-gradient(180deg, rgba(29, 44, 65, 0) 0%, rgba(20, 30, 45, 0.94) 78%);
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.ui086b4-ctext { min-width: 0; }

.ui086b4-ctitle {
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.35;
  color: #FFFFFF;
}

.ui086b4-csub {
  font-size: 11px;
  color: var(--ui086b4-muted);
  line-height: 1.45;
  margin-top: 2px;
}

.ui086b4-cbtn {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 12px;
  background: var(--ui086b4-accent);
  color: var(--ui086b4-accent-ink);
  border: 0;
  border-radius: var(--ui086b4-r-cta);
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(190, 10, 105, 0.6);
}

.ui086b4-cbtn:active { transform: translateY(1px); box-shadow: none; }

.ui086b4-cdots {
  position: absolute;
  top: 9px;
  right: 11px;
  display: flex;
  gap: 5px;
}

.ui086b4-cdot {
  width: 7px;
  height: 7px;
  border-radius: var(--ui086b4-r-chip);
  border: 0;
  padding: 0;
  background: rgba(240, 248, 255, 0.38);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.ui086b4-cdot.ui086b4-on { width: 18px; background: var(--ui086b4-accent); }

/* --------------------------------------------------------------------------
   Category quick strip
   -------------------------------------------------------------------------- */

.ui086b4-catbar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 14px 4px;
  scrollbar-width: none;
}

.ui086b4-catbar::-webkit-scrollbar { display: none; }

.ui086b4-chip {
  flex: 0 0 auto;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  border-radius: var(--ui086b4-r-chip);
  background: var(--ui086b4-deep);
  border: 1px solid var(--ui086b4-line);
  color: var(--ui086b4-ink);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.ui086b4-chip:hover,
.ui086b4-chip:active {
  border-color: var(--ui086b4-accent);
  background: var(--ui086b4-accent-soft);
}

/* --------------------------------------------------------------------------
   Sections and game grids (4 cols at 320px, 5 cols on wider phones)
   -------------------------------------------------------------------------- */

.ui086b4-sec { margin: 20px 0 0; }

.ui086b4-sechead {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-bottom: 4px;
}

.ui086b4-sec h2 {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
}

.ui086b4-seccount {
  flex: 0 0 auto;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ui086b4-accent);
  background: var(--ui086b4-accent-soft);
  border: 1px solid rgba(255, 20, 147, 0.35);
  border-radius: var(--ui086b4-r-chip);
  padding: 2px 9px;
  white-space: nowrap;
}

.ui086b4-lead {
  font-size: 12.5px;
  color: var(--ui086b4-muted);
  line-height: 1.7;
  margin: 4px 0 11px;
}

.ui086b4-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

@media (min-width: 396px) {
  .ui086b4-grid { grid-template-columns: repeat(5, 1fr); }
}

/* game card: square image with a bottom name bar */
.ui086b4-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: var(--ui086b4-deeper);
  border: 1px solid var(--ui086b4-line);
  border-radius: var(--ui086b4-r-card) var(--ui086b4-r-card) 0 0;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.ui086b4-card:hover,
.ui086b4-card:active {
  transform: translateY(-3px);
  border-color: rgba(255, 20, 147, 0.65);
}

.ui086b4-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #101A29;
}

.ui086b4-card-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 34px;
  padding: 5px 5px 6px;
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ui086b4-ink);
  background: rgba(16, 26, 41, 0.92);
  border-top: 1px solid var(--ui086b4-line);
}

/* --------------------------------------------------------------------------
   Content modules (shared panel shell)
   -------------------------------------------------------------------------- */

.ui086b4-panel {
  background: var(--ui086b4-deep);
  border: 1px solid var(--ui086b4-line);
  border-radius: var(--ui086b4-r-sec);
  padding: 15px 14px;
  margin-top: 22px;
}

.ui086b4-panel > h2 {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
  margin-bottom: 6px;
}

.ui086b4-answer {
  font-size: 13px;
  line-height: 1.75;
  color: var(--ui086b4-ink);
}

.ui086b4-note {
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--ui086b4-muted);
  margin-top: 8px;
}

.ui086b4-updated {
  display: inline-block;
  margin-top: 10px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ui086b4-muted);
  border: 1px dashed var(--ui086b4-line);
  border-radius: var(--ui086b4-r-cta);
  padding: 3px 9px;
}

/* numbered trick list */
.ui086b4-tricks { list-style: none; display: grid; gap: 12px; margin-top: 12px; }

.ui086b4-tricks li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 11px;
  align-items: start;
}

.ui086b4-tnum {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--ui086b4-accent-soft);
  border: 1px solid rgba(255, 20, 147, 0.4);
  border-radius: var(--ui086b4-r-card);
  color: var(--ui086b4-accent);
  font-size: 14px;
  font-weight: 800;
}

.ui086b4-tricks strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 2px;
}

.ui086b4-tricks p { font-size: 12.5px; color: var(--ui086b4-muted); line-height: 1.7; }

/* step list with square badges */
.ui086b4-steps { list-style: none; counter-reset: ui086b4step; display: grid; gap: 10px; margin-top: 12px; }

.ui086b4-steps li {
  counter-increment: ui086b4step;
  position: relative;
  padding: 10px 12px 10px 46px;
  background: rgba(240, 248, 255, 0.045);
  border: 1px solid var(--ui086b4-line);
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ui086b4-muted);
}

.ui086b4-steps li strong { color: var(--ui086b4-ink); font-size: 12.5px; }

.ui086b4-steps li::before {
  content: counter(ui086b4step);
  position: absolute;
  left: 11px;
  top: 10px;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  background: var(--ui086b4-deeper);
  border: 1px solid rgba(255, 20, 147, 0.4);
  border-radius: var(--ui086b4-r-cta);
  color: var(--ui086b4-accent);
  font-size: 12.5px;
  font-weight: 800;
}

/* scannable feature rows */
.ui086b4-feats { margin-top: 10px; }

.ui086b4-feat {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--ui086b4-line);
  font-size: 12.5px;
  line-height: 1.65;
}

.ui086b4-feat:last-child { border-bottom: 0; }

.ui086b4-feat dt {
  color: var(--ui086b4-accent);
  font-weight: 700;
}

.ui086b4-feat dd { color: var(--ui086b4-muted); }

/* scenario branches */
.ui086b4-cases { display: grid; gap: 10px; margin-top: 12px; }

.ui086b4-case {
  border-left: 3px solid var(--ui086b4-accent);
  background: rgba(240, 248, 255, 0.045);
  border-radius: 0 10px 10px 0;
  padding: 10px 12px;
}

.ui086b4-case h3 { font-size: 13px; font-weight: 700; margin-bottom: 3px; }

.ui086b4-case p { font-size: 12.5px; color: var(--ui086b4-muted); line-height: 1.7; }

/* pros and limitations */
.ui086b4-pc { display: grid; gap: 10px; margin-top: 12px; }

.ui086b4-pcbox {
  border: 1px solid var(--ui086b4-line);
  border-radius: var(--ui086b4-r-panel);
  padding: 12px;
}

.ui086b4-pcbox--pro { background: var(--ui086b4-accent-soft); border-color: rgba(255, 20, 147, 0.35); }

.ui086b4-pcbox--lim { background: rgba(240, 248, 255, 0.04); }

.ui086b4-pcbox h3 { font-size: 13px; font-weight: 800; margin-bottom: 7px; }

.ui086b4-pcbox ul { list-style: none; display: grid; gap: 6px; }

.ui086b4-pcbox li {
  position: relative;
  padding-left: 19px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ui086b4-muted);
}

.ui086b4-pcbox--pro li::before {
  content: "+";
  position: absolute;
  left: 2px;
  color: var(--ui086b4-accent);
  font-weight: 800;
}

.ui086b4-pcbox--lim li::before {
  content: "\2013";
  position: absolute;
  left: 2px;
  color: var(--ui086b4-muted);
  font-weight: 800;
}

.ui086b4-subq {
  margin-top: 12px;
  border: 1px dashed var(--ui086b4-line);
  border-radius: var(--ui086b4-r-panel);
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ui086b4-muted);
}

.ui086b4-subq strong { display: block; color: var(--ui086b4-ink); font-size: 12.5px; margin-bottom: 2px; }

/* inline links inside body copy */
.ui086b4-inline {
  color: var(--ui086b4-accent);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

/* short English Q&A */
.ui086b4-enqa details {
  border: 1px solid var(--ui086b4-line);
  border-radius: var(--ui086b4-r-panel);
  background: rgba(240, 248, 255, 0.035);
  padding: 0 13px;
  margin-top: 8px;
}

.ui086b4-enqa summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.45;
  list-style: none;
  color: var(--ui086b4-ink);
}

.ui086b4-enqa summary::-webkit-details-marker { display: none; }

.ui086b4-enqa summary::before {
  content: "+";
  flex: 0 0 18px;
  color: var(--ui086b4-accent);
  font-size: 16px;
  font-weight: 800;
  transition: transform 0.18s ease;
}

.ui086b4-enqa details[open] summary::before { content: "\2013"; }

.ui086b4-enqa p {
  padding: 0 0 12px 27px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--ui086b4-muted);
}

/* --------------------------------------------------------------------------
   Extended footer: page directory > brand > promotions > closing line
   -------------------------------------------------------------------------- */

.ui086b4-xfoot {
  margin-top: 26px;
  border-top: 1px solid var(--ui086b4-line);
  padding: 16px 14px 4px;
}

.ui086b4-xfoot h3 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: var(--ui086b4-accent);
  margin-bottom: 8px;
}

.ui086b4-xdirs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 16px;
  margin-bottom: 16px;
}

.ui086b4-xdirs a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 40px;
  padding: 4px 0;
  border-bottom: 1px dashed var(--ui086b4-line);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ui086b4-ink);
}

.ui086b4-xdirs a small { color: var(--ui086b4-muted); font-size: 10px; font-weight: 500; }

.ui086b4-xbrand {
  font-size: 12px;
  line-height: 1.75;
  color: var(--ui086b4-muted);
  margin-bottom: 16px;
}

.ui086b4-xpromos { display: grid; gap: 8px; margin-bottom: 14px; }

.ui086b4-xpromo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  text-align: left;
  background: var(--ui086b4-accent-soft);
  border: 1px solid rgba(255, 20, 147, 0.42);
  border-radius: var(--ui086b4-r-cta);
  color: var(--ui086b4-ink);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease;
}

.ui086b4-xpromo:hover { background: rgba(255, 20, 147, 0.22); }

.ui086b4-xpromo:active { transform: translateY(1px); }

.ui086b4-xpromo::after { content: "\2192"; color: var(--ui086b4-accent); font-weight: 800; }

.ui086b4-xclose {
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--ui086b4-muted);
  padding-bottom: 10px;
}

/* --------------------------------------------------------------------------
   Common footer + fixed bottom action bar (5 roles)
   -------------------------------------------------------------------------- */

.ui086b4-foot {
  text-align: center;
  font-size: 11px;
  color: var(--ui086b4-muted);
  border-top: 1px solid var(--ui086b4-line);
  padding: 13px 14px 2px;
  margin-top: 8px;
}

.ui086b4-bottomnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--ui086b4-shell-w);
  height: calc(var(--ui086b4-bottomnav-h) + env(safe-area-inset-bottom));
  padding: 5px 4px env(safe-area-inset-bottom);
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(29, 44, 65, 0.98);
  border-top: 1px solid var(--ui086b4-line);
}

.ui086b4-bn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 50px;
  background: none;
  border: 0;
  border-radius: var(--ui086b4-r-card);
  color: var(--ui086b4-muted);
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.ui086b4-bn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.18s ease, fill 0.18s ease;
}

.ui086b4-bn:active svg { transform: scale(0.88); }

/* active state: icon fill flips on */
.ui086b4-bn.ui086b4-active { color: var(--ui086b4-accent); }

.ui086b4-bn.ui086b4-active svg {
  fill: rgba(255, 20, 147, 0.3);
  stroke: var(--ui086b4-accent);
  transform: translateY(-2px);
}

/* Compatible accessibility and help-page additions. */
:root { --ui086b4-topbar-h: 104px; --ui086b4-accent-ink: #172436; }
.ui086b4-topbar { flex-wrap: wrap; align-content: center; justify-content: flex-end; gap: 4px 8px; }
.ui086b4-brand { flex-basis: 100%; }
.ui086b4-topbar .ui086b4-brand-logo { width: 30px; height: 30px; flex-basis: 30px; }
.ui086b4-btn, .ui086b4-btn--bar, .ui086b4-burger, .ui086b4-drawer-close, .ui086b4-chip, .ui086b4-xdirs a { min-height: 44px; }
.ui086b4-burger { width: 44px; flex-basis: 44px; }
.ui086b4-burger[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
.ui086b4-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ui086b4-burger[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }
.ui086b4-drawer:not(.ui086b4-open) { visibility: hidden; }
.ui086b4-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ui086b4-card { min-width: 0; }
.ui086b4-card-img { object-fit: contain; }
.ui086b4-card-name { display: block; overflow: visible; overflow-wrap: anywhere; min-height: 50px; width: 100%; }
.ui086b4-sechead { flex-wrap: wrap; }
.ui086b4-main { overflow-wrap: anywhere; }
.ui086b4-main section { scroll-margin-top: 116px; }
.ui086b4-carousel { margin-left: 0; margin-right: 0; }
.ui086b4-cslide { min-width: 100%; }
.ui086b4-cslide > button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.ui086b4-cslide img { aspect-ratio: 1915 / 450; object-fit: contain; height: auto; }
.ui086b4-ccaption { position: static; background: var(--ui086b4-deeper); min-height: 90px; padding: 10px 12px; }
.ui086b4-cdots { position: static; justify-content: center; gap: 4px; }
.ui086b4-cdot, .ui086b4-cdot.ui086b4-on { width: 44px; height: 44px; border-radius: 0; background: transparent; position: relative; }
.ui086b4-cdot::before { content: ''; display: block; width: 10px; height: 6px; margin: auto; border-radius: 10px; background: var(--ui086b4-muted); }
.ui086b4-cdot.ui086b4-on::before { width: 24px; background: var(--ui086b4-accent); }
.ui086b4-reading { margin-top: 24px; }
.ui086b4-reading h2 { font-size: 18px; line-height: 1.5; margin-bottom: 10px; }
.ui086b4-reading h3 { font-size: 15px; margin-top: 14px; }
.ui086b4-reading p, .ui086b4-reading li { margin-top: 9px; }
.ui086b4-reading ol, .ui086b4-reading ul { padding-left: 23px; }
.ui086b4-reading button { margin-top: 12px; }
.ui086b4-record { border-left: 3px solid var(--ui086b4-accent); padding: 5px 0 5px 15px; }
.ui086b4-route { border-top: 1px solid var(--ui086b4-line); padding-top: 15px; }
.ui086b4-ledger { display: grid; gap: 8px; margin: 12px 0; }
.ui086b4-ledger dt { color: var(--ui086b4-ink); font-weight: 700; }
.ui086b4-ledger dd { color: var(--ui086b4-muted); margin-bottom: 8px; }
.ui086b4-decision { background: var(--ui086b4-deeper); padding: 15px; border-radius: 0 14px 14px 0; margin-top: 14px; }
.ui086b4-caption { font-size: 12px; color: var(--ui086b4-muted); margin-top: 8px; }
.ui086b4-inline { color: #ff92cd; }
.ui086b4-foot { padding-bottom: 16px; }
@media (min-width: 396px) { .ui086b4-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* --------------------------------------------------------------------------
   Motion preferences
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .ui086b4-drawer,
  .ui086b4-scrim,
  .ui086b4-ctrack,
  .ui086b4-card,
  .ui086b4-bn svg,
  .ui086b4-cdot {
    transition: none;
  }
}
