/* ==========================================================================
   baje.homes mobile shell stylesheet (bn-BD)
   Prefix contract: every class and variable uses framed6e82-
   Canvas: 320-430px phone frame, centered on wide screens.
   Palette: #BDC3C7 / #F08080 / #FF7F50 / #1E1E1E / #FFB347
   Tone: tech headings + open body text, mixed radii, square CTAs,
   image-only game cards, question-driven rhythm, color-only motion.
   ========================================================================== */

:root {
  --framed6e82-ink: #1E1E1E;
  --framed6e82-deep: #141414;
  --framed6e82-panel: #242424;
  --framed6e82-panel2: #2b2b2b;
  --framed6e82-line: #3b3b3b;
  --framed6e82-paper: #BDC3C7;
  --framed6e82-dim: #8d949a;
  --framed6e82-coral: #F08080;
  --framed6e82-flame: #FF7F50;
  --framed6e82-amber: #FFB347;
  --framed6e82-shellmax: 430px;
  --framed6e82-bar: 56px;
  --framed6e82-tabbar: 60px;
  --framed6e82-r-lg: 12px;
  --framed6e82-r-md: 7px;
  --framed6e82-r-sm: 3px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--framed6e82-deep);
  color: var(--framed6e82-paper);
  font-family: "Nirmala UI", "SolaimanLipi", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}

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

a { color: var(--framed6e82-amber); text-decoration: none; }
a:hover { color: var(--framed6e82-flame); }

:focus-visible {
  outline: 2px solid var(--framed6e82-amber);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------------------
   Shell: the phone canvas. Wide screens keep one centered column.
--------------------------------------------------------------------------- */

.framed6e82-shell {
  max-width: var(--framed6e82-shellmax);
  margin: 0 auto;
  background: var(--framed6e82-ink);
  min-height: 100vh;
  box-shadow: 0 0 0 1px var(--framed6e82-line);
  padding: calc(var(--framed6e82-bar) + 6px) 0 calc(var(--framed6e82-tabbar) + 22px);
}

.framed6e82-main { padding: 0 12px; }

/* ---------------------------------------------------------------------------
   Functional header, edge aligned: logo flush left, actions flush right.
--------------------------------------------------------------------------- */

.framed6e82-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: var(--framed6e82-ink);
  border-bottom: 2px solid var(--framed6e82-flame);
}

.framed6e82-headerbar {
  max-width: var(--framed6e82-shellmax);
  margin: 0 auto;
  min-height: var(--framed6e82-bar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
}

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

.framed6e82-logo {
  width: 34px;
  height: 34px;
  border-radius: var(--framed6e82-r-md);
  border: 1px solid var(--framed6e82-line);
  object-fit: cover;
  flex: 0 0 auto;
}

.framed6e82-sitename {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--framed6e82-paper);
  line-height: 1.1;
}

.framed6e82-headactions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

/* Square, high-contrast CTAs */
.framed6e82-cta {
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 0;
  min-height: 44px;
  min-width: 44px;
  padding: 10px 14px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.15s linear, color 0.15s linear, border-color 0.15s linear;
}

.framed6e82-cta-register {
  background: var(--framed6e82-flame);
  color: var(--framed6e82-ink);
}
.framed6e82-cta-register:hover { background: var(--framed6e82-amber); color: var(--framed6e82-ink); }

.framed6e82-cta-login {
  background: transparent;
  color: var(--framed6e82-amber);
  border-color: var(--framed6e82-amber);
}
.framed6e82-cta-login:hover { background: var(--framed6e82-amber); color: var(--framed6e82-ink); }

.framed6e82-menubtn {
  background: transparent;
  border: 1px solid var(--framed6e82-line);
  color: var(--framed6e82-paper);
  border-radius: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: border-color 0.15s linear;
}
.framed6e82-menubtn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--framed6e82-paper);
}
.framed6e82-menubtn:hover { border-color: var(--framed6e82-flame); }
.framed6e82-menubtn:hover span { background: var(--framed6e82-flame); }

/* ---------------------------------------------------------------------------
   Stacked overlay menu, drops under the header inside the canvas.
--------------------------------------------------------------------------- */

.framed6e82-nav {
  position: fixed;
  top: calc(var(--framed6e82-bar) + 2px);
  left: 0;
  right: 0;
  z-index: 55;
  background: rgba(30, 30, 30, 0.985);
  border-bottom: 2px solid var(--framed6e82-coral);
  max-height: calc(100vh - var(--framed6e82-bar));
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.15s linear, visibility 0.15s linear;
}

.framed6e82-nav.framed6e82-open { visibility: visible; opacity: 1; }

.framed6e82-navinner { max-width: var(--framed6e82-shellmax); margin: 0 auto; padding: 4px 10px 10px; }

.framed6e82-navtitle {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--framed6e82-dim);
  padding: 10px 4px 6px;
}

.framed6e82-navlink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 46px;
  padding: 8px 10px;
  color: var(--framed6e82-paper);
  border-left: 3px solid transparent;
  border-bottom: 1px solid var(--framed6e82-line);
}
.framed6e82-navlink::after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 2px solid var(--framed6e82-dim);
  border-right: 2px solid var(--framed6e82-dim);
  transform: rotate(45deg);
  flex: 0 0 auto;
}
.framed6e82-navlink:hover {
  color: var(--framed6e82-flame);
  border-left-color: var(--framed6e82-flame);
}
.framed6e82-navlink.framed6e82-current {
  background: var(--framed6e82-amber);
  color: var(--framed6e82-ink);
  border-left-color: var(--framed6e82-coral);
  font-weight: 700;
}

/* ---------------------------------------------------------------------------
   Hero: H1 + crossfade carousel (color/opacity only motion).
--------------------------------------------------------------------------- */

.framed6e82-hero { padding: 4px 0 8px; }

.framed6e82-h1 {
  font-size: 21px;
  line-height: 1.45;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #f3f5f6;
  margin: 6px 0 8px;
}

.framed6e82-herolead {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--framed6e82-paper);
}

.framed6e82-carousel {
  position: relative;
  border: 1px solid var(--framed6e82-line);
  border-radius: var(--framed6e82-r-lg);
  overflow: hidden;
  background: var(--framed6e82-panel);
}

.framed6e82-slide {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--framed6e82-panel);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  inset: 0;
  transition: opacity 0.25s linear, visibility 0.25s linear;
}
.framed6e82-slide.framed6e82-live { opacity: 1; visibility: visible; position: relative; }

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

.framed6e82-slideband {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 12px;
  background: rgba(20, 20, 20, 0.82);
  border-top: 2px solid var(--framed6e82-amber);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.framed6e82-slidetext { color: #f3f5f6; font-size: 13.5px; font-weight: 700; line-height: 1.4; }

.framed6e82-slidego {
  flex: 0 0 auto;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--framed6e82-amber);
  border: 1px solid var(--framed6e82-amber);
  border-radius: 0;
  padding: 6px 10px;
  background: transparent;
  transition: background-color 0.15s linear, color 0.15s linear;
}
.framed6e82-slide:hover .framed6e82-slidego,
.framed6e82-slide:focus-visible .framed6e82-slidego { background: var(--framed6e82-amber); color: var(--framed6e82-ink); }

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

.framed6e82-dot {
  width: 22px;
  height: 6px;
  border-radius: var(--framed6e82-r-sm);
  border: 0;
  background: var(--framed6e82-line);
  cursor: pointer;
  padding: 0;
  transition: background-color 0.15s linear;
}
.framed6e82-dot.framed6e82-live { background: var(--framed6e82-flame); }

/* ---------------------------------------------------------------------------
   Sections and tech-flavored headings.
--------------------------------------------------------------------------- */

.framed6e82-section { margin: 22px 0; }

.framed6e82-h2 {
  font-size: 17.5px;
  line-height: 1.5;
  font-weight: 800;
  letter-spacing: 0.015em;
  color: #f3f5f6;
  margin: 0 0 8px;
  padding: 4px 0 4px 10px;
  border-left: 4px solid var(--framed6e82-flame);
}

.framed6e82-h3 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--framed6e82-amber);
  margin: 14px 0 6px;
  letter-spacing: 0.02em;
}

.framed6e82-p { margin: 0 0 10px; font-size: 14px; }

.framed6e82-leadfirst { color: #dfe3e6; }

.framed6e82-kicker {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--framed6e82-coral);
  border: 1px solid var(--framed6e82-coral);
  border-radius: var(--framed6e82-r-sm);
  padding: 2px 7px;
  margin: 10px 0 6px;
}

/* ---------------------------------------------------------------------------
   Game grid: pure image tiles, short name underneath, stable 4-col tracks.
--------------------------------------------------------------------------- */

.framed6e82-cathead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.framed6e82-catcount {
  flex: 0 0 auto;
  font-size: 11px;
  color: var(--framed6e82-dim);
  letter-spacing: 0.08em;
}

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

@media (min-width: 390px) {
  .framed6e82-grid { grid-template-columns: repeat(5, 1fr); gap: 9px; }
}

.framed6e82-card {
  font-family: inherit;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-align: center;
  color: var(--framed6e82-paper);
  min-width: 0;
  transition: color 0.15s linear;
}

.framed6e82-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--framed6e82-r-lg);
  border: 1px solid var(--framed6e82-line);
  background: var(--framed6e82-panel);
  transition: border-color 0.15s linear;
}

.framed6e82-card:hover .framed6e82-thumb,
.framed6e82-card:focus-visible .framed6e82-thumb { border-color: var(--framed6e82-flame); }
.framed6e82-card:hover { color: var(--framed6e82-amber); }

.framed6e82-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.35;
  margin-top: 4px;
  min-height: 30px;
}

/* ---------------------------------------------------------------------------
   Question-driven content blocks. Deliberately varied shapes:
   facts = 2-col mini tiles, rows = scan lines, steps = numbered rail.
--------------------------------------------------------------------------- */

.framed6e82-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0;
}

.framed6e82-fact {
  background: var(--framed6e82-panel);
  border: 1px solid var(--framed6e82-line);
  border-top: 2px solid var(--framed6e82-amber);
  border-radius: 0 0 var(--framed6e82-r-md) var(--framed6e82-r-md);
  padding: 8px 10px;
}
.framed6e82-fact b { display: block; color: #f3f5f6; font-size: 13px; margin-bottom: 2px; }
.framed6e82-fact span { font-size: 12px; color: var(--framed6e82-dim); line-height: 1.5; display: block; }

.framed6e82-rowlist { margin: 10px 0; padding: 0; list-style: none; }

.framed6e82-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 9px 2px;
  border-bottom: 1px dashed var(--framed6e82-line);
}

.framed6e82-rowmark {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  background: var(--framed6e82-flame);
  border-radius: var(--framed6e82-r-sm);
}
.framed6e82-row b { color: #e9edef; }

.framed6e82-steps { margin: 10px 0; padding: 0 0 0 4px; list-style: none; counter-reset: framed6e82-step; }

.framed6e82-step {
  position: relative;
  counter-increment: framed6e82-step;
  padding: 0 0 12px 34px;
  border-left: 2px solid var(--framed6e82-line);
  margin-left: 10px;
}
.framed6e82-step:last-child { padding-bottom: 2px; border-left-color: transparent; }

.framed6e82-step::before {
  content: counter(framed6e82-step);
  position: absolute;
  left: -13px;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: var(--framed6e82-r-sm);
  background: var(--framed6e82-panel2);
  border: 1px solid var(--framed6e82-amber);
  color: var(--framed6e82-amber);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Terms list */
.framed6e82-terms { margin: 10px 0; }
.framed6e82-term { padding: 8px 0; border-bottom: 1px solid var(--framed6e82-line); }
.framed6e82-term dt { font-weight: 700; color: #f3f5f6; font-size: 13.5px; }
.framed6e82-term dd { margin: 2px 0 0; font-size: 13px; color: var(--framed6e82-paper); }

/* FAQ accordion */
.framed6e82-faq { margin: 10px 0; }

.framed6e82-q {
  border: 1px solid var(--framed6e82-line);
  border-radius: var(--framed6e82-r-md);
  background: var(--framed6e82-panel);
  margin-bottom: 8px;
  overflow: hidden;
}

.framed6e82-q summary {
  list-style: none;
  cursor: pointer;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  font-weight: 700;
  font-size: 13.5px;
  color: #e9edef;
}
.framed6e82-q summary::-webkit-details-marker { display: none; }

.framed6e82-q summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 18px;
  font-weight: 400;
  color: var(--framed6e82-flame);
  transition: color 0.15s linear;
}
.framed6e82-q[open] summary::after { content: "\2212"; color: var(--framed6e82-amber); }
.framed6e82-q[open] summary { border-bottom: 1px dashed var(--framed6e82-line); color: var(--framed6e82-amber); }

.framed6e82-a { padding: 10px 12px; font-size: 13.5px; margin: 0; }

/* ---------------------------------------------------------------------------
   Extended home footer: promos first, then brand, directory, disclaimer.
--------------------------------------------------------------------------- */

.framed6e82-ext {
  margin: 26px 0 18px;
  border: 1px solid var(--framed6e82-line);
  border-radius: var(--framed6e82-r-lg);
  background: var(--framed6e82-panel);
  padding: 12px;
}

.framed6e82-exth {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--framed6e82-coral);
  margin: 0 0 8px;
}

.framed6e82-promogrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.framed6e82-promo {
  font-family: inherit;
  border-radius: 0;
  min-height: 46px;
  padding: 10px 8px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--framed6e82-flame);
  background: var(--framed6e82-flame);
  color: var(--framed6e82-ink);
  transition: background-color 0.15s linear, color 0.15s linear, border-color 0.15s linear;
}
.framed6e82-promo:hover { background: var(--framed6e82-amber); border-color: var(--framed6e82-amber); }
.framed6e82-promo--ghost { background: transparent; color: var(--framed6e82-flame); }
.framed6e82-promo--ghost:hover { background: var(--framed6e82-flame); color: var(--framed6e82-ink); }

.framed6e82-brandnote { font-size: 12.5px; color: var(--framed6e82-paper); margin: 0 0 14px; }

.framed6e82-dir {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
  margin: 8px 0 12px;
  padding: 0;
  list-style: none;
}

.framed6e82-dir a {
  display: block;
  min-height: 40px;
  padding: 9px 4px 9px 0;
  border-bottom: 1px solid var(--framed6e82-line);
  font-size: 12.5px;
  line-height: 1.4;
}

.framed6e82-disclaimer {
  font-size: 11.5px;
  color: var(--framed6e82-dim);
  border-top: 1px solid var(--framed6e82-line);
  padding-top: 10px;
  margin: 0;
}

/* ---------------------------------------------------------------------------
   Common footer strip above the tab bar.
--------------------------------------------------------------------------- */

.framed6e82-foot {
  text-align: center;
  padding: 10px 12px 4px;
  font-size: 12px;
  color: var(--framed6e82-dim);
  border-top: 1px solid var(--framed6e82-line);
  margin-top: 16px;
}

/* ---------------------------------------------------------------------------
   Bottom band: five roles, amber brand edge, sliding active indicator,
   contrast-inverted active state.
--------------------------------------------------------------------------- */

.framed6e82-tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: #232323;
  border-top: 3px solid var(--framed6e82-amber);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.framed6e82-tabs {
  max-width: var(--framed6e82-shellmax);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.framed6e82-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: var(--framed6e82-tabbar);
  padding: 6px 2px 8px;
  color: var(--framed6e82-paper);
  background: transparent;
  border: 0;
  font-family: inherit;
  font-size: 10px;
  line-height: 1.25;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.framed6e82-tab::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 18%;
  right: 18%;
  height: 3px;
  background: var(--framed6e82-coral);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.18s ease-out, background-color 0.18s linear;
}

.framed6e82-tab svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.framed6e82-tab:hover { color: var(--framed6e82-amber); }

.framed6e82-tab.framed6e82-on {
  background: var(--framed6e82-amber);
  color: var(--framed6e82-ink);
  font-weight: 700;
}
.framed6e82-tab.framed6e82-on::before {
  transform: scaleX(1);
  background: var(--framed6e82-flame);
}

/* Accessible labels for image-only promotion tiles. */
.framed6e82-card { position: relative; }

/* ---------------------------------------------------------------------------
   Small screens: tighten the canvas at 430 and below.
--------------------------------------------------------------------------- */

@media (max-width: 430px) {
  .framed6e82-shell { padding-left: 0; padding-right: 0; }
  .framed6e82-main { padding: 0 11px; }
  .framed6e82-h1 { font-size: 20px; }
  .framed6e82-h2 { font-size: 16.5px; }
  .framed6e82-slideband { padding: 7px 10px; }
  .framed6e82-slidetext { font-size: 12.5px; }
}

@media (max-width: 359px) {
  .framed6e82-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .framed6e82-name { font-size: 10px; min-height: 28px; }
  .framed6e82-cta { padding: 8px 10px; font-size: 11.5px; }
  .framed6e82-facts,
  .framed6e82-promogrid,
  .framed6e82-dir { grid-template-columns: 1fr; }
  .framed6e82-h1 { font-size: 19px; }
}

/* Respect users who prefer no motion at all */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
