/*
 * tk-10.click base stylesheet (mobile-first, 320-430px canvas)
 * Class prefix: pge2-
 * Comments are in English per project convention.
 */

:root {
  --pge2-bg: #1A1A1A;
  --pge2-bg-2: #232323;
  --pge2-bg-3: #2c2c2c;
  --pge2-line: #3a3a3a;
  --pge2-text: #E5E5E5;
  --pge2-muted: #9a9a9a;
  --pge2-accent: #4DB6AC;
  --pge2-accent-2: #6fd3c9;
  --pge2-warn: #ff8a4d;
  --pge2-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
  --pge2-radius: 12px;
  --pge2-header-h: 58px;
  --pge2-bottom-h: 66px;
  --pge2-max-w: 480px;
}

* {
  box-sizing: border-box;
}

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

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

a {
  color: var(--pge2-accent-2);
  text-decoration: none;
}

a:hover, a:focus {
  text-decoration: underline;
}

.pge2-no-scroll {
  overflow: hidden;
}

/* Mobile canvas wrapper - keeps narrow layout centered on wider screens */
.pge2-canvas {
  max-width: var(--pge2-max-w);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--pge2-bg);
  position: relative;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
}

/* ============== Header ============== */
.pge2-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--pge2-header-h);
  background: linear-gradient(180deg, #1f1f1f, #161616);
  border-bottom: 1px solid var(--pge2-line);
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 8px;
}

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

.pge2-brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--pge2-line);
  background: #0d0d0d;
  flex-shrink: 0;
}

.pge2-brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pge2-brand-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--pge2-text);
  line-height: 1.1;
  white-space: nowrap;
}

.pge2-brand-tag {
  font-size: 10px;
  color: var(--pge2-accent);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.pge2-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pge2-btn {
  font-family: inherit;
  cursor: pointer;
  border: none;
  border-radius: 9px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  min-height: 38px;
  min-width: 44px;
  transition: transform 0.12s ease, background 0.2s ease;
}

.pge2-btn:active {
  transform: scale(0.94);
}

.pge2-btn--ghost {
  background: transparent;
  color: var(--pge2-text);
  border: 1px solid var(--pge2-line);
}

.pge2-btn--accent {
  background: linear-gradient(135deg, var(--pge2-accent), #38978d);
  color: #0b1413;
}

.pge2-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--pge2-bg-3);
  border: 1px solid var(--pge2-line);
  color: var(--pge2-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.pge2-icon-btn:active {
  transform: scale(0.93);
}

.pge2-icon-btn svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* ============== Drawer / Overlay ============== */
.pge2-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 80;
}

.pge2-overlay--visible {
  opacity: 1;
  pointer-events: auto;
}

.pge2-drawer {
  position: fixed;
  top: 0;
  right: -280px;
  width: 260px;
  height: 100vh;
  background: #1c1c1c;
  border-left: 1px solid var(--pge2-line);
  z-index: 90;
  transition: right 0.28s ease;
  overflow-y: auto;
  padding: 18px 14px calc(var(--pge2-bottom-h) + 20px);
}

.pge2-drawer--open {
  right: 0;
}

.pge2-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.pge2-drawer-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--pge2-accent);
}

.pge2-drawer-close {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--pge2-bg-3);
  color: var(--pge2-text);
  border: 1px solid var(--pge2-line);
  cursor: pointer;
  font-size: 18px;
}

.pge2-drawer-link {
  display: block;
  padding: 11px 12px;
  margin-bottom: 6px;
  border-radius: 9px;
  color: var(--pge2-text);
  background: var(--pge2-bg-2);
  border: 1px solid var(--pge2-line);
  font-size: 14px;
  font-weight: 500;
}

.pge2-drawer-link:hover {
  text-decoration: none;
  background: var(--pge2-bg-3);
}

.pge2-drawer-link--active {
  background: linear-gradient(135deg, rgba(77, 182, 172, 0.18), rgba(77, 182, 172, 0.06));
  border-color: var(--pge2-accent);
  color: var(--pge2-accent-2);
}

.pge2-drawer-section-title {
  font-size: 11px;
  color: var(--pge2-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 14px 4px 6px;
}

.pge2-drawer-cta {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.pge2-drawer-cta .pge2-btn {
  flex: 1;
}

/* ============== Main ============== */
.pge2-main {
  padding: 12px 12px calc(var(--pge2-bottom-h) + 24px);
}

/* ============== Hero carousel ============== */
.pge2-hero {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
  background: #0d0d0d;
  border: 1px solid var(--pge2-line);
  box-shadow: var(--pge2-shadow);
}

.pge2-hero-track {
  position: relative;
  aspect-ratio: 16 / 9;
}

.pge2-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}

.pge2-hero-slide--active {
  opacity: 1;
}

.pge2-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pge2-hero-caption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  right: 60px;
  background: linear-gradient(0deg, rgba(0,0,0,0.85), rgba(0,0,0,0));
  color: #fff;
  padding: 24px 12px 8px;
  border-radius: 0 0 14px 14px;
  pointer-events: none;
}

.pge2-hero-caption strong {
  display: block;
  font-size: 16px;
  color: var(--pge2-accent-2);
  margin-bottom: 2px;
}

.pge2-hero-caption span {
  font-size: 12px;
  color: #ddd;
}

.pge2-hero-dots {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  gap: 5px;
  z-index: 2;
}

.pge2-hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.pge2-hero-dot--active {
  background: var(--pge2-accent);
  transform: scale(1.3);
}

/* ============== Quick promo bar ============== */
.pge2-quick-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.pge2-quick {
  background: var(--pge2-bg-2);
  border: 1px solid var(--pge2-line);
  border-radius: 11px;
  padding: 10px 4px;
  text-align: center;
  color: var(--pge2-text);
  font-size: 11px;
  cursor: pointer;
  transition: transform 0.12s, border-color 0.2s;
}

.pge2-quick:hover {
  text-decoration: none;
  border-color: var(--pge2-accent);
}

.pge2-quick:active {
  transform: scale(0.95);
}

.pge2-quick svg {
  width: 24px;
  height: 24px;
  margin: 0 auto 4px;
  color: var(--pge2-accent);
}

/* ============== Section title ============== */
.pge2-section {
  margin: 22px 0 14px;
}

.pge2-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--pge2-line);
}

.pge2-section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--pge2-text);
  margin: 0;
}

.pge2-section-title em {
  color: var(--pge2-accent);
  font-style: normal;
}

.pge2-section-more {
  font-size: 12px;
  color: var(--pge2-accent-2);
}

.pge2-cat-chips {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 10px;
  scrollbar-width: none;
}

.pge2-cat-chips::-webkit-scrollbar {
  display: none;
}

.pge2-cat-chip {
  flex-shrink: 0;
  background: var(--pge2-bg-2);
  border: 1px solid var(--pge2-line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--pge2-muted);
  cursor: pointer;
  white-space: nowrap;
}

.pge2-cat-chip--active {
  background: var(--pge2-accent);
  color: #0b1413;
  border-color: var(--pge2-accent);
  font-weight: 600;
}

/* ============== Game grid ============== */
.pge2-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

@media (min-width: 360px) {
  .pge2-game-grid {
    gap: 10px;
  }
}

@media (min-width: 400px) {
  .pge2-game-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.pge2-game-card {
  background: var(--pge2-bg-2);
  border: 1px solid var(--pge2-line);
  border-radius: 11px;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.2s;
}

.pge2-game-card--visible {
  opacity: 1;
  transform: translateY(0);
}

.pge2-game-card:hover {
  border-color: var(--pge2-accent);
}

.pge2-game-card:active {
  transform: scale(0.95);
}

.pge2-game-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #0d0d0d;
}

.pge2-game-name {
  display: block;
  font-size: 11px;
  color: var(--pge2-text);
  padding: 5px 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============== Info / content blocks ============== */
.pge2-block {
  background: var(--pge2-bg-2);
  border: 1px solid var(--pge2-line);
  border-radius: 12px;
  padding: 14px;
  margin: 14px 0;
}

.pge2-block h2 {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--pge2-text);
}

.pge2-block h3 {
  margin: 12px 0 4px;
  font-size: 14px;
  color: var(--pge2-accent);
}

.pge2-block p {
  margin: 0 0 8px;
  color: var(--pge2-text);
  font-size: 14px;
}

.pge2-block ul {
  margin: 6px 0 8px;
  padding-left: 20px;
}

.pge2-block li {
  margin-bottom: 4px;
  font-size: 13px;
}

.pge2-step-list {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 8px 0;
}

.pge2-step-list li {
  position: relative;
  padding: 8px 10px 8px 38px;
  margin-bottom: 7px;
  background: var(--pge2-bg-3);
  border-radius: 9px;
  border: 1px solid var(--pge2-line);
  font-size: 13px;
  counter-increment: step;
}

.pge2-step-list li::before {
  content: counter(step);
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--pge2-accent);
  color: #0b1413;
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.pge2-info-tile {
  background: var(--pge2-bg-3);
  border: 1px solid var(--pge2-line);
  border-radius: 10px;
  padding: 10px;
}

.pge2-info-tile strong {
  display: block;
  color: var(--pge2-accent);
  font-size: 12px;
  margin-bottom: 3px;
}

.pge2-info-tile span {
  font-size: 12px;
  color: var(--pge2-muted);
}

/* ============== Banner CTA ============== */
.pge2-cta {
  background: linear-gradient(135deg, #1d2e2c, #11201f);
  border: 1px solid var(--pge2-accent);
  border-radius: 14px;
  padding: 16px;
  margin: 16px 0;
  text-align: center;
}

.pge2-cta h3 {
  margin: 0 0 6px;
  color: var(--pge2-accent-2);
  font-size: 17px;
}

.pge2-cta p {
  margin: 0 0 12px;
  color: var(--pge2-text);
  font-size: 13px;
}

/* ============== Extended footer (homepage only) ============== */
.pge2-ext {
  margin: 22px 0 14px;
}

.pge2-ext-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  margin: 10px 0;
}

.pge2-ext-card {
  background: var(--pge2-bg-2);
  border: 1px solid var(--pge2-line);
  border-radius: 11px;
  padding: 11px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pge2-ext-card strong {
  color: var(--pge2-accent);
  font-size: 13px;
}

.pge2-ext-card span {
  color: var(--pge2-muted);
  font-size: 12px;
}

.pge2-ext-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-top: 8px;
}

.pge2-ext-links a {
  background: var(--pge2-bg-3);
  border: 1px solid var(--pge2-line);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  color: var(--pge2-text);
  text-align: center;
}

.pge2-ext-links a:hover {
  text-decoration: none;
  border-color: var(--pge2-accent);
  color: var(--pge2-accent-2);
}

.pge2-disclaimer {
  background: var(--pge2-bg-2);
  border-left: 3px solid var(--pge2-warn);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--pge2-muted);
  margin-top: 12px;
}

/* ============== Footer ============== */
.pge2-footer {
  background: #141414;
  border-top: 1px solid var(--pge2-line);
  padding: 16px 14px calc(var(--pge2-bottom-h) + 14px);
  text-align: center;
  color: var(--pge2-muted);
  font-size: 12px;
}

.pge2-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
  margin-bottom: 10px;
}

.pge2-footer-nav a {
  color: var(--pge2-muted);
  font-size: 12px;
}

.pge2-footer-copy {
  color: var(--pge2-muted);
}

/* ============== Bottom nav ============== */
.pge2-bottom {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  background: linear-gradient(180deg, #1c1c1c, #0e0e0e);
  border-top: 1px solid var(--pge2-line);
  display: flex;
  align-items: stretch;
  height: var(--pge2-bottom-h);
  max-width: var(--pge2-max-w);
  margin: 0 auto;
}

.pge2-bottom-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--pge2-muted);
  font-size: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 2px;
  position: relative;
  text-decoration: none;
  transition: color 0.2s;
}

.pge2-bottom-item:hover {
  text-decoration: none;
}

.pge2-bottom-item svg {
  width: 22px;
  height: 22px;
  display: block;
  color: currentColor;
}

.pge2-bottom-item--promo {
  color: var(--pge2-accent);
}

.pge2-bottom-item--active {
  color: var(--pge2-accent-2);
}

.pge2-bottom-item--active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--pge2-accent);
}

.pge2-bottom-item--promo svg {
  background: linear-gradient(135deg, var(--pge2-accent), #2f7e76);
  color: #0b1413;
  padding: 5px;
  border-radius: 12px;
  width: 34px;
  height: 34px;
  margin-top: -10px;
  box-shadow: 0 3px 8px rgba(77, 182, 172, 0.4);
}

.pge2-press--tap {
  transform: scale(0.92);
}

/* Utility */
.pge2-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;
}
