/* ============================================================
 * 3666bd.homes - Surface stylesheet
 * Prefix: s0a3-
 * Palette: #006400 | #00FF7F | #212F3D | #00FF00 | #C0C0C0
 * Canvas: 320 - 430px mobile-first; phone canvas kept on wide screens.
 * ========================================================== */

:root {
  --s0a3-deep: #006400;
  --s0a3-mint: #00FF7F;
  --s0a3-night: #212F3D;
  --s0a3-neon: #00FF00;
  --s0a3-silver: #C0C0C0;
  --s0a3-bg: #0c1a12;
  --s0a3-bg-2: #122a1d;
  --s0a3-card: #15301f;
  --s0a3-card-2: #1a3a26;
  --s0a3-text: #f3fff6;
  --s0a3-text-dim: #b6c9bc;
  --s0a3-border: rgba(0, 255, 127, 0.22);
  --s0a3-gold: #ffd76a;
  --s0a3-radius: 14px;
  --s0a3-header-h: 56px;
  --s0a3-bar-h: 60px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--s0a3-bg);
  color: var(--s0a3-text);
  font-family: "Hind Siliguri", "Noto Sans Bengali", "SolaimanLipi", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body.s0a3-lock { overflow: hidden; }

a { color: var(--s0a3-mint); text-decoration: none; }
a:focus-visible { outline: 2px solid var(--s0a3-neon); outline-offset: 2px; border-radius: 4px; }

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

/* Centered phone canvas on wide screens */
.s0a3-shell {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background:
    radial-gradient(900px 360px at 50% -40px, rgba(0,255,127,0.10), transparent 70%),
    linear-gradient(180deg, var(--s0a3-bg) 0%, #08130c 100%);
  box-shadow: 0 0 40px rgba(0,0,0,0.5);
  padding-bottom: calc(var(--s0a3-bar-h) + 12px);
}

/* ============== Header (asymmetric brand header) ============== */
.s0a3-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--s0a3-header-h);
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: linear-gradient(120deg, #06280f 0%, #0a3318 60%, #003d12 100%);
  border-bottom: 1px solid var(--s0a3-border);
}

.s0a3-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.s0a3-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--s0a3-mint), var(--s0a3-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #04210f;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 0 14px rgba(0,255,127,0.45);
}
.s0a3-brand-text { line-height: 1.1; min-width: 0; }
.s0a3-brand-name {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.4px;
  color: #eaffe8;
}
.s0a3-brand-tag {
  font-size: 10px;
  color: var(--s0a3-mint);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.s0a3-actions { display: flex; gap: 6px; }
.s0a3-btn {
  border: 0;
  border-radius: 10px;
  padding: 9px 14px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  color: #04210f;
}
.s0a3-btn-login {
  background: linear-gradient(135deg, var(--s0a3-silver), #e7f3ea);
  color: #10241a;
}
.s0a3-btn-register {
  background: linear-gradient(135deg, var(--s0a3-neon), var(--s0a3-mint));
  color: #04210f;
  box-shadow: 0 0 12px rgba(0,255,0,0.40);
}
.s0a3-btn:hover { transform: translateY(-1px); }
.s0a3-btn:active { transform: scale(0.97); }

.s0a3-menu-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(0,255,127,0.12);
  border: 1px solid var(--s0a3-border);
  color: var(--s0a3-mint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.s0a3-menu-btn:hover { background: rgba(0,255,127,0.20); }
.s0a3-menu-btn:active { transform: scale(0.92); }

/* ============== Layered dropdown menu panel ================== */
.s0a3-menu-mask {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 40;
}
.s0a3-menu-mask.s0a3-show { opacity: 1; pointer-events: auto; }

.s0a3-menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(86vw, 360px);
  background: linear-gradient(180deg, #08200f 0%, #0d2c19 100%);
  border-left: 1px solid var(--s0a3-border);
  transform: translateX(105%);
  transition: transform 0.24s ease;
  z-index: 50;
  display: flex;
  flex-direction: column;
  padding: 14px 12px 18px;
  overflow-y: auto;
}
.s0a3-menu-panel.s0a3-open { transform: translateX(0); }

.s0a3-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--s0a3-border);
  margin-bottom: 8px;
}
.s0a3-menu-title { font-weight: 800; font-size: 16px; color: #eaffe8; }
.s0a3-menu-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(0,255,127,0.12);
  border: 1px solid var(--s0a3-border);
  color: var(--s0a3-mint);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.s0a3-menu-group {
  border: 1px solid var(--s0a3-border);
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
  background: rgba(0,255,127,0.04);
}
.s0a3-menu-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 700;
  color: #eaffe8;
  background: linear-gradient(90deg, rgba(0,255,127,0.10), transparent);
}
.s0a3-menu-head-row:active { background: rgba(0,255,127,0.18); }
.s0a3-menu-chevron { color: var(--s0a3-mint); font-size: 12px; }
.s0a3-menu-group.s0a3-expanded .s0a3-menu-list { display: block; }
.s0a3-menu-group.s0a3-expanded .s0a3-menu-chevron { transform: rotate(90deg); }

.s0a3-menu-list {
  display: none;
  padding: 4px 6px 8px;
}
.s0a3-menu-link {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--s0a3-text);
  font-size: 14px;
  margin-bottom: 2px;
}
.s0a3-menu-link:hover { background: rgba(0,255,127,0.10); }
.s0a3-menu-link.s0a3-current {
  background: linear-gradient(90deg, rgba(0,255,0,0.18), transparent);
  color: var(--s0a3-neon);
  border-left: 3px solid var(--s0a3-neon);
}

.s0a3-menu-cta {
  margin-top: auto;
  display: flex;
  gap: 8px;
}
.s0a3-menu-cta .s0a3-btn { flex: 1; }

/* ============== Hero carousel ================================ */
.s0a3-hero {
  margin: 12px;
  border-radius: var(--s0a3-radius);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--s0a3-border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}
.s0a3-slides { position: relative; }
.s0a3-slide {
  display: none;
  position: relative;
  cursor: pointer;
}
.s0a3-slide.s0a3-active { display: block; }
.s0a3-slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.s0a3-slide-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 14px 12px;
  background: linear-gradient(0deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0) 100%);
}
.s0a3-slide-title {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 3px;
}
.s0a3-slide-sub {
  font-size: 12px;
  color: var(--s0a3-mint);
  margin: 0 0 8px;
}
.s0a3-slide-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--s0a3-neon), var(--s0a3-mint));
  color: #04210f;
  font-weight: 800;
  font-size: 12px;
  padding: 7px 14px;
  border-radius: 20px;
}

.s0a3-dots {
  position: absolute;
  bottom: 8px;
  right: 10px;
  display: flex;
  gap: 5px;
}
.s0a3-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: 0;
  cursor: pointer;
  padding: 0;
}
.s0a3-dot.s0a3-active { background: var(--s0a3-neon); box-shadow: 0 0 6px var(--s0a3-neon); }

/* ============== Section title ================================ */
.s0a3-section {
  margin: 18px 12px 6px;
}
.s0a3-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.s0a3-section-title {
  font-size: 17px;
  font-weight: 800;
  color: #eaffe8;
  margin: 0;
  position: relative;
  padding-left: 12px;
}
.s0a3-section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--s0a3-neon), var(--s0a3-deep));
}
.s0a3-section-sub {
  font-size: 12px;
  color: var(--s0a3-text-dim);
}
.s0a3-more {
  font-size: 12px;
  color: var(--s0a3-mint);
  font-weight: 700;
}

/* ============== Game grid =================================== */
.s0a3-cat-block {
  margin: 6px 12px 14px;
  scroll-margin-top: calc(var(--s0a3-header-h) + 8px);
}
.s0a3-cat-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(0,255,127,0.14), rgba(0,100,0,0.10));
  border: 1px solid var(--s0a3-border);
  margin-bottom: 8px;
}
.s0a3-cat-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--s0a3-deep);
  color: var(--s0a3-neon);
  font-size: 14px;
  font-weight: 800;
}
.s0a3-cat-title {
  font-weight: 800;
  font-size: 15px;
  color: #eaffe8;
  flex: 1;
  margin: 0;
}
.s0a3-cat-count {
  font-size: 11px;
  color: var(--s0a3-text-dim);
}

.s0a3-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
@media (min-width: 360px) {
  .s0a3-grid { gap: 9px; }
}
@media (min-width: 400px) {
  .s0a3-grid { grid-template-columns: repeat(5, 1fr); }
}

.s0a3-game-card {
  display: block;
  background: var(--s0a3-card);
  border: 1px solid var(--s0a3-border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
  text-align: center;
  padding: 0 0 6px;
}
.s0a3-game-card:hover {
  transform: translateY(-2px);
  border-color: var(--s0a3-mint);
  box-shadow: 0 6px 14px rgba(0,255,127,0.18);
}
.s0a3-game-card.s0a3-pulse { transform: scale(0.95); }
.s0a3-game-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #0a1f12;
}
.s0a3-game-name {
  font-size: 11px;
  color: var(--s0a3-text);
  padding: 4px 4px 0;
  line-height: 1.25;
  min-height: 28px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

/* ============== Promo strips ================================= */
.s0a3-promo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 12px;
}
.s0a3-promo {
  display: block;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--s0a3-deep), var(--s0a3-night));
  border: 1px solid var(--s0a3-border);
  color: #ffffff;
  cursor: pointer;
}
.s0a3-promo.s0a3-pulse { transform: scale(0.96); }
.s0a3-promo-title { font-weight: 800; font-size: 14px; color: #ffffff; }
.s0a3-promo-sub { font-size: 11px; color: var(--s0a3-mint); margin-top: 2px; }

/* ============== Info / SEO content ========================== */
.s0a3-content {
  margin: 14px 12px;
  background: var(--s0a3-card);
  border: 1px solid var(--s0a3-border);
  border-radius: 14px;
  padding: 14px;
  color: var(--s0a3-text);
}
.s0a3-content h2 {
  font-size: 16px;
  font-weight: 800;
  color: #eaffe8;
  margin: 14px 0 6px;
}
.s0a3-content h2:first-child { margin-top: 0; }
.s0a3-content h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--s0a3-mint);
  margin: 12px 0 4px;
}
.s0a3-content p {
  margin: 0 0 8px;
  color: var(--s0a3-text-dim);
  font-size: 14px;
  line-height: 1.65;
}
.s0a3-content a { color: var(--s0a3-neon); text-decoration: underline; text-underline-offset: 2px; }
.s0a3-content ul { margin: 0 0 8px; padding-left: 18px; }
.s0a3-content li { margin-bottom: 4px; color: var(--s0a3-text-dim); }

.s0a3-faq-item {
  border-bottom: 1px solid var(--s0a3-border);
  padding: 8px 0;
}
.s0a3-faq-item:last-child { border-bottom: 0; }
.s0a3-faq-q { font-weight: 700; color: var(--s0a3-mint); margin-bottom: 3px; font-size: 14px; }
.s0a3-faq-a { color: var(--s0a3-text-dim); font-size: 13px; }

/* ============== Two-column directory (extended footer) ====== */
.s0a3-directory {
  margin: 14px 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, #0c2417, #0a1c11);
  border: 1px solid var(--s0a3-border);
  padding: 14px;
}
.s0a3-directory-title {
  font-size: 14px;
  font-weight: 800;
  color: #eaffe8;
  margin: 0 0 8px;
  letter-spacing: 0.4px;
}
.s0a3-directory-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
}
.s0a3-directory-grid a {
  font-size: 12px;
  color: var(--s0a3-text);
  padding: 4px 0;
  border-bottom: 1px dashed rgba(0,255,127,0.18);
  display: flex;
  justify-content: space-between;
  gap: 6px;
}
.s0a3-directory-grid a:hover { color: var(--s0a3-neon); }
.s0a3-directory-grid a small { color: var(--s0a3-text-dim); font-size: 10px; }

.s0a3-brand-card {
  margin: 14px 12px;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0,255,127,0.10), rgba(0,100,0,0.20));
  border: 1px solid var(--s0a3-border);
}
.s0a3-brand-card h3 { margin: 0 0 6px; font-size: 15px; color: #eaffe8; }
.s0a3-brand-card p { margin: 0; color: var(--s0a3-text-dim); font-size: 13px; }

.s0a3-promo-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 12px;
}
.s0a3-promo-actions .s0a3-btn { padding: 12px 8px; font-size: 12px; }

.s0a3-disclaimer {
  margin: 10px 12px 4px;
  padding: 10px 12px;
  font-size: 11px;
  color: var(--s0a3-text-dim);
  border: 1px dashed rgba(0,255,127,0.22);
  border-radius: 10px;
  background: rgba(0,0,0,0.20);
}

/* ============== Footer (universal) ========================== */
.s0a3-footer {
  padding: 14px 12px 6px;
  text-align: center;
  font-size: 11px;
  color: var(--s0a3-text-dim);
  border-top: 1px solid var(--s0a3-border);
  margin: 8px 12px 6px;
}
.s0a3-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 10px;
  margin-bottom: 6px;
}
.s0a3-footer-links a {
  color: var(--s0a3-text);
  font-size: 11px;
}

/* ============== Layered bottom bar ========================== */
.s0a3-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  height: var(--s0a3-bar-h);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: stretch;
  background: linear-gradient(180deg, #062a13 0%, #02150a 100%);
  border-top: 1px solid var(--s0a3-border);
  box-shadow: 0 -6px 18px rgba(0,0,0,0.45);
  padding: 2px;
}

.s0a3-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px 2px;
  color: var(--s0a3-text-dim);
  font-size: 10px;
  cursor: pointer;
  border-radius: 10px;
  margin: 2px;
  transition: transform 0.12s ease, color 0.12s ease, background 0.12s ease;
  position: relative;
  text-align: center;
  min-height: 44px;
}
.s0a3-bar-item:hover { background: rgba(0,255,127,0.08); }
.s0a3-bar-item:active { transform: scale(0.92); }
.s0a3-bar-item.s0a3-current { color: var(--s0a3-neon); }
.s0a3-bar-item.s0a3-current::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--s0a3-neon), var(--s0a3-mint));
  box-shadow: 0 0 8px var(--s0a3-neon);
}
.s0a3-bar-promo {
  color: var(--s0a3-mint);
  font-weight: 700;
}
.s0a3-bar-promo.s0a3-bar-item:nth-child(3) {
  background: linear-gradient(180deg, rgba(0,255,0,0.18), rgba(0,255,127,0.06));
  border: 1px solid rgba(0,255,127,0.35);
}

.s0a3-bar-ico {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.s0a3-bar-ico svg { width: 100%; height: 100%; display: block; }
.s0a3-bar-label { font-size: 10px; line-height: 1; letter-spacing: 0.2px; }

/* dual-color role icon: outline + filled accent */
.s0a3-ico-outline { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.s0a3-ico-fill { fill: currentColor; }
.s0a3-ico-accent { fill: var(--s0a3-gold); }

/* ============== Pulse feedback =============================== */
.s0a3-cta {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--s0a3-neon), var(--s0a3-mint));
  color: #04210f;
  font-weight: 800;
  cursor: pointer;
  border: 0;
}
.s0a3-cta.s0a3-pulse { transform: scale(0.95); }

.s0a3-nav-promo:active { transform: scale(0.96); }

/* ============== Utility ===================================== */
.s0a3-hidden { display: none !important; }
.s0a3-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}
