/* f111.homes - theme.css
 * Mobile-first gaming site styles, all classes use pg61- prefix
 * Palette: #1B263B (deep bg) | #20B2AA (teal primary) | #B03060 (rose accent)
 *          #80CBC4 (soft teal) | #E9967A (warm sand) | #DEE2E6 (light text)
 */

:root {
  --pg61-primary: #20B2AA;
  --pg61-primary-dark: #1B8B85;
  --pg61-accent: #B03060;
  --pg61-accent-soft: #E9967A;
  --pg61-bg: #1B263B;
  --pg61-bg-alt: #14202f;
  --pg61-bg-card: #21304a;
  --pg61-text: #DEE2E6;
  --pg61-text-dim: #a9b3c4;
  --pg61-teal-soft: #80CBC4;
  --pg61-border: rgba(222, 226, 230, 0.12);
  --pg61-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  --pg61-radius: 12px;
  --pg61-radius-sm: 8px;
  --pg61-header-h: 56px;
  --pg61-bottom-h: 62px;
}

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

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

body {
  font-family: "Hind Siliguri", "Noto Sans Bengali", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--pg61-bg);
  color: var(--pg61-text);
  line-height: 1.5rem;
  font-size: 1.6rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 62.5% root for rem units */
html { font-size: 62.5%; }

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

a { color: var(--pg61-teal-soft); text-decoration: none; }
a:hover { color: var(--pg61-primary); }

.pg61-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 14px; position: relative; }
.pg61-wrapper { min-height: 100vh; display: flex; flex-direction: column; }

/* ============ HEADER ============ */
.pg61-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, #1B263B 0%, #14202f 100%);
  border-bottom: 1px solid var(--pg61-border);
  box-shadow: var(--pg61-shadow);
}
.pg61-header-inner {
  max-width: 430px; margin: 0 auto; height: var(--pg61-header-h);
  display: flex; align-items: center; gap: 10px; padding: 0 14px;
}
.pg61-logo { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.pg61-logo img { width: 28px; height: 28px; border-radius: 6px; }
.pg61-logo-text { font-size: 1.9rem; font-weight: 700; color: var(--pg61-teal-soft); letter-spacing: .5px; white-space: nowrap; }
.pg61-logo-text span { color: var(--pg61-accent-soft); }

.pg61-menu-toggle {
  background: transparent; border: 0; color: var(--pg61-text); cursor: pointer;
  font-size: 2.2rem; width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
}
.pg61-menu-toggle:hover, .pg61-menu-active { background: rgba(32, 178, 170, 0.15); color: var(--pg61-primary); transform: scale(1.05); }

.pg61-header-actions { display: flex; gap: 8px; }
.pg61-btn {
  font-family: inherit; cursor: pointer; border: 0; border-radius: var(--pg61-radius-sm);
  font-weight: 700; font-size: 1.3rem; padding: 8px 14px; transition: transform .15s, box-shadow .2s, background .2s;
  min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.pg61-btn-register { background: linear-gradient(135deg, var(--pg61-accent) 0%, #d04578 100%); color: #fff; box-shadow: 0 3px 10px rgba(176, 48, 96, 0.4); }
.pg61-btn-login { background: linear-gradient(135deg, var(--pg61-primary) 0%, var(--pg61-primary-dark) 100%); color: #fff; box-shadow: 0 3px 10px rgba(32, 178, 170, 0.4); }
.pg61-btn:hover { transform: translateY(-1px); }
.pg61-btn-register:hover { background: linear-gradient(135deg, #c0335f 0%, var(--pg61-accent) 100%); }
.pg61-btn-login:hover { background: linear-gradient(135deg, var(--pg61-primary-dark) 0%, #166e69 100%); }

/* ============ MOBILE MENU ============ */
.pg61-mobile-menu {
  position: fixed; top: var(--pg61-header-h); left: 0; right: 0; z-index: 9999;
  background: var(--pg61-bg-alt); border-bottom: 1px solid var(--pg61-border);
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
  box-shadow: var(--pg61-shadow);
}
.pg61-menu-open { max-height: 480px; overflow-y: auto; }
.pg61-menu-list { list-style: none; padding: 8px 14px 16px; max-width: 430px; margin: 0 auto; }
.pg61-menu-list li { border-bottom: 1px solid var(--pg61-border); }
.pg61-menu-list li:last-child { border-bottom: 0; }
.pg61-menu-list a {
  display: flex; align-items: center; gap: 12px; padding: 12px 8px; color: var(--pg61-text);
  font-size: 1.5rem; font-weight: 500;
}
.pg61-menu-list a:hover { color: var(--pg61-primary); background: rgba(32,178,170,0.08); }
.pg61-menu-list .material-icons-outlined, .pg61-menu-list i { font-size: 22px; color: var(--pg61-teal-soft); width: 24px; text-align: center; }

/* ============ MAIN ============ */
.pg61-main { flex: 1; padding-top: var(--pg61-header-h); padding-bottom: 80px; }

/* ============ HERO / CAROUSEL ============ */
.pg61-carousel { position: relative; width: 100%; max-width: 430px; margin: 12px auto 0; border-radius: var(--pg61-radius); overflow: hidden; box-shadow: var(--pg61-shadow); }
.pg61-carousel-track { position: relative; height: 180px; }
.pg61-carousel-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; cursor: pointer;
}
.pg61-carousel-slide img { width: 100%; height: 180px; object-fit: cover; }
.pg61-slide-active { opacity: 1; }
.pg61-carousel-caption {
  position: absolute; left: 14px; bottom: 18px; right: 14px; z-index: 2;
  background: linear-gradient(transparent, rgba(0,0,0,0.6)); color: #fff; padding: 24px 12px 8px;
}
.pg61-carousel-caption h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 4px; }
.pg61-carousel-caption p { font-size: 1.25rem; opacity: .9; }
.pg61-carousel-dots { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 3; }
.pg61-carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: background .2s, width .2s; border: 0; padding: 0; }
.pg61-dot-active { background: var(--pg61-primary); width: 22px; border-radius: 4px; }

/* ============ SECTIONS ============ */
.pg61-section { padding: 22px 0 8px; }
.pg61-section-title {
  font-size: 2rem; font-weight: 700; margin-bottom: 12px; color: var(--pg61-text);
  display: flex; align-items: center; gap: 8px; padding-left: 10px; border-left: 4px solid var(--pg61-primary);
}
.pg61-section-title .pg61-ico { color: var(--pg61-accent-soft); font-size: 22px; }
.pg61-section-title small { font-size: 1.3rem; color: var(--pg61-text-dim); font-weight: 500; margin-left: auto; }

.pg61-h1 { font-size: 2.2rem; font-weight: 800; line-height: 1.3; margin: 14px 0 10px; color: #fff; }
.pg61-h1 span { color: var(--pg61-primary); }
.pg61-lead { font-size: 1.45rem; color: var(--pg61-text-dim); margin-bottom: 14px; line-height: 1.6; }

/* ============ CATEGORY NAV ============ */
.pg61-cat-nav { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 12px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.pg61-cat-nav::-webkit-scrollbar { display: none; }
.pg61-cat-chip {
  flex: 0 0 auto; padding: 8px 16px; border-radius: 20px; background: var(--pg61-bg-card);
  color: var(--pg61-text-dim); font-size: 1.3rem; font-weight: 600; border: 1px solid var(--pg61-border);
  cursor: pointer; transition: background .2s, color .2s; white-space: nowrap;
}
.pg61-cat-chip:hover, .pg61-cat-chip.pg61-chip-active { background: var(--pg61-primary); color: #fff; border-color: var(--pg61-primary); }

/* ============ GAME GRID ============ */
.pg61-game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pg61-game-card { background: var(--pg61-bg-card); border: 1px solid var(--pg61-border); border-radius: var(--pg61-radius-sm); padding: 8px; text-align: center; cursor: pointer; transition: transform .15s, box-shadow .2s, border-color .2s; overflow: hidden; }
.pg61-game-card:hover { transform: translateY(-2px); border-color: var(--pg61-primary); box-shadow: 0 6px 14px rgba(32,178,170,0.25); }
.pg61-game-card img { width: 100%; height: 78px; object-fit: cover; border-radius: 6px; margin-bottom: 6px; background: #0d1622; }
.pg61-game-name { font-size: 1.15rem; color: var(--pg61-text); font-weight: 600; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 30px; }

/* ============ FEATURES / CARDS ============ */
.pg61-card { background: var(--pg61-bg-card); border: 1px solid var(--pg61-border); border-radius: var(--pg61-radius); padding: 16px; margin-bottom: 12px; box-shadow: var(--pg61-shadow); }
.pg61-card h3 { font-size: 1.7rem; font-weight: 700; margin-bottom: 8px; color: var(--pg61-teal-soft); display: flex; align-items: center; gap: 8px; }
.pg61-card h3 .pg61-ico { color: var(--pg61-accent-soft); font-size: 22px; }
.pg61-card p { font-size: 1.4rem; color: var(--pg61-text-dim); margin-bottom: 8px; }
.pg61-card ul { list-style: none; padding: 0; }
.pg61-card ul li { position: relative; padding-left: 22px; margin-bottom: 8px; font-size: 1.4rem; color: var(--pg61-text-dim); }
.pg61-card ul li::before { content: "▶"; position: absolute; left: 4px; color: var(--pg61-primary); font-size: 1rem; top: 4px; }

.pg61-cta { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border-radius: 24px; font-weight: 700; font-size: 1.45rem; background: linear-gradient(135deg, var(--pg61-accent) 0%, var(--pg61-accent-soft) 100%); color: #fff; cursor: pointer; border: 0; box-shadow: 0 4px 12px rgba(176,48,96,0.45); transition: transform .15s; }
.pg61-cta:hover { transform: translateY(-2px); }
.pg61-cta.pg61-cta-teal { background: linear-gradient(135deg, var(--pg61-primary) 0%, var(--pg61-teal-soft) 100%); box-shadow: 0 4px 12px rgba(32,178,170,0.45); }

.pg61-text-link { color: var(--pg61-primary); font-weight: 700; border-bottom: 1px dashed var(--pg61-primary); cursor: pointer; }
.pg61-text-link:hover { color: var(--pg61-teal-soft); border-bottom-color: var(--pg61-teal-soft); }

/* ============ RTP / STATS ============ */
.pg61-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pg61-stat { background: var(--pg61-bg-alt); border-radius: var(--pg61-radius-sm); padding: 12px; text-align: center; border: 1px solid var(--pg61-border); }
.pg61-stat-num { font-size: 2rem; font-weight: 800; color: var(--pg61-primary); display: block; }
.pg61-stat-label { font-size: 1.2rem; color: var(--pg61-text-dim); margin-top: 2px; }

/* ============ TESTIMONIALS ============ */
.pg61-testimonial { background: var(--pg61-bg-alt); border-left: 3px solid var(--pg61-accent-soft); padding: 12px 14px; border-radius: 0 var(--pg61-radius-sm) var(--pg61-radius-sm) 0; margin-bottom: 10px; }
.pg61-testimonial p { font-size: 1.35rem; color: var(--pg61-text); font-style: italic; margin-bottom: 6px; }
.pg61-testimonial cite { font-size: 1.2rem; color: var(--pg61-teal-soft); font-weight: 600; }

/* ============ PAYMENT ============ */
.pg61-pay-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pg61-pay-item { flex: 1 1 calc(33.33% - 8px); background: var(--pg61-bg-alt); border: 1px solid var(--pg61-border); border-radius: var(--pg61-radius-sm); padding: 10px 6px; text-align: center; font-size: 1.2rem; color: var(--pg61-text-dim); font-weight: 600; }
.pg61-pay-item i, .pg61-pay-item .material-icons-outlined { font-size: 24px; color: var(--pg61-teal-soft); display: block; margin-bottom: 4px; }

/* ============ WINNERS ============ */
.pg61-winner { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--pg61-bg-alt); border-radius: var(--pg61-radius-sm); margin-bottom: 8px; border: 1px solid var(--pg61-border); }
.pg61-winner-ava { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--pg61-primary), var(--pg61-accent)); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1.3rem; flex-shrink: 0; }
.pg61-winner-info { flex: 1; min-width: 0; }
.pg61-winner-name { font-size: 1.3rem; font-weight: 600; color: var(--pg61-text); }
.pg61-winner-game { font-size: 1.15rem; color: var(--pg61-text-dim); }
.pg61-winner-amount { font-size: 1.4rem; font-weight: 800; color: var(--pg61-accent-soft); }

/* ============ APP DOWNLOAD ============ */
.pg61-app-box { background: linear-gradient(135deg, var(--pg61-bg-card) 0%, var(--pg61-bg-alt) 100%); border: 1px solid var(--pg61-primary); border-radius: var(--pg61-radius); padding: 18px; text-align: center; }
.pg61-app-box h3 { color: var(--pg61-teal-soft); font-size: 1.8rem; margin-bottom: 6px; }
.pg61-app-box p { color: var(--pg61-text-dim); font-size: 1.35rem; margin-bottom: 12px; }
.pg61-app-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ============ FAQ ============ */
.pg61-faq-item { background: var(--pg61-bg-card); border: 1px solid var(--pg61-border); border-radius: var(--pg61-radius-sm); margin-bottom: 8px; overflow: hidden; }
.pg61-faq-q { padding: 12px 14px; font-weight: 700; color: var(--pg61-text); font-size: 1.4rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pg61-faq-q::after { content: "+"; color: var(--pg61-primary); font-size: 1.8rem; font-weight: 700; }
.pg61-faq-a { padding: 0 14px 12px; font-size: 1.3rem; color: var(--pg61-text-dim); display: none; }
.pg61-faq-item.pg61-faq-open .pg61-faq-a { display: block; }
.pg61-faq-item.pg61-faq-open .pg61-faq-q::after { content: "−"; }

/* ============ FOOTER ============ */
.pg61-footer { background: var(--pg61-bg-alt); border-top: 1px solid var(--pg61-border); padding: 22px 0 90px; margin-top: 20px; }
.pg61-footer-brand { font-size: 1.5rem; font-weight: 700; color: var(--pg61-teal-soft); margin-bottom: 6px; }
.pg61-footer-desc { font-size: 1.3rem; color: var(--pg61-text-dim); margin-bottom: 14px; line-height: 1.6; }
.pg61-footer-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pg61-footer-links a { flex: 1 1 calc(50% - 4px); background: var(--pg61-bg-card); border: 1px solid var(--pg61-border); border-radius: var(--pg61-radius-sm); padding: 8px 10px; text-align: center; font-size: 1.2rem; color: var(--pg61-text); font-weight: 600; }
.pg61-footer-links a:hover { color: var(--pg61-primary); border-color: var(--pg61-primary); }
.pg61-footer-copy { font-size: 1.15rem; color: var(--pg61-text-dim); text-align: center; padding-top: 12px; border-top: 1px solid var(--pg61-border); }

/* ============ BOTTOM NAV ============ */
.pg61-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: var(--pg61-bottom-h); background: linear-gradient(180deg, #21304a 0%, #14202f 100%);
  border-top: 1px solid var(--pg61-border); box-shadow: 0 -4px 14px rgba(0,0,0,0.4);
  display: flex; justify-content: space-around; align-items: stretch;
}
.pg61-nav-item {
  flex: 1; min-width: 60px; min-height: 60px; background: transparent; border: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--pg61-text-dim); font-size: 1.1rem; font-weight: 600; padding: 4px 2px;
  transition: color .2s, transform .15s; position: relative;
}
.pg61-nav-item i, .pg61-nav-item .material-icons-outlined, .pg61-nav-item .ionicon { font-size: 22px; }
.pg61-nav-item:hover { color: var(--pg61-teal-soft); }
.pg61-nav-item:active { transform: scale(0.92); }
.pg61-nav-active { color: var(--pg61-primary); }
.pg61-nav-active::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 28px; height: 3px; background: var(--pg61-primary); border-radius: 0 0 4px 4px; }
.pg61-nav-promo { color: var(--pg61-accent-soft); }
.pg61-nav-promo i, .pg61-nav-promo .material-icons-outlined { color: var(--pg61-accent-soft); }

/* ============ DESKTOP ============ */
@media (min-width: 769px) {
  .pg61-bottom-nav { display: none; }
  .pg61-footer { padding-bottom: 22px; }
  .pg61-main { padding-bottom: 20px; }
  .pg61-container { max-width: 720px; }
  .pg61-header-inner { max-width: 720px; }
  .pg61-carousel, .pg61-carousel-track { max-width: 720px; margin-left: auto; margin-right: auto; }
  .pg61-carousel-track { height: 260px; }
  .pg61-carousel-slide img { height: 260px; }
  .pg61-game-grid { grid-template-columns: repeat(5, 1fr); }
  .pg61-stats { grid-template-columns: repeat(4, 1fr); }
}

/* Small phone adjustments */
@media (max-width: 360px) {
  .pg61-game-grid { grid-template-columns: repeat(2, 1fr); }
  .pg61-h1 { font-size: 2rem; }
  .pg61-section-title { font-size: 1.8rem; }
}

/* Utility */
.pg61-center { text-align: center; }
.pg61-mt-12 { margin-top: 12px; }
.pg61-mb-12 { margin-bottom: 12px; }
.pg61-flex-between { display: flex; justify-content: space-between; align-items: center; }
.pg61-divider { height: 1px; background: var(--pg61-border); margin: 16px 0; border: 0; }
