/* ==========================================================================
   ku9-apk.homes - mobile first base styles
   Prefix: mobile430f9-
   Palette anchors: #1C2833 / #36454F / #778899 / #008B8B / #D3D3D3 / #BBBBBB
   Design cues: centered identity core, partition menu, through-bar nav wheel,
                tight square catalog cards, summary-then-comparison rhythm,
                restrained glow micro feedback.
   ========================================================================== */

:root {
  --mobile430f9-bg: #1C2833;
  --mobile430f9-bg-soft: #243341;
  --mobile430f9-panel: #36454F;
  --mobile430f9-panel-2: #2c3a45;
  --mobile430f9-line: rgba(119, 136, 153, 0.22);
  --mobile430f9-text: #D3D3D3;
  --mobile430f9-text-mute: #BBBBBB;
  --mobile430f9-text-dim: #8d9aa6;
  --mobile430f9-accent: #008B8B;
  --mobile430f9-accent-bright: #16a6a6;
  --mobile430f9-steel: #778899;
  --mobile430f9-gold: #d8b46a;
  --mobile430f9-radius-sm: 8px;
  --mobile430f9-radius: 12px;
  --mobile430f9-radius-lg: 18px;
  --mobile430f9-shadow: 0 6px 20px rgba(0, 0, 0, 0.32);
  --mobile430f9-shell-max: 430px;
  --mobile430f9-nav-h: 64px;
}

* { box-sizing: border-box; }

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

html, body {
  margin: 0;
  padding: 0;
  background: #0f1620;
}

body {
  color: var(--mobile430f9-text);
  font-family: "Hind Siliguri", "Noto Sans Bengali", "SolaimanLipi", -apple-system, "Segoe UI", system-ui, Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: var(--mobile430f9-accent-bright); text-decoration: none; }
a:focus-visible { outline: 2px solid var(--mobile430f9-accent-bright); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* Centered phone canvas; on wide screens the body shows a darker backdrop. */
.mobile430f9-shell {
  position: relative;
  max-width: var(--mobile430f9-shell-max);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--mobile430f9-bg);
  padding-bottom: calc(var(--mobile430f9-nav-h) + 18px);
  box-shadow: 0 0 36px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

/* ===================== Top brand / action bar ===================== */
.mobile430f9-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(180deg, #1d2c38 0%, #1C2833 100%);
  border-bottom: 1px solid var(--mobile430f9-line);
}

.mobile430f9-identity {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px 6px;
}

.mobile430f9-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(216, 180, 106, 0.35), 0 4px 10px rgba(0, 0, 0, 0.35);
}

.mobile430f9-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.mobile430f9-brand-name {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.4px;
  color: #f3f6f8;
}
.mobile430f9-brand-tag {
  font-size: 11px;
  color: var(--mobile430f9-text-mute);
  letter-spacing: 0.6px;
}

.mobile430f9-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 44px;
  gap: 8px;
  padding: 6px 12px 10px;
}

.mobile430f9-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--mobile430f9-radius-sm);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.mobile430f9-btn:active { transform: translateY(1px); }

.mobile430f9-btn-primary {
  background: linear-gradient(180deg, var(--mobile430f9-accent-bright), var(--mobile430f9-accent));
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 139, 139, 0.35);
}
.mobile430f9-btn-outline {
  background: transparent;
  color: var(--mobile430f9-text);
  border-color: var(--mobile430f9-steel);
}
.mobile430f9-btn-ghost {
  background: var(--mobile430f9-panel);
  color: var(--mobile430f9-text);
  border-color: var(--mobile430f9-line);
}

.mobile430f9-iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 40px;
  border-radius: var(--mobile430f9-radius-sm);
  background: var(--mobile430f9-panel);
  border: 1px solid var(--mobile430f9-line);
  color: var(--mobile430f9-text);
  cursor: pointer;
}
.mobile430f9-iconbtn svg { width: 20px; height: 20px; }

/* ===================== Slide-in menu panel ===================== */
.mobile430f9-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 18, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
  z-index: 60;
}
.mobile430f9-menu-open .mobile430f9-menu-backdrop {
  opacity: 1;
  visibility: visible;
}

.mobile430f9-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(86vw, 360px);
  background: var(--mobile430f9-bg-soft);
  border-left: 1px solid var(--mobile430f9-line);
  transform: translateX(105%);
  transition: transform 0.26s cubic-bezier(0.22, 0.61, 0.36, 1);
  z-index: 70;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.mobile430f9-menu-open .mobile430f9-menu { transform: translateX(0); }

.mobile430f9-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--mobile430f9-line);
  background: var(--mobile430f9-panel-2);
}
.mobile430f9-menu-head strong { color: #f3f6f8; font-size: 15px; }

.mobile430f9-menu-section {
  padding: 10px 8px 4px;
}
.mobile430f9-menu-section h3 {
  margin: 8px 10px 4px;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--mobile430f9-text-dim);
  font-weight: 600;
}
.mobile430f9-menu-section a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--mobile430f9-text);
  font-size: 14.5px;
  font-weight: 500;
}
.mobile430f9-menu-section a:active { background: var(--mobile430f9-panel); }
.mobile430f9-menu-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--mobile430f9-accent);
  box-shadow: 0 0 8px rgba(0, 139, 139, 0.55);
  flex: 0 0 8px;
}

/* ===================== Hero ===================== */
.mobile430f9-hero {
  position: relative;
  padding: 14px 14px 4px;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(0, 139, 139, 0.25) 0%, transparent 60%),
    linear-gradient(180deg, #20313d 0%, var(--mobile430f9-bg) 100%);
  border-bottom: 1px solid var(--mobile430f9-line);
}
.mobile430f9-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 139, 139, 0.16);
  border: 1px solid rgba(0, 139, 139, 0.45);
  font-size: 11px;
  letter-spacing: 0.8px;
  color: #bdf2ee;
  margin-bottom: 8px;
}
.mobile430f9-hero h1 {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.3;
  color: #f3f6f8;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.mobile430f9-hero p {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--mobile430f9-text-mute);
}
.mobile430f9-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.mobile430f9-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding-top: 8px;
  border-top: 1px dashed var(--mobile430f9-line);
  font-size: 12px;
  color: var(--mobile430f9-text-mute);
}
.mobile430f9-hero-meta b { color: var(--mobile430f9-text); font-weight: 600; }

/* ===================== Carousel ===================== */
.mobile430f9-carousel {
  position: relative;
  margin: 14px 0 4px;
  padding: 0 14px;
}
.mobile430f9-carousel-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.mobile430f9-carousel-track::-webkit-scrollbar { display: none; }
.mobile430f9-slide {
  position: relative;
  flex: 0 0 88%;
  scroll-snap-align: center;
  border-radius: var(--mobile430f9-radius-lg);
  overflow: hidden;
  border: 1px solid var(--mobile430f9-line);
  background: var(--mobile430f9-panel);
  box-shadow: var(--mobile430f9-shadow);
}
.mobile430f9-slide img {
  width: 100%;
  height: 158px;
  object-fit: cover;
  display: block;
}
.mobile430f9-slide-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 40, 51, 0) 35%, rgba(15, 22, 32, 0.85) 100%);
}
.mobile430f9-slide-body {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}
.mobile430f9-slide-body h3 {
  margin: 0;
  font-size: 15px;
  color: #f3f6f8;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.mobile430f9-slide-body span { font-size: 11.5px; color: var(--mobile430f9-text-mute); }
.mobile430f9-slide-btn {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--mobile430f9-accent);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}
.mobile430f9-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 8px 0 2px;
}
.mobile430f9-carousel-dots button {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(119, 136, 153, 0.4);
  border: none; padding: 0; cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease;
}
.mobile430f9-carousel-dots button.mobile430f9-dot-active {
  background: var(--mobile430f9-accent-bright);
  width: 18px; border-radius: 999px;
}

/* ===================== Section heading ===================== */
.mobile430f9-section {
  padding: 18px 14px 6px;
}
.mobile430f9-section + .mobile430f9-section { padding-top: 6px; }

.mobile430f9-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.mobile430f9-section-head h2 {
  margin: 0;
  font-size: 17px;
  color: #f3f6f8;
  font-weight: 700;
  letter-spacing: 0.2px;
  position: relative;
  padding-left: 12px;
}
.mobile430f9-section-head h2::before {
  content: "";
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--mobile430f9-accent-bright), var(--mobile430f9-accent));
}
.mobile430f9-section-head a {
  font-size: 12.5px;
  color: var(--mobile430f9-text-mute);
}
.mobile430f9-section-intro {
  margin: -4px 0 12px;
  font-size: 13px;
  color: var(--mobile430f9-text-mute);
  line-height: 1.6;
}

/* ===================== Game grid (tight square catalog) ===================== */
.mobile430f9-gamegrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.mobile430f9-gamecard {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--mobile430f9-panel);
  border: 1px solid var(--mobile430f9-line);
  border-radius: var(--mobile430f9-radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  text-align: center;
}
.mobile430f9-gamecard:active { transform: scale(0.97); }
.mobile430f9-gamecard-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #2b3947;
}
.mobile430f9-gamecard-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.mobile430f9-gamecard-tag {
  position: absolute;
  top: 4px; left: 4px;
  font-size: 9.5px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #ffd9a3;
  letter-spacing: 0.4px;
}
.mobile430f9-gamecard-name {
  padding: 5px 4px 6px;
  font-size: 11px;
  line-height: 1.25;
  color: var(--mobile430f9-text);
  font-weight: 500;
  min-height: 28px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mobile430f9-gamegrid--wide { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.mobile430f9-gamegrid--wide .mobile430f9-gamecard-name { font-size: 10.5px; }

/* ===================== Info / content modules ===================== */
.mobile430f9-card {
  background: var(--mobile430f9-panel);
  border: 1px solid var(--mobile430f9-line);
  border-radius: var(--mobile430f9-radius);
  padding: 14px;
  margin-bottom: 12px;
}
.mobile430f9-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
  color: #f3f6f8;
  font-weight: 700;
}
.mobile430f9-card p {
  margin: 0 0 8px;
  font-size: 13.5px;
  color: var(--mobile430f9-text);
  line-height: 1.7;
}
.mobile430f9-card p:last-child { margin-bottom: 0; }
.mobile430f9-card a { font-weight: 600; }

.mobile430f9-list {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}
.mobile430f9-list li {
  position: relative;
  padding: 8px 10px 8px 26px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--mobile430f9-text);
  line-height: 1.6;
}
.mobile430f9-list li::before {
  content: "";
  position: absolute;
  left: 10px; top: 14px;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--mobile430f9-accent);
  transform: rotate(45deg);
}
.mobile430f9-list li + li { margin-top: 2px; }

/* Achievement strip */
.mobile430f9-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.mobile430f9-stat {
  background: var(--mobile430f9-panel-2);
  border: 1px solid var(--mobile430f9-line);
  border-radius: 10px;
  padding: 10px 6px;
  text-align: center;
}
.mobile430f9-stat b {
  display: block;
  font-size: 18px;
  color: var(--mobile430f9-accent-bright);
  font-weight: 700;
}
.mobile430f9-stat span { font-size: 11px; color: var(--mobile430f9-text-mute); }

/* Comparison table */
.mobile430f9-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 12.5px;
}
.mobile430f9-table th, .mobile430f9-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--mobile430f9-line);
  vertical-align: top;
}
.mobile430f9-table th {
  background: var(--mobile430f9-panel-2);
  color: #f3f6f8;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.4px;
}
.mobile430f9-table td { color: var(--mobile430f9-text); }
.mobile430f9-table tr:last-child td { border-bottom: none; }

/* Inline pill link list */
.mobile430f9-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.mobile430f9-pills a {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--mobile430f9-panel-2);
  border: 1px solid var(--mobile430f9-line);
  font-size: 12px;
  color: var(--mobile430f9-text);
}

/* CTA strip */
.mobile430f9-ctastrip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

/* ===================== Extended footer ===================== */
.mobile430f9-extfooter {
  margin-top: 18px;
  padding: 18px 14px 6px;
  background: var(--mobile430f9-bg-soft);
  border-top: 1px solid var(--mobile430f9-line);
}
.mobile430f9-extfooter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 10px;
}
.mobile430f9-extfooter-block h4 {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--mobile430f9-text-dim);
  font-weight: 600;
}
.mobile430f9-extfooter-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mobile430f9-extfooter-block li { margin-bottom: 4px; }
.mobile430f9-extfooter-block a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--mobile430f9-text);
  padding: 3px 0;
}
.mobile430f9-extfooter-block a:hover { color: var(--mobile430f9-accent-bright); }
.mobile430f9-extfooter-block .mobile430f9-extpromo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 9px;
  background: var(--mobile430f9-panel);
  border: 1px solid var(--mobile430f9-line);
  font-size: 13px;
  font-weight: 500;
  color: var(--mobile430f9-text);
  cursor: pointer;
  width: 100%;
}
.mobile430f9-extfooter-brand {
  grid-column: 1 / -1;
  padding: 12px;
  border-radius: var(--mobile430f9-radius);
  background: var(--mobile430f9-panel);
  border: 1px solid var(--mobile430f9-line);
}
.mobile430f9-extfooter-brand p {
  margin: 0;
  font-size: 13px;
  color: var(--mobile430f9-text-mute);
  line-height: 1.7;
}
.mobile430f9-extfooter-brand b { color: #f3f6f8; }

.mobile430f9-extfooter-disclaimer {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding: 10px 12px;
  border-left: 3px solid var(--mobile430f9-steel);
  background: rgba(119, 136, 153, 0.08);
  border-radius: 6px;
  font-size: 12px;
  color: var(--mobile430f9-text-mute);
  line-height: 1.65;
}

/* ===================== Common footer ===================== */
.mobile430f9-footer {
  padding: 16px 14px 22px;
  text-align: center;
  font-size: 12px;
  color: var(--mobile430f9-text-dim);
  line-height: 1.7;
  border-top: 1px solid var(--mobile430f9-line);
  background: var(--mobile430f9-bg);
}
.mobile430f9-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 12px;
  margin-bottom: 8px;
}
.mobile430f9-footer-links a {
  color: var(--mobile430f9-text-mute);
  font-size: 12px;
}

/* ===================== Bottom nav (through-bar wheel) ===================== */
.mobile430f9-bottomnav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 10px;
  z-index: 50;
  width: calc(100% - 20px);
  max-width: calc(var(--mobile430f9-shell-max) - 20px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(28, 40, 51, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--mobile430f9-line);
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  padding: 6px 4px;
}
.mobile430f9-bottomnav a,
.mobile430f9-bottomnav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 2px 4px;
  border-radius: 12px;
  background: transparent;
  border: none;
  color: var(--mobile430f9-text-mute);
  font-size: 10.5px;
  cursor: pointer;
  position: relative;
  min-height: 48px;
}
.mobile430f9-bottomnav svg { width: 22px; height: 22px; }
.mobile430f9-bottomnav .mobile430f9-active {
  color: #f3f6f8;
}
.mobile430f9-bottomnav .mobile430f9-active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mobile430f9-accent-bright), var(--mobile430f9-accent));
  box-shadow: 0 0 10px rgba(0, 199, 199, 0.7);
}
.mobile430f9-bottomnav-promo {
  background: linear-gradient(180deg, var(--mobile430f9-accent-bright), var(--mobile430f9-accent));
  color: #fff;
  border-radius: 14px;
  font-weight: 700;
  margin-top: -8px;
  box-shadow: 0 6px 14px rgba(0, 139, 139, 0.45);
}

/* ===================== Back to top ===================== */
.mobile430f9-totop {
  position: fixed;
  right: 14px;
  bottom: calc(var(--mobile430f9-nav-h) + 18px);
  z-index: 45;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--mobile430f9-panel);
  border: 1px solid var(--mobile430f9-line);
  color: var(--mobile430f9-text);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--mobile430f9-shadow);
}
.mobile430f9-totop.mobile430f9-visible { display: inline-flex; }

/* ===================== Visually-hidden helper ===================== */
.mobile430f9-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===================== Responsive breakpoints ===================== */
/* Slightly roomier layout when the phone canvas approaches 430px wide. */
@media (min-width: 380px) {
  body { font-size: 15.5px; }
  .mobile430f9-hero h1 { font-size: 24px; }
  .mobile430f9-section-head h2 { font-size: 18px; }
}

/* At the 430px reference width and beyond, keep 5 columns for grids that opt in. */
@media (min-width: 430px) {
  .mobile430f9-gamegrid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .mobile430f9-slide { flex-basis: 78%; }
  .mobile430f9-shell { box-shadow: 0 0 60px rgba(0, 0, 0, 0.55); }
}

/* Beyond phone canvas: center the device-like shell, dim the surroundings. */
@media (min-width: 480px) {
  body { background: #0a121b; }
}

/* Reduced motion preference. */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
