/* ==========================================================================
   5777 bad apk - compact frame stylesheet (mobile canvas 320-430px)
   Class / variable prefix : framecfce9-
   Palette                : #2C3E50 base, #D4AF37 gold, #D3D3D3 silver text,
                            #FFEF94 / #FFFACD light accents on dark ground
   Visual language        : asymmetric brand header, layered dropdown menu,
                            segmented action bar, horizontal icon-name strips,
                            mixed radii, soft short-distance transitions
   ========================================================================== */

:root {
  --framecfce9-bg: #2c3e50;
  --framecfce9-bg-deep: #1b2735;
  --framecfce9-panel: #34495e;
  --framecfce9-panel-hi: #3d566e;
  --framecfce9-panel-lo: #2f4155;
  --framecfce9-gold: #d4af37;
  --framecfce9-gold-deep: #b3902c;
  --framecfce9-gold-glow: rgba(212, 175, 55, 0.34);
  --framecfce9-yellow: #ffef94;
  --framecfce9-cream: #fffacd;
  --framecfce9-silver: #d3d3d3;
  --framecfce9-bright: #f2f5f7;
  --framecfce9-ink: #232f3d;
  --framecfce9-line: rgba(212, 175, 55, 0.32);
  --framecfce9-line-soft: rgba(211, 211, 211, 0.16);
  --framecfce9-danger: #e8a13c;
  --framecfce9-r-lg: 18px;
  --framecfce9-r-md: 12px;
  --framecfce9-r-sm: 9px;
  --framecfce9-r-pill: 999px;
  --framecfce9-head-h: 100px;
  --framecfce9-nav-h: 62px;
  --framecfce9-gap: 12px;
  --framecfce9-pad-x: 14px;
  --framecfce9-shadow: 0 10px 26px rgba(12, 20, 30, 0.5);
  --framecfce9-font: "Noto Sans Bengali", "Hind Siliguri", "Nirmala UI",
    "Segoe UI", system-ui, -apple-system, "Arial", sans-serif;
}

/* --------------------------------------------------------------------------
   Ground + canvas
   -------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
}

html {
  background: var(--framecfce9-bg-deep);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0 auto;
  max-width: 430px;
  min-height: 100vh;
  background:
    radial-gradient(120% 46% at 50% 0%, rgba(212, 175, 55, 0.08), transparent 60%),
    var(--framecfce9-bg);
  color: var(--framecfce9-silver);
  font-family: var(--framecfce9-font);
  font-size: 15px;
  line-height: 1.65;
  padding-top: calc(var(--framecfce9-head-h) + 12px);
  padding-bottom: calc(var(--framecfce9-nav-h) + 34px + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
}

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

a {
  color: var(--framecfce9-yellow);
  text-decoration: none;
}

a:hover {
  color: var(--framecfce9-cream);
}

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

.framecfce9-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--framecfce9-gold);
  color: var(--framecfce9-ink);
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 0 0 var(--framecfce9-r-sm) 0;
  z-index: 200;
}

.framecfce9-skip:focus {
  left: 0;
}

/* --------------------------------------------------------------------------
   Header - asymmetric brand block + action strip
   -------------------------------------------------------------------------- */
.framecfce9-hd {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 90;
  background: linear-gradient(180deg, #2e4157 0%, #2a3c50 100%);
  border-bottom: 1px solid var(--framecfce9-line);
  box-shadow: 0 6px 18px rgba(10, 17, 26, 0.45);
  padding: 6px var(--framecfce9-pad-x) 6px;
}

.framecfce9-hd-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
}

.framecfce9-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--framecfce9-bright);
  min-width: 0;
  border-radius: var(--framecfce9-r-sm);
  padding: 3px 6px 3px 3px;
  transition: background-color 220ms ease;
}

.framecfce9-brand:hover {
  background: rgba(212, 175, 55, 0.1);
  color: var(--framecfce9-bright);
}

.framecfce9-brand-logo {
  width: 38px;
  height: 38px;
  border-radius: var(--framecfce9-r-sm);
  border: 1.5px solid var(--framecfce9-gold);
  background: #101823;
  padding: 2px;
  object-fit: contain;
  flex: none;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}

.framecfce9-brand-name {
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: 0.2px;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--framecfce9-yellow);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.framecfce9-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--framecfce9-line-soft);
  border-radius: var(--framecfce9-r-pill);
  background: rgba(255, 255, 255, 0.04);
  color: var(--framecfce9-silver);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 220ms ease, color 220ms ease, background-color 220ms ease;
}

.framecfce9-menu-toggle svg {
  width: 18px;
  height: 18px;
}

.framecfce9-menu-toggle:hover,
.framecfce9-menu-toggle[aria-expanded="true"] {
  border-color: var(--framecfce9-gold);
  color: var(--framecfce9-yellow);
  background: rgba(212, 175, 55, 0.1);
}

.framecfce9-hd-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

/* Buttons: solid gold primary + outlined secondary */
.framecfce9-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--framecfce9-r-pill);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.2px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 160ms ease, background-color 220ms ease,
    border-color 220ms ease, color 220ms ease, box-shadow 220ms ease;
}

.framecfce9-btn:active {
  transform: scale(0.97);
}

.framecfce9-btn-solid {
  background: linear-gradient(180deg, #e2c04f 0%, var(--framecfce9-gold) 55%, var(--framecfce9-gold-deep) 100%);
  color: var(--framecfce9-ink);
  box-shadow: 0 4px 14px var(--framecfce9-gold-glow);
}

.framecfce9-btn-solid:hover {
  box-shadow: 0 6px 18px var(--framecfce9-gold-glow);
  color: #1c2633;
}

.framecfce9-btn-ghost {
  background: transparent;
  border-color: var(--framecfce9-gold);
  color: var(--framecfce9-yellow);
}

.framecfce9-btn-ghost:hover {
  background: rgba(212, 175, 55, 0.12);
  color: var(--framecfce9-cream);
}

.framecfce9-hd-actions .framecfce9-btn-solid {
  flex: 1.6;
}

.framecfce9-hd-actions .framecfce9-btn-ghost {
  flex: 1;
}

/* --------------------------------------------------------------------------
   Layered dropdown menu
   -------------------------------------------------------------------------- */
.framecfce9-menu {
  position: fixed;
  top: var(--framecfce9-head-h);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: 100%;
  max-width: 430px;
  max-height: calc(100vh - var(--framecfce9-head-h) - var(--framecfce9-nav-h));
  overflow-y: auto;
  background: linear-gradient(180deg, #2a3c50, #243548);
  border-bottom: 1px solid var(--framecfce9-line);
  box-shadow: var(--framecfce9-shadow);
  z-index: 85;
  padding: 10px var(--framecfce9-pad-x) 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, transform 220ms ease, visibility 220ms;
}

.framecfce9-menu[data-open="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.framecfce9-menu-group + .framecfce9-menu-group {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--framecfce9-line-soft);
}

.framecfce9-menu-cap {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.9px;
  text-transform: none;
  color: var(--framecfce9-gold);
  margin-bottom: 7px;
}

.framecfce9-menu-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.framecfce9-menu-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--framecfce9-line-soft);
  border-radius: var(--framecfce9-r-md);
  color: var(--framecfce9-silver);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease;
}

.framecfce9-menu-link:hover {
  background: rgba(212, 175, 55, 0.14);
  border-color: var(--framecfce9-line);
  color: var(--framecfce9-yellow);
}

.framecfce9-menu-link[aria-current="page"] {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--framecfce9-gold);
  color: var(--framecfce9-yellow);
}

/* --------------------------------------------------------------------------
   Main flow
   -------------------------------------------------------------------------- */
.framecfce9-main {
  padding: 2px var(--framecfce9-pad-x) 8px;
}

.framecfce9-sec,
.framecfce9-mod,
.framecfce9-hero,
.framecfce9-carousel {
  margin: 0 0 16px;
}

/* Hero */
.framecfce9-hero {
  background: linear-gradient(148deg, #35506c 0%, #2e4257 58%, #2a3b4e 100%);
  border: 1px solid var(--framecfce9-line-soft);
  border-left: 4px solid var(--framecfce9-gold);
  border-radius: var(--framecfce9-r-lg) var(--framecfce9-r-sm) var(--framecfce9-r-lg) var(--framecfce9-r-lg);
  padding: 16px 15px 15px;
  position: relative;
  overflow: hidden;
}

.framecfce9-hero::after {
  content: "";
  position: absolute;
  right: -46px;
  top: -46px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.16), transparent 68%);
  pointer-events: none;
}

.framecfce9-kicker {
  margin: 0 0 6px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--framecfce9-gold);
}

.framecfce9-hero-title {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.32;
  font-weight: 800;
  color: var(--framecfce9-bright);
}

.framecfce9-hero-lead {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--framecfce9-silver);
}

.framecfce9-hero-cta {
  display: flex;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.framecfce9-hero-cta .framecfce9-btn-solid,
.framecfce9-hero-cta .framecfce9-btn-ghost {
  flex: 1;
}

/* --------------------------------------------------------------------------
   Carousel
   -------------------------------------------------------------------------- */
.framecfce9-carousel {
  border-radius: var(--framecfce9-r-md);
  overflow: hidden;
  border: 1px solid var(--framecfce9-line-soft);
  background: #101823;
}

.framecfce9-track {
  display: grid;
}

.framecfce9-slide {
  grid-area: 1 / 1;
  position: relative;
  padding: 0;
  border: 0;
  margin: 0;
  background: #101823;
  cursor: pointer;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateX(12px);
  transition: opacity 320ms ease, transform 320ms ease, visibility 320ms;
  font-family: inherit;
  text-align: left;
}

.framecfce9-slide[data-active="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

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

.framecfce9-slide-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 14px 10px;
  background: linear-gradient(180deg, transparent, rgba(16, 24, 35, 0.92));
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.framecfce9-cap-t {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--framecfce9-yellow);
}

.framecfce9-cap-s {
  margin: 0;
  font-size: 12px;
  color: var(--framecfce9-silver);
}

.framecfce9-dots {
  position: absolute;
  right: 10px;
  bottom: 8px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.framecfce9-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid var(--framecfce9-gold);
  background: transparent;
  cursor: pointer;
  transition: background-color 220ms ease, transform 220ms ease;
}

.framecfce9-dot[data-active="true"] {
  background: var(--framecfce9-gold);
  transform: scale(1.12);
}

/* Trust strip */
.framecfce9-trust {
  list-style: none;
  margin: 0 0 16px;
  padding: 10px 6px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  background: var(--framecfce9-panel-lo);
  border: 1px solid var(--framecfce9-line-soft);
  border-radius: var(--framecfce9-r-md);
}

.framecfce9-trust li {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.framecfce9-trust strong {
  font-size: 13.5px;
  color: var(--framecfce9-yellow);
  font-weight: 800;
}

.framecfce9-trust span {
  font-size: 10.5px;
  color: #b9c2c9;
}

/* --------------------------------------------------------------------------
   Category sections + horizontal icon-name strips
   -------------------------------------------------------------------------- */
.framecfce9-cat-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.framecfce9-cat-head h2,
.framecfce9-mod > h2,
.framecfce9-xfoot > h2 {
  position: relative;
  margin: 0 0 4px;
  padding-left: 12px;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 800;
  color: var(--framecfce9-bright);
}

.framecfce9-cat-head h2::before,
.framecfce9-mod > h2::before,
.framecfce9-xfoot > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  bottom: 0.42em;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, #e2c04f, var(--framecfce9-gold-deep));
}

.framecfce9-chip {
  flex: none;
  font-size: 11px;
  font-weight: 800;
  color: var(--framecfce9-yellow);
  border: 1px solid var(--framecfce9-line);
  border-radius: var(--framecfce9-r-pill);
  padding: 2px 10px;
  background: rgba(212, 175, 55, 0.08);
}

.framecfce9-cat-intro,
.framecfce9-mod-lead {
  margin: 2px 0 10px;
  font-size: 13.5px;
  color: #c4cdd4;
}

.framecfce9-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

/* One game = one horizontal icon-name strip, whole strip is the entry */
.framecfce9-gstrip {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 60px;
  padding: 7px 9px;
  background: linear-gradient(180deg, var(--framecfce9-panel-hi), var(--framecfce9-panel));
  border: 1px solid var(--framecfce9-line-soft);
  border-radius: var(--framecfce9-r-md);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: border-color 220ms ease, background-color 220ms ease, transform 160ms ease;
}

.framecfce9-gstrip:hover {
  border-color: var(--framecfce9-gold);
}

.framecfce9-gstrip:active {
  transform: scale(0.975);
}

.framecfce9-gico {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: var(--framecfce9-r-sm);
  object-fit: cover;
  background: #101823;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.framecfce9-gname {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--framecfce9-silver);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-width: 0;
}

.framecfce9-gstrip:hover .framecfce9-gname {
  color: var(--framecfce9-yellow);
}

/* Related pages row under each category grid */
.framecfce9-related {
  margin: 9px 0 0;
  font-size: 12.5px;
  color: #aeb8c0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: baseline;
}

.framecfce9-related a {
  border-bottom: 1px dotted var(--framecfce9-line);
  padding-bottom: 1px;
}

/* --------------------------------------------------------------------------
   Info modules (security / payment / offers / winners / steps)
   -------------------------------------------------------------------------- */
.framecfce9-mod {
  background: var(--framecfce9-panel-lo);
  border: 1px solid var(--framecfce9-line-soft);
  border-radius: var(--framecfce9-r-lg);
  padding: 15px 14px;
}

.framecfce9-qwrap {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 10px 0 0;
}

.framecfce9-q {
  margin: 0;
  padding: 10px 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--framecfce9-line-soft);
  border-radius: var(--framecfce9-r-sm) var(--framecfce9-r-md) var(--framecfce9-r-md) var(--framecfce9-r-sm);
}

.framecfce9-q h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 800;
  color: var(--framecfce9-yellow);
  line-height: 1.45;
}

.framecfce9-q p {
  margin: 0;
  font-size: 13px;
  color: #c4cdd4;
}

.framecfce9-mod-cta {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.framecfce9-mod-cta .framecfce9-btn {
  flex: 1;
  min-height: 44px;
}

/* Winners list */
.framecfce9-wlist {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.framecfce9-wrow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  padding: 8px 11px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--framecfce9-line-soft);
  border-radius: var(--framecfce9-r-sm);
  transition: background-color 480ms ease, border-color 480ms ease;
}

.framecfce9-wrow.framecfce9-wlive {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--framecfce9-line);
}

.framecfce9-wmeta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.framecfce9-wname {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--framecfce9-bright);
}

.framecfce9-wgame {
  font-size: 11.5px;
  color: #aeb8c0;
}

.framecfce9-wamt {
  grid-row: span 2;
  align-self: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--framecfce9-yellow);
  white-space: nowrap;
}

.framecfce9-wtime {
  grid-column: 1 / -1;
  font-size: 10.5px;
  color: #8d99a3;
}

/* Steps */
.framecfce9-steps {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  counter-reset: framecfce9step;
}

.framecfce9-step {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  counter-increment: framecfce9step;
}

.framecfce9-step::before {
  content: counter(framecfce9step);
  flex: none;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #e2c04f, var(--framecfce9-gold-deep));
  color: var(--framecfce9-ink);
  font-size: 13px;
  font-weight: 800;
  margin-top: 2px;
}

.framecfce9-step p {
  margin: 0;
  font-size: 13px;
  color: #c4cdd4;
}

.framecfce9-step b {
  color: var(--framecfce9-yellow);
  font-size: 13.5px;
}

/* --------------------------------------------------------------------------
   Extended footer (homepage only)
   -------------------------------------------------------------------------- */
.framecfce9-xfoot {
  margin: 20px 0 14px;
  padding: 16px 14px;
  background: linear-gradient(180deg, #2e4257, #293b4e);
  border: 1px solid var(--framecfce9-line-soft);
  border-top: 3px solid var(--framecfce9-gold);
  border-radius: var(--framecfce9-r-lg) var(--framecfce9-r-lg) var(--framecfce9-r-sm) var(--framecfce9-r-sm);
}

.framecfce9-xbrand {
  margin: 4px 0 14px;
  font-size: 13px;
  color: #c4cdd4;
}

.framecfce9-xdir {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--framecfce9-line-soft);
}

.framecfce9-xdir h3 {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: var(--framecfce9-gold);
}

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

.framecfce9-xdir a {
  font-size: 12.5px;
  color: var(--framecfce9-silver);
  border-bottom: 1px dotted var(--framecfce9-line);
  padding-bottom: 1px;
  line-height: 1.5;
}

.framecfce9-xdir a:hover {
  color: var(--framecfce9-yellow);
}

.framecfce9-xpromos {
  padding-top: 13px;
}

.framecfce9-xpromos h3 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: var(--framecfce9-gold);
}

.framecfce9-xpromo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.framecfce9-xpromo-grid .framecfce9-btn {
  min-height: 44px;
  font-size: 12.5px;
  padding: 6px 10px;
  line-height: 1.35;
}

.framecfce9-xdisc {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-left: 3px solid var(--framecfce9-danger);
  background: rgba(232, 161, 60, 0.07);
  border-radius: var(--framecfce9-r-sm);
  font-size: 11.5px;
  color: #c9cfd6;
}

/* --------------------------------------------------------------------------
   Universal footer + fixed segmented action bar
   -------------------------------------------------------------------------- */
.framecfce9-footer {
  text-align: center;
  padding: 14px var(--framecfce9-pad-x) 10px;
  font-size: 12px;
  color: #97a3ad;
  border-top: 1px solid var(--framecfce9-line-soft);
}

.framecfce9-footer b {
  color: var(--framecfce9-silver);
}

.framecfce9-bnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 95;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: linear-gradient(180deg, #2e4157, #243548);
  border-top: 1px solid var(--framecfce9-line);
  box-shadow: 0 -6px 18px rgba(10, 17, 26, 0.4);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.framecfce9-bnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: var(--framecfce9-nav-h);
  padding: 7px 2px 6px;
  background: none;
  border: 0;
  border-radius: 0;
  color: #9aa7b1;
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  transition: color 240ms ease;
}

.framecfce9-bnav-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 26%;
  right: 26%;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: transparent;
  transition: background-color 240ms ease;
}

.framecfce9-bnav-item svg {
  width: 22px;
  height: 22px;
}

.framecfce9-bnav-item:hover {
  color: var(--framecfce9-silver);
}

.framecfce9-bnav-item[aria-current="page"] {
  color: var(--framecfce9-gold);
}

.framecfce9-bnav-item[aria-current="page"]::before {
  background: linear-gradient(180deg, #e2c04f, var(--framecfce9-gold-deep));
}

/* --------------------------------------------------------------------------
   Section reveal (gated behind JS flag so no-JS keeps everything visible)
   -------------------------------------------------------------------------- */
html.framecfce9-js .framecfce9-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 320ms ease, transform 320ms ease;
}

html.framecfce9-js .framecfce9-reveal.framecfce9-in {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Breakpoints
   -------------------------------------------------------------------------- */
@media (min-width: 375px) {
  .framecfce9-hero-title {
    font-size: 25px;
  }

  .framecfce9-gname {
    font-size: 13px;
  }

  .framecfce9-grid {
    gap: 9px;
  }
}

/* 430px canvas edge: widen the strip rhythm inside the phone frame */
@media (min-width: 430px) {
  .framecfce9-hero-title {
    font-size: 26px;
  }

  .framecfce9-hero-lead,
  .framecfce9-cat-intro,
  .framecfce9-mod-lead {
    font-size: 14px;
  }

  .framecfce9-gico {
    width: 48px;
    height: 48px;
  }

  .framecfce9-gstrip {
    min-height: 64px;
  }

  .framecfce9-slide-img {
    aspect-ratio: 16 / 7;
  }
}

/* Wide screens: keep the centered 430px phone canvas readable */
@media (min-width: 480px) {
  body {
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.14), 0 24px 60px rgba(8, 14, 22, 0.6);
  }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  html.framecfce9-js .framecfce9-reveal {
    opacity: 1;
    transform: none;
  }
}
