/* ============================================================
   OK Fun (ok-fun.homes) - style.css
   Every custom class uses the "pge8-" prefix.
   Palette: #D2691E | #FF9800 | #8B4513 | #ADB5BD | #9932CC | #2D2D2D
   Mobile-first, max width 430px primary target.
   ============================================================ */

:root {
  --pge8-primary: #FF9800;
  --pge8-secondary: #D2691E;
  --pge8-dark: #2D2D2D;
  --pge8-brown: #8B4513;
  --pge8-purple: #9932CC;
  --pge8-muted: #ADB5BD;
  --pge8-bg: #1c1410;
  --pge8-bg-2: #241a14;
  --pge8-card: #2a2018;
  --pge8-text: #fff4e6;
  --pge8-text-soft: #e9d4bd;
  --pge8-line: rgba(255, 152, 0, 0.18);
  --pge8-radius: 14px;
  --pge8-shadow: 0 8px 26px rgba(0, 0, 0, 0.45);
}

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

html {
  font-size: 62.5%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--pge8-text);
  background: var(--pge8-bg);
  background-image: linear-gradient(160deg, #1c1410 0%, #2a1810 55%, #1c1410 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--pge8-primary); text-decoration: none; }
a:hover { color: var(--pge8-secondary); }

/* ---------- Layout helpers ---------- */
.pge8-container {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 14px;
}

.pge8-wrapper { width: 100%; }

.pge8-section {
  padding: 28px 0;
}

.pge8-section-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--pge8-primary);
  margin-bottom: 6px;
  line-height: 1.25;
}

.pge8-section-title .pge8-mark { color: var(--pge8-purple); }

.pge8-section-sub {
  color: var(--pge8-muted);
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.pge8-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--pge8-primary), transparent);
  margin: 18px 0;
  border: 0;
  opacity: 0.7;
}

.pge8-text-muted { color: var(--pge8-muted); }
.pge8-text-purple { color: var(--pge8-purple); }

/* ---------- Header ---------- */
.pge8-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(20, 14, 10, 0.98), rgba(20, 14, 10, 0.92));
  border-bottom: 1px solid var(--pge8-line);
  backdrop-filter: blur(8px);
}

.pge8-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px;
  max-width: 760px;
  margin: 0 auto;
}

.pge8-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--pge8-text);
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 1;
}

.pge8-logo img,
.pge8-logo-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--pge8-primary);
  color: var(--pge8-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.4rem;
}

.pge8-logo-text { display: flex; flex-direction: column; }
.pge8-logo-text small { color: var(--pge8-muted); font-size: 1rem; font-weight: 500; }

.pge8-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pge8-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 22px;
  font-weight: 700;
  font-size: 1.35rem;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
  line-height: 1;
  color: #fff;
  background: var(--pge8-secondary);
}

.pge8-btn:hover { transform: translateY(-1px); color: #fff; filter: brightness(1.06); }

.pge8-btn-primary {
  background: linear-gradient(135deg, var(--pge8-primary), var(--pge8-secondary));
  box-shadow: 0 4px 14px rgba(255, 152, 0, 0.35);
}

.pge8-btn-outline {
  background: transparent;
  color: var(--pge8-primary);
  border: 1.5px solid var(--pge8-primary);
}

.pge8-btn-outline:hover { color: #fff; background: var(--pge8-primary); }

.pge8-btn-block {
  display: flex;
  width: 100%;
  padding: 14px;
  font-size: 1.55rem;
}

.pge8-btn-lg { min-height: 46px; padding: 0 22px; font-size: 1.5rem; }

.pge8-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: transparent;
  color: var(--pge8-text);
  border: 1px solid var(--pge8-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pge8-icon-btn .material-icons,
.pge8-icon-btn .fas,
.pge8-icon-btn .far { font-size: 22px; }

/* ---------- Mobile menu (slide-down panel) ---------- */
.pge8-menu-btn { display: inline-flex; }

.pge8-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 86%;
  max-width: 320px;
  height: 100vh;
  background: #1a120c;
  border-left: 1px solid var(--pge8-line);
  z-index: 9999;
  transform: translateX(105%);
  transition: transform 0.28s ease;
  padding: 70px 18px 30px;
  overflow-y: auto;
}

.pge8-mobile-menu.pge8-menu-open { transform: translateX(0); }

.pge8-mobile-menu h3 {
  color: var(--pge8-primary);
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 18px 0 8px;
}

.pge8-mobile-menu a {
  display: block;
  color: var(--pge8-text-soft);
  padding: 11px 8px;
  border-bottom: 1px dashed rgba(255, 152, 0, 0.12);
  font-size: 1.45rem;
}

.pge8-mobile-menu a:hover { color: var(--pge8-primary); }

.pge8-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.pge8-overlay.pge8-menu-open { opacity: 1; pointer-events: auto; }

.pge8-menu-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: 0;
  color: var(--pge8-text);
  font-size: 2rem;
  cursor: pointer;
}

/* ---------- Page spacer for fixed header ---------- */
.pge8-page { padding-top: 60px; }

/* ---------- Hero / Carousel ---------- */
.pge8-hero {
  margin-top: 12px;
}

.pge8-carousel {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--pge8-shadow);
  background: #110b07;
}

.pge8-slides { position: relative; }

.pge8-slide {
  display: none;
  position: relative;
  width: 100%;
  height: 200px;
}

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

.pge8-slide.pge8-slide-active { display: block; }

.pge8-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.78) 100%);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.pge8-slide-title {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
}

.pge8-slide-desc {
  font-size: 1.3rem;
  color: rgba(255, 244, 230, 0.88);
  margin: 6px 0 10px;
}

.pge8-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
}

.pge8-carousel-arrow.pge8-prev { left: 8px; }
.pge8-carousel-arrow.pge8-next { right: 8px; }

.pge8-dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 3;
}

.pge8-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  border: 0;
}

.pge8-dot.pge8-dot-active { background: var(--pge8-primary); width: 18px; border-radius: 4px; }

/* ---------- Hero CTA strip ---------- */
.pge8-cta-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.pge8-cta-tile {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.16), rgba(153, 50, 204, 0.16));
  border: 1px solid var(--pge8-line);
  border-radius: 14px;
  padding: 14px;
  color: var(--pge8-text);
  text-align: center;
}

.pge8-cta-tile .pge8-cta-icon { font-size: 26px; color: var(--pge8-primary); }
.pge8-cta-tile strong { display: block; font-size: 1.5rem; margin-top: 4px; }
.pge8-cta-tile span { color: var(--pge8-muted); font-size: 1.2rem; }

/* ---------- Chips ---------- */
.pge8-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 0 14px;
  scrollbar-width: none;
}

.pge8-chips::-webkit-scrollbar { display: none; }

.pge8-chip {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--pge8-text-soft);
  font-size: 1.3rem;
  border: 1px solid var(--pge8-line);
  cursor: pointer;
  white-space: nowrap;
}

.pge8-chip.pge8-chip-active {
  background: linear-gradient(135deg, var(--pge8-primary), var(--pge8-secondary));
  color: #fff;
  border-color: transparent;
}

/* ---------- Game grid ---------- */
.pge8-games {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.pge8-game {
  background: var(--pge8-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--pge8-line);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.pge8-game:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 152, 0, 0.25);
  border-color: var(--pge8-primary);
}

.pge8-game-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #110b07;
}

.pge8-game-name {
  font-size: 1.18rem;
  text-align: center;
  padding: 7px 4px;
  color: var(--pge8-text-soft);
  font-weight: 600;
  line-height: 1.2;
  min-height: 36px;
}

.pge8-cat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 12px;
}

.pge8-cat-header .pge8-cat-ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--pge8-primary), var(--pge8-purple));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.pge8-cat-header h2 {
  font-size: 1.8rem;
  color: var(--pge8-text);
  font-weight: 800;
}

.pge8-cat-header .pge8-cat-link {
  margin-left: auto;
  font-size: 1.25rem;
  color: var(--pge8-primary);
  font-weight: 700;
}

/* ---------- Cards / generic block ---------- */
.pge8-card {
  background: var(--pge8-card);
  border: 1px solid var(--pge8-line);
  border-radius: var(--pge8-radius);
  padding: 16px;
  margin-bottom: 12px;
  color: var(--pge8-text-soft);
}

.pge8-card h3 {
  color: var(--pge8-primary);
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.pge8-card p { font-size: 1.35rem; line-height: 1.55; }

.pge8-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

/* ---------- Featured / highlight ---------- */
.pge8-feature {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.12), rgba(153, 50, 204, 0.12));
  border: 1px solid var(--pge8-line);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 14px;
}

.pge8-feature h3 { color: var(--pge8-primary); font-size: 1.7rem; margin-bottom: 6px; }
.pge8-feature p { color: var(--pge8-text-soft); font-size: 1.38rem; line-height: 1.55; }

.pge8-list { padding-left: 20px; color: var(--pge8-text-soft); }
.pge8-list li { margin-bottom: 8px; font-size: 1.38rem; line-height: 1.5; }

/* ---------- Stat row ---------- */
.pge8-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 12px 0;
}

.pge8-stat {
  background: var(--pge8-card);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  border: 1px solid var(--pge8-line);
}

.pge8-stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--pge8-primary);
}

.pge8-stat-label {
  display: block;
  font-size: 1.2rem;
  color: var(--pge8-muted);
}

/* ---------- Testimonials ---------- */
.pge8-testimonials {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.pge8-quote {
  background: var(--pge8-card);
  border-left: 4px solid var(--pge8-primary);
  padding: 14px 16px;
  border-radius: 10px;
}

.pge8-quote p { color: var(--pge8-text-soft); font-size: 1.38rem; font-style: italic; }
.pge8-quote cite {
  display: block;
  margin-top: 8px;
  color: var(--pge8-primary);
  font-style: normal;
  font-weight: 700;
  font-size: 1.3rem;
}

/* ---------- Payment grid ---------- */
.pge8-pay-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.pge8-pay {
  background: var(--pge8-card);
  border: 1px solid var(--pge8-line);
  border-radius: 10px;
  padding: 10px 4px;
  text-align: center;
  color: var(--pge8-text-soft);
  font-size: 1.15rem;
}

.pge8-pay .material-icons,
.pge8-pay .bi,
.pge8-pay .fas { font-size: 22px; color: var(--pge8-primary); }

/* ---------- FAQ ---------- */
.pge8-faq-item {
  background: var(--pge8-card);
  border-radius: 10px;
  border: 1px solid var(--pge8-line);
  padding: 12px 14px;
  margin-bottom: 10px;
}

.pge8-faq-item h3 { color: var(--pge8-primary); font-size: 1.45rem; margin-bottom: 6px; }
.pge8-faq-item p { color: var(--pge8-text-soft); font-size: 1.35rem; line-height: 1.55; }

/* ---------- Winners / RTP ---------- */
.pge8-winners {
  background: var(--pge8-card);
  border-radius: 12px;
  padding: 12px;
  border: 1px solid var(--pge8-line);
}

.pge8-winner-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(255, 152, 0, 0.12);
  font-size: 1.32rem;
}

.pge8-winner-row:last-child { border-bottom: 0; }
.pge8-winner-row .pge8-amt { color: var(--pge8-primary); font-weight: 800; }

/* ---------- App download CTA ---------- */
.pge8-app-cta {
  background: linear-gradient(135deg, #3a1f5c, #5a2a18);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  border: 1px solid var(--pge8-line);
  margin-bottom: 14px;
}

.pge8-app-cta h3 { color: var(--pge8-primary); font-size: 1.9rem; margin-bottom: 6px; }
.pge8-app-cta p { color: var(--pge8-text-soft); font-size: 1.38rem; margin-bottom: 12px; }

/* ---------- Footer ---------- */
.pge8-footer {
  background: #160f0a;
  border-top: 1px solid var(--pge8-line);
  padding: 26px 0 110px;
  margin-top: 24px;
}

.pge8-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.pge8-footer-brand strong { color: var(--pge8-primary); font-size: 1.7rem; }

.pge8-footer p { color: var(--pge8-muted); font-size: 1.3rem; line-height: 1.55; margin-bottom: 10px; }

.pge8-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 12px 0;
}

.pge8-footer-links a {
  color: var(--pge8-text-soft);
  font-size: 1.3rem;
}

.pge8-footer-links a:hover { color: var(--pge8-primary); }

.pge8-footer-copy {
  color: var(--pge8-muted);
  font-size: 1.2rem;
  margin-top: 12px;
  border-top: 1px dashed rgba(255, 152, 0, 0.1);
  padding-top: 12px;
  text-align: center;
}

.pge8-promo-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 10px 0;
}

/* ---------- Bottom navigation ---------- */
.pge8-bottomnav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  height: 62px;
  background: linear-gradient(180deg, rgba(22, 14, 9, 0.98), rgba(22, 14, 9, 0.96));
  border-top: 1px solid var(--pge8-line);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  padding: 0 4px;
  backdrop-filter: blur(8px);
}

.pge8-bottomnav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: 0;
  color: var(--pge8-text-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  font-size: 1.05rem;
  padding: 6px 2px;
  transition: color 0.2s ease, transform 0.15s ease;
}

.pge8-bottomnav-btn:active { transform: scale(0.92); }

.pge8-bottomnav-btn .material-icons,
.pge8-bottomnav-btn .fas,
.pge8-bottomnav-btn .far,
.pge8-bottomnav-btn .bi,
.pge8-bottomnav-btn ion-icon { font-size: 22px; }

.pge8-bottomnav-btn span { font-size: 1.05rem; }

.pge8-bottomnav-btn:hover { color: var(--pge8-primary); }

.pge8-bottomnav-active { color: var(--pge8-primary); }
.pge8-bottomnav-active::after {
  content: "";
  display: block;
  width: 22px;
  height: 3px;
  background: var(--pge8-primary);
  border-radius: 2px;
  margin-top: 2px;
}

.pge8-bottomnav-promo {
  color: var(--pge8-primary);
  font-weight: 800;
}

/* ---------- Back to top button ---------- */
.pge8-top-btn {
  position: fixed;
  right: 14px;
  bottom: 78px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--pge8-primary);
  color: var(--pge8-dark);
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.pge8-top-btn.pge8-top-visible { opacity: 1; pointer-events: auto; }

/* ---------- H1 title ---------- */
.pge8-h1 {
  font-size: 2.3rem;
  font-weight: 900;
  color: var(--pge8-text);
  line-height: 1.2;
  margin: 8px 0 6px;
}

.pge8-h1 .pge8-mark { color: var(--pge8-primary); }

.pge8-lead {
  color: var(--pge8-text-soft);
  font-size: 1.4rem;
  line-height: 1.55;
  margin-bottom: 14px;
}

.pge8-anchor { display: block; position: relative; top: -70px; visibility: hidden; }

/* ---------- Long-form copy ---------- */
.pge8-copy { color: var(--pge8-text-soft); font-size: 1.4rem; line-height: 1.6; }
.pge8-copy h2 { color: var(--pge8-primary); font-size: 1.8rem; margin: 18px 0 8px; }
.pge8-copy h3 { color: var(--pge8-secondary); font-size: 1.55rem; margin: 14px 0 6px; }
.pge8-copy p { margin-bottom: 10px; }
.pge8-copy ul { padding-left: 20px; margin-bottom: 10px; }
.pge8-copy li { margin-bottom: 6px; }

.pge8-promo-link {
  color: var(--pge8-primary);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

.pge8-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(255, 152, 0, 0.16);
  color: var(--pge8-primary);
  font-size: 1.15rem;
  margin-right: 6px;
}

/* ---------- Responsive ---------- */
@media (min-width: 600px) {
  .pge8-games { grid-template-columns: repeat(4, 1fr); }
  .pge8-card-grid { grid-template-columns: 1fr 1fr; }
  .pge8-slide { height: 260px; }
}

@media (min-width: 769px) {
  body { background-image: linear-gradient(160deg, #1c1410 0%, #2a1810 50%, #1c1410 100%); }
  .pge8-container { max-width: 960px; }
  .pge8-games { grid-template-columns: repeat(6, 1fr); }
  .pge8-bottomnav { display: none; }
  .pge8-footer { padding-bottom: 40px; }
  .pge8-app-cta { padding: 26px; }
  .pge8-section-title { font-size: 2.4rem; }
  .pge8-h1 { font-size: 2.8rem; }
  .pge8-pay-grid { grid-template-columns: repeat(6, 1fr); }
  .pge8-promo-row { grid-template-columns: repeat(3, 1fr); }
  .pge8-cta-strip { grid-template-columns: repeat(4, 1fr); }
  .pge8-stats { grid-template-columns: repeat(4, 1fr); }
  .pge8-testimonials { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  main.pge8-main { padding-bottom: 86px; }
}

/* ---------- Utility ---------- */
.pge8-mt-0 { margin-top: 0; }
.pge8-mb-0 { margin-bottom: 0; }
.pge8-center { text-align: center; }
.pge8-flex { display: flex; }
.pge8-flex-between { display: flex; justify-content: space-between; align-items: center; }
.pge8-gap-8 { gap: 8px; }
.pge8-gap-12 { gap: 12px; }
.pge8-hide-desktop { display: block; }
.pge8-hide-mobile { display: none; }

@media (min-width: 769px) {
  .pge8-hide-desktop { display: none; }
  .pge8-hide-mobile { display: block; }
}
