/* ============================================================
 * vip bet - Surface Adaptive Styles
 * Mobile-first (320-430px) canvas with dark casino palette.
 * Prefix contract: every class and CSS variable uses ui84feb-.
 * Breakpoint literal 430 (px) is used for the phone-canvas edge.
 * ============================================================ */

:root {
  --ui84feb-bg: #0F0F23;
  --ui84feb-bg-2: #15152e;
  --ui84feb-bg-3: #1d1d3b;
  --ui84feb-bg-4: #232347;
  --ui84feb-surface: #20203f;
  --ui84feb-text: #FAFAD2;
  --ui84feb-text-soft: #FFFACD;
  --ui84feb-text-dim: rgba(250, 250, 210, 0.76);
  --ui84feb-text-mute: rgba(255, 250, 205, 0.56);
  --ui84feb-accent: #BF360C;
  --ui84feb-accent-2: #FFD700;
  --ui84feb-accent-3: #ff6b3d;
  --ui84feb-border: rgba(255, 250, 205, 0.14);
  --ui84feb-border-strong: rgba(255, 215, 0, 0.42);
  --ui84feb-radius-s: 6px;
  --ui84feb-radius-m: 10px;
  --ui84feb-radius-l: 14px;
  --ui84feb-shadow: 0 10px 24px rgba(0, 0, 0, 0.46);
  --ui84feb-canvas: 430px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Hind Siliguri", "Noto Sans Bengali", "SolaimanLipi", "AponaLohit", system-ui, -apple-system, sans-serif;
  background: #06060f;
  color: var(--ui84feb-text);
  font-size: 15px;
  line-height: 1.62;
  min-height: 100vh;
}

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

a { color: var(--ui84feb-accent-2); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }

button { font-family: inherit; }

:focus-visible { outline: 2px solid var(--ui84feb-accent-2); outline-offset: 2px; }

/* ===== App canvas: centered phone frame on wide screens ===== */
.ui84feb-app {
  max-width: var(--ui84feb-canvas);
  margin: 0 auto;
  min-height: 100vh;
  background: linear-gradient(180deg, #0F0F23 0%, #14142b 55%, #0F0F23 100%);
  position: relative;
  padding-bottom: 88px; /* clearance for fixed bottom nav */
  overflow-x: hidden;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.55);
}

/* ===== Top header ===== */
.ui84feb-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(15, 15, 35, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ui84feb-border);
}

.ui84feb-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  min-height: 56px;
}

.ui84feb-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
}

.ui84feb-brand__logo {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--ui84feb-border-strong);
  background: var(--ui84feb-bg-3);
  flex-shrink: 0;
}

.ui84feb-brand__name {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.4px;
  color: var(--ui84feb-accent-2);
  white-space: nowrap;
  line-height: 1.1;
}
.ui84feb-brand__name b { color: var(--ui84feb-text); font-weight: 800; }

.ui84feb-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.ui84feb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--ui84feb-radius-s);
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.18s ease, border-color 0.18s ease;
  font-family: inherit;
  line-height: 1;
  text-decoration: none;
}
.ui84feb-btn:hover { text-decoration: none; }
.ui84feb-btn:active { transform: scale(0.95); }

.ui84feb-btn--primary {
  background: linear-gradient(135deg, #BF360C 0%, #ff6b3d 60%, #FFD700 140%);
  color: #fff;
  border-color: rgba(255, 215, 0, 0.55);
  box-shadow: 0 5px 14px rgba(191, 54, 12, 0.45);
}

.ui84feb-btn--ghost {
  background: transparent;
  color: var(--ui84feb-text-soft);
  border-color: var(--ui84feb-border-strong);
}

.ui84feb-btn--block { width: 100%; }
.ui84feb-btn--lg { min-height: 44px; padding: 12px 18px; font-size: 14px; }

.ui84feb-menu-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ui84feb-bg-3);
  border: 1px solid var(--ui84feb-border);
  border-radius: var(--ui84feb-radius-s);
  color: var(--ui84feb-accent-2);
  cursor: pointer;
  padding: 0;
}
.ui84feb-menu-btn:hover { text-decoration: none; }
.ui84feb-menu-btn svg { width: 20px; height: 20px; display: block; }

/* ===== Nav panel (compact routing panel) ===== */
.ui84feb-nav-panel {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  background: var(--ui84feb-bg-2);
  border-top: 1px solid var(--ui84feb-border);
  border-bottom: 1px solid var(--ui84feb-border);
  padding: 10px 12px 14px;
  display: none;
  box-shadow: var(--ui84feb-shadow);
}
.ui84feb-nav-panel--open { display: block; }

.ui84feb-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.ui84feb-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 6px;
  background: var(--ui84feb-bg-3);
  border: 1px solid var(--ui84feb-border);
  border-radius: var(--ui84feb-radius-s);
  font-size: 11.5px;
  color: var(--ui84feb-text-soft);
  text-align: center;
  font-weight: 600;
  line-height: 1.25;
}
.ui84feb-nav-link:hover {
  text-decoration: none;
  border-color: var(--ui84feb-border-strong);
  background: var(--ui84feb-bg-4);
  color: var(--ui84feb-accent-2);
}
.ui84feb-nav-link span { color: var(--ui84feb-accent-2); font-weight: 800; }

/* ===== Hero carousel ===== */
.ui84feb-hero {
  margin: 10px 12px 0;
  border-radius: var(--ui84feb-radius-l);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--ui84feb-border);
  background: var(--ui84feb-bg-2);
}

.ui84feb-hero__viewport {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.ui84feb-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.55s ease;
  cursor: pointer;
}
.ui84feb-hero-slide--active { opacity: 1; }
.ui84feb-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ui84feb-hero__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px;
  background: linear-gradient(0deg, rgba(15, 15, 35, 0.95) 0%, rgba(15, 15, 35, 0.45) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ui84feb-hero__title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--ui84feb-accent-2);
  line-height: 1.25;
}

.ui84feb-hero__sub {
  margin: 0;
  font-size: 12px;
  color: var(--ui84feb-text-soft);
  line-height: 1.4;
}

.ui84feb-hero-cta {
  align-self: flex-start;
  background: linear-gradient(135deg, #BF360C 0%, #FFD700 130%);
  color: #fff;
  border: none;
  border-radius: var(--ui84feb-radius-s);
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 10px rgba(191, 54, 12, 0.45);
}
.ui84feb-hero-cta:active { transform: scale(0.95); }

.ui84feb-hero-dots {
  position: absolute;
  bottom: 8px;
  right: 10px;
  display: flex;
  gap: 5px;
  z-index: 2;
}
.ui84feb-hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 250, 205, 0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.15s ease;
}
.ui84feb-hero-dot:hover { background: rgba(255, 215, 0, 0.7); }
.ui84feb-hero-dot--active {
  background: var(--ui84feb-accent-2);
  transform: scale(1.18);
}

/* ===== Main content ===== */
.ui84feb-main { padding: 14px 12px 6px; }

.ui84feb-h1 {
  font-size: 22px;
  font-weight: 800;
  margin: 6px 0 10px;
  color: var(--ui84feb-text);
  line-height: 1.3;
  letter-spacing: 0.2px;
}

.ui84feb-h2 {
  font-size: 17px;
  font-weight: 800;
  margin: 24px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ui84feb-border);
  color: var(--ui84feb-accent-2);
  line-height: 1.35;
}

.ui84feb-h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 14px 0 6px;
  color: var(--ui84feb-text);
}

.ui84feb-lede {
  font-size: 14px;
  color: var(--ui84feb-text-dim);
  margin: 0 0 14px;
  line-height: 1.72;
}

.ui84feb-p {
  margin: 0 0 10px;
  color: var(--ui84feb-text-dim);
  font-size: 14px;
  line-height: 1.72;
}

.ui84feb-p a { color: var(--ui84feb-accent-2); font-weight: 600; }

/* ===== Shortcut chips ===== */
.ui84feb-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 0 10px;
  margin: 0 0 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.ui84feb-chips::-webkit-scrollbar { display: none; }

.ui84feb-chip {
  flex-shrink: 0;
  padding: 7px 13px;
  background: var(--ui84feb-bg-3);
  border: 1px solid var(--ui84feb-border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--ui84feb-text-soft);
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.12s ease;
}
.ui84feb-chip:hover { text-decoration: none; border-color: var(--ui84feb-border-strong); color: var(--ui84feb-accent-2); }
.ui84feb-chip:active { transform: scale(0.96); }

/* ===== CTA pair ===== */
.ui84feb-cta-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0 14px;
}

.ui84feb-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 11px 14px;
  border-radius: var(--ui84feb-radius-m);
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: transform 0.14s ease, box-shadow 0.18s ease;
}
.ui84feb-cta:hover { text-decoration: none; }
.ui84feb-cta:active { transform: scale(0.96); }

.ui84feb-cta--primary {
  background: linear-gradient(135deg, #BF360C 0%, #ff6b3d 60%, #FFD700 140%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(191, 54, 12, 0.5);
}
.ui84feb-cta--ghost {
  background: transparent;
  color: var(--ui84feb-accent-2);
  border-color: var(--ui84feb-border-strong);
}

@keyframes ui84feb-cta-pulse {
  0%, 100% { box-shadow: 0 6px 18px rgba(191, 54, 12, 0.45); }
  50% { box-shadow: 0 8px 26px rgba(255, 215, 0, 0.55); }
}
.ui84feb-cta--pulse { animation: ui84feb-cta-pulse 2.2s ease-in-out infinite; }

/* ===== Game section ===== */
.ui84feb-section {
  margin: 20px 0 0;
}

.ui84feb-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.ui84feb-section__title {
  font-size: 15px;
  font-weight: 800;
  color: var(--ui84feb-accent-2);
  letter-spacing: 0.3px;
}

.ui84feb-section__tag {
  font-size: 11px;
  color: var(--ui84feb-text-mute);
  font-weight: 600;
  padding: 3px 8px;
  border: 1px solid var(--ui84feb-border);
  border-radius: 999px;
}

.ui84feb-section__seealso {
  font-size: 11.5px;
  color: var(--ui84feb-text-mute);
  margin: 0 0 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  line-height: 1.5;
}
.ui84feb-section__seealso a {
  color: var(--ui84feb-text-soft);
  border-bottom: 1px dashed var(--ui84feb-border-strong);
  padding-bottom: 1px;
}
.ui84feb-section__seealso a:hover { color: var(--ui84feb-accent-2); text-decoration: none; }

.ui84feb-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}
@media (min-width: 375px) {
  .ui84feb-game-grid { gap: 8px; }
}
@media (min-width: 430px) {
  .ui84feb-game-grid { grid-template-columns: repeat(5, 1fr); }
}

.ui84feb-game {
  display: flex;
  flex-direction: column;
  text-align: center;
  cursor: pointer;
  background: var(--ui84feb-bg-3);
  border: 1px solid var(--ui84feb-border);
  border-radius: var(--ui84feb-radius-s);
  overflow: hidden;
  transition: transform 0.12s ease, border-color 0.18s ease;
  text-decoration: none;
}
.ui84feb-game:hover {
  text-decoration: none;
  border-color: var(--ui84feb-border-strong);
  transform: translateY(-1px);
}
.ui84feb-game:active { transform: scale(0.94); }

.ui84feb-game__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #000;
  display: block;
}

.ui84feb-game__name {
  font-size: 10.5px;
  color: var(--ui84feb-text-soft);
  padding: 4px 3px 5px;
  font-weight: 600;
  line-height: 1.25;
  min-height: 28px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ===== Promotions strip ===== */
.ui84feb-promo-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 10px 0 0;
}

.ui84feb-promo-card {
  background: linear-gradient(135deg, rgba(191, 54, 12, 0.6) 0%, rgba(15, 15, 35, 0.5) 100%);
  border: 1px solid var(--ui84feb-border-strong);
  border-radius: var(--ui84feb-radius-m);
  padding: 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: transform 0.12s ease;
  text-decoration: none;
}
.ui84feb-promo-card:hover { text-decoration: none; }
.ui84feb-promo-card:active { transform: scale(0.97); }
.ui84feb-promo-card__title {
  font-size: 13px;
  font-weight: 800;
  color: var(--ui84feb-accent-2);
  margin: 0;
}
.ui84feb-promo-card__text {
  font-size: 11.5px;
  color: var(--ui84feb-text-dim);
  margin: 0;
  line-height: 1.5;
}
.ui84feb-promo-card__btn {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 800;
  color: #0F0F23;
  background: var(--ui84feb-accent-2);
  padding: 4px 10px;
  border-radius: var(--ui84feb-radius-s);
  margin-top: 2px;
}

/* ===== Comparison dimensions ===== */
.ui84feb-compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 10px 0 0;
}
.ui84feb-compare-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
  padding: 9px 11px;
  background: var(--ui84feb-bg-3);
  border: 1px solid var(--ui84feb-border);
  border-radius: var(--ui84feb-radius-s);
  align-items: center;
}
.ui84feb-compare-row__label {
  font-size: 12px;
  font-weight: 800;
  color: var(--ui84feb-accent-2);
  line-height: 1.25;
}
.ui84feb-compare-row__value {
  font-size: 12.5px;
  color: var(--ui84feb-text-dim);
  line-height: 1.55;
}

/* ===== Answer card ===== */
.ui84feb-answer {
  background: var(--ui84feb-bg-2);
  border: 1px solid var(--ui84feb-border);
  border-left: 3px solid var(--ui84feb-accent-2);
  border-radius: var(--ui84feb-radius-m);
  padding: 12px 14px;
  margin: 10px 0 0;
}
.ui84feb-answer__q {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ui84feb-text);
  margin: 0 0 6px;
}
.ui84feb-answer__a {
  font-size: 13px;
  color: var(--ui84feb-text-dim);
  margin: 0;
  line-height: 1.7;
}

/* ===== Compact list ===== */
.ui84feb-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}
.ui84feb-list li {
  font-size: 13px;
  color: var(--ui84feb-text-dim);
  padding-left: 16px;
  position: relative;
  line-height: 1.6;
}
.ui84feb-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ui84feb-accent-2);
  font-size: 12px;
}

/* ===== Extended footer ===== */
.ui84feb-extended {
  margin: 24px 0 0;
  padding: 14px;
  border-radius: var(--ui84feb-radius-l);
  background: linear-gradient(180deg, var(--ui84feb-bg-2) 0%, rgba(21, 21, 46, 0.6) 100%);
  border: 1px solid var(--ui84feb-border);
}

.ui84feb-extended__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.ui84feb-extended__brand img {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  border: 1px solid var(--ui84feb-border-strong);
}
.ui84feb-extended__brand-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--ui84feb-accent-2);
}
.ui84feb-extended__intro {
  font-size: 12.5px;
  color: var(--ui84feb-text-dim);
  margin: 0 0 12px;
  line-height: 1.65;
}

.ui84feb-extended__heading {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--ui84feb-text-mute);
  margin: 12px 0 6px;
  font-weight: 700;
}

.ui84feb-promo-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 6px;
}
.ui84feb-promo-actions a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 9px 4px;
  background: var(--ui84feb-bg-3);
  border: 1px solid var(--ui84feb-border-strong);
  border-radius: var(--ui84feb-radius-s);
  font-size: 11px;
  color: var(--ui84feb-text-soft);
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: transform 0.12s ease;
}
.ui84feb-promo-actions a:hover { text-decoration: none; background: var(--ui84feb-bg-4); }
.ui84feb-promo-actions a:active { transform: scale(0.95); }
.ui84feb-promo-actions .ui84feb-ico {
  font-size: 17px;
  color: var(--ui84feb-accent-2);
  font-weight: 800;
  line-height: 1;
}

.ui84feb-directory {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
}
.ui84feb-directory a {
  font-size: 11.5px;
  padding: 8px 9px;
  background: var(--ui84feb-bg-3);
  border: 1px solid var(--ui84feb-border);
  border-radius: var(--ui84feb-radius-s);
  color: var(--ui84feb-text-soft);
  font-weight: 600;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.3;
}
.ui84feb-directory a:hover {
  text-decoration: none;
  border-color: var(--ui84feb-border-strong);
  color: var(--ui84feb-accent-2);
}
.ui84feb-directory a::before {
  content: "▸";
  color: var(--ui84feb-accent-2);
  font-size: 11px;
  flex-shrink: 0;
}

.ui84feb-disclaimer {
  margin-top: 12px;
  padding: 10px 11px;
  background: rgba(191, 54, 12, 0.18);
  border: 1px solid rgba(191, 54, 12, 0.35);
  border-radius: var(--ui84feb-radius-s);
  font-size: 11.5px;
  color: var(--ui84feb-text-dim);
  line-height: 1.6;
}

/* ===== Copyright ===== */
.ui84feb-copyright {
  text-align: center;
  font-size: 11px;
  color: var(--ui84feb-text-mute);
  padding: 16px 12px 6px;
  line-height: 1.6;
}
.ui84feb-copyright a { color: var(--ui84feb-text-soft); }

/* ===== Bottom navigation (5 roles, fixed) ===== */
.ui84feb-bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: var(--ui84feb-canvas);
  background: rgba(15, 15, 35, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--ui84feb-border-strong);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 40;
  padding: 5px 4px;
  padding-bottom: max(5px, env(safe-area-inset-bottom));
}

.ui84feb-bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 5px 2px;
  color: var(--ui84feb-text-mute);
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border-radius: var(--ui84feb-radius-s);
  border: none;
  background: transparent;
  font-family: inherit;
  text-align: center;
  min-height: 44px;
  transition: transform 0.12s ease, color 0.18s ease;
}
.ui84feb-bottom-nav__item:hover { text-decoration: none; color: var(--ui84feb-text-soft); }
.ui84feb-bottom-nav__item:active { transform: scale(0.93); }

.ui84feb-bottom-nav__icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ui84feb-text-mute);
}
.ui84feb-bottom-nav__icon svg { width: 20px; height: 20px; display: block; }

.ui84feb-bottom-nav__label {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
}

.ui84feb-bottom-nav__item--promo .ui84feb-bottom-nav__icon,
.ui84feb-bottom-nav__item--promo .ui84feb-bottom-nav__label {
  color: var(--ui84feb-accent-2);
}

.ui84feb-bottom-nav__item--active .ui84feb-bottom-nav__icon {
  color: var(--ui84feb-accent-2);
}
.ui84feb-bottom-nav__item--active .ui84feb-bottom-nav__label {
  color: var(--ui84feb-text);
}

/* ===== Utility ===== */
.ui84feb-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ui84feb-divider {
  height: 1px;
  background: var(--ui84feb-border);
  margin: 18px 0 4px;
  border: none;
}
.ui84feb-VisuallyHidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Wide screen: keep centered phone canvas, edge case > 430px ===== */
@media (min-width: 431px) {
  body { background: #06060f; }
  .ui84feb-app {
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.65);
  }
  .ui84feb-bottom-nav {
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.45);
  }
}

/* ===== Scenario and help-page patterns ===== */
.ui84feb-route-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 12px;
  border-top: 1px solid var(--ui84feb-border);
  scrollbar-width: none;
}
.ui84feb-route-tabs::-webkit-scrollbar { display: none; }
.ui84feb-route-tabs a {
  flex: 0 0 auto;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 11px;
  border-radius: var(--ui84feb-radius-s);
  background: var(--ui84feb-bg-3);
  color: var(--ui84feb-text-soft);
  font-size: 12px;
  font-weight: 700;
}
.ui84feb-route-tabs a:hover,
.ui84feb-route-tabs a[aria-current="page"] { color: var(--ui84feb-accent-2); text-decoration: none; background: var(--ui84feb-bg-4); }
.ui84feb-route-tabs a[aria-current="page"] .ui84feb-route-tabs__icon { color: var(--ui84feb-accent-2); }
.ui84feb-route-tabs__icon { color: var(--ui84feb-text-mute); font-size: 15px; }

.ui84feb-signal {
  padding: 12px;
  margin: 10px 0;
  border-radius: var(--ui84feb-radius-m);
  background: linear-gradient(135deg, rgba(191, 54, 12, 0.22), rgba(255, 215, 0, 0.06));
  border: 1px solid rgba(255, 215, 0, 0.28);
}
.ui84feb-signal strong { display: block; color: var(--ui84feb-accent-2); margin-bottom: 4px; }
.ui84feb-signal p { margin: 0; color: var(--ui84feb-text-dim); font-size: 13px; }

.ui84feb-branch-grid { display: grid; gap: 8px; margin: 10px 0; }
.ui84feb-branch {
  padding: 11px;
  border-radius: var(--ui84feb-radius-s);
  border: 1px solid var(--ui84feb-border);
  background: var(--ui84feb-bg-3);
}
.ui84feb-branch__when { margin: 0 0 4px; color: var(--ui84feb-accent-2); font-size: 12px; font-weight: 800; }
.ui84feb-branch__do { margin: 0; color: var(--ui84feb-text-dim); font-size: 12.5px; line-height: 1.62; }

.ui84feb-steps { counter-reset: ui84feb-step; display: grid; gap: 8px; margin: 10px 0; }
.ui84feb-step {
  counter-increment: ui84feb-step;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 9px;
  align-items: start;
  padding: 10px;
  border-radius: var(--ui84feb-radius-s);
  background: var(--ui84feb-bg-3);
  border: 1px solid var(--ui84feb-border);
}
.ui84feb-step::before {
  content: counter(ui84feb-step);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ui84feb-accent);
  color: #fff;
  font-weight: 800;
}
.ui84feb-step p { margin: 0; color: var(--ui84feb-text-dim); font-size: 12.5px; line-height: 1.6; }
.ui84feb-step strong { color: var(--ui84feb-text-soft); }

.ui84feb-faq-list { display: grid; gap: 8px; margin: 10px 0; }
.ui84feb-faq {
  border-radius: var(--ui84feb-radius-s);
  border: 1px solid var(--ui84feb-border);
  background: var(--ui84feb-bg-3);
  overflow: hidden;
}
.ui84feb-faq summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 10px 34px 10px 11px;
  position: relative;
  color: var(--ui84feb-text-soft);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  list-style: none;
}
.ui84feb-faq summary::-webkit-details-marker { display: none; }
.ui84feb-faq summary::after { content: "+"; position: absolute; right: 12px; color: var(--ui84feb-accent-2); font-size: 19px; }
.ui84feb-faq[open] summary::after { content: "−"; }
.ui84feb-faq__body { padding: 0 11px 11px; color: var(--ui84feb-text-dim); font-size: 12.5px; line-height: 1.68; }
.ui84feb-faq__body p { margin: 0 0 7px; }

.ui84feb-inline-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 5px 0;
  padding: 9px 13px;
  border: 1px solid var(--ui84feb-border-strong);
  border-radius: var(--ui84feb-radius-s);
  background: transparent;
  color: var(--ui84feb-accent-2);
  font: 700 12.5px/1.3 inherit;
  cursor: pointer;
}
.ui84feb-inline-action:active { transform: scale(0.96); }

.ui84feb-term-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 10px 0; }
.ui84feb-term { padding: 9px; border-radius: var(--ui84feb-radius-s); background: var(--ui84feb-bg-3); border: 1px solid var(--ui84feb-border); }
.ui84feb-term dt { color: var(--ui84feb-accent-2); font-size: 12px; font-weight: 800; }
.ui84feb-term dd { margin: 3px 0 0; color: var(--ui84feb-text-dim); font-size: 11.5px; line-height: 1.5; }

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .ui84feb-hero-slide { transition: none; }
}
