/* ============================================================
   playtime apps (playtimeapps.homes) - Core Base Stylesheet
   Class prefix: pg65-
   Palette: #3A3A3A (dark base) | #F5DEB3 (light text) | #F08080 (accent)
   Mobile-first HTML5 online casino layout (max-width 430px)
   ============================================================ */

:root {
  --pg65-bg: #3A3A3A;
  --pg65-bg-2: #2c2c2c;
  --pg65-bg-3: #4a4a4a;
  --pg65-text: #F5DEB3;
  --pg65-text-soft: #d9c394;
  --pg65-accent: #F08080;
  --pg65-accent-2: #e26a6a;
  --pg65-white: #fffaf0;
  --pg65-muted: #9a8c6f;
  --pg65-border: rgba(245, 222, 179, 0.18);
  --pg65-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --pg65-radius: 14px;
  --pg65-radius-sm: 10px;
  --pg65-header-h: 60px;
  --pg65-nav-h: 64px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", "Helvetica Neue", Roboto, system-ui, -apple-system, sans-serif;
  background: var(--pg65-bg);
  color: var(--pg65-text);
  line-height: 1.5;
  font-size: 1.5rem;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--pg65-accent); text-decoration: none; }
a:hover { color: var(--pg65-text); }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- Layout helpers ---------- */
.pg65-wrap { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 14px; }
.pg65-section { padding: 28px 0; }
.pg65-hidden { display: none !important; }
.pg65-text-accent { color: var(--pg65-accent); }
.pg65-center { text-align: center; }

/* ---------- Header ---------- */
.pg65-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--pg65-header-h);
  background: linear-gradient(180deg, #2c2c2c 0%, #3A3A3A 100%);
  border-bottom: 1px solid var(--pg65-border);
  z-index: 1000;
  display: flex; align-items: center;
}
.pg65-header-inner {
  width: 100%; max-width: 430px; margin: 0 auto;
  padding: 0 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.pg65-logo {
  display: flex; align-items: center; gap: 8px;
  color: var(--pg65-text); font-weight: 800; font-size: 1.7rem;
  letter-spacing: 0.3px;
}
.pg65-logo img { width: 34px; height: 34px; border-radius: 8px; }
.pg65-logo .pg65-logo-dot { color: var(--pg65-accent); }
.pg65-header-actions { display: flex; align-items: center; gap: 8px; }
.pg65-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 1.35rem; font-weight: 700;
  padding: 8px 16px; border-radius: 30px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.pg65-btn:active { transform: scale(0.96); }
.pg65-btn-login {
  background: transparent; color: var(--pg65-text);
  border: 1px solid var(--pg65-text);
}
.pg65-btn-login:hover { background: rgba(245, 222, 179, 0.1); }
.pg65-btn-register {
  background: linear-gradient(135deg, var(--pg65-accent), var(--pg65-accent-2));
  color: #2c2c2c;
  box-shadow: 0 4px 14px rgba(240, 128, 128, 0.4);
}
.pg65-btn-register:hover { color: #2c2c2c; filter: brightness(1.05); }
.pg65-menu-btn {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(245, 222, 179, 0.08);
  font-size: 2.1rem; color: var(--pg65-text);
}

/* ---------- Mobile menu drawer ---------- */
.pg65-menu-backdrop {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9998; opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease;
}
.pg65-menu-backdrop.pg65-open { opacity: 1; visibility: visible; }
.pg65-mobile-menu {
  position: fixed; top: 0; right: -86%;
  width: 86%; max-width: 360px; height: 100vh;
  background: var(--pg65-bg-2);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 20px 18px;
  overflow-y: auto;
  border-left: 1px solid var(--pg65-border);
}
.pg65-mobile-menu.pg65-open { right: 0; }
.pg65-menu-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; padding-bottom: 14px;
  border-bottom: 1px solid var(--pg65-border);
}
.pg65-menu-head h3 { font-size: 1.7rem; color: var(--pg65-text); }
.pg65-menu-close {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(245, 222, 179, 0.1);
  color: var(--pg65-text); font-size: 1.8rem;
}
.pg65-menu-section-title {
  font-size: 1.25rem; text-transform: uppercase; letter-spacing: 1px;
  color: var(--pg65-muted); margin: 16px 4px 8px;
}
.pg65-menu-link {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; border-radius: 10px;
  color: var(--pg65-text); font-size: 1.4rem; font-weight: 600;
  transition: background 0.15s ease;
}
.pg65-menu-link:hover { background: rgba(245, 222, 179, 0.08); color: var(--pg65-accent); }
.pg65-menu-link i { color: var(--pg65-accent); font-size: 1.6rem; width: 22px; text-align: center; }
.pg65-menu-cta {
  margin-top: 18px;
  display: flex; flex-direction: column; gap: 10px;
}
.pg65-menu-cta .pg65-btn { width: 100%; padding: 12px; font-size: 1.45rem; }

/* ---------- Main ---------- */
.pg65-main { padding-top: var(--pg65-header-h); }
@media (max-width: 768px) {
  .pg65-main { padding-bottom: calc(var(--pg65-nav-h) + 16px); }
}

/* ---------- Hero / Carousel ---------- */
.pg65-hero {
  position: relative;
  margin: 14px 0 6px;
  border-radius: var(--pg65-radius);
  overflow: hidden;
  box-shadow: var(--pg65-shadow);
}
.pg65-carousel { position: relative; }
.pg65-slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; }
.pg65-slides::-webkit-scrollbar { display: none; }
.pg65-slide {
  flex: 0 0 100%; scroll-snap-align: start;
  position: relative; min-height: 200px;
}
.pg65-slide img { width: 100%; height: 200px; object-fit: cover; }
.pg65-slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(44,44,44,0.15) 0%, rgba(44,44,44,0.85) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 18px 16px;
}
.pg65-slide-tag {
  display: inline-block; width: fit-content;
  background: var(--pg65-accent); color: #2c2c2c;
  font-size: 1.1rem; font-weight: 700; padding: 3px 10px;
  border-radius: 20px; margin-bottom: 8px;
}
.pg65-slide-title { font-size: 1.9rem; font-weight: 800; color: var(--pg65-white); margin-bottom: 6px; }
.pg65-slide-desc { font-size: 1.3rem; color: var(--pg65-text-soft); margin-bottom: 10px; }
.pg65-slide-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--pg65-accent); color: #2c2c2c;
  font-weight: 700; font-size: 1.3rem;
  padding: 7px 16px; border-radius: 20px; width: fit-content;
}
.pg65-carousel-dots {
  display: flex; justify-content: center; gap: 6px;
  padding: 10px 0 4px;
}
.pg65-carousel-dots button {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(245, 222, 179, 0.3);
}
.pg65-carousel-dots button.pg65-active { background: var(--pg65-accent); width: 22px; border-radius: 6px; }

/* ---------- Section heading ---------- */
.pg65-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 22px 0 14px;
}
.pg65-section-title {
  font-size: 1.7rem; font-weight: 800; color: var(--pg65-text);
  display: flex; align-items: center; gap: 8px;
}
.pg65-section-title i { color: var(--pg65-accent); }
.pg65-section-more { font-size: 1.25rem; color: var(--pg65-accent); font-weight: 600; }

/* ---------- Filter chips ---------- */
.pg65-filters {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 4px 0 12px;
}
.pg65-filters::-webkit-scrollbar { display: none; }
.pg65-chip {
  flex: 0 0 auto;
  padding: 7px 16px; border-radius: 20px;
  background: rgba(245, 222, 179, 0.08);
  color: var(--pg65-text-soft);
  font-size: 1.25rem; font-weight: 600;
  border: 1px solid transparent;
}
.pg65-chip.pg65-active {
  background: var(--pg65-accent); color: #2c2c2c;
  border-color: var(--pg65-accent);
}

/* ---------- Game grid & cards ---------- */
.pg65-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.pg65-card {
  background: var(--pg65-bg-2);
  border: 1px solid var(--pg65-border);
  border-radius: var(--pg65-radius-sm);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
  display: flex; flex-direction: column;
}
.pg65-card:active { transform: scale(0.97); }
.pg65-card-img { position: relative; aspect-ratio: 1 / 1; background: #1f1f1f; }
.pg65-card-img img { width: 100%; height: 100%; object-fit: cover; }
.pg65-card-badge {
  position: absolute; top: 6px; left: 6px;
  background: var(--pg65-accent); color: #2c2c2c;
  font-size: 1rem; font-weight: 700; padding: 2px 8px;
  border-radius: 10px;
}
.pg65-card-play {
  position: absolute; inset: 0;
  background: rgba(44,44,44,0.55);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s ease;
  color: var(--pg65-white); font-size: 2.2rem;
}
.pg65-card:hover .pg65-card-play { opacity: 1; }
.pg65-card-body { padding: 6px 8px 9px; }
.pg65-card-name {
  font-size: 1.15rem; font-weight: 600; color: var(--pg65-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pg65-card-type {
  font-size: 1rem; color: var(--pg65-muted); text-transform: capitalize;
  margin-top: 2px;
}

/* ---------- Featured banner ---------- */
.pg65-feature {
  background: linear-gradient(135deg, #4a3a2a 0%, #3A3A3A 100%);
  border: 1px solid var(--pg65-border);
  border-radius: var(--pg65-radius);
  padding: 16px;
  display: flex; gap: 14px; align-items: center;
  margin: 18px 0;
  box-shadow: var(--pg65-shadow);
}
.pg65-feature-icon {
  width: 54px; height: 54px; border-radius: 12px;
  background: rgba(240,128,128,0.18);
  display: flex; align-items: center; justify-content: center;
  color: var(--pg65-accent); font-size: 1.9rem; flex: 0 0 auto;
}
.pg65-feature-text h4 { font-size: 1.4rem; color: var(--pg65-text); margin-bottom: 4px; }
.pg65-feature-text p { font-size: 1.2rem; color: var(--pg65-text-soft); }
.pg65-feature-text .pg65-link {
  display: inline-block; margin-top: 6px;
  font-weight: 700; font-size: 1.2rem; color: var(--pg65-accent);
}

/* ---------- Promo CTA block ---------- */
.pg65-promo {
  background: linear-gradient(135deg, var(--pg65-accent) 0%, #c95a5a 100%);
  color: #2c2c2c;
  border-radius: var(--pg65-radius);
  padding: 22px 16px;
  text-align: center;
  margin: 22px 0;
  box-shadow: 0 8px 22px rgba(240, 128, 128, 0.35);
}
.pg65-promo h3 { font-size: 1.9rem; font-weight: 800; margin-bottom: 6px; }
.pg65-promo p { font-size: 1.25rem; margin-bottom: 14px; opacity: 0.9; }
.pg65-promo .pg65-btn-light {
  background: #2c2c2c; color: var(--pg65-text);
  padding: 11px 28px; border-radius: 30px; font-weight: 800; font-size: 1.4rem;
}

/* ---------- SEO long text ---------- */
.pg65-seo {
  background: var(--pg65-bg-2);
  border: 1px solid var(--pg65-border);
  border-radius: var(--pg65-radius);
  padding: 20px 16px;
  margin: 18px 0;
}
.pg65-seo h2 {
  font-size: 1.7rem; color: var(--pg65-text); margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.pg65-seo h2 i { color: var(--pg65-accent); }
.pg65-seo h3 { font-size: 1.4rem; color: var(--pg65-accent); margin: 14px 0 6px; }
.pg65-seo p { font-size: 1.3rem; color: var(--pg65-text-soft); margin-bottom: 10px; }
.pg65-seo ul { padding-left: 18px; margin: 8px 0 12px; list-style: disc; }
.pg65-seo ul li { font-size: 1.25rem; color: var(--pg65-text-soft); margin-bottom: 4px; }
.pg65-seo a { color: var(--pg65-accent); font-weight: 600; text-decoration: underline; }

/* ---------- FAQ ---------- */
.pg65-faq-item {
  background: var(--pg65-bg-2);
  border: 1px solid var(--pg65-border);
  border-radius: var(--pg65-radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
}
.pg65-faq-q {
  width: 100%; text-align: left;
  padding: 13px 14px;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  font-size: 1.3rem; font-weight: 700; color: var(--pg65-text);
}
.pg65-faq-q .pg65-faq-icon { color: var(--pg65-accent); font-size: 1.5rem; transition: transform 0.2s ease; }
.pg65-faq-item.pg65-open .pg65-faq-q .pg65-faq-icon { transform: rotate(45deg); }
.pg65-faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.25s ease, padding 0.25s ease;
  padding: 0 14px;
  font-size: 1.22rem; color: var(--pg65-text-soft);
}
.pg65-faq-item.pg65-open .pg65-faq-a { max-height: 360px; padding: 0 14px 12px; }

/* ---------- Footer ---------- */
.pg65-footer {
  background: var(--pg65-bg-2);
  border-top: 1px solid var(--pg65-border);
  padding: 24px 0 20px;
  margin-top: 24px;
}
.pg65-footer-cols {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 18px; margin-bottom: 18px;
}
.pg65-footer-col h4 {
  font-size: 1.3rem; color: var(--pg65-accent);
  margin-bottom: 10px; font-weight: 700;
}
.pg65-footer-col a {
  display: block; font-size: 1.2rem; color: var(--pg65-text-soft);
  padding: 4px 0;
}
.pg65-footer-col a:hover { color: var(--pg65-accent); }
.pg65-footer-brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 1.5rem; color: var(--pg65-text);
  margin-bottom: 10px;
}
.pg65-footer-brand img { width: 30px; height: 30px; border-radius: 6px; }
.pg65-footer-desc { font-size: 1.2rem; color: var(--pg65-muted); margin-bottom: 12px; }
.pg65-footer-bottom {
  border-top: 1px solid var(--pg65-border);
  padding-top: 14px;
  text-align: center;
  font-size: 1.1rem; color: var(--pg65-muted);
}
.pg65-footer-resp {
  background: rgba(240,128,128,0.08);
  border: 1px solid rgba(240,128,128,0.25);
  border-radius: 10px;
  padding: 10px 12px; margin: 12px 0;
  font-size: 1.15rem; color: var(--pg65-text-soft);
}

/* ---------- Bottom nav ---------- */
.pg65-bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--pg65-nav-h);
  background: linear-gradient(0deg, #2c2c2c 0%, #3A3A3A 100%);
  border-top: 1px solid var(--pg65-border);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom);
}
.pg65-bottomnav-inner {
  width: 100%; max-width: 430px; margin: 0 auto;
  display: flex; justify-content: space-around; align-items: center;
}
.pg65-nav-btn {
  min-width: 60px; min-height: 56px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px;
  color: var(--pg65-text-soft);
  font-size: 1rem; font-weight: 600;
  transition: color 0.18s ease, transform 0.18s ease;
}
.pg65-nav-btn i { font-size: 2.1rem; }
.pg65-nav-btn.pg65-nav-cta i {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pg65-accent), var(--pg65-accent-2));
  color: #2c2c2c;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
  margin-top: -22px;
  box-shadow: 0 4px 14px rgba(240,128,128,0.45);
  border: 3px solid #3A3A3A;
}
.pg65-nav-btn.pg65-nav-cta { color: var(--pg65-accent); font-weight: 700; }
.pg65-nav-btn.pg65-active { color: var(--pg65-accent); }
.pg65-nav-btn:active { transform: scale(0.92); }

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  .pg65-bottomnav { display: none; }
  .pg65-menu-btn { display: none; }
  .pg65-wrap { max-width: 960px; padding: 0 20px; }
  .pg65-header-inner { max-width: 960px; }
  .pg65-grid { grid-template-columns: repeat(5, 1fr); }
  .pg65-footer-cols { grid-template-columns: repeat(4, 1fr); }
  .pg65-slide img { height: 320px; }
  .pg65-slide { min-height: 320px; }
}
@media (min-width: 600px) and (max-width: 768px) {
  .pg65-grid { grid-template-columns: repeat(4, 1fr); }
}
