/* ==========================================================================
   xbaje.click - compact-213fbd-visuals.css
   Mobile-first visual system for a 320-430px phone canvas.
   All classes and custom properties use the site prefix: viewfbd39-
   Palette anchors: #FFD700 gold | #333333 ink | #DAA520 brass |
                    #FAFAD2 cream | #D3D3D3 mist
   Design tone: bold compact headings + light body, stroke-led corners,
   horizontal icon-name game bars, step-driven rhythm, segmented CTAs,
   restrained short-distance motion.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --viewfbd39-gold: #FFD700;
  --viewfbd39-brass: #DAA520;
  --viewfbd39-ink: #333333;
  --viewfbd39-deep: #2a2a2a;
  --viewfbd39-deeper: #202020;
  --viewfbd39-cream: #FAFAD2;
  --viewfbd39-mist: #D3D3D3;
  --viewfbd39-line: rgba(250, 250, 210, 0.18);
  --viewfbd39-line-soft: rgba(250, 250, 210, 0.10);
  --viewfbd39-glow: rgba(255, 215, 0, 0.22);
  --viewfbd39-radius: 8px;
  --viewfbd39-radius-lg: 14px;
  --viewfbd39-tap: 44px;
  --viewfbd39-topbar-h: 62px;
  --viewfbd39-dock-space: 96px;
  --viewfbd39-font: "Noto Sans Bengali", "Hind Siliguri", "SolaimanLipi",
    -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  padding: 0;
  background: var(--viewfbd39-deeper);
  color: var(--viewfbd39-mist);
  font-family: var(--viewfbd39-font);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.65;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

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

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: 0.1px;
  color: var(--viewfbd39-cream);
  margin: 0 0 8px;
  text-wrap: balance;
}

h1 { font-size: 21px; line-height: 1.4; }
h2 { font-size: 17px; line-height: 1.45; }
h3 { font-size: 14.5px; line-height: 1.4; color: var(--viewfbd39-gold); }

p { margin: 0 0 10px; }

a {
  color: var(--viewfbd39-gold);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

button {
  font-family: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--viewfbd39-gold);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  background: var(--viewfbd39-gold);
  color: var(--viewfbd39-ink);
}

/* ---------- 3. Phone canvas shell ---------- */
.viewfbd39-shell {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  background: var(--viewfbd39-ink);
  border-left: 1px solid var(--viewfbd39-line-soft);
  border-right: 1px solid var(--viewfbd39-line-soft);
  overflow-x: hidden;
  position: relative;
}

.viewfbd39-main {
  padding: calc(var(--viewfbd39-topbar-h) + 12px) 14px 20px;
}

/* ---------- 4. Top functional header (edge aligned) ---------- */
.viewfbd39-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--viewfbd39-topbar-h);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  padding-top: calc(9px + env(safe-area-inset-top, 0px));
  height: calc(var(--viewfbd39-topbar-h) + env(safe-area-inset-top, 0px));
  background: rgba(32, 32, 32, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--viewfbd39-line);
}

.viewfbd39-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--viewfbd39-cream);
  font-weight: 800;
}

.viewfbd39-brand:hover { text-decoration: none; }

.viewfbd39-brand img {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  border: 1px solid var(--viewfbd39-line);
  flex: none;
  object-fit: cover;
}

.viewfbd39-brand-name {
  font-size: 19px;
  letter-spacing: 0.3px;
  color: var(--viewfbd39-gold);
  white-space: nowrap;
}

.viewfbd39-topacts {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

/* Segmented action pair (CTA shape direction) */
.viewfbd39-seg {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--viewfbd39-brass);
  border-radius: var(--viewfbd39-radius);
  overflow: hidden;
}

.viewfbd39-seg-btn {
  min-height: var(--viewfbd39-tap);
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 700;
  border: 0;
  background: transparent;
  color: var(--viewfbd39-cream);
  transition: background 0.18s ease, color 0.18s ease;
}

.viewfbd39-seg-main {
  background: var(--viewfbd39-gold);
  color: var(--viewfbd39-ink);
}

.viewfbd39-seg-main:hover {
  background: #ffdf3d;
}

.viewfbd39-seg-btn + .viewfbd39-seg-btn {
  border-left: 1px solid var(--viewfbd39-brass);
}

.viewfbd39-seg-btn:hover {
  background: rgba(255, 215, 0, 0.12);
}

.viewfbd39-seg-main:hover {
  color: var(--viewfbd39-ink);
}

/* Hamburger toggle */
.viewfbd39-menu-btn {
  width: var(--viewfbd39-tap);
  height: var(--viewfbd39-tap);
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--viewfbd39-line);
  border-radius: var(--viewfbd39-radius);
  color: var(--viewfbd39-mist);
  transition: border-color 0.18s ease, color 0.18s ease;
}

.viewfbd39-menu-btn svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.viewfbd39-menu-btn:hover {
  border-color: var(--viewfbd39-gold);
  color: var(--viewfbd39-gold);
}

/* ---------- 5. Expandable navigation drawer ---------- */
.viewfbd39-drawer {
  position: fixed;
  top: calc(var(--viewfbd39-topbar-h) + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 55;
  background: rgba(28, 28, 28, 0.98);
  border-bottom: 1px solid var(--viewfbd39-line);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}

.viewfbd39-drawer.viewfbd39-is-open {
  max-height: 540px;
}

.viewfbd39-drawer a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 8px 16px;
  color: var(--viewfbd39-mist);
  font-size: 14px;
  font-weight: 600;
  border-left: 3px solid transparent;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.viewfbd39-drawer a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--viewfbd39-brass);
  flex: none;
}

.viewfbd39-drawer a:hover,
.viewfbd39-drawer a.viewfbd39-is-active {
  background: rgba(255, 215, 0, 0.08);
  color: var(--viewfbd39-gold);
  border-left-color: var(--viewfbd39-gold);
  text-decoration: none;
}

/* ---------- 6. Hero ---------- */
.viewfbd39-hero {
  padding: 6px 2px 2px;
}

.viewfbd39-hero h1 {
  color: var(--viewfbd39-gold);
  margin-bottom: 10px;
}

.viewfbd39-hero p {
  font-size: 13.5px;
  color: var(--viewfbd39-mist);
}

.viewfbd39-facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 4px;
  padding: 0;
}

.viewfbd39-facts li {
  border: 1px solid var(--viewfbd39-line);
  border-radius: var(--viewfbd39-radius);
  padding: 8px 6px;
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--viewfbd39-cream);
  background: rgba(42, 42, 42, 0.6);
}

.viewfbd39-facts li span {
  display: block;
  font-size: 14.5px;
  color: var(--viewfbd39-gold);
}

/* ---------- 7. Promo carousel ---------- */
.viewfbd39-carousel {
  margin: 14px 0 4px;
}

.viewfbd39-window {
  border: 1px solid var(--viewfbd39-line);
  border-radius: var(--viewfbd39-radius-lg);
  overflow: hidden;
  background: var(--viewfbd39-deeper);
}

.viewfbd39-track {
  display: flex;
  transition: transform 0.3s ease;
}

.viewfbd39-slide {
  position: relative;
  display: block;
  width: 100%;
  flex: 0 0 100%;
  padding: 0;
  border: 0;
  background: var(--viewfbd39-deeper);
  text-align: left;
}

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

.viewfbd39-slide-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 12px 10px;
  background: linear-gradient(180deg, rgba(32, 32, 32, 0) 0%, rgba(24, 24, 24, 0.92) 78%);
  color: var(--viewfbd39-cream);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.4;
}

.viewfbd39-slide-cta {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--viewfbd39-ink);
  background: var(--viewfbd39-gold);
  border-radius: 999px;
}

.viewfbd39-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 9px;
}

.viewfbd39-dot {
  width: 22px;
  height: 10px;
  padding: 0;
  border: 1px solid var(--viewfbd39-line);
  border-radius: 999px;
  background: transparent;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.viewfbd39-dot.viewfbd39-dot-on {
  background: var(--viewfbd39-gold);
  border-color: var(--viewfbd39-gold);
  box-shadow: 0 0 8px var(--viewfbd39-glow);
}

/* ---------- 8. Game categories ---------- */
.viewfbd39-cat {
  margin-top: 22px;
}

.viewfbd39-cathead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--viewfbd39-line);
  padding-bottom: 6px;
  margin-bottom: 8px;
}

.viewfbd39-cathead h2 { margin: 0; }

.viewfbd39-catcount {
  flex: none;
  font-size: 11px;
  font-weight: 700;
  color: var(--viewfbd39-ink);
  background: var(--viewfbd39-brass);
  border-radius: 999px;
  padding: 2px 9px;
}

.viewfbd39-catintro {
  font-size: 12.8px;
  color: var(--viewfbd39-mist);
  margin: 0 0 10px;
}

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

.viewfbd39-gamebar {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 62px;
  padding: 7px 9px;
  background: rgba(30, 30, 30, 0.75);
  border: 1px solid var(--viewfbd39-line-soft);
  border-radius: var(--viewfbd39-radius);
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
  text-align: left;
}

.viewfbd39-gamebar img {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 6px;
  border: 1px solid var(--viewfbd39-line-soft);
  object-fit: cover;
  background: #151515;
}

.viewfbd39-gamebar span {
  font-size: 12.4px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--viewfbd39-cream);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: break-word;
}

.viewfbd39-gamebar:hover {
  border-color: var(--viewfbd39-brass);
  box-shadow: 0 0 0 1px rgba(218, 165, 32, 0.25);
}

.viewfbd39-gamebar:active {
  transform: translateY(1px);
  border-color: var(--viewfbd39-gold);
}

/* ---------- 9. Content panels (modules) ---------- */
.viewfbd39-panel {
  margin-top: 24px;
  border: 1px solid var(--viewfbd39-line);
  border-radius: var(--viewfbd39-radius-lg);
  padding: 14px 13px 10px;
  background: rgba(30, 30, 30, 0.45);
}

.viewfbd39-panel > h2 {
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--viewfbd39-line);
  margin-bottom: 10px;
}

.viewfbd39-panel p {
  font-size: 13.2px;
}

.viewfbd39-lede {
  color: var(--viewfbd39-cream);
  font-weight: 600;
}

/* Step-driven lists */
.viewfbd39-steps {
  list-style: none;
  margin: 12px 0 6px;
  padding: 0;
}

.viewfbd39-steps li {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 0 0 16px 0;
}

.viewfbd39-steps li::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 32px;
  bottom: 2px;
  width: 1px;
  background: var(--viewfbd39-line);
}

.viewfbd39-steps li:last-child::before { display: none; }

.viewfbd39-stepnum {
  flex: none;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid var(--viewfbd39-gold);
  border-radius: 50%;
  color: var(--viewfbd39-gold);
  font-weight: 700;
  font-size: 13.5px;
  background: rgba(255, 215, 0, 0.06);
}

.viewfbd39-steps strong {
  display: block;
  color: var(--viewfbd39-cream);
  font-size: 13.4px;
  margin-bottom: 2px;
}

.viewfbd39-steps p {
  margin: 0;
  font-size: 12.6px;
}

/* Testimonial quotes */
.viewfbd39-quotes {
  list-style: none;
  margin: 10px 0 4px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.viewfbd39-quote {
  border-left: 3px solid var(--viewfbd39-brass);
  background: rgba(42, 42, 42, 0.55);
  border-radius: 0 var(--viewfbd39-radius) var(--viewfbd39-radius) 0;
  padding: 9px 11px;
}

.viewfbd39-quote p {
  margin: 0 0 4px;
  font-size: 12.8px;
  color: var(--viewfbd39-cream);
}

.viewfbd39-quote footer {
  font-size: 11.5px;
  color: var(--viewfbd39-mist);
}

/* Comparison rows */
.viewfbd39-compare {
  margin: 10px 0 6px;
  border: 1px solid var(--viewfbd39-line-soft);
  border-radius: var(--viewfbd39-radius);
  overflow: hidden;
}

.viewfbd39-cmp-row {
  display: grid;
  grid-template-columns: minmax(96px, 38%) 1fr;
  gap: 10px;
  padding: 9px 11px;
  font-size: 12.6px;
}

.viewfbd39-cmp-row + .viewfbd39-cmp-row {
  border-top: 1px solid var(--viewfbd39-line-soft);
}

.viewfbd39-cmp-k {
  font-weight: 700;
  color: var(--viewfbd39-gold);
}

.viewfbd39-cmp-v {
  color: var(--viewfbd39-mist);
}

/* Term glossary */
.viewfbd39-terms {
  margin: 10px 0 4px;
  display: grid;
  gap: 9px;
}

.viewfbd39-terms dt {
  font-weight: 700;
  color: var(--viewfbd39-cream);
  font-size: 13.2px;
}

.viewfbd39-terms dd {
  margin: 2px 0 0;
  font-size: 12.6px;
}

.viewfbd39-terms div {
  border: 1px solid var(--viewfbd39-line-soft);
  border-radius: var(--viewfbd39-radius);
  padding: 8px 11px;
}

/* ---------- 10. Extended site footer ---------- */
.viewfbd39-xfoot {
  margin-top: 28px;
  border-top: 2px solid var(--viewfbd39-brass);
  padding: 16px 14px 8px;
  background: rgba(28, 28, 28, 0.6);
}

.viewfbd39-xfoot h2 { margin-bottom: 12px; }

.viewfbd39-xfoot h3 {
  margin: 14px 0 8px;
}

.viewfbd39-xdir {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.viewfbd39-xdir a {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 9px;
  border: 1px solid var(--viewfbd39-line-soft);
  border-radius: var(--viewfbd39-radius);
  font-size: 12.4px;
  font-weight: 600;
  color: var(--viewfbd39-cream);
  background: rgba(42, 42, 42, 0.5);
  transition: border-color 0.16s ease, color 0.16s ease;
}

.viewfbd39-xdir a::after {
  content: "›";
  margin-left: auto;
  color: var(--viewfbd39-brass);
  font-size: 15px;
}

.viewfbd39-xdir a:hover {
  border-color: var(--viewfbd39-gold);
  color: var(--viewfbd39-gold);
  text-decoration: none;
}

.viewfbd39-xbrand {
  font-size: 12.8px;
}

/* Horizontal promotion shortcuts */
.viewfbd39-promorow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.viewfbd39-promo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--viewfbd39-brass);
  border-radius: 999px;
  background: rgba(255, 215, 0, 0.05);
  color: var(--viewfbd39-cream);
  font-size: 12.4px;
  font-weight: 700;
  transition: background 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.viewfbd39-promo svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--viewfbd39-gold);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.viewfbd39-promo:hover {
  background: rgba(255, 215, 0, 0.14);
  border-color: var(--viewfbd39-gold);
  box-shadow: 0 0 10px var(--viewfbd39-glow);
}

.viewfbd39-promo:active { transform: translateY(1px); }

.viewfbd39-xnote {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--viewfbd39-line-soft);
  font-size: 11.6px;
  color: var(--viewfbd39-mist);
}

/* ---------- 11. Common footer ---------- */
.viewfbd39-footer {
  padding: 14px 14px calc(var(--viewfbd39-dock-space) + 14px);
  text-align: center;
  font-size: 11.8px;
  color: var(--viewfbd39-mist);
  border-top: 1px solid var(--viewfbd39-line-soft);
}

.viewfbd39-footer p { margin: 0; }

/* ---------- 12. Floating mobile dock ---------- */
.viewfbd39-dock {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 20px);
  max-width: 410px;
  z-index: 70;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  padding: 5px;
  background: rgba(26, 26, 26, 0.97);
  backdrop-filter: blur(10px);
  border: 1px solid var(--viewfbd39-line);
  border-radius: var(--viewfbd39-radius-lg);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
  margin-bottom: env(safe-area-inset-bottom, 0px);
}

.viewfbd39-dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 52px;
  padding: 5px 2px;
  border-radius: 10px;
  color: var(--viewfbd39-mist);
  font-size: 10.6px;
  font-weight: 600;
  border: 1px solid transparent;
  background: transparent;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.viewfbd39-dock-item svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.viewfbd39-dock-item:hover {
  color: var(--viewfbd39-gold);
  text-decoration: none;
}

/* Active role: contrast inversion into a gold pill */
.viewfbd39-dock-item.viewfbd39-is-active {
  background: var(--viewfbd39-gold);
  color: var(--viewfbd39-ink);
  border-color: var(--viewfbd39-gold);
  box-shadow: 0 0 12px var(--viewfbd39-glow);
}

/* ---------- 13. Utility ---------- */
.viewfbd39-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  padding: 8px 4px;
  font-size: 12.6px;
  font-weight: 700;
}

/* ---------- 14. Responsive ladder ---------- */
@media (min-width: 375px) {
  .viewfbd39-main { padding-left: 16px; padding-right: 16px; }
  .viewfbd39-hero h1 { font-size: 22.5px; }
  .viewfbd39-gamegrid { gap: 10px; }
  .viewfbd39-gamebar span { font-size: 13px; }
  .viewfbd39-facts li { font-size: 12px; }
  .viewfbd39-xdir a { font-size: 12.8px; }
}

@media (min-width: 430px) {
  /* Canvas caps at 430px; wider viewports keep the centered phone frame */
  .viewfbd39-main { padding-left: 20px; padding-right: 20px; }
  .viewfbd39-hero h1 { font-size: 24px; }
  .viewfbd39-hero p,
  .viewfbd39-panel p { font-size: 13.6px; }
  .viewfbd39-gamebar img { width: 50px; height: 50px; }
  .viewfbd39-gamebar span { font-size: 13.2px; }
  .viewfbd39-slide-cap { font-size: 14.5px; }
  .viewfbd39-dock-item { font-size: 11px; }
}

/* ---------- 15. Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
