/* ==============================================================================
   Teen Patti Go (teenpattigos.com) - Competitor-Style Simple Mobile-First Stylesheet
   - Authentic 720px container matching teenpattigo.io
   - Responsive rem font scaling via pub_rem.js (1rem = 100px at 720px width)
   - Pixel-accurate positioning for #top, .kefu, .downBtn, .downNum, .bannerBox
   - Clean, lightweight content cards below the poster
   - Fully accessible, zero emojis, high performance Core Web Vitals
   ============================================================================== */

:root {
  --bg-dark: #080312;
  --bg-container: #0c051a;
  --bg-card: rgba(22, 10, 41, 0.85);
  --border-gold: #f5b82e;
  --border-gold-subtle: rgba(245, 184, 46, 0.28);
  --gold-primary: #f5b82e;
  --gold-light: #fed876;
  --gold-glow: rgba(245, 184, 46, 0.5);
  --green-online: #10b981;
  --text-main: #f8fafc;
  --text-sub: #cbd5e1;
  --text-muted: #94a3b8;
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 10px;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 50% 0%, #20083b 0%, transparent 60%),
    radial-gradient(circle at 10% 40%, rgba(147, 51, 234, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 60%, rgba(245, 184, 46, 0.06) 0%, transparent 40%);
  background-attachment: fixed;
  font-family: var(--font-stack);
  overflow-x: hidden;
  padding-bottom: 70px;
}

a {
  color: var(--gold-primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

/* ==============================================================================
   1. Competitor Main Container Layout (max-width: 720px)
   ============================================================================== */
.container {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  background-color: var(--bg-container);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.9);
  z-index: 1;
}

/* 2. Top Header Banner (#top) */
#top {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 720px;
  height: 1.3rem;
  background-image: url("../img/teenpattigo-header.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  z-index: 999;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

/* 3. Floating 24/7 Advisory Button (.kefu) */
.kefu a {
  position: fixed;
  top: 0.15rem;
  right: max(10px, calc(50% - 3.45rem));
  width: 0.95rem;
  height: 0.95rem;
  background-image: url("../img/btn_advisory.png");
  background-size: 100% 100%;
  z-index: 1000;
  display: block;
  transition: transform 0.2s ease;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
}

.kefu a:hover {
  transform: scale(1.08);
}

/* 4. Poster Hero Wrap */
.poster-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.bg {
  display: block;
  width: 100%;
  height: auto;
}

/* Pulsing Download Button */
.container .downBtn {
  position: absolute;
  top: 37.5%;
  left: 23%;
  width: 55%;
  height: 1.2rem;
  background-image: url("../img/btn_download.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  cursor: pointer;
  z-index: 10;
  animation: pulseDownBtn 2.2s infinite ease-in-out;
}

@keyframes pulseDownBtn {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
    filter: brightness(1.1) drop-shadow(0 0 14px var(--gold-glow));
  }
}

.container .downBtn:hover {
  transform: scale(1.06);
  filter: brightness(1.15) drop-shadow(0 0 18px var(--gold-glow));
}

/* Download Counter Ribbon */
.container .downNum {
  position: absolute;
  top: 46.8%;
  right: 37%;
  width: 2rem;
  z-index: 10;
  pointer-events: none;
}

.container .downNum img {
  display: block;
  width: 100%;
}

/* Promo Banner Slider */
.bannerBox {
  position: absolute;
  left: 3%;
  top: 57.5%;
  width: 94%;
  height: 3.4rem;
  z-index: 10;
}

.banner {
  margin: 0 auto;
  width: 90%;
  height: 100%;
  overflow: hidden;
  position: relative;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.8);
  border: 1px solid var(--border-gold-subtle);
}

.carousel-track {
  display: flex;
  width: 500%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  width: 20%;
  height: 100%;
  flex-shrink: 0;
}

.carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 20;
}

.carousel-dots .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.25s ease;
}

.carousel-dots .dot.active {
  background: var(--gold-primary);
  width: 18px;
  border-radius: 4px;
  box-shadow: 0 0 8px var(--gold-glow);
}

/* ==============================================================================
   5. Highlights Strip (Below Poster)
   ============================================================================== */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 16px 14px;
  background: linear-gradient(180deg, rgba(22, 10, 41, 0.95) 0%, rgba(12, 5, 26, 0.95) 100%);
  border-top: 1px solid var(--border-gold-subtle);
  border-bottom: 1px solid var(--border-gold-subtle);
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stat-val {
  font-size: 15px;
  font-weight: 800;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 5px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background-color: var(--green-online);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--green-online);
  animation: pulseGreen 1.8s infinite;
}

@keyframes pulseGreen {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.stat-lbl {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ==============================================================================
   6. Content Cards Section
   ============================================================================== */
.content-wrap {
  padding: 22px 16px;
}

.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold-subtle);
  border-radius: 14px;
  padding: 20px 16px;
  margin-bottom: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.content-card h2 {
  font-size: 19px;
  font-weight: 800;
  color: var(--gold-light);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(245, 184, 46, 0.2);
  padding-bottom: 8px;
}

.content-card h2 svg {
  flex-shrink: 0;
}

.content-card p {
  font-size: 13.5px;
  color: var(--text-sub);
  line-height: 1.65;
  margin-bottom: 12px;
}

.content-card p:last-child {
  margin-bottom: 0;
}

/* Specs Table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 13px;
}

.specs-table th, .specs-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(245, 184, 46, 0.15);
  text-align: left;
}

.specs-table th {
  color: var(--gold-primary);
  font-weight: 700;
  width: 40%;
}

.specs-table td {
  color: var(--text-main);
}

.specs-table tr:last-child th,
.specs-table tr:last-child td {
  border-bottom: none;
}

/* Games Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.game-item {
  background: rgba(14, 5, 29, 0.7);
  border: 1px solid var(--border-gold-subtle);
  border-radius: 10px;
  padding: 14px 12px;
  transition: all 0.2s ease;
}

.game-item:hover {
  border-color: var(--border-gold);
  transform: translateY(-2px);
}

.game-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 4px;
}

.game-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Installation Steps */
.install-flow {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.install-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(14, 5, 29, 0.7);
  border: 1px solid var(--border-gold-subtle);
  border-radius: 10px;
  padding: 12px 14px;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-primary), #c98818);
  color: #080312;
  font-weight: 900;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--gold-glow);
}

.step-info h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 3px;
}

.step-info p {
  font-size: 12.5px;
  color: var(--text-sub);
  margin: 0;
  line-height: 1.5;
}

/* FAQ Accordion */
.faq-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.faq-entry {
  background: rgba(14, 5, 29, 0.7);
  border: 1px solid var(--border-gold-subtle);
  border-radius: 10px;
  padding: 12px 14px;
}

.faq-entry summary {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-light);
  cursor: pointer;
  user-select: none;
  outline: none;
}

.faq-entry p {
  font-size: 13px;
  color: var(--text-sub);
  margin-top: 8px;
  line-height: 1.6;
}

/* Download CTA Card */
.cta-card {
  text-align: center;
  background: linear-gradient(135deg, rgba(33, 15, 61, 0.95), rgba(18, 7, 36, 0.95));
  border: 1.5px solid var(--border-gold);
  border-radius: 14px;
  padding: 24px 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  margin-bottom: 24px;
}

.btn-main-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold-primary), #c98818);
  color: #080312;
  font-size: 16px;
  font-weight: 900;
  padding: 14px 34px;
  border-radius: 30px;
  box-shadow: 0 4px 18px var(--gold-glow);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  margin: 12px 0 8px 0;
}

.btn-main-cta:hover {
  background: linear-gradient(135deg, #ffd76a, #e5a420);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(245, 184, 46, 0.7);
  color: #080312;
  text-decoration: none;
}

/* ==============================================================================
   7. Streamlined Competitor-Style Footer
   ============================================================================== */
.footer {
  background: linear-gradient(180deg, #100624 0%, #06020c 100%);
  border-top: 2px solid var(--border-gold);
  padding: 20px 16px 14px 16px;
  color: var(--text-sub);
  text-align: center;
  font-size: 12px;
}

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

.footer-nav a {
  font-size: 12.5px;
  color: var(--gold-light);
  font-weight: 600;
}

.footer-nav a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-payments {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 16px 0;
}

.pay-badge {
  background: rgba(245, 184, 46, 0.1);
  border: 1px solid rgba(245, 184, 46, 0.25);
  border-radius: 12px;
  padding: 4px 10px;
  font-size: 11px;
  color: var(--gold-light);
  font-weight: 600;
}

.footer-advisory {
  background: rgba(225, 29, 72, 0.08);
  border: 1px solid rgba(225, 29, 72, 0.2);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
  text-align: left;
}

.footer-advisory h5 {
  font-size: 12px;
  font-weight: 700;
  color: #f87171;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.footer-advisory p {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.footer-copyright {
  font-size: 11.5px;
  color: var(--text-muted);
  border-top: 1px solid rgba(245, 184, 46, 0.15);
  padding-top: 12px;
  margin-top: 10px;
}

/* ==============================================================================
   8. Mobile Sticky Bottom Download Bar
   ============================================================================== */
.bottom-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 720px;
  background: rgba(12, 5, 26, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1.5px solid var(--border-gold);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 990;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.7);
  cursor: pointer;
}

.sticky-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sticky-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border-gold);
}

.sticky-text {
  display: flex;
  flex-direction: column;
}

.sticky-name {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.sticky-sub {
  font-size: 11px;
  color: var(--gold-light);
  font-weight: 600;
}

.sticky-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--gold-primary), #c98818);
  color: #080312;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 18px;
  border-radius: 20px;
  box-shadow: 0 2px 10px var(--gold-glow);
  border: none;
  cursor: pointer;
}
