/* =========================================================
 * tk100.click - core UI stylesheet
 * All custom classes and CSS variables use the s49e- prefix.
 * Mobile-first canvas (320-430px). Wide screens keep the
 * mobile canvas centered (no desktop-wide layout required).
 * Comments are in English.
 * ========================================================= */

:root {
  /* Site palette (from prompt): dark base + light text + accent pinks + mint */
  --s49e-bg-dark: #2C3E50;
  --s49e-bg-deeper: #22313f;
  --s49e-text-light: #D3D3D3;
  --s49e-mint: #98FB98;
  --s49e-pink-soft: #FF91A4;
  --s49e-pink-hot: #FF1493;
  --s49e-line: rgba(211, 211, 211, 0.14);
  --s49e-card: #2a3c50;
  --s49e-card-2: #31465c;
  --s49e-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
  --s49e-radius: 14px;
  --s49e-radius-sm: 10px;
  --s49e-touch: 44px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--s49e-bg-dark);
  color: var(--s49e-text-light);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
  /* Bottom safety space for fixed bottom navigation */
  padding-bottom: 78px;
  overflow-x: hidden;
}

/* Centered mobile canvas on wide screens */
@media (min-width: 480px) {
  body {
    background: linear-gradient(180deg, #1c2a37 0%, var(--s49e-bg-dark) 35%, var(--s49e-bg-dark) 100%);
  }
  .s49e-shell {
    max-width: 430px;
    margin: 0 auto;
    background: var(--s49e-bg-dark);
    min-height: 100vh;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.45);
    position: relative;
  }
}

a {
  color: var(--s49e-pink-soft);
  text-decoration: none;
}
a:hover, a:focus {
  color: var(--s49e-pink-hot);
}

h1, h2, h3, h4 {
  margin: 0 0 8px;
  line-height: 1.35;
  font-weight: 700;
}

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

/* ============== Header ============== */
.s49e-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #22313f 0%, #293e52 100%);
  border-bottom: 2px solid var(--s49e-pink-hot);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.s49e-header-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
}
.s49e-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.s49e-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--s49e-pink-soft);
  flex-shrink: 0;
}
.s49e-brand-name {
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.s49e-brand-name span {
  color: var(--s49e-pink-soft);
}
.s49e-btn {
  min-height: var(--s49e-touch);
  min-width: var(--s49e-touch);
  padding: 8px 12px;
  border: none;
  border-radius: 22px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}
.s49e-btn-register {
  background: linear-gradient(135deg, var(--s49e-pink-hot) 0%, var(--s49e-pink-soft) 100%);
  color: #fff;
  box-shadow: 0 3px 10px rgba(255, 20, 147, 0.45);
}
.s49e-btn-login {
  background: transparent;
  color: var(--s49e-mint);
  border: 1.5px solid var(--s49e-mint);
}
.s49e-menu-btn {
  background: transparent;
  color: #fff;
  border: 1px solid var(--s49e-line);
  width: var(--s49e-touch);
  height: var(--s49e-touch);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}
.s49e-menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--s49e-text-light);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.s49e-menu-btn-active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.s49e-menu-btn-active span:nth-child(2) { opacity: 0; }
.s49e-menu-btn-active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============== Expanded navigation menu ============== */
.s49e-nav-menu {
  max-height: 0;
  overflow: hidden;
  background: #20303f;
  transition: max-height 0.32s ease;
  border-top: 1px solid transparent;
}
.s49e-nav-open {
  max-height: 460px;
  position: relative;
  z-index: 9999;
  border-top: 1px solid var(--s49e-line);
}
.s49e-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--s49e-line);
  padding: 0;
}
.s49e-nav-item {
  background: #20303f;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--s49e-text-light);
  font-size: 13.5px;
  font-weight: 600;
  border: none;
  text-align: left;
}
.s49e-nav-item:hover, .s49e-nav-item:focus {
  background: #283d51;
  color: #fff;
}
.s49e-nav-item .s49e-nav-tag {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 10px;
  background: var(--s49e-pink-hot);
  color: #fff;
  font-weight: 700;
}
.s49e-nav-item .s49e-nav-tag.mint { background: var(--s49e-mint); color: #1d2b36; }

/* ============== Layout containers ============== */
.s49e-section {
  padding: 16px 12px;
}
.s49e-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 10px;
}
.s49e-section-title h2 {
  font-size: 18px;
  color: #fff;
  position: relative;
  padding-left: 14px;
}
.s49e-section-title h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--s49e-pink-hot), var(--s49e-pink-soft));
}
.s49e-section-title .s49e-cat-link {
  font-size: 12px;
  color: var(--s49e-mint);
  font-weight: 700;
}

/* ============== Hero carousel ============== */
.s49e-carousel {
  position: relative;
  margin: 14px 12px 4px;
  border-radius: var(--s49e-radius);
  overflow: hidden;
  box-shadow: var(--s49e-shadow);
}
.s49e-slides {
  position: relative;
  height: 180px;
}
.s49e-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  background-size: cover;
  background-position: center;
  cursor: pointer;
}
.s49e-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(34, 49, 63, 0) 35%, rgba(34, 49, 63, 0.92) 100%);
}
.s49e-slide-active {
  opacity: 1;
}
.s49e-slide-caption {
  position: relative;
  z-index: 2;
  color: #fff;
}
.s49e-slide-caption strong {
  display: block;
  font-size: 16px;
  color: var(--s49e-mint);
  margin-bottom: 2px;
}
.s49e-slide-caption span {
  font-size: 12.5px;
  color: var(--s49e-text-light);
}
.s49e-dots {
  position: absolute;
  bottom: 8px;
  right: 10px;
  z-index: 3;
  display: flex;
  gap: 5px;
}
.s49e-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  padding: 0;
  cursor: pointer;
}
.s49e-dot-active {
  background: var(--s49e-pink-hot);
  width: 22px;
  border-radius: 4px;
}

/* ============== Category quick chips ============== */
.s49e-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 12px 4px;
  scrollbar-width: none;
}
.s49e-chips::-webkit-scrollbar { display: none; }
.s49e-chip {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: 18px;
  background: #2f4458;
  color: var(--s49e-text-light);
  font-size: 12.5px;
  font-weight: 700;
  border: 1px solid var(--s49e-line);
  cursor: pointer;
  white-space: nowrap;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}
.s49e-chip:hover, .s49e-chip:focus {
  color: var(--s49e-mint);
  border-color: var(--s49e-mint);
}

/* ============== Game grid ============== */
.s49e-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}
@media (min-width: 360px) {
  .s49e-game-grid {
    gap: 10px;
  }
}
@media (min-width: 395px) {
  .s49e-game-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}
.s49e-game {
  background: var(--s49e-card);
  border-radius: var(--s49e-radius-sm);
  padding: 6px;
  text-align: center;
  cursor: pointer;
  border: 1px solid var(--s49e-line);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  overflow: hidden;
}
.s49e-game:hover, .s49e-game:focus {
  transform: translateY(-3px);
  border-color: var(--s49e-pink-soft);
  box-shadow: 0 6px 14px rgba(255, 20, 147, 0.28);
}
.s49e-game-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  background: #1f2f3f;
}
.s49e-game-name {
  display: block;
  font-size: 11.5px;
  color: var(--s49e-text-light);
  margin-top: 5px;
  line-height: 1.25;
  height: 28px;
  overflow: hidden;
  font-weight: 600;
}

/* ============== Info / content cards ============== */
.s49e-card {
  background: var(--s49e-card);
  border-radius: var(--s49e-radius);
  padding: 14px;
  border: 1px solid var(--s49e-line);
}
.s49e-card h3 {
  font-size: 15px;
  color: var(--s49e-mint);
  margin-bottom: 6px;
}
.s49e-card p {
  margin: 0 0 8px;
  font-size: 13.5px;
  color: var(--s49e-text-light);
}
.s49e-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 380px) {
  .s49e-info-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.s49e-mini-card {
  background: var(--s49e-card-2);
  border-radius: var(--s49e-radius-sm);
  padding: 12px;
  border-left: 3px solid var(--s49e-pink-soft);
}
.s49e-mini-card h4 {
  font-size: 13.5px;
  color: #fff;
  margin-bottom: 4px;
}
.s49e-mini-card p {
  margin: 0;
  font-size: 12.5px;
  color: var(--s49e-text-light);
}

.s49e-prose {
  font-size: 13.8px;
  color: var(--s49e-text-light);
  line-height: 1.7;
}
.s49e-prose p {
  margin: 0 0 10px;
}
.s49e-prose a {
  color: var(--s49e-pink-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.s49e-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  background: linear-gradient(135deg, var(--s49e-pink-hot) 0%, var(--s49e-pink-soft) 100%);
  color: #fff;
  border-radius: 26px;
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  min-height: var(--s49e-touch);
  box-shadow: 0 5px 14px rgba(255, 20, 147, 0.4);
}
.s49e-cta:hover, .s49e-cta:focus {
  color: #fff;
  filter: brightness(1.08);
}

/* ============== Extended footer ============== */
.s49e-ext-footer {
  background: #20303f;
  padding: 18px 12px 14px;
  border-top: 1px solid var(--s49e-line);
  margin-top: 16px;
}
.s49e-ext-footer .s49e-brand-about {
  font-size: 13px;
  color: var(--s49e-text-light);
  margin: 8px 0 12px;
}
.s49e-ext-title {
  color: var(--s49e-mint);
  font-size: 14px;
  font-weight: 700;
  margin: 12px 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.s49e-ext-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  margin-bottom: 8px;
}
.s49e-ext-links a {
  font-size: 12.5px;
  color: var(--s49e-text-light);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
}
.s49e-ext-links a:hover { color: var(--s49e-pink-soft); }
.s49e-promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 0 12px;
}
.s49e-promo-tile {
  background: linear-gradient(135deg, #31465c 0%, #2a3c50 100%);
  border: 1px solid var(--s49e-pink-hot);
  border-radius: 10px;
  padding: 10px;
  font-size: 12.5px;
  color: #fff;
  text-align: center;
  cursor: pointer;
  font-weight: 700;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.s49e-promo-tile:hover { border-color: var(--s49e-mint); color: var(--s49e-mint); }
.s49e-disclaimer {
  font-size: 11.5px;
  color: #88a0b3;
  background: #1a2734;
  padding: 10px;
  border-radius: 8px;
  border-left: 3px solid var(--s49e-pink-soft);
  margin-top: 8px;
}

/* ============== Copyright bar ============== */
.s49e-copyright {
  text-align: center;
  padding: 12px 12px 4px;
  font-size: 11.5px;
  color: #7c93a6;
  background: #1a2734;
}

/* ============== Bottom navigation ============== */
.s49e-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #293e52 0%, #1c2c3b 100%);
  border-top: 2px solid var(--s49e-pink-hot);
  box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  padding: 6px 4px calc(env(safe-area-inset-bottom, 0px) + 6px);
}
@media (min-width: 480px) {
  .s49e-bottom-nav {
    max-width: 430px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 14px 14px 0 0;
  }
}
.s49e-nav-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--s49e-text-light);
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 600;
  padding: 4px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  min-height: 56px;
  position: relative;
}
.s49e-nav-btn svg {
  width: 22px;
  height: 22px;
  display: block;
}
.s49e-nav-label {
  font-size: 10.5px;
  letter-spacing: 0.2px;
}
.s49e-nav-btn-current {
  color: var(--s49e-pink-soft);
}
.s49e-nav-btn-current::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--s49e-pink-hot);
}
.s49e-nav-btn-promo {
  color: var(--s49e-mint);
}

/* ============== Utilities ============== */
.s49e-container {
  padding: 4px 12px;
}
.s49e-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.s49e-hidden { display: none !important; }
