/* ============================================================
   db222.sbs - adaptive-34227f-chrome.css
   Mobile-first (320-430px canvas) styles for db222 basefiles.
   Palette: #FFB6C1 / #FAFAFA / #333333 / #36454F
   Design: high-contrast display + readable body, near-square
   tool feel, pure image game cards, short-list rhythm,
   light press motion, staggered CTA buttons.
   All classes use the shell4227f- prefix.
   ============================================================ */

:root {
  --shell4227f-blush: #FFB6C1;
  --shell4227f-paper: #FAFAFA;
  --shell4227f-ink: #333333;
  --shell4227f-slate: #36454F;
  --shell4227f-slate-deep: #2c3841;
  --shell4227f-slate-soft: #3f505c;
  --shell4227f-line: rgba(250, 250, 250, 0.14);
  --shell4227f-soft: rgba(255, 182, 193, 0.16);
  --shell4227f-radius: 3px;
  --shell4227f-gap: 10px;
  --shell4227f-topbar-h: 56px;
  --shell4227f-tabbar-h: 60px;
  --shell4227f-font-display: "Anek Bangla", "Hind Siliguri", "Noto Sans Bengali", system-ui, sans-serif;
  --shell4227f-font-body: "Hind Siliguri", "Noto Sans Bengali", system-ui, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--shell4227f-ink);
  color: var(--shell4227f-paper);
  font-family: var(--shell4227f-font-body);
  font-size: 15px;
  line-height: 1.65;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

/* Centered phone canvas; wide screens keep the mobile frame */
.shell4227f-page {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  background: var(--shell4227f-slate);
  position: relative;
  box-shadow: 0 0 44px rgba(0, 0, 0, 0.45);
  /* room for the fixed top bar and the fixed bottom icon rack */
  padding: var(--shell4227f-topbar-h) 0 calc(var(--shell4227f-tabbar-h) + 26px);
}

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

a { color: var(--shell4227f-blush); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--shell4227f-blush);
  outline-offset: 2px;
}

.shell4227f-sr {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

button { font-family: inherit; }

/* ------------------------------------------------------------
   Top bar: minimal title + action band
   ------------------------------------------------------------ */
.shell4227f-topbar {
  position: fixed;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--shell4227f-topbar-h);
  background: var(--shell4227f-slate-deep);
  border-bottom: 1px solid var(--shell4227f-line);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  z-index: 60;
}

.shell4227f-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.shell4227f-brand img {
  width: 34px; height: 34px;
  border-radius: var(--shell4227f-radius);
  border: 1px solid var(--shell4227f-line);
  flex: 0 0 auto;
}

.shell4227f-brand-name {
  font-family: var(--shell4227f-font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.04em;
  color: var(--shell4227f-paper);
  white-space: nowrap;
}

.shell4227f-brand-name b { color: var(--shell4227f-blush); font-weight: 800; }

.shell4227f-topact {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

/* Staggered primary/secondary buttons */
.shell4227f-btn {
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--shell4227f-radius);
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.shell4227f-btn:active { transform: translateY(1px); }

.shell4227f-btn-main {
  background: var(--shell4227f-blush);
  color: var(--shell4227f-ink);
}

.shell4227f-btn-main:hover { background: #ffc4cd; }

.shell4227f-btn-ghost {
  background: transparent;
  color: var(--shell4227f-paper);
  border-color: var(--shell4227f-blush);
}

.shell4227f-btn-ghost:hover { background: var(--shell4227f-soft); }

.shell4227f-menu-btn {
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--shell4227f-line);
  border-radius: var(--shell4227f-radius);
  color: var(--shell4227f-paper);
  cursor: pointer;
}

.shell4227f-menu-btn svg { width: 20px; height: 20px; }

/* Compact route panel under the top bar */
.shell4227f-menu {
  position: fixed;
  top: var(--shell4227f-topbar-h);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: 100%;
  max-width: 430px;
  background: var(--shell4227f-slate-deep);
  border-bottom: 1px solid var(--shell4227f-line);
  padding: 8px 10px 14px;
  z-index: 55;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}

.shell4227f-menu.shell4227f-open {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.shell4227f-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.shell4227f-menu a {
  display: block;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--shell4227f-line);
  border-radius: var(--shell4227f-radius);
  color: var(--shell4227f-paper);
  font-size: 13px;
  font-weight: 600;
  background: rgba(250, 250, 250, 0.04);
}

.shell4227f-menu a:hover, .shell4227f-menu a:focus-visible {
  background: var(--shell4227f-soft);
  text-decoration: none;
  transform: translateY(-1px);
}

.shell4227f-menu span {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: rgba(250, 250, 250, 0.62);
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.shell4227f-hero {
  padding: 18px 14px 14px;
  border-bottom: 1px solid var(--shell4227f-line);
  background:
    linear-gradient(180deg, rgba(255, 182, 193, 0.08), rgba(54, 69, 79, 0) 78%),
    var(--shell4227f-slate);
}

.shell4227f-hero h1 {
  font-family: var(--shell4227f-font-display);
  font-size: 24px;
  line-height: 1.28;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--shell4227f-paper);
}

.shell4227f-hero h1 b { color: var(--shell4227f-blush); }

.shell4227f-hero p {
  margin: 0 0 12px;
  font-size: 14px;
  color: rgba(250, 250, 250, 0.88);
}

.shell4227f-cta-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex-wrap: wrap;
}

.shell4227f-cta-row .shell4227f-btn-main { padding: 0 20px; font-size: 14px; }
.shell4227f-cta-row .shell4227f-btn-ghost { padding: 0 12px; font-size: 12.5px; }

.shell4227f-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-top: 12px;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.shell4227f-chips::-webkit-scrollbar { display: none; }

.shell4227f-chip {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--shell4227f-blush);
  border: 1px solid var(--shell4227f-soft);
  background: rgba(255, 182, 193, 0.07);
  border-radius: var(--shell4227f-radius);
  padding: 5px 9px;
  white-space: nowrap;
}

/* ------------------------------------------------------------
   Promo carousel
   ------------------------------------------------------------ */
.shell4227f-caro {
  position: relative;
  margin: 14px 10px 0;
  border: 1px solid var(--shell4227f-line);
  border-radius: var(--shell4227f-radius);
  overflow: hidden;
  background: var(--shell4227f-slate-deep);
}

.shell4227f-cslide {
  display: none;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.shell4227f-cslide.shell4227f-on { display: block; }

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

.shell4227f-cdots {
  position: absolute;
  bottom: 7px; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.shell4227f-cdot {
  width: 7px; height: 7px;
  padding: 0;
  border-radius: 1px;
  border: 1px solid var(--shell4227f-blush);
  background: transparent;
  cursor: pointer;
}

.shell4227f-cdot.shell4227f-on { background: var(--shell4227f-blush); }

/* ------------------------------------------------------------
   Sections and game grids
   ------------------------------------------------------------ */
.shell4227f-sec { padding: 20px 12px 4px; }

.shell4227f-sechead {
  display: flex;
  align-items: baseline;
  gap: 8px;
  border-left: 3px solid var(--shell4227f-blush);
  padding-left: 9px;
  margin-bottom: 4px;
}

.shell4227f-sec h2 {
  font-family: var(--shell4227f-font-display);
  font-size: 18.5px;
  line-height: 1.35;
  font-weight: 800;
  margin: 0;
  color: var(--shell4227f-paper);
}

.shell4227f-sechead small {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--shell4227f-blush);
  white-space: nowrap;
  letter-spacing: 0.05em;
}

.shell4227f-secintro {
  margin: 6px 0 12px;
  font-size: 13px;
  color: rgba(250, 250, 250, 0.82);
}

/* Category jump strip (in-page anchors) */
.shell4227f-catstrip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 10px 6px;
  scrollbar-width: none;
}

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

.shell4227f-catstrip a {
  flex: 0 0 auto;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--shell4227f-line);
  border-radius: var(--shell4227f-radius);
  color: var(--shell4227f-paper);
  background: rgba(250, 250, 250, 0.05);
}

.shell4227f-catstrip a:hover, .shell4227f-catstrip a:focus-visible {
  background: var(--shell4227f-soft);
  text-decoration: none;
}

/* Pure image cards with a short name underneath; 4 cols at 320px */
.shell4227f-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 6px;
}

.shell4227f-gcard {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px;
  background: var(--shell4227f-slate-deep);
  border: 1px solid var(--shell4227f-line);
  border-radius: var(--shell4227f-radius);
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.shell4227f-gcard:hover, .shell4227f-gcard:focus-visible {
  border-color: var(--shell4227f-blush);
  background: #303d47;
}

.shell4227f-gcard:active { transform: translateY(2px); }

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

.shell4227f-gname {
  font-size: 10.5px;
  line-height: 1.35;
  font-weight: 600;
  color: rgba(250, 250, 250, 0.92);
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 28px;
}

/* Real subpage links after each category */
.shell4227f-seclinks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px dashed var(--shell4227f-line);
  font-size: 12.5px;
}

/* ------------------------------------------------------------
   Article / list modules
   ------------------------------------------------------------ */
.shell4227f-mod {
  padding: 18px 14px 6px;
}

.shell4227f-mod h2 {
  font-family: var(--shell4227f-font-display);
  font-size: 18.5px;
  line-height: 1.35;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--shell4227f-paper);
}

.shell4227f-mod h3 {
  font-family: var(--shell4227f-font-display);
  font-size: 15px;
  font-weight: 700;
  margin: 16px 0 6px;
  color: var(--shell4227f-blush);
}

.shell4227f-mod p { margin: 0 0 10px; font-size: 14px; color: rgba(250, 250, 250, 0.88); }

.shell4227f-list {
  margin: 0 0 12px;
  padding: 0 0 0 18px;
  font-size: 13.5px;
  color: rgba(250, 250, 250, 0.88);
}

.shell4227f-list li { margin-bottom: 7px; }

.shell4227f-list b, .shell4227f-mod p b { color: var(--shell4227f-paper); }

.shell4227f-note {
  border: 1px solid var(--shell4227f-soft);
  border-left: 3px solid var(--shell4227f-blush);
  background: rgba(255, 182, 193, 0.06);
  border-radius: var(--shell4227f-radius);
  padding: 10px 12px;
  font-size: 13px;
  margin: 0 0 12px;
  color: rgba(250, 250, 250, 0.9);
}

/* FAQ: collapsible short Q&A blocks */
.shell4227f-faq { margin: 0 0 10px; }

.shell4227f-faq summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--shell4227f-paper);
  border: 1px solid var(--shell4227f-line);
  border-radius: var(--shell4227f-radius);
  padding: 8px 10px;
  background: var(--shell4227f-slate-deep);
  list-style: none;
}

.shell4227f-faq summary::-webkit-details-marker { display: none; }

.shell4227f-faq summary::after {
  content: "+";
  margin-left: auto;
  color: var(--shell4227f-blush);
  font-size: 16px;
  font-weight: 800;
}

.shell4227f-faq[open] summary::after { content: "\2212"; }

.shell4227f-faq p {
  margin: 8px 2px 2px;
  font-size: 13px;
  color: rgba(250, 250, 250, 0.84);
}

/* Scenario compact answer rows */
.shell4227f-scen {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.shell4227f-scen article {
  border: 1px solid var(--shell4227f-line);
  border-radius: var(--shell4227f-radius);
  background: var(--shell4227f-slate-deep);
  padding: 10px 12px;
}

.shell4227f-scen h3 { margin: 0 0 4px; font-size: 13.5px; color: var(--shell4227f-blush); }

.shell4227f-scen p { margin: 0; font-size: 13px; color: rgba(250, 250, 250, 0.86); }

/* Inline promo text links inside body copy */
.shell4227f-plink {
  color: var(--shell4227f-blush);
  font-weight: 700;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ------------------------------------------------------------
   Extended footer (home only): brand > directory > promos > note
   ------------------------------------------------------------ */
.shell4227f-xfoot {
  margin-top: 22px;
  padding: 18px 14px 12px;
  border-top: 1px solid var(--shell4227f-line);
  background: var(--shell4227f-slate-deep);
}

.shell4227f-xfoot h2 {
  font-family: var(--shell4227f-font-display);
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--shell4227f-paper);
}

.shell4227f-xfoot p { margin: 0 0 12px; font-size: 12.5px; color: rgba(250, 250, 250, 0.8); }

.shell4227f-dirlabel {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--shell4227f-blush);
  margin: 14px 0 7px;
  text-transform: uppercase;
}

.shell4227f-directory {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-bottom: 4px;
}

.shell4227f-directory a {
  font-size: 12px;
  font-weight: 600;
  color: rgba(250, 250, 250, 0.9);
  border: 1px solid var(--shell4227f-line);
  border-radius: var(--shell4227f-radius);
  padding: 7px 9px;
  background: rgba(250, 250, 250, 0.04);
}

.shell4227f-directory a:hover, .shell4227f-directory a:focus-visible {
  background: var(--shell4227f-soft);
  text-decoration: none;
}

/* Seven staggered promo entries */
.shell4227f-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.shell4227f-promos .shell4227f-btn { min-height: 44px; }

.shell4227f-promos .shell4227f-btn:first-child { padding: 0 18px; font-size: 13.5px; }

.shell4227f-promos .shell4227f-btn-ghost { font-size: 12px; padding: 0 10px; }

.shell4227f-promos button.shell4227f-plink {
  border: 1px dashed var(--shell4227f-soft);
  border-radius: var(--shell4227f-radius);
  padding: 8px 10px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--shell4227f-blush);
  font-size: 12px;
}

.shell4227f-disc {
  margin-top: 14px;
  font-size: 11px;
  line-height: 1.6;
  color: rgba(250, 250, 250, 0.62);
}

/* ------------------------------------------------------------
   Generic footer (all pages): 2026 copyright only
   ------------------------------------------------------------ */
.shell4227f-foot {
  padding: 14px 14px 6px;
  text-align: center;
  font-size: 11.5px;
  color: rgba(250, 250, 250, 0.66);
  border-top: 1px solid var(--shell4227f-line);
}

/* ------------------------------------------------------------
   Mobile bottom nav: compact icon rack with text labels
   ------------------------------------------------------------ */
.shell4227f-tabbar {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: calc(var(--shell4227f-tabbar-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--shell4227f-slate-deep);
  border-top: 1px solid var(--shell4227f-line);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 70;
}

.shell4227f-tab {
  min-height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 2px 4px;
  color: rgba(250, 250, 250, 0.74);
  font-size: 9.5px;
  font-weight: 700;
  background: none;
  border: 0;
  border-top: 2px solid transparent;
  cursor: pointer;
  transition: color 0.16s ease, transform 0.12s ease, border-color 0.16s ease;
}

.shell4227f-tab svg { width: 20px; height: 20px; }

.shell4227f-tab:hover { color: var(--shell4227f-paper); text-decoration: none; }

/* Active state: slight lift */
.shell4227f-tab.shell4227f-now {
  color: var(--shell4227f-blush);
  border-top-color: var(--shell4227f-blush);
  transform: translateY(-2px);
}

/* ------------------------------------------------------------
   Small-canvas tuning
   ------------------------------------------------------------ */
@media (max-width: 430px) {
  .shell4227f-hero h1 { font-size: 22px; }
  .shell4227f-sec h2, .shell4227f-mod h2 { font-size: 17.5px; }
  .shell4227f-brand-name { font-size: 18px; }
  .shell4227f-topact .shell4227f-btn { padding: 0 10px; font-size: 12px; }
}

@media (max-width: 359px) {
  .shell4227f-topact .shell4227f-btn-ghost { padding: 0 8px; }
  .shell4227f-gname { font-size: 10px; }
  .shell4227f-menu-grid { grid-template-columns: 1fr; }
}

/* 375px and up: five game columns fit comfortably */
@media (min-width: 375px) {
  .shell4227f-grid { grid-template-columns: repeat(5, 1fr); gap: 9px 7px; }
}

/* Wide screens: keep the centered phone frame visible */
@media (min-width: 431px) {
  body { background: var(--shell4227f-ink); }
  .shell4227f-page { border-left: 1px solid var(--shell4227f-line); border-right: 1px solid var(--shell4227f-line); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .shell4227f-tab.shell4227f-now { transform: none; }
}
