/* 75 bd - Core stylesheet (English comments only)
   Prefix: s1c1- used for every class and CSS variable.
   Palette: #4682B4 | #6495ED | #2C2C2C
   Design direction: compact brand bar, compact route panel, floating dock,
                     monochrome icons with accent indicator, contrast-inverted
                     active state, fast scale feedback. */

:root {
  --s1c1-steel: #4682B4;
  --s1c1-cornflower: #6495ED;
  --s1c1-charcoal: #2C2C2C;
  --s1c1-ink: #1c2330;
  --s1c1-ink-2: #243245;
  --s1c1-paper: #f4f7fb;
  --s1c1-mute: #8aa0bd;
  --s1c1-line: rgba(120, 150, 190, .22);
  --s1c1-accent: #ffd166;
  --s1c1-shadow: 0 8px 22px rgba(20, 30, 50, .35);
  --s1c1-radius: 14px;
  --s1c1-max: 440px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #141a26;
  color: #eef3fb;
  font-family: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(900px 380px at 50% -120px, rgba(100, 149, 237, .22), transparent 70%),
    linear-gradient(180deg, #11161f 0%, #181f2d 60%, #0e1320 100%);
}

/* Mobile canvas: stays narrow on wider screens. */
.s1c1-canvas {
  max-width: var(--s1c1-max);
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background: linear-gradient(180deg, #161d2b 0%, #1a2233 40%, #10151f 100%);
  box-shadow: 0 0 50px rgba(0, 0, 0, .35);
  padding-bottom: 96px; /* floating dock clearance */
}

a { color: var(--s1c1-cornflower); text-decoration: none; }
a:hover { color: #c9dffc; }
img { max-width: 100%; display: block; }

/* ---------- Header (compact brand bar) ---------- */
.s1c1-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: linear-gradient(180deg, rgba(28, 35, 48, .96), rgba(20, 26, 38, .92));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--s1c1-line);
}

.s1c1-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.s1c1-logo {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--s1c1-cornflower), var(--s1c1-steel));
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(70, 130, 180, .4);
  flex-shrink: 0;
}
.s1c1-brand-name {
  font-weight: 800;
  letter-spacing: .3px;
  color: #fff;
  font-size: 16px;
  line-height: 1.1;
  white-space: nowrap;
}
.s1c1-brand-name small {
  display: block;
  color: var(--s1c1-mute);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: .5px;
}

.s1c1-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.s1c1-btn {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  min-height: 36px;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
  font-family: inherit;
}
.s1c1-btn-login {
  background: rgba(100, 149, 237, .14);
  color: #dce8ff;
  border: 1px solid rgba(100, 149, 237, .45);
}
.s1c1-btn-register {
  background: linear-gradient(135deg, var(--s1c1-cornflower), var(--s1c1-steel));
  color: #0c1220;
  box-shadow: 0 6px 14px rgba(70, 130, 180, .45);
}
.s1c1-btn:hover { transform: translateY(-1px); }
.s1c1-pressed { transform: scale(.94) !important; }

.s1c1-menu-btn {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: rgba(100, 149, 237, .12);
  border: 1px solid rgba(100, 149, 237, .4);
  border-radius: 10px;
  color: #dce8ff;
  cursor: pointer;
}
.s1c1-menu-btn:hover { background: rgba(100, 149, 237, .22); }

/* ---------- Compact route panel ---------- */
.s1c1-route-wrap {
  position: relative;
  z-index: 55;
}
.s1c1-route-panel {
  position: absolute;
  top: 0;
  left: 12px;
  right: 12px;
  background: linear-gradient(180deg, #1c2536, #161d2c);
  border: 1px solid var(--s1c1-line);
  border-radius: 14px;
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  opacity: 0;
  transform: translateY(-8px) scale(.98);
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
  box-shadow: var(--s1c1-shadow);
}
.s1c1-route-panel.app1c1-panel-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.s1c1-route-panel a {
  display: block;
  padding: 9px 11px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: #cfd9ea;
  background: rgba(100, 149, 237, .07);
  border: 1px solid rgba(100, 149, 237, .15);
}
.s1c1-route-panel a:hover {
  background: rgba(100, 149, 237, .18);
  color: #fff;
}

/* ---------- Sections ---------- */
.s1c1-section {
  padding: 18px 14px 6px;
}
.s1c1-section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.s1c1-section-title {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin: 0;
  line-height: 1.25;
}
.s1c1-section-tag {
  margin-left: auto;
  font-size: 11px;
  color: var(--s1c1-accent);
  background: rgba(255, 209, 102, .12);
  border: 1px solid rgba(255, 209, 102, .3);
  padding: 3px 8px;
  border-radius: 999px;
}

/* ---------- Hero carousel ---------- */
.s1c1-hero {
  margin: 0 14px;
  border-radius: var(--s1c1-radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--s1c1-shadow);
}
.s1c1-slides { position: relative; }
.s1c1-slide {
  display: none;
  position: relative;
  cursor: pointer;
}
.s1c1-slide.app1c1-slide-active { display: block; }
.s1c1-slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.s1c1-slide-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(8, 12, 22, .82));
  color: #fff;
}
.s1c1-slide-caption strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
}
.s1c1-slide-caption span {
  font-size: 12px;
  color: #d4e3fb;
}
.s1c1-dots {
  position: absolute;
  bottom: 8px;
  right: 12px;
  display: flex;
  gap: 5px;
}
.s1c1-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .45);
  border: 0;
  padding: 0;
  cursor: pointer;
}
.s1c1-dot.app1c1-dot-active {
  background: var(--s1c1-cornflower);
  width: 18px;
  border-radius: 5px;
}

/* ---------- Quick promo strip ---------- */
.s1c1-quick {
  margin: 14px 14px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.s1c1-quick a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  background: rgba(100, 149, 237, .08);
  border: 1px solid rgba(100, 149, 237, .22);
  border-radius: 12px;
  color: #dce8ff;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}
.s1c1-quick a:hover { background: rgba(100, 149, 237, .18); }
.s1c1-quick-icon {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--s1c1-cornflower), var(--s1c1-steel));
  color: #0c1220;
}

/* ---------- Category header ---------- */
.s1c1-cat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 10px;
}
.s1c1-cat-bar {
  width: 4px; height: 18px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--s1c1-cornflower), var(--s1c1-steel));
}
.s1c1-cat-title {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin: 0;
}
.s1c1-cat-note {
  margin-left: auto;
  font-size: 11px;
  color: var(--s1c1-mute);
}

/* ---------- Game grid ---------- */
.s1c1-games {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.s1c1-game {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: transform .12s ease;
}
.s1c1-game:hover { transform: translateY(-2px); }
.s1c1-game-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 11px;
  overflow: hidden;
  background: #0c1220;
  border: 1px solid rgba(100, 149, 237, .2);
}
.s1c1-game-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.s1c1-game-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(8, 12, 22, .35));
  pointer-events: none;
}
.s1c1-game-name {
  font-size: 11px;
  color: #d4e3fb;
  text-align: center;
  line-height: 1.25;
  min-height: 28px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ---------- Info / SEO modules ---------- */
.s1c1-card {
  background: rgba(100, 149, 237, .06);
  border: 1px solid rgba(100, 149, 237, .2);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
}
.s1c1-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
  color: #fff;
}
.s1c1-card p {
  margin: 0;
  color: #c6d4ea;
  font-size: 13.5px;
}

.s1c1-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.s1c1-info-grid .s1c1-card { margin-bottom: 0; }

.s1c1-prose {
  color: #c6d4ea;
  font-size: 14px;
}
.s1c1-prose h2 {
  color: #fff;
  font-size: 18px;
  margin: 18px 0 6px;
}
.s1c1-prose p { margin: 0 0 10px; }
.s1c1-prose ul { margin: 0 0 10px; padding-left: 18px; }
.s1c1-prose li { margin-bottom: 4px; }

/* ---------- Extended footer (home only) ---------- */
.s1c1-ext {
  margin: 18px 14px 0;
  background: rgba(20, 27, 41, .65);
  border: 1px solid var(--s1c1-line);
  border-radius: 14px;
  padding: 14px;
}
.s1c1-ext-block { margin-bottom: 14px; }
.s1c1-ext-block:last-child { margin-bottom: 0; }
.s1c1-ext-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--s1c1-cornflower);
  letter-spacing: .8px;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.s1c1-ext-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.s1c1-ext-list li a {
  display: block;
  padding: 8px 10px;
  background: rgba(100, 149, 237, .08);
  border: 1px solid rgba(100, 149, 237, .2);
  border-radius: 9px;
  font-size: 12.5px;
  color: #d4e3fb;
  font-weight: 600;
}
.s1c1-ext-list li a:hover { background: rgba(100, 149, 237, .18); color: #fff; }
.s1c1-ext-promo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(100, 149, 237, .2), rgba(70, 130, 180, .12));
  border: 1px solid rgba(100, 149, 237, .35);
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
}
.s1c1-ext-promo:hover { transform: translateY(-1px); }
.s1c1-ext-promo .s1c1-ext-arrow { margin-left: auto; color: var(--s1c1-accent); }
.s1c1-ext-brand p {
  margin: 0;
  color: #c0cce0;
  font-size: 13px;
}
.s1c1-disclaimer {
  font-size: 11.5px;
  color: var(--s1c1-mute);
  border-top: 1px solid var(--s1c1-line);
  padding-top: 10px;
  margin-top: 8px;
}

/* ---------- Universal footer ---------- */
.s1c1-footer {
  padding: 18px 14px 8px;
  text-align: center;
  color: var(--s1c1-mute);
  font-size: 12px;
  border-top: 1px solid var(--s1c1-line);
  margin-top: 18px;
}

/* ---------- Floating dock (bottom nav) ---------- */
.s1c1-dock {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 10px;
  width: calc(100% - 20px);
  max-width: 420px;
  z-index: 70;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 8px 8px;
  background: linear-gradient(180deg, rgba(28, 36, 52, .96), rgba(18, 24, 36, .98));
  backdrop-filter: blur(12px);
  border: 1px solid rgba(100, 149, 237, .25);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}
.s1c1-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 2px;
  color: #9fb3cf;
  font-size: 10px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  background: transparent;
  border: 0;
  transition: transform .12s ease, color .15s ease, background .15s ease;
  min-height: 44px;
  justify-content: center;
}
.s1c1-nav-item:hover { transform: translateY(-1px); }
.s1c1-nav-item.app1c1-nav-active {
  color: #0c1220;
  background: linear-gradient(135deg, var(--s1c1-cornflower), var(--s1c1-steel));
  box-shadow: 0 6px 14px rgba(70, 130, 180, .45);
}
.s1c1-nav-item.app1c1-nav-active .s1c1-nav-label { color: #0c1220; }
.s1c1-nav-icon {
  width: 22px; height: 22px;
  display: grid; place-items: center;
}
.s1c1-nav-label {
  font-size: 10px;
  letter-spacing: .2px;
  color: #b8c6db;
}

/* ---------- Utility ---------- */
.s1c1-hide { display: none !important; }

@media (min-width: 380px) {
  .s1c1-games { gap: 10px; }
}
@media (min-width: 420px) {
  .s1c1-games { grid-template-columns: repeat(5, 1fr); }
}

/* ===== Mobile breakpoint max-width 430px ===== */
@media (max-width: 430px) {
  html, body { font-size: 14px; }
  .s1c1-header { padding: 6px 10px; gap: 6px; }
  .s1c1-logo { width: 30px; height: 30px; }
  .s1c1-brand-name { font-size: 15px; }
  .s1c1-brand-name small { font-size: 9px; }
  .s1c1-btn { padding: 7px 12px; font-size: 12px; min-height: 34px; }
  .s1c1-menu-btn { width: 34px; height: 34px; }
  .s1c1-route-panel { left: 10px; right: 10px; padding: 9px; gap: 5px; }
  .s1c1-route-panel a { padding: 8px 10px; font-size: 12px; }
  .s1c1-section { padding: 16px 12px 4px; }
  .s1c1-section-title { font-size: 15px; }
  .s1c1-section-tag { font-size: 10px; padding: 2px 7px; }
  .s1c1-hero { margin: 0 12px; }
  .s1c1-slide-caption { padding: 22px 12px 10px; }
  .s1c1-slide-caption strong { font-size: 14px; }
  .s1c1-slide-caption span { font-size: 11px; }
  .s1c1-quick { margin: 12px 12px 0; gap: 6px; }
  .s1c1-quick a { padding: 8px 4px; font-size: 11px; }
  .s1c1-quick-icon { width: 24px; height: 24px; }
  .s1c1-cat-title { font-size: 15px; }
  .s1c1-games { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .s1c1-game-name { font-size: 10px; min-height: 26px; }
  .s1c1-card { padding: 12px; }
  .s1c1-card h3 { font-size: 14px; }
  .s1c1-card p { font-size: 12.5px; }
  .s1c1-prose { font-size: 13px; }
  .s1c1-prose h2 { font-size: 16px; }
  .s1c1-ext { margin: 16px 12px 0; padding: 12px; }
  .s1c1-ext-list { gap: 5px; }
  .s1c1-ext-list li a { padding: 7px 9px; font-size: 11.5px; }
  .s1c1-ext-promo { padding: 8px 10px; font-size: 11.5px; }
  .s1c1-ext-brand p { font-size: 12px; }
  .s1c1-disclaimer { font-size: 10.5px; }
  .s1c1-footer { font-size: 11px; padding: 16px 12px 6px; }
  .s1c1-dock { width: calc(100% - 16px); max-width: 400px; padding: 7px 6px; gap: 3px; bottom: 8px; }
  .s1c1-nav-item { padding: 5px 2px; min-height: 40px; }
  .s1c1-nav-icon { width: 20px; height: 20px; }
  .s1c1-nav-label { font-size: 9px; }
}
