/* ============================================================
   ba999b base frame stylesheet (afa18048)
   All classes and variables use the viewfa180- prefix.
   Palette: #0C0C0C bg / #FFF8DC ink / #ADB5BD body / #FFE135 accent
   Direction: angular headings + neutral body, small-medium radii,
   grouped cover cards, short-list rhythm, slide-in menu + card lift,
   square high-contrast CTAs.
   ============================================================ */

:root {
  --viewfa180-bg: #0C0C0C;
  --viewfa180-panel: #0C0C0C;
  --viewfa180-panel-2: #0C0C0C;
  --viewfa180-ink: #FFF8DC;
  --viewfa180-body: #ADB5BD;
  --viewfa180-accent: #FFE135;
  --viewfa180-accent-soft: #FFFACD;
  --viewfa180-line: rgba(173, 181, 189, 0.24);
  --viewfa180-line-soft: rgba(173, 181, 189, 0.13);
  --viewfa180-head-font: "Trebuchet MS", "Segoe UI", "Noto Sans Bengali", Tahoma, sans-serif;
  --viewfa180-body-font: system-ui, -apple-system, "Segoe UI", "Noto Sans Bengali", Roboto, sans-serif;
  --viewfa180-radius: 9px;
  --viewfa180-radius-s: 3px;
  --viewfa180-topbar-h: 106px;
  --viewfa180-bottomnav-h: 66px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: #050505;
  color: var(--viewfa180-body);
  font-family: var(--viewfa180-body-font);
  font-size: 15px;
  line-height: 1.75;
  overflow-x: hidden;
}

.viewfa180-shell {
  position: relative;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--viewfa180-bg);
  box-shadow: 0 0 42px rgba(0, 0, 0, 0.85);
  overflow-x: clip;
}

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

a { color: var(--viewfa180-accent); text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--viewfa180-accent);
  outline-offset: 2px;
}

h1, h2, h3 {
  font-family: var(--viewfa180-head-font);
  color: var(--viewfa180-ink);
  line-height: 1.35;
  margin: 0 0 10px;
}
h1 { font-size: 22px; letter-spacing: 0.2px; }
h2 { font-size: 18.5px; }
h3 { font-size: 15.5px; color: var(--viewfa180-accent-soft); }
p { margin: 0 0 12px; }

/* ---------------- top bar: brand layer + action layer ---------------- */

.viewfa180-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 60;
  background: linear-gradient(180deg, #101010 0%, rgba(12, 12, 12, 0.97) 100%);
  border-bottom: 1px solid var(--viewfa180-line);
}

.viewfa180-brandrow {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 7px 12px 5px;
}

.viewfa180-logo {
  width: 38px;
  height: 38px;
  border-radius: var(--viewfa180-radius-s);
  border: 1px solid var(--viewfa180-line);
  object-fit: cover;
  flex: 0 0 auto;
  background: #000;
}

.viewfa180-brandname {
  font-family: var(--viewfa180-head-font);
  font-size: 21px;
  font-weight: 700;
  color: var(--viewfa180-ink);
  letter-spacing: 1.2px;
}
.viewfa180-brandname em {
  font-style: normal;
  color: var(--viewfa180-accent);
}

.viewfa180-actionrow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 8px;
}

.viewfa180-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  font-family: var(--viewfa180-head-font);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  border-radius: var(--viewfa180-radius-s);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.15s ease;
}
.viewfa180-btn:active { transform: translateY(1px); }

.viewfa180-btn-register {
  flex: 1;
  background: var(--viewfa180-accent);
  color: #0C0C0C;
}
.viewfa180-btn-register:hover { background: var(--viewfa180-accent-soft); }

.viewfa180-btn-login {
  flex: 1;
  background: transparent;
  color: var(--viewfa180-ink);
  border-color: var(--viewfa180-line);
}
.viewfa180-btn-login:hover { border-color: var(--viewfa180-accent); color: var(--viewfa180-accent); }

.viewfa180-menubtn {
  flex: 0 0 46px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--viewfa180-panel-2);
  border: 1px solid var(--viewfa180-line);
  border-radius: var(--viewfa180-radius-s);
  color: var(--viewfa180-ink);
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.viewfa180-menubtn:hover { border-color: var(--viewfa180-accent); color: var(--viewfa180-accent); }
.viewfa180-menubtn svg { width: 20px; height: 20px; }

/* ---------------- stacked slide-in menu overlay ---------------- */

.viewfa180-menu {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  max-width: 430px;
  width: 100%;
  background: rgba(10, 10, 10, 0.985);
  border-right: 1px solid var(--viewfa180-line);
  z-index: 90;
  transform: translateX(-104%);
  transition: transform 0.32s cubic-bezier(0.22, 0.75, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 14px 16px 26px;
}
.viewfa180-menu-on { transform: translateX(0); }

.viewfa180-menuhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--viewfa180-line-soft);
  margin-bottom: 12px;
}
.viewfa180-menuhead span {
  font-family: var(--viewfa180-head-font);
  font-size: 16px;
  font-weight: 700;
  color: var(--viewfa180-ink);
  letter-spacing: 0.6px;
}

.viewfa180-menuclose {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--viewfa180-line);
  border-radius: var(--viewfa180-radius-s);
  color: var(--viewfa180-ink);
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.viewfa180-menuclose:hover { color: var(--viewfa180-accent); border-color: var(--viewfa180-accent); }
.viewfa180-menuclose svg { width: 18px; height: 18px; }

.viewfa180-menulink {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 12px;
  margin-bottom: 7px;
  font-size: 15px;
  color: var(--viewfa180-ink);
  background: var(--viewfa180-panel);
  border: 1px solid var(--viewfa180-line-soft);
  border-left: 3px solid var(--viewfa180-line);
  border-radius: var(--viewfa180-radius-s);
  transition: background-color 0.25s ease, border-left-color 0.25s ease, color 0.25s ease;
}
.viewfa180-menulink:hover,
.viewfa180-menulink[data-current="1"] {
  background: var(--viewfa180-panel-2);
  border-left-color: var(--viewfa180-accent);
  color: var(--viewfa180-accent);
}
.viewfa180-menulink small {
  margin-left: auto;
  font-size: 10.5px;
  color: var(--viewfa180-body);
  letter-spacing: 0.4px;
}

.viewfa180-menupromo {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--viewfa180-line);
  display: grid;
  gap: 8px;
}

/* ---------------- main canvas ---------------- */

.viewfa180-main {
  padding: calc(var(--viewfa180-topbar-h) + 12px) 12px calc(var(--viewfa180-bottomnav-h) + 26px);
}

.viewfa180-heropanel {
  background: linear-gradient(160deg, #191913 0%, #0C0C0C 78%);
  border: 1px solid var(--viewfa180-line-soft);
  border-top: 3px solid var(--viewfa180-accent);
  border-radius: var(--viewfa180-radius);
  padding: 16px 14px 14px;
  margin-bottom: 14px;
}

.viewfa180-heropanel p { font-size: 14.5px; }

.viewfa180-ctarow {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}
.viewfa180-ctarow .viewfa180-btn { flex: 1; }

.viewfa180-herostrip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 0 0 16px;
}
.viewfa180-herostrip div {
  background: var(--viewfa180-panel);
  border: 1px solid var(--viewfa180-line-soft);
  border-radius: var(--viewfa180-radius);
  padding: 8px 6px;
  text-align: center;
}
.viewfa180-herostrip b {
  display: block;
  font-family: var(--viewfa180-head-font);
  font-size: 16px;
  color: var(--viewfa180-accent);
}
.viewfa180-herostrip span { font-size: 11px; line-height: 1.4; display: block; }

/* ---------------- carousel ---------------- */

.viewfa180-carousel {
  position: relative;
  margin-bottom: 16px;
  border-radius: var(--viewfa180-radius);
  overflow: hidden;
  border: 1px solid var(--viewfa180-line-soft);
  background: var(--viewfa180-panel);
}

.viewfa180-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.viewfa180-track::-webkit-scrollbar { display: none; }

.viewfa180-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  position: relative;
}
.viewfa180-slide a {
  display: block;
  min-height: 44px;
}
.viewfa180-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.viewfa180-dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 7px;
}
.viewfa180-dot {
  width: 22px;
  height: 8px;
  min-height: 8px;
  padding: 0;
  border: none;
  background: rgba(255, 248, 220, 0.35);
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.viewfa180-dot-on { background: var(--viewfa180-accent); }

/* ---------------- grouped game cover cards ---------------- */

.viewfa180-gamegroup {
  margin-bottom: 18px;
  background: var(--viewfa180-panel);
  border: 1px solid var(--viewfa180-line-soft);
  border-radius: var(--viewfa180-radius);
  overflow: hidden;
}

.viewfa180-grouphead {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  background: linear-gradient(90deg, #20201a 0%, #151513 100%);
  border-bottom: 1px solid var(--viewfa180-line-soft);
}
.viewfa180-grouphead .viewfa180-tick {
  flex: 0 0 8px;
  width: 8px;
  height: 22px;
  background: var(--viewfa180-accent);
  border-radius: 2px;
}
.viewfa180-grouphead h2 {
  font-size: 16.5px;
  margin: 0;
}
.viewfa180-groupnote {
  margin-left: auto;
  font-size: 10.5px;
  color: var(--viewfa180-body);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.viewfa180-groupintro {
  padding: 11px 12px 4px;
  font-size: 13.5px;
  line-height: 1.7;
  margin: 0;
}
.viewfa180-groupintro a { border-bottom: 1px dotted var(--viewfa180-accent); }

.viewfa180-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 11px 12px 13px;
}
@media (min-width: 392px) {
  .viewfa180-grid { grid-template-columns: repeat(5, 1fr); gap: 9px; }
}

.viewfa180-game {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  background: var(--viewfa180-panel-2);
  border: 1px solid var(--viewfa180-line-soft);
  border-radius: var(--viewfa180-radius-s);
  padding: 6px 4px 7px;
  color: var(--viewfa180-ink);
  text-align: center;
  transition: transform 0.18s ease, border-color 0.25s ease;
}
.viewfa180-game:hover,
.viewfa180-game:active {
  transform: translateY(-3px);
  border-color: var(--viewfa180-accent);
}
.viewfa180-game img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 2px;
  background: #000;
}
.viewfa180-game span {
  font-size: 10.5px;
  line-height: 1.35;
  color: var(--viewfa180-body);
  overflow-wrap: anywhere;
}

/* ---------------- content sections ---------------- */

.viewfa180-section {
  margin-bottom: 18px;
  background: var(--viewfa180-panel);
  border: 1px solid var(--viewfa180-line-soft);
  border-radius: var(--viewfa180-radius);
  padding: 14px 13px;
}
.viewfa180-section > h2 {
  padding-left: 10px;
  border-left: 4px solid var(--viewfa180-accent);
}

.viewfa180-section p { font-size: 14px; }

.viewfa180-qa {
  border: 1px solid var(--viewfa180-line-soft);
  border-left: 3px solid var(--viewfa180-accent);
  border-radius: var(--viewfa180-radius-s);
  background: var(--viewfa180-panel-2);
  padding: 10px 11px;
  margin: 0 0 10px;
}
.viewfa180-qa b {
  display: block;
  font-family: var(--viewfa180-head-font);
  color: var(--viewfa180-ink);
  font-size: 14px;
  margin-bottom: 4px;
}
.viewfa180-qa p { margin: 0; font-size: 13.5px; }

.viewfa180-list {
  margin: 0 0 10px;
  padding: 0 0 0 20px;
}
.viewfa180-list li { margin-bottom: 8px; font-size: 14px; }
.viewfa180-list li b { color: var(--viewfa180-ink); }

.viewfa180-upd {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.3px;
  color: #0C0C0C;
  background: var(--viewfa180-accent-soft);
  border-radius: 2px;
  padding: 1px 7px;
  margin-left: 6px;
  vertical-align: 1px;
}

.viewfa180-en {
  font-size: 13.5px;
}
.viewfa180-en .viewfa180-qa b { font-size: 13.5px; }
.viewfa180-en .viewfa180-qa p { font-size: 13px; }

/* ---------------- extended site footer ---------------- */

.viewfa180-extfoot {
  margin: 20px 0 14px;
  border: 1px dashed var(--viewfa180-line);
  border-radius: var(--viewfa180-radius);
  padding: 14px 12px;
  background: #101008;
}

.viewfa180-extfoot h2 {
  font-size: 16px;
  margin-bottom: 10px;
  color: var(--viewfa180-accent);
}

.viewfa180-promogrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.viewfa180-promogrid .viewfa180-btn { width: 100%; }
.viewfa180-promogrid .viewfa180-btn-wide { grid-column: 1 / -1; }

.viewfa180-brandnote {
  font-size: 13px;
  color: var(--viewfa180-body);
  border-top: 1px solid var(--viewfa180-line-soft);
  border-bottom: 1px solid var(--viewfa180-line-soft);
  padding: 10px 0;
  margin-bottom: 12px;
}

.viewfa180-dir {
  display: grid;
  gap: 7px;
}
.viewfa180-dir a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
  font-size: 13px;
  color: var(--viewfa180-ink);
  background: var(--viewfa180-panel);
  border: 1px solid var(--viewfa180-line-soft);
  border-radius: var(--viewfa180-radius-s);
  padding: 8px 10px;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.viewfa180-dir a:hover { color: var(--viewfa180-accent); border-color: var(--viewfa180-accent); }
.viewfa180-dir a small { color: var(--viewfa180-body); font-size: 10.5px; }

.viewfa180-closingline {
  margin: 12px 0 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--viewfa180-body);
  letter-spacing: 0.3px;
}

/* ---------------- generic footer + bottom nav ---------------- */

.viewfa180-foot {
  text-align: center;
  padding: 4px 14px 12px;
  font-size: 12px;
  color: var(--viewfa180-body);
  border-top: 1px solid var(--viewfa180-line-soft);
}

.viewfa180-bottomnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 70;
  display: flex;
  background: #101010;
  border-top: 1px solid var(--viewfa180-line);
  padding: 5px 2px calc(5px + env(safe-area-inset-bottom, 0px));
}

.viewfa180-bnitem {
  flex: 1;
  min-height: 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: none;
  background: transparent;
  color: var(--viewfa180-body);
  font-family: var(--viewfa180-body-font);
  font-size: 10.5px;
  cursor: pointer;
  padding: 3px 1px;
  transition: color 0.25s ease;
}
.viewfa180-bnitem:hover { color: var(--viewfa180-accent-soft); }

.viewfa180-bntile {
  width: 34px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--viewfa180-radius-s);
  border: 1px solid var(--viewfa180-line-soft);
  background: var(--viewfa180-panel-2);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.viewfa180-bntile svg { width: 17px; height: 17px; }

.viewfa180-bnitem-on { color: #0C0C0C; }
.viewfa180-bnitem-on .viewfa180-bntile {
  background: var(--viewfa180-accent);
  border-color: var(--viewfa180-accent);
  color: #0C0C0C;
}

/* small screens fine-tuning */
@media (max-width: 339px) {
  .viewfa180-grid { grid-template-columns: repeat(4, 1fr); }
  .viewfa180-herostrip span { font-size: 10px; }
}

/* Compatible accessibility and help-page additions. */
html { scroll-padding-top: calc(var(--viewfa180-topbar-h) + 16px); scroll-padding-bottom: calc(var(--viewfa180-bottomnav-h) + 16px); }
body { background: #0C0C0C; }
button { font: inherit; }
.viewfa180-menu { visibility: hidden; }
.viewfa180-menu-on { visibility: visible; }
.viewfa180-menulink[data-current="1"] { background: #FFE135; color: #0C0C0C; }
.viewfa180-menulink[data-current="1"] small { color: #0C0C0C; }
.viewfa180-main { padding-bottom: 22px; }
.viewfa180-foot { padding-bottom: calc(var(--viewfa180-bottomnav-h) + 28px); }
.viewfa180-bnitem-on { background: #FFE135; color: #0C0C0C; }
.viewfa180-bnitem-on .viewfa180-bntile { border-color: #0C0C0C; }
.viewfa180-dot { min-width: 44px; min-height: 44px; background: transparent; border-bottom: 4px solid #ADB5BD; color: #FFF8DC; font-size: 13px; }
.viewfa180-dot-on { border-color: #FFE135; color: #FFE135; background: transparent; }
.viewfa180-dots { position: static; padding: 0 8px 6px; gap: 7px; align-items: center; }
.viewfa180-pause { min-height: 44px; min-width: 78px; border: 1px solid var(--viewfa180-line); background: #0C0C0C; color: #FFF8DC; cursor: pointer; }
.viewfa180-slide button { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.viewfa180-slide img { aspect-ratio: 1915 / 450; object-fit: contain; }
.viewfa180-game { min-width: 0; width: 100%; cursor: pointer; font: inherit; }
.viewfa180-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.viewfa180-game span { color: #FFF8DC; }
.viewfa180-grouphead { flex-wrap: wrap; }
.viewfa180-grouphead h2 { flex: 1; min-width: 0; }
.viewfa180-section a, .viewfa180-heropanel p a, .viewfa180-ledger a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; }
.viewfa180-dir a { min-height: 44px; align-items: center; }
.viewfa180-section, .viewfa180-heropanel, .viewfa180-ledger { overflow-wrap: anywhere; }
.viewfa180-route { display: flex; gap: 8px; align-items: center; font-size: 12px; margin-bottom: 10px; }
.viewfa180-route a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
.viewfa180-ledger { margin: 0 0 24px; padding: 4px 4px 14px 14px; border-left: 2px solid #FFE135; }
.viewfa180-ledger h2 { margin-top: 12px; }
.viewfa180-ledger p, .viewfa180-ledger li { font-size: 14px; }
.viewfa180-steps { padding-left: 24px; margin: 12px 0; }
.viewfa180-steps li { padding: 5px 0 9px 5px; }
.viewfa180-steps li::marker { color: #FFE135; font-weight: 700; }
.viewfa180-notice { border-top: 1px solid #ADB5BD; border-bottom: 1px solid #ADB5BD; padding: 12px 0; margin: 12px 0; font-size: 13px; }
.viewfa180-checks { margin: 12px 0; }
.viewfa180-checks dt { color: #FFFACD; font-weight: 700; border-top: 1px solid var(--viewfa180-line); padding-top: 12px; }
.viewfa180-checks dd { margin: 4px 0 14px; font-size: 14px; }
.viewfa180-reviewhead { padding-bottom: 14px; border-bottom: 3px solid #FFE135; margin-bottom: 20px; }
.viewfa180-reviewbody { padding: 0 4px; }
.viewfa180-reviewbody section { margin: 24px 0; }
.viewfa180-reviewbody section > h2 { border-bottom: 1px solid var(--viewfa180-line); padding-bottom: 10px; }
.viewfa180-reviewbody p, .viewfa180-reviewbody li { font-size: 14px; }
.viewfa180-reviewbody a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; }
.viewfa180-reviewbody blockquote { margin: 12px 0; padding: 12px; background: #FFF8DC; color: #0C0C0C; border-left: 5px solid #FFE135; }
.viewfa180-qa h3 { margin-bottom: 6px; }
@media (min-width: 392px) { .viewfa180-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
/* soft motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
