/* ==========================================================================
   bet khela - tokens & responsive stylesheet
   Class prefix : view2f036-
   Canvas       : 320-430px mobile-first, centered phone frame on wide screens
   Palette      : #1A1A2E (ink) / #D2B48C (tan) / #A9A9A9 (mist)
                  #2F2F2F (slate) / #FFB6C1 (blush)
   Direction    : high-contrast display type + readable body, round buttons,
                  square-ish cards, compact square game grid, fact-first info
                  rhythm, slide-in menu + card lift motion, segmented CTAs.
   ========================================================================== */

:root {
  --view2f036-ink: #1A1A2E;
  --view2f036-ink-deep: #131322;
  --view2f036-tan: #D2B48C;
  --view2f036-tan-soft: rgba(210, 180, 140, 0.16);
  --view2f036-mist: #A9A9A9;
  --view2f036-slate: #2F2F2F;
  --view2f036-blush: #FFB6C1;
  --view2f036-blush-soft: rgba(255, 182, 193, 0.14);
  --view2f036-panel: #232336;
  --view2f036-panel-2: #1E1E30;
  --view2f036-line: #3A3A54;
  --view2f036-text: #F0F0F7;
  --view2f036-text-dim: #C9C9DA;
  --view2f036-font-display: "Hind Siliguri", "Noto Sans Bengali", "SolaimanLipi", "Segoe UI", system-ui, sans-serif;
  --view2f036-font-body: "Noto Sans Bengali", "Hind Siliguri", "SolaimanLipi", "Segoe UI", system-ui, sans-serif;
  --view2f036-r-btn: 999px;
  --view2f036-r-card: 6px;
  --view2f036-r-tile: 10px;
  --view2f036-topbar-h: 56px;
  --view2f036-tabbar-h: 66px;
  --view2f036-lift: translateY(-2px);
  --view2f036-press: scale(0.96);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: #0D0D18;
  color: var(--view2f036-text);
  font-family: var(--view2f036-font-body);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Phone canvas: everything lives inside a centered column. */
.view2f036-canvas {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--view2f036-ink);
  box-shadow: 0 0 44px rgba(0, 0, 0, 0.55);
  overflow-x: clip;
}

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

a {
  color: var(--view2f036-tan);
  text-decoration: none;
  overflow-wrap: anywhere;
}

a:hover { text-decoration: underline; }

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

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

/* ==========================================================================
   Top bar - compact brand strip + action cluster
   ========================================================================== */

.view2f036-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--view2f036-topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px;
  background: rgba(26, 26, 46, 0.96);
  border-bottom: 1px solid var(--view2f036-line);
  z-index: 60;
  backdrop-filter: blur(8px);
}

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

.view2f036-logo {
  width: 34px;
  height: 34px;
  border-radius: var(--view2f036-r-tile);
  border: 1px solid var(--view2f036-line);
  object-fit: cover;
  flex: none;
}

.view2f036-brandname {
  font-family: var(--view2f036-font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: var(--view2f036-tan);
  white-space: nowrap;
}

.view2f036-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

/* Round segmented action buttons */
.view2f036-btn {
  min-height: 36px;
  padding: 6px 15px;
  border-radius: var(--view2f036-r-btn);
  border: 1px solid transparent;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.2;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.view2f036-btn:active { transform: var(--view2f036-press); }

.view2f036-btn-solid {
  background: linear-gradient(135deg, var(--view2f036-tan) 0%, #C1A27C 100%);
  color: #221A10;
}

.view2f036-btn-ghost {
  background: transparent;
  border-color: var(--view2f036-tan);
  color: var(--view2f036-tan);
}

.view2f036-menubtn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--view2f036-slate);
  border: 1px solid var(--view2f036-line);
  border-radius: var(--view2f036-r-tile);
  color: var(--view2f036-tan);
  transition: transform 0.15s ease, background 0.15s ease;
}

.view2f036-menubtn:active { transform: var(--view2f036-press); }

.view2f036-menubtn svg { width: 20px; height: 20px; }

/* ==========================================================================
   Layered dropdown menu (slide-in panel under the top bar)
   ========================================================================== */

.view2f036-menu {
  position: fixed;
  top: var(--view2f036-topbar-h);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  max-height: 0;
  overflow: hidden;
  background: var(--view2f036-panel-2);
  border-bottom: 1px solid var(--view2f036-line);
  z-index: 55;
  transition: max-height 0.32s cubic-bezier(0.22, 0.9, 0.3, 1);
}

.view2f036-menu.view2f036-is-open {
  max-height: 560px;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.45);
}

.view2f036-menugroup {
  padding: 10px 14px 4px;
}

.view2f036-menugroup + .view2f036-menugroup {
  border-top: 1px dashed var(--view2f036-line);
  margin-top: 6px;
  padding-top: 12px;
}

.view2f036-menulabel {
  margin: 0 0 7px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--view2f036-mist);
}

.view2f036-menulinks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.view2f036-menulinks a {
  display: block;
  min-height: 44px;
  padding: 9px 11px;
  background: var(--view2f036-slate);
  border: 1px solid var(--view2f036-line);
  border-radius: var(--view2f036-r-card);
  color: var(--view2f036-text-dim);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.view2f036-menulinks a:hover {
  color: var(--view2f036-tan);
  text-decoration: none;
  border-color: var(--view2f036-tan);
}

.view2f036-menulinks a:active { transform: var(--view2f036-press); }

/* ==========================================================================
   Main column
   ========================================================================== */

.view2f036-main {
  padding: calc(var(--view2f036-topbar-h) + 14px) 14px calc(var(--view2f036-tabbar-h) + 34px);
}

/* Hero */
.view2f036-hero {
  padding: 4px 0 2px;
}

.view2f036-hero h1 {
  margin: 0 0 10px;
  font-family: var(--view2f036-font-display);
  font-size: 25px;
  line-height: 1.32;
  font-weight: 800;
  color: var(--view2f036-text);
}

.view2f036-hero h1 .view2f036-h1latin {
  color: var(--view2f036-tan);
}

.view2f036-lead {
  margin: 0;
  font-size: 14.5px;
  color: var(--view2f036-text-dim);
}

.view2f036-chiprow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 0;
}

.view2f036-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  background: var(--view2f036-blush-soft);
  border: 1px solid rgba(255, 182, 193, 0.4);
  border-radius: var(--view2f036-r-btn);
  color: var(--view2f036-blush);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

/* ==========================================================================
   Promo carousel - horizontal snap rail with dot markers
   ========================================================================== */

.view2f036-carousel {
  margin: 16px 0 4px;
}

.view2f036-rail {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: var(--view2f036-r-card);
  border: 1px solid var(--view2f036-line);
}

.view2f036-rail::-webkit-scrollbar { display: none; }

.view2f036-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  padding: 0;
  border: 0;
  background: var(--view2f036-slate);
}

.view2f036-slide img {
  width: 100%;
  height: 168px;
  object-fit: cover;
}

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

.view2f036-dot {
  width: 26px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: var(--view2f036-r-btn);
  background: var(--view2f036-line);
  transition: background 0.2s ease, transform 0.2s ease;
}

.view2f036-dot.view2f036-dot-on {
  background: var(--view2f036-tan);
  transform: var(--view2f036-lift);
}

/* ==========================================================================
   Segmented CTA row
   ========================================================================== */

.view2f036-segment {
  display: flex;
  gap: 8px;
  margin: 16px 0 4px;
}

.view2f036-segment .view2f036-btn {
  flex: 1;
  min-height: 44px;
}

.view2f036-segment .view2f036-btn-link {
  background: var(--view2f036-tan-soft);
  border-color: var(--view2f036-tan);
  color: var(--view2f036-tan);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Section heading - tan notch bar
   ========================================================================== */

.view2f036-sec {
  margin-top: 26px;
}

.view2f036-sec h2 {
  margin: 0 0 8px;
  padding-left: 11px;
  position: relative;
  font-family: var(--view2f036-font-display);
  font-size: 19px;
  line-height: 1.45;
  font-weight: 800;
  color: var(--view2f036-tan);
}

.view2f036-sec h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--view2f036-tan), var(--view2f036-blush));
}

.view2f036-secintro {
  margin: 0 0 12px;
  font-size: 13.5px;
  color: var(--view2f036-text-dim);
}

/* ==========================================================================
   Game grid - compact square directory
   ========================================================================== */

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

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

.view2f036-gcard {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  padding: 6px;
  background: var(--view2f036-panel);
  border: 1px solid var(--view2f036-line);
  border-radius: var(--view2f036-r-card);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.view2f036-gcard:hover {
  transform: var(--view2f036-lift);
  border-color: var(--view2f036-tan);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
  text-decoration: none;
}

.view2f036-gcard:active { transform: var(--view2f036-press); }

.view2f036-gcard img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  background: var(--view2f036-slate);
}

.view2f036-gname {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--view2f036-text-dim);
  text-align: center;
  min-height: 30px;
  overflow-wrap: anywhere;
}

.view2f036-gcard:hover .view2f036-gname { color: var(--view2f036-text); }

/* ==========================================================================
   Content modules - fact strip first, details after
   ========================================================================== */

.view2f036-fact {
  margin: 0 0 10px;
  padding: 10px 12px;
  background: var(--view2f036-slate);
  border-left: 3px solid var(--view2f036-blush);
  border-radius: 0 var(--view2f036-r-card) var(--view2f036-r-card) 0;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--view2f036-blush);
  line-height: 1.7;
}

.view2f036-prose {
  margin: 0;
  font-size: 14px;
  color: var(--view2f036-text-dim);
}

.view2f036-prose + .view2f036-prose { margin-top: 10px; }

.view2f036-prose strong { color: var(--view2f036-text); font-weight: 700; }

.view2f036-updated {
  display: inline-block;
  margin: 8px 0;
  padding: 3px 10px;
  background: var(--view2f036-tan-soft);
  border-radius: var(--view2f036-r-btn);
  font-size: 11px;
  font-weight: 700;
  color: var(--view2f036-tan);
}

/* Expandable detail blocks */
.view2f036-more {
  margin: 10px 0 0;
  border: 1px solid var(--view2f036-line);
  border-radius: var(--view2f036-r-card);
  background: var(--view2f036-panel-2);
}

.view2f036-more summary {
  list-style: none;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--view2f036-tan);
  cursor: pointer;
}

.view2f036-more summary::-webkit-details-marker { display: none; }

.view2f036-more summary::after {
  content: "+";
  margin-left: auto;
  font-size: 17px;
  color: var(--view2f036-mist);
}

.view2f036-more[open] summary::after { content: "−"; }

.view2f036-more .view2f036-morebody {
  padding: 0 12px 12px;
  font-size: 13.5px;
  color: var(--view2f036-text-dim);
}

.view2f036-more .view2f036-morebody p { margin: 0 0 8px; }

.view2f036-more .view2f036-morebody p:last-child { margin-bottom: 0; }

/* Step list */
.view2f036-steps {
  margin: 10px 0 0;
  padding: 0 0 0 4px;
  list-style: none;
  counter-reset: view2f036-step;
}

.view2f036-steps li {
  counter-increment: view2f036-step;
  position: relative;
  padding: 0 0 10px 30px;
  font-size: 13.5px;
  color: var(--view2f036-text-dim);
}

.view2f036-steps li::before {
  content: counter(view2f036-step);
  position: absolute;
  left: 0;
  top: 3px;
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  background: var(--view2f036-tan-soft);
  border: 1px solid var(--view2f036-tan);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  color: var(--view2f036-tan);
}

/* Semantic comparison & preparation tables */
.view2f036-tablewrap {
  margin: 12px 0 0;
  overflow-x: auto;
  border: 1px solid var(--view2f036-line);
  border-radius: var(--view2f036-r-card);
  background: var(--view2f036-panel);
}

.view2f036-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  line-height: 1.5;
  text-align: left;
}

.view2f036-table th {
  padding: 9px 10px;
  background: var(--view2f036-slate);
  color: var(--view2f036-tan);
  font-weight: 700;
  border-bottom: 1px solid var(--view2f036-line);
  white-space: nowrap;
}

.view2f036-table td {
  padding: 8px 10px;
  color: var(--view2f036-text-dim);
  border-top: 1px solid var(--view2f036-line);
  vertical-align: top;
}

.view2f036-table td strong {
  color: var(--view2f036-text);
}

/* Checklist & term cards */
.view2f036-termlist {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.view2f036-termlist li {
  padding: 10px 12px;
  background: var(--view2f036-panel);
  border: 1px solid var(--view2f036-line);
  border-radius: var(--view2f036-r-card);
  font-size: 13.5px;
  color: var(--view2f036-text-dim);
}

.view2f036-termlist li strong {
  display: block;
  margin-bottom: 3px;
  color: var(--view2f036-tan);
  font-size: 13.5px;
}

.view2f036-inline-cta {
  margin: 12px 0 0;
  padding: 11px 12px;
  background: var(--view2f036-panel-2);
  border: 1px solid var(--view2f036-line);
  border-radius: var(--view2f036-r-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.view2f036-inline-cta span {
  font-size: 13px;
  color: var(--view2f036-text-dim);
}

.view2f036-inline-cta .view2f036-btn {
  flex: none;
  min-height: 40px;
  padding: 6px 14px;
}

/* ==========================================================================
   Q&A blocks
   ========================================================================== */

.view2f036-qa {
  margin: 12px 0 0;
  border: 1px solid var(--view2f036-line);
  border-radius: var(--view2f036-r-card);
  background: var(--view2f036-panel);
  overflow: hidden;
}

.view2f036-qa h3 {
  margin: 0;
  padding: 10px 12px;
  background: var(--view2f036-slate);
  font-size: 13.5px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--view2f036-tan);
}

.view2f036-qa p {
  margin: 0;
  padding: 10px 12px;
  font-size: 13.5px;
  color: var(--view2f036-text-dim);
}

.view2f036-qa + .view2f036-qa { margin-top: 8px; }

/* ==========================================================================
   Extended footer - compact groups: brand > directory > promos > closing
   ========================================================================== */

.view2f036-xfooter {
  margin-top: 30px;
  padding: 18px 14px 14px;
  border-top: 1px solid var(--view2f036-line);
  background: var(--view2f036-panel-2);
}

.view2f036-xfbrand {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--view2f036-text-dim);
}

.view2f036-xfbrand strong {
  font-family: var(--view2f036-font-display);
  color: var(--view2f036-tan);
  font-size: 15px;
}

.view2f036-xfgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.view2f036-xfcol h3 {
  margin: 0 0 7px;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--view2f036-mist);
}

.view2f036-xfcol ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.view2f036-xfcol li { margin: 0 0 4px; }

.view2f036-xfcol a {
  font-size: 12.5px;
  color: var(--view2f036-text-dim);
}

.view2f036-xfcol a:hover { color: var(--view2f036-tan); }

.view2f036-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.view2f036-promos .view2f036-btn {
  flex: 1 1 44%;
  min-height: 40px;
  font-size: 12.5px;
  padding: 7px 8px;
}

.view2f036-xfclose {
  margin: 15px 0 0;
  padding-top: 11px;
  border-top: 1px dashed var(--view2f036-line);
  font-size: 12px;
  color: var(--view2f036-mist);
  text-align: center;
}

/* Legal footer - copyright only */
.view2f036-legal {
  padding: 10px 14px 8px;
  background: var(--view2f036-ink-deep);
  border-top: 1px solid var(--view2f036-line);
  text-align: center;
  font-size: 11.5px;
  color: var(--view2f036-mist);
}

/* ==========================================================================
   Mobile bottom navigation - segmented action bar
   ========================================================================== */

.view2f036-tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(19, 19, 34, 0.97);
  border-top: 1px solid var(--view2f036-line);
  z-index: 60;
  backdrop-filter: blur(8px);
}

.view2f036-tabs {
  display: flex;
  gap: 5px;
  padding: 4px;
  background: var(--view2f036-slate);
  border: 1px solid var(--view2f036-line);
  border-radius: 14px;
}

.view2f036-tab {
  flex: 1;
  min-height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 4px 2px;
  background: transparent;
  border: 0;
  border-radius: var(--view2f036-r-tile);
  color: var(--view2f036-mist);
  transition: transform 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.view2f036-tab:active { transform: var(--view2f036-press); }

.view2f036-tabicon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: var(--view2f036-panel-2);
  border: 1px solid var(--view2f036-line);
  border-radius: 9px;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.view2f036-tabicon svg {
  width: 16px;
  height: 16px;
}

.view2f036-tablabel {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}

/* Active tab: icon tile lifts and warms up */
.view2f036-tab.view2f036-tab-on {
  color: var(--view2f036-tan);
  background: var(--view2f036-tan-soft);
}

.view2f036-tab.view2f036-tab-on .view2f036-tabicon {
  transform: translateY(-3px);
  background: var(--view2f036-tan);
  border-color: var(--view2f036-tan);
  color: #221A10;
}

.view2f036-tab:focus-visible { outline-offset: -3px; }

/* ==========================================================================
   Motion preferences
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
    scroll-behavior: auto !important;
  }
}
