/* ==========================================================================
   baj365.homes - base stylesheet
   Prefix contract: every class and custom property uses "ui4fd81-".
   Design direction: poster-weight titles + narrow body, small/medium radius,
   horizontal icon-name game bars, scenario-branch rhythm, state-color-only
   motion budget, square high-contrast CTAs.
   Palette: #1A1A1A bg / #FAFAFA ink / #00E5FF accent.
   ========================================================================== */

:root {
  --ui4fd81-bg: #1a1a1a;
  --ui4fd81-bg-deep: #101010;
  --ui4fd81-ink: #fafafa;
  --ui4fd81-acc: #00e5ff;
  --ui4fd81-acc-ink: #00181c;
  --ui4fd81-panel: #232323;
  --ui4fd81-panel-2: #2a2a2a;
  --ui4fd81-line: #343434;
  --ui4fd81-line-soft: #2b2b2b;
  --ui4fd81-mute: #9aa0a6;
  --ui4fd81-warn: #ffb84d;
  --ui4fd81-ok: #39d98a;
  --ui4fd81-r-sm: 6px;
  --ui4fd81-r-md: 10px;
  --ui4fd81-head-h: 56px;
  --ui4fd81-rail-h: 62px;
  --ui4fd81-gutter: 14px;
  --ui4fd81-font: "Noto Sans Bengali", "Hind Siliguri", "SolaimanLipi",
    system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* --------------------------------------------------------------------------
   Reset + base canvas
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--ui4fd81-bg-deep);
  color: var(--ui4fd81-ink);
  font-family: var(--ui4fd81-font);
  font-size: 15px;
  line-height: 1.6;
}

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

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

a {
  color: var(--ui4fd81-acc);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--ui4fd81-acc);
  outline-offset: 2px;
}

/* Centered phone canvas, kept on wide screens */
.ui4fd81-shell {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--ui4fd81-bg);
  box-shadow: 0 0 0 1px var(--ui4fd81-line-soft);
}

/* Main flow: clear the fixed header and the fixed bottom rail */
.ui4fd81-main {
  padding: calc(var(--ui4fd81-head-h) + 12px) var(--ui4fd81-gutter)
    calc(var(--ui4fd81-rail-h) + 34px + env(safe-area-inset-bottom));
}

/* Narrow reading measure for long copy (poster title vs narrow body pairing) */
.ui4fd81-prose p {
  margin: 0 0 12px;
  max-width: 42ch;
  color: #e8e8e8;
}

.ui4fd81-prose p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Typography: poster-weight section headers with numbered kickers
   -------------------------------------------------------------------------- */

.ui4fd81-overline {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--ui4fd81-acc);
  margin-bottom: 6px;
}

.ui4fd81-h1 {
  margin: 0 0 10px;
  font-size: 27px;
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.ui4fd81-sec {
  margin-top: 30px;
}

.ui4fd81-sec-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  border-bottom: 2px solid var(--ui4fd81-acc);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.ui4fd81-sec-no {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--ui4fd81-acc);
  flex: 0 0 auto;
}

.ui4fd81-h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.ui4fd81-h3 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 800;
}

.ui4fd81-lead {
  margin: 0 0 14px;
  color: #d9d9d9;
  max-width: 44ch;
}

/* --------------------------------------------------------------------------
   Header: compact brand bar with separated action zone
   -------------------------------------------------------------------------- */

.ui4fd81-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: var(--ui4fd81-head-h);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  background: rgba(20, 20, 20, 0.96);
  border-bottom: 1px solid var(--ui4fd81-line);
  backdrop-filter: blur(6px);
}

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

.ui4fd81-brand-logo {
  width: 32px;
  height: 32px;
  border-radius: var(--ui4fd81-r-sm);
  object-fit: cover;
  border: 1px solid var(--ui4fd81-line);
  flex: 0 0 auto;
}

.ui4fd81-brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}

.ui4fd81-brand-name em {
  font-style: normal;
  color: var(--ui4fd81-acc);
}

.ui4fd81-header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

/* Square, high-contrast CTAs */
.ui4fd81-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 7px 12px;
  border-radius: 0; /* deliberate square corners for CTA language */
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease,
    border-color 0.15s ease;
}

.ui4fd81-btn-acc {
  background: var(--ui4fd81-acc);
  color: var(--ui4fd81-acc-ink);
}

.ui4fd81-btn-acc:hover {
  background: #6ff0ff;
  text-decoration: none;
}

.ui4fd81-btn-ghost {
  background: transparent;
  color: var(--ui4fd81-ink);
  border-color: var(--ui4fd81-acc);
}

.ui4fd81-btn-ghost:hover {
  background: rgba(0, 229, 255, 0.1);
  text-decoration: none;
}

.ui4fd81-btn-lg {
  min-height: 46px;
  padding: 11px 18px;
  font-size: 15px;
}

.ui4fd81-menu-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ui4fd81-line);
  border-radius: var(--ui4fd81-r-sm);
  color: var(--ui4fd81-ink);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.ui4fd81-menu-btn:hover {
  border-color: var(--ui4fd81-acc);
  color: var(--ui4fd81-acc);
}

.ui4fd81-menu-btn svg {
  width: 20px;
  height: 20px;
}

.ui4fd81-menu-btn[aria-expanded="true"] {
  color: var(--ui4fd81-acc-ink);
  background: var(--ui4fd81-acc);
  border-color: var(--ui4fd81-acc);
}

/* --------------------------------------------------------------------------
   Menu: compact route panel sliding under the brand bar
   -------------------------------------------------------------------------- */

.ui4fd81-menu {
  position: fixed;
  top: var(--ui4fd81-head-h);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  z-index: 55;
  background: #1e1e1e;
  border-bottom: 2px solid var(--ui4fd81-acc);
  padding: 10px 12px 14px;
  display: none;
}

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

.ui4fd81-menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.ui4fd81-menu-link {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 9px;
  border: 1px solid var(--ui4fd81-line);
  border-radius: var(--ui4fd81-r-sm);
  color: var(--ui4fd81-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.ui4fd81-menu-link:hover {
  border-color: var(--ui4fd81-acc);
  color: var(--ui4fd81-acc);
  text-decoration: none;
}

.ui4fd81-menu-link svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: var(--ui4fd81-acc);
}

/* Current route: contrast inversion */
.ui4fd81-menu-link.ui4fd81-is-active {
  background: var(--ui4fd81-acc);
  border-color: var(--ui4fd81-acc);
  color: var(--ui4fd81-acc-ink);
}

.ui4fd81-menu-link.ui4fd81-is-active svg {
  color: var(--ui4fd81-acc-ink);
}

.ui4fd81-menu-note {
  margin: 10px 2px 0;
  font-size: 11px;
  color: var(--ui4fd81-mute);
}

/* --------------------------------------------------------------------------
   Hero + promo carousel
   -------------------------------------------------------------------------- */

.ui4fd81-hero {
  padding-top: 4px;
}

.ui4fd81-caro {
  position: relative;
  margin: 14px 0 4px;
}

.ui4fd81-caro-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  border: 1px solid var(--ui4fd81-line);
  border-radius: var(--ui4fd81-r-md);
  scrollbar-width: none;
}

.ui4fd81-caro-track::-webkit-scrollbar {
  display: none;
}

.ui4fd81-caro-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  width: 100%;
}

.ui4fd81-caro-slide img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.ui4fd81-caro-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 9px;
}

.ui4fd81-caro-dot {
  width: 18px;
  height: 5px;
  border-radius: 2px;
  background: var(--ui4fd81-line);
  transition: background-color 0.15s ease;
}

.ui4fd81-caro-dot.ui4fd81-is-on {
  background: var(--ui4fd81-acc);
}

/* --------------------------------------------------------------------------
   Quick route chips (horizontal scroll of short entries)
   -------------------------------------------------------------------------- */

.ui4fd81-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 10px;
  scrollbar-width: none;
  margin: 0 calc(-1 * var(--ui4fd81-gutter));
  padding-left: var(--ui4fd81-gutter);
  padding-right: var(--ui4fd81-gutter);
}

.ui4fd81-chips::-webkit-scrollbar {
  display: none;
}

.ui4fd81-chip {
  flex: 0 0 auto;
  width: 148px;
  display: block;
  border: 1px solid var(--ui4fd81-line);
  border-radius: var(--ui4fd81-r-sm);
  background: var(--ui4fd81-panel);
  padding: 10px;
  color: var(--ui4fd81-ink);
  transition: border-color 0.15s ease;
}

.ui4fd81-chip:hover {
  border-color: var(--ui4fd81-acc);
  text-decoration: none;
}

.ui4fd81-chip svg {
  width: 18px;
  height: 18px;
  color: var(--ui4fd81-acc);
  margin-bottom: 6px;
}

.ui4fd81-chip-title {
  display: block;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 3px;
}

.ui4fd81-chip-sub {
  display: block;
  font-size: 11px;
  color: var(--ui4fd81-mute);
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   Game library: category blocks with horizontal icon-name bars
   -------------------------------------------------------------------------- */

.ui4fd81-cat {
  margin-top: 22px;
}

.ui4fd81-cat-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 6px;
}

.ui4fd81-cat-no {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--ui4fd81-bg);
  background: var(--ui4fd81-acc);
  padding: 2px 6px;
  border-radius: 3px;
  flex: 0 0 auto;
}

.ui4fd81-cat-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
}

.ui4fd81-cat-count {
  margin-left: auto;
  font-size: 11px;
  color: var(--ui4fd81-mute);
  white-space: nowrap;
}

.ui4fd81-cat-lead {
  margin: 0 0 10px;
  font-size: 12.5px;
  color: #cfcfcf;
  max-width: 46ch;
}

/* Horizontal icon + name bars on a stable 2-col grid */
.ui4fd81-games {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ui4fd81-gamebar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 58px;
  padding: 6px;
  background: var(--ui4fd81-panel);
  border: 1px solid var(--ui4fd81-line);
  border-radius: var(--ui4fd81-r-sm);
  text-align: left;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.ui4fd81-gamebar:hover {
  border-color: var(--ui4fd81-acc);
  background: var(--ui4fd81-panel-2);
}

.ui4fd81-gamebar img {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 5px;
  object-fit: cover;
  background: #111;
}

.ui4fd81-gamebar-name {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ui4fd81-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.ui4fd81-games-note {
  margin: 10px 1px 0;
  font-size: 11px;
  color: var(--ui4fd81-mute);
}

/* --------------------------------------------------------------------------
   Scenario branch blocks (branching information rhythm)
   -------------------------------------------------------------------------- */

.ui4fd81-branch {
  border-left: 3px solid var(--ui4fd81-acc);
  background: var(--ui4fd81-panel);
  border-radius: 0 var(--ui4fd81-r-sm) var(--ui4fd81-r-sm) 0;
  padding: 11px 12px;
  margin: 10px 0;
}

.ui4fd81-branch-tag {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  color: var(--ui4fd81-acc);
  margin-bottom: 4px;
}

.ui4fd81-branch p {
  margin: 0;
  font-size: 13.5px;
  color: #e3e3e3;
}

/* --------------------------------------------------------------------------
   Decision checklist with square markers
   -------------------------------------------------------------------------- */

.ui4fd81-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ui4fd81-checklist li {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--ui4fd81-line);
  font-size: 13.5px;
  color: #e3e3e3;
}

.ui4fd81-checklist li:last-child {
  border-bottom: 0;
}

.ui4fd81-checklist li::before {
  content: "";
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  margin-top: 5px;
  border: 2px solid var(--ui4fd81-acc);
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.ui4fd81-ctaband {
  border: 1px solid var(--ui4fd81-line);
  border-top: 3px solid var(--ui4fd81-acc);
  border-radius: 0 0 var(--ui4fd81-r-md) var(--ui4fd81-r-md);
  background: var(--ui4fd81-panel);
  padding: 14px;
  margin-top: 14px;
}

.ui4fd81-ctaband-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.ui4fd81-ctaband-row .ui4fd81-btn {
  flex: 1 1 140px;
}

.ui4fd81-ctaband-note {
  margin: 10px 0 0;
  font-size: 11.5px;
  color: var(--ui4fd81-mute);
}

/* --------------------------------------------------------------------------
   Highlight cards for category guidance
   -------------------------------------------------------------------------- */

.ui4fd81-hl {
  border: 1px solid var(--ui4fd81-line);
  border-radius: var(--ui4fd81-r-sm);
  background: var(--ui4fd81-bg);
  padding: 12px;
  margin: 10px 0;
}

.ui4fd81-hl-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.ui4fd81-hl-head svg {
  width: 18px;
  height: 18px;
  color: var(--ui4fd81-acc);
  flex: 0 0 auto;
}

.ui4fd81-hl p {
  margin: 0;
  font-size: 13.5px;
  color: #dcdcdc;
}

/* --------------------------------------------------------------------------
   Inline promo text link
   -------------------------------------------------------------------------- */

.ui4fd81-plink {
  font-weight: 800;
  color: var(--ui4fd81-acc);
  border-bottom: 1px solid var(--ui4fd81-acc);
  cursor: pointer;
  padding: 0 1px;
}

.ui4fd81-plink:hover {
  color: #6ff0ff;
  border-bottom-color: #6ff0ff;
}

/* --------------------------------------------------------------------------
   Extended footer (homepage only): sectioned list
   -------------------------------------------------------------------------- */

.ui4fd81-ext {
  margin-top: 34px;
  border-top: 2px solid var(--ui4fd81-acc);
  padding-top: 16px;
}

.ui4fd81-ext-sec {
  padding: 12px 0;
  border-bottom: 1px solid var(--ui4fd81-line);
}

.ui4fd81-ext-sec:last-child {
  border-bottom: 0;
}

.ui4fd81-ext-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--ui4fd81-acc);
  margin-bottom: 8px;
}

.ui4fd81-ext-brand {
  margin: 0;
  font-size: 13.5px;
  color: #d9d9d9;
  max-width: 46ch;
}

/* Page directory rows */
.ui4fd81-dir {
  display: grid;
  gap: 7px;
}

.ui4fd81-dir a {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 8px 9px;
  border: 1px solid var(--ui4fd81-line);
  border-radius: var(--ui4fd81-r-sm);
  color: var(--ui4fd81-ink);
  transition: border-color 0.15s ease;
}

.ui4fd81-dir a:hover {
  border-color: var(--ui4fd81-acc);
  text-decoration: none;
}

.ui4fd81-dir svg {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--ui4fd81-acc);
  flex: 0 0 auto;
}

.ui4fd81-dir-name {
  display: block;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

.ui4fd81-dir-sub {
  display: block;
  font-size: 11.5px;
  color: var(--ui4fd81-mute);
  line-height: 1.4;
}

/* Promotion action rows (icon + text labels) */
.ui4fd81-acts {
  display: grid;
  gap: 7px;
}

.ui4fd81-act {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 9px 11px;
  background: var(--ui4fd81-panel);
  border: 1px solid var(--ui4fd81-line);
  border-left: 3px solid var(--ui4fd81-acc);
  border-radius: var(--ui4fd81-r-sm);
  text-align: left;
  font-size: 13px;
  font-weight: 800;
  color: var(--ui4fd81-ink);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.ui4fd81-act:hover {
  border-color: var(--ui4fd81-acc);
  background: var(--ui4fd81-panel-2);
}

.ui4fd81-act svg {
  width: 17px;
  height: 17px;
  color: var(--ui4fd81-acc);
  flex: 0 0 auto;
}

.ui4fd81-act small {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ui4fd81-mute);
  letter-spacing: 0.02em;
}

.ui4fd81-ext-note {
  margin: 0;
  font-size: 11.5px;
  color: var(--ui4fd81-mute);
  line-height: 1.55;
  border-left: 3px solid var(--ui4fd81-warn);
  border-radius: 0 var(--ui4fd81-r-sm) var(--ui4fd81-r-sm) 0;
  background: var(--ui4fd81-panel);
  padding: 9px 11px;
}

/* --------------------------------------------------------------------------
   Common footer: copyright line only
   -------------------------------------------------------------------------- */

.ui4fd81-foot {
  margin-top: 26px;
  padding: 12px 2px 6px;
  border-top: 1px solid var(--ui4fd81-line);
  font-size: 11.5px;
  color: var(--ui4fd81-mute);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Bottom rail: full-width monochrome icon nav with accent indicator
   -------------------------------------------------------------------------- */

.ui4fd81-rail {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  z-index: 60;
  display: flex;
  align-items: stretch;
  height: calc(var(--ui4fd81-rail-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: #141414;
  border-top: 1px solid var(--ui4fd81-line);
}

.ui4fd81-rail-item {
  position: relative;
  flex: 1 1 20%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  color: var(--ui4fd81-mute);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: color 0.12s ease, background-color 0.12s ease,
    transform 0.09s ease;
}

.ui4fd81-rail-item svg {
  width: 21px;
  height: 21px;
}

.ui4fd81-rail-item span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ui4fd81-rail-item:hover {
  color: var(--ui4fd81-ink);
  text-decoration: none;
}

/* Quick scale feedback on press */
.ui4fd81-rail-item:active {
  transform: scale(0.92);
}

/* Active route: contrast inversion + top accent indicator */
.ui4fd81-rail-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 3px;
  border-radius: 0 0 2px 2px;
  background: transparent;
  transition: background-color 0.12s ease;
}

.ui4fd81-rail-item.ui4fd81-is-active {
  background: var(--ui4fd81-acc);
  color: var(--ui4fd81-acc-ink);
}

.ui4fd81-rail-item.ui4fd81-is-active::before {
  background: var(--ui4fd81-ink);
}

/* --------------------------------------------------------------------------
   Small utilities
   -------------------------------------------------------------------------- */

.ui4fd81-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.ui4fd81-kbd-note {
  display: inline-block;
  font-size: 11px;
  color: var(--ui4fd81-mute);
  border: 1px solid var(--ui4fd81-line);
  border-radius: 3px;
  padding: 1px 5px;
  margin-left: 6px;
}

/* --------------------------------------------------------------------------
   Help-page additions: question rows, term list, comparison table
   -------------------------------------------------------------------------- */

/* Question-answer rows (FAQ help page) */
.ui4fd81-qa {
  padding: 11px 0;
  border-bottom: 1px dashed var(--ui4fd81-line);
}

.ui4fd81-qa:last-child {
  border-bottom: 0;
}

.ui4fd81-qa h3 {
  margin: 0 0 5px;
  font-size: 14.5px;
  line-height: 1.35;
  font-weight: 800;
  color: var(--ui4fd81-ink);
}

.ui4fd81-qa h3::before {
  content: "প্র: ";
  color: var(--ui4fd81-acc);
}

.ui4fd81-qa p {
  margin: 0;
  font-size: 13.5px;
  color: #e3e3e3;
}

/* Term definition rows (dl > div > dt + dd) */
.ui4fd81-terms {
  margin: 0;
}

.ui4fd81-term {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--ui4fd81-line);
}

.ui4fd81-term:last-child {
  border-bottom: 0;
}

.ui4fd81-term dt {
  flex: 0 0 auto;
  width: 104px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ui4fd81-acc);
  line-height: 1.5;
}

.ui4fd81-term dd {
  margin: 0;
  font-size: 13px;
  color: #e3e3e3;
  line-height: 1.55;
  min-width: 0;
}

/* Compact comparison table */
.ui4fd81-tablewrap {
  overflow-x: auto;
  border: 1px solid var(--ui4fd81-line);
  border-radius: var(--ui4fd81-r-sm);
  margin: 10px 0;
}

.ui4fd81-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  min-width: 300px;
}

.ui4fd81-table th,
.ui4fd81-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--ui4fd81-line-soft);
  vertical-align: top;
  line-height: 1.5;
  color: #e3e3e3;
}

.ui4fd81-table thead th {
  background: var(--ui4fd81-panel);
  color: var(--ui4fd81-acc);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  white-space: nowrap;
}

.ui4fd81-table tbody tr:last-child td {
  border-bottom: 0;
}

.ui4fd81-table tbody td:first-child {
  font-weight: 700;
  color: var(--ui4fd81-ink);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Responsive tuning inside the 320-430px phone band
   -------------------------------------------------------------------------- */

@media (max-width: 430px) {
  .ui4fd81-h1 {
    font-size: 25px;
  }

  .ui4fd81-h2 {
    font-size: 19.5px;
  }

  .ui4fd81-brand-name {
    font-size: 19px;
  }
}

@media (max-width: 359px) {
  :root {
    --ui4fd81-gutter: 11px;
  }

  .ui4fd81-h1 {
    font-size: 23px;
  }

  .ui4fd81-games {
    gap: 6px;
  }

  .ui4fd81-gamebar img {
    width: 40px;
    height: 40px;
  }

  .ui4fd81-btn {
    padding: 7px 9px;
    font-size: 12px;
  }
}

/* Wider than the phone canvas: keep the same centered layout, add breathing
   room around the shell; no desktop redesign. */
@media (min-width: 431px) {
  body {
    padding: 0;
  }

  .ui4fd81-shell {
    box-shadow: 0 0 0 1px var(--ui4fd81-line-soft),
      0 0 44px rgba(0, 229, 255, 0.05);
  }
}

/* Honor reduced-motion preferences: the site already limits motion to state
   color changes, this removes the remaining transitions. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
