/* ==========================================================================
   cd444.homes - mobile-first surface stylesheet
   File   : css/cd444-surface-bcbffc.css
   Prefix : viewffc45-  (all classes + CSS custom properties)
   Palette: #2C2C2C / #3C3C3C / #696969 / #008B8B / #F4A460
   Shape  : near-square tool corners, grouped cover cards,
            compact dual-button CTA, sliding focus indicator
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --viewffc45-bg: #2C2C2C;
  --viewffc45-bg-deep: #242424;
  --viewffc45-panel: #3C3C3C;
  --viewffc45-panel-soft: #353535;
  --viewffc45-line: #696969;
  --viewffc45-line-soft: rgba(105, 105, 105, 0.42);
  --viewffc45-teal: #008B8B;
  --viewffc45-teal-hi: #1FB8AF;
  --viewffc45-sand: #F4A460;
  --viewffc45-sand-deep: #D98A43;
  --viewffc45-ink: #EDEDE8;
  --viewffc45-ink-soft: #C9C9C2;
  --viewffc45-ink-dim: #9C9C95;
  --viewffc45-radius: 3px;
  --viewffc45-radius-lg: 4px;
  --viewffc45-font: "Hind Siliguri", "Noto Sans Bengali", "SolaimanLipi",
    system-ui, -apple-system, "Segoe UI", sans-serif;
  --viewffc45-head-h: 108px; /* sticky header height reserve */
  --viewffc45-dock-h: 92px;  /* bottom dock safe reserve */
}

/* --------------------------------------------------------------------------
   2. Reset + base canvas (320-430px phone frame, centered on wide screens)
   -------------------------------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--viewffc45-font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--viewffc45-ink-soft);
  background: #1E1E1E;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: var(--viewffc45-teal-hi);
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

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

:focus-visible {
  outline: 2px solid var(--viewffc45-sand);
  outline-offset: 2px;
}

.viewffc45-shell {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  background: var(--viewffc45-bg);
  min-height: 100vh;
  box-shadow: 0 0 0 1px rgba(105, 105, 105, 0.25);
}

/* --------------------------------------------------------------------------
   3. Header - asymmetric brand block + separate action strip
   -------------------------------------------------------------------------- */
.viewffc45-top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--viewffc45-bg-deep);
  border-bottom: 1px solid var(--viewffc45-line-soft);
}

/* brand row: fat logo tile left, menu control pushed right */
.viewffc45-topbrand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 9px 12px 7px;
}

.viewffc45-brandmark {
  flex: 0 0 auto;
  padding: 3px;
  background: #2E2E2E;
  border-left: 3px solid var(--viewffc45-sand);
  border-top: 1px solid var(--viewffc45-line-soft);
  border-right: 1px solid var(--viewffc45-line-soft);
  border-bottom: 1px solid var(--viewffc45-line-soft);
}

.viewffc45-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

.viewffc45-brandname {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--viewffc45-sand);
  line-height: 1.1;
}

/* linear hamburger trigger, 44px touch zone */
.viewffc45-menubtn {
  margin-left: auto;
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--viewffc45-line-soft);
  background: #2A2A2A;
}

.viewffc45-menubtn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--viewffc45-ink-soft);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.viewffc45-menubtn.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.viewffc45-menubtn.is-open span:nth-child(2) {
  opacity: 0;
}

.viewffc45-menubtn.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* action strip sits below the brand block: compact dual-button pair */
.viewffc45-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 12px 10px;
}

.viewffc45-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 6px 10px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  border-radius: var(--viewffc45-radius);
  transition: transform 0.12s ease, filter 0.12s ease;
}

.viewffc45-btn:active {
  transform: translateY(1px) scale(0.985);
  filter: brightness(1.12);
}

.viewffc45-btn-reg {
  background: var(--viewffc45-sand);
  color: #241A0E;
}

.viewffc45-btn-log {
  background: transparent;
  border: 1px solid var(--viewffc45-teal-hi);
  color: #8FD8D2;
}

/* --------------------------------------------------------------------------
   4. Slide-up route panel (menu)
   -------------------------------------------------------------------------- */
.viewffc45-routes {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  background: #212121;
  border-bottom: 0 solid var(--viewffc45-line-soft);
  transition: max-height 0.3s ease, opacity 0.25s ease;
}

.viewffc45-routes.is-open {
  max-height: 640px;
  opacity: 1;
  border-bottom-width: 1px;
}

.viewffc45-routes-inner {
  padding: 8px 12px 14px;
}

.viewffc45-routegroup + .viewffc45-routegroup {
  margin-top: 10px;
}

.viewffc45-routegroup-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--viewffc45-ink-dim);
  padding: 6px 4px 4px;
  border-bottom: 1px dashed rgba(105, 105, 105, 0.35);
}

.viewffc45-route {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 8px 6px;
  color: var(--viewffc45-ink-soft);
  border-bottom: 1px solid rgba(105, 105, 105, 0.16);
  transition: background 0.15s ease, color 0.15s ease;
}

.viewffc45-route:last-child {
  border-bottom: 0;
}

.viewffc45-route:active {
  background: rgba(0, 139, 139, 0.22);
  color: var(--viewffc45-ink);
}

.viewffc45-route-ico {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  stroke: var(--viewffc45-teal-hi);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.viewffc45-route-label {
  font-size: 14.5px;
  font-weight: 600;
}

.viewffc45-route-arrow {
  margin-left: auto;
  color: var(--viewffc45-ink-dim);
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   5. Hero: carousel with sliding focus bar + category chip strip
   -------------------------------------------------------------------------- */
.viewffc45-hero {
  padding: 12px 12px 0;
}

.viewffc45-caro {
  position: relative;
  overflow: hidden;
  background: #202020;
  border: 1px solid var(--viewffc45-line-soft);
  border-radius: var(--viewffc45-radius);
}

.viewffc45-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.viewffc45-slide {
  position: relative;
  flex: 0 0 100%;
  display: block;
}

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

.viewffc45-slide-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 12px 24px;
  font-size: 14px;
  font-weight: 700;
  color: var(--viewffc45-ink);
  background: linear-gradient(180deg, rgba(30, 30, 30, 0) 0%, rgba(24, 24, 24, 0.88) 78%);
}

/* passive dots + one sand bar that slides across them */
.viewffc45-dots {
  position: absolute;
  left: 12px;
  bottom: 9px;
  display: flex;
  gap: 6px;
  z-index: 3;
}

.viewffc45-dot {
  width: 18px;
  height: 3px;
  background: rgba(237, 237, 232, 0.32);
  padding: 0;
}

.viewffc45-dotbar {
  position: absolute;
  left: 12px;
  bottom: 9px;
  width: 18px;
  height: 3px;
  background: var(--viewffc45-sand);
  z-index: 4;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* horizontal chip rail that jumps to game groups */
.viewffc45-catstrip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 2px 4px;
  scrollbar-width: none;
}

.viewffc45-catstrip::-webkit-scrollbar {
  display: none;
}

.viewffc45-chip {
  flex: 0 0 auto;
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--viewffc45-ink-soft);
  background: var(--viewffc45-panel-soft);
  border: 1px solid var(--viewffc45-line-soft);
  border-radius: var(--viewffc45-radius);
  transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.viewffc45-chip:active {
  transform: scale(0.96);
  background: rgba(0, 139, 139, 0.3);
  color: var(--viewffc45-ink);
}

.viewffc45-chip em {
  font-style: normal;
  margin-left: 6px;
  font-size: 11px;
  color: var(--viewffc45-ink-dim);
}

/* --------------------------------------------------------------------------
   6. Page head (single H1) + verdict lead
   -------------------------------------------------------------------------- */
.viewffc45-pagehead {
  padding: 14px 14px 4px;
}

.viewffc45-h1 {
  font-size: 21px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--viewffc45-ink);
  letter-spacing: 0.2px;
  border-left: 4px solid var(--viewffc45-teal-hi);
  padding-left: 10px;
}

.viewffc45-lead {
  margin-top: 10px;
}

.viewffc45-lead p + p {
  margin-top: 8px;
}

/* conclusion-first block used to open modules */
.viewffc45-verdict {
  border-left: 3px solid var(--viewffc45-sand);
  background: rgba(244, 164, 96, 0.07);
  padding: 8px 10px;
}

/* --------------------------------------------------------------------------
   7. Game area: grouped cover cards
   -------------------------------------------------------------------------- */
.viewffc45-gamesection {
  padding: 4px 12px 4px;
}

.viewffc45-group {
  margin-top: 14px;
  background: var(--viewffc45-panel);
  border: 1px solid rgba(105, 105, 105, 0.38);
  border-radius: var(--viewffc45-radius);
  scroll-margin-top: var(--viewffc45-head-h);
}

.viewffc45-grouphead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  padding: 10px 12px 2px;
  border-bottom: 2px solid var(--viewffc45-teal);
}

.viewffc45-gname {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--viewffc45-ink);
}

.viewffc45-group:nth-of-type(odd) .viewffc45-grouphead {
  border-bottom-color: var(--viewffc45-teal);
}

.viewffc45-group:nth-of-type(even) .viewffc45-grouphead {
  border-bottom-color: var(--viewffc45-sand-deep);
}

.viewffc45-gcount {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--viewffc45-ink-dim);
  padding: 1px 7px;
  border: 1px solid var(--viewffc45-line-soft);
}

.viewffc45-glead {
  padding: 7px 12px 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--viewffc45-ink-dim);
}

/* two contextual real sub-page links per group */
.viewffc45-glinks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 8px 12px 0;
}

.viewffc45-glink {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--viewffc45-teal-hi);
  border-bottom: 1px dotted rgba(31, 184, 175, 0.6);
  padding-bottom: 1px;
}

/* game tile grid: 4 columns at 320px, 5 columns from 390px up */
.viewffc45-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 8px;
  padding: 12px 12px 16px;
}

.viewffc45-tile {
  text-align: center;
  color: var(--viewffc45-ink-soft);
  transition: transform 0.12s ease;
}

.viewffc45-tile:active {
  transform: scale(0.94);
}

.viewffc45-tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #232323;
  border: 1px solid rgba(105, 105, 105, 0.45);
  border-radius: var(--viewffc45-radius);
}

.viewffc45-tile span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin-top: 5px;
  font-size: 10.5px;
  line-height: 1.3;
  color: var(--viewffc45-ink-dim);
  min-height: 27px;
}

/* --------------------------------------------------------------------------
   8. Content modules (mobile access, features, steps, CTA)
   -------------------------------------------------------------------------- */
.viewffc45-module {
  margin: 20px 12px 0;
  padding: 0 2px;
}

.viewffc45-modhead {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--viewffc45-ink);
  padding-left: 10px;
  border-left: 4px solid var(--viewffc45-sand);
}

.viewffc45-module p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.75;
}

.viewffc45-module p strong {
  color: var(--viewffc45-ink);
  font-weight: 700;
}

.viewffc45-bullets {
  margin-top: 10px;
}

.viewffc45-bullet {
  position: relative;
  padding: 7px 8px 7px 26px;
  font-size: 13.5px;
  line-height: 1.65;
  border-bottom: 1px solid rgba(105, 105, 105, 0.18);
}

.viewffc45-bullet::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 14px;
  width: 7px;
  height: 7px;
  background: var(--viewffc45-teal-hi);
}

/* mini question/answer rows folded into modules */
.viewffc45-qa {
  margin-top: 10px;
  padding: 9px 10px;
  background: var(--viewffc45-panel-soft);
  border: 1px solid rgba(105, 105, 105, 0.3);
  border-radius: var(--viewffc45-radius);
}

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

.viewffc45-q {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--viewffc45-ink);
}

.viewffc45-q::before {
  content: "?";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 6px;
  font-size: 11px;
  line-height: 16px;
  text-align: center;
  color: #241A0E;
  background: var(--viewffc45-sand);
  border-radius: 2px;
}

.viewffc45-a {
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--viewffc45-ink-soft);
}

/* scannable comparison tiles */
.viewffc45-feats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.viewffc45-feat {
  background: var(--viewffc45-panel-soft);
  border: 1px solid rgba(105, 105, 105, 0.3);
  border-top: 2px solid var(--viewffc45-teal);
  border-radius: var(--viewffc45-radius);
  padding: 9px 10px;
}

.viewffc45-feat-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--viewffc45-sand);
}

.viewffc45-feat-text {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--viewffc45-ink-dim);
}

/* numbered step ladder */
.viewffc45-steps {
  margin-top: 12px;
  counter-reset: viewffc45step;
}

.viewffc45-step {
  position: relative;
  counter-increment: viewffc45step;
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(105, 105, 105, 0.3);
}

.viewffc45-step::before {
  content: counter(viewffc45step);
  flex: 0 0 24px;
  height: 24px;
  font-size: 13px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
  color: var(--viewffc45-ink);
  background: rgba(0, 139, 139, 0.45);
  border-radius: 2px;
}

.viewffc45-step p {
  font-size: 13.5px;
  line-height: 1.65;
}

/* CTA band with compact dual-button group */
.viewffc45-ctaband {
  margin-top: 12px;
  padding: 14px 12px;
  background: linear-gradient(150deg, rgba(0, 139, 139, 0.3), rgba(60, 60, 60, 0.9) 55%);
  border: 1px solid rgba(31, 184, 175, 0.55);
  border-radius: var(--viewffc45-radius);
}

.viewffc45-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.viewffc45-ctanote {
  margin-top: 9px;
  font-size: 12.5px;
  color: var(--viewffc45-ink-dim);
}

/* --------------------------------------------------------------------------
   9. Extended footer: promos > brand > page directory > disclaimer
   -------------------------------------------------------------------------- */
.viewffc45-extfoot {
  margin: 22px 12px 0;
  padding: 14px 12px 12px;
  background: #2F2F2F;
  border: 1px solid rgba(105, 105, 105, 0.35);
  border-radius: var(--viewffc45-radius);
}

.viewffc45-exthead {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--viewffc45-ink);
  margin-bottom: 8px;
  padding-left: 9px;
  border-left: 3px solid var(--viewffc45-teal-hi);
}

.viewffc45-extpromos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.viewffc45-promobtn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 6px 8px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  color: var(--viewffc45-ink);
  background: var(--viewffc45-panel);
  border: 1px solid rgba(244, 164, 96, 0.5);
  border-radius: var(--viewffc45-radius);
  transition: transform 0.12s ease, background 0.15s ease;
}

.viewffc45-promobtn:active {
  transform: translateY(1px) scale(0.98);
  background: rgba(244, 164, 96, 0.18);
}

.viewffc45-extbrand {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(105, 105, 105, 0.3);
  font-size: 13px;
  line-height: 1.7;
  color: var(--viewffc45-ink-soft);
}

.viewffc45-directory {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 12px;
  margin-top: 8px;
}

.viewffc45-dirlink {
  display: block;
  min-height: 34px;
  display: flex;
  align-items: center;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--viewffc45-teal-hi);
  background: rgba(60, 60, 60, 0.55);
  border: 1px solid rgba(105, 105, 105, 0.28);
  border-radius: var(--viewffc45-radius);
  padding: 4px 9px;
}

.viewffc45-dirlink:active {
  background: rgba(0, 139, 139, 0.25);
}

.viewffc45-extdisc {
  margin-top: 14px;
  padding: 10px;
  background: rgba(105, 105, 105, 0.12);
  border-left: 3px solid var(--viewffc45-line);
  font-size: 12px;
  line-height: 1.65;
  color: var(--viewffc45-ink-dim);
}

/* --------------------------------------------------------------------------
   10. Universal footer + floating dock bar
   -------------------------------------------------------------------------- */
.viewffc45-unifoot {
  text-align: center;
  padding: 18px 16px calc(var(--viewffc45-dock-h) + 18px);
  font-size: 11.5px;
  color: var(--viewffc45-ink-dim);
}

.viewffc45-unifoot strong {
  color: var(--viewffc45-ink-soft);
  font-weight: 600;
}

.viewffc45-dock {
  position: fixed;
  bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 16px), 464px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  padding: 6px 4px;
  background: rgba(33, 33, 33, 0.97);
  border: 1px solid rgba(105, 105, 105, 0.5);
  border-radius: var(--viewffc45-radius-lg);
  z-index: 60;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.viewffc45-dockitem {
  min-height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--viewffc45-ink-dim);
  border-radius: var(--viewffc45-radius);
  transition: transform 0.12s ease, background 0.18s ease, color 0.18s ease;
}

.viewffc45-dockitem:active {
  transform: scale(0.93);
}

.viewffc45-dockitem svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: fill 0.18s ease;
}

.viewffc45-dock-label {
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
}

/* active role: filled icon over a teal support block */
.viewffc45-dockitem.is-on {
  color: var(--viewffc45-sand);
  background: rgba(0, 139, 139, 0.28);
}

.viewffc45-dockitem.is-on svg {
  fill: currentColor;
  fill-opacity: 0.9;
  stroke: var(--viewffc45-sand);
}

/* --------------------------------------------------------------------------
   11. Motion preferences + responsive refinements
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .viewffc45-track,
  .viewffc45-dotbar,
  .viewffc45-routes,
  .viewffc45-btn,
  .viewffc45-tile,
  .viewffc45-dockitem {
    transition: none;
  }
}

/* 4 -> 5 tile columns once the canvas has room */
@media (min-width: 390px) {
  .viewffc45-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* comfortable density on 430px and larger phone canvases */
@media (min-width: 430px) {
  body {
    font-size: 15.5px;
  }

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

  .viewffc45-tile span {
    font-size: 11.5px;
  }

  .viewffc45-slide-cap {
    font-size: 15px;
  }

  .viewffc45-gname {
    font-size: 17.5px;
  }
}

/* wide screens keep the same phone canvas, framed */
@media (min-width: 481px) {
  .viewffc45-shell {
    box-shadow: 0 0 0 1px rgba(105, 105, 105, 0.4), 0 18px 50px rgba(0, 0, 0, 0.5);
  }
}
