/* ============================================================
 * 888k.click - Theme stylesheet (basefiles)
 * All custom classes use the "pgaa-" prefix.
 * Mobile-first layout, max 430px viewport target.
 * ============================================================ */

:root {
  --pgaa-primary: #00BFFF;      /* sky blue accent */
  --pgaa-deep: #0000CD;         /* deep blue */
  --pgaa-orange: #FF9800;       /* warm orange */
  --pgaa-amber: #FF8C00;        /* dark orange */
  --pgaa-dark: #1B263B;         /* near-black navy bg */
  --pgaa-bg: #0f1724;
  --pgaa-bg-soft: #16203300;
  --pgaa-card: #1b2740;
  --pgaa-card-2: #223252;
  --pgaa-text: #f5f9ff;
  --pgaa-text-dim: #a7b4cc;
  --pgaa-border: #283655;
  --pgaa-success: #2ecc71;
  --pgaa-danger: #ff4d6d;
  --pgaa-radius: 14px;
  --pgaa-shadow: 0 6px 22px rgba(0, 0, 0, .35);
  --pgaa-header-h: 60px;
  --pgaa-bottom-h: 62px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Segoe UI", "Roboto", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  background: var(--pgaa-bg);
  color: var(--pgaa-text);
  line-height: 1.5;
  font-size: 1.5rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--pgaa-primary); text-decoration: none; }
a:hover { color: var(--pgaa-orange); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; font-weight: 700; }
h1 { font-size: 2.0rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }

/* Layout containers */
.pgaa-wrapper { max-width: 430px; margin: 0 auto; padding: 0 12px; }
.pgaa-container { width: 100%; }
.pgaa-section { padding: 22px 0; }
.pgaa-section--alt { background: linear-gradient(180deg, #131e32 0%, #0f1724 100%); border-top: 1px solid var(--pgaa-border); border-bottom: 1px solid var(--pgaa-border); }
.pgaa-text-center { text-align: center; }
.pgaa-mt-1 { margin-top: 8px; } .pgaa-mt-2 { margin-top: 16px; } .pgaa-mt-3 { margin-top: 24px; }
.pgaa-hidden { display: none !important; }
.pgaa-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Buttons */
.pgaa-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-weight: 700; font-size: 1.4rem; padding: 10px 18px; border-radius: 999px;
  border: none; cursor: pointer; text-decoration: none; min-height: 40px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.pgaa-btn:hover { transform: translateY(-1px); }
.pgaa-btn--primary { background: linear-gradient(135deg, var(--pgaa-orange), var(--pgaa-amber)); color: #1b1500; box-shadow: 0 6px 16px rgba(255, 140, 0, .35); }
.pgaa-btn--secondary { background: linear-gradient(135deg, var(--pgaa-primary), var(--pgaa-deep)); color: #fff; }
.pgaa-btn--ghost { background: transparent; border: 1px solid var(--pgaa-border); color: var(--pgaa-text); }
.pgaa-btn--block { display: flex; width: 100%; }
.pgaa-btn--lg { font-size: 1.6rem; min-height: 48px; padding: 12px 22px; }

/* Header */
.pgaa-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--pgaa-header-h); background: rgba(15, 23, 36, .96);
  border-bottom: 1px solid var(--pgaa-border);
  backdrop-filter: blur(8px);
}
.pgaa-header__inner {
  max-width: 430px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; gap: 8px; padding: 0 12px;
}
.pgaa-header__logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.6rem; color: #fff; }
.pgaa-header__logo img { width: 30px; height: 30px; border-radius: 8px; }
.pgaa-header__logo span b { color: var(--pgaa-orange); }
.pgaa-header__spacer { flex: 1; }
.pgaa-header__actions { display: flex; align-items: center; gap: 6px; }
.pgaa-header__actions .pgaa-btn { padding: 7px 14px; font-size: 1.3rem; min-height: 36px; }
.pgaa-menu-btn {
  background: transparent; border: 1px solid var(--pgaa-border); color: var(--pgaa-text);
  width: 36px; height: 36px; border-radius: 10px; cursor: pointer; font-size: 1.6rem;
  display: inline-flex; align-items: center; justify-content: center;
}

/* Hero / Carousel */
.pgaa-hero { margin-top: calc(var(--pgaa-header-h) + 12px); }
.pgaa-carousel { position: relative; border-radius: var(--pgaa-radius); overflow: hidden; box-shadow: var(--pgaa-shadow); }
.pgaa-carousel__viewport { position: relative; height: 190px; }
.pgaa-carousel-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease;
  display: flex; align-items: flex-end;
}
.pgaa-carousel-slide img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.pgaa-carousel-slide.pgaa-is-active { opacity: 1; z-index: 1; }
.pgaa-carousel__caption {
  position: relative; z-index: 2; padding: 12px 14px; width: 100%;
  background: linear-gradient(180deg, rgba(15,23,36,0) 0%, rgba(15,23,36,.92) 100%);
  color: #fff;
}
.pgaa-carousel__caption b { color: var(--pgaa-orange); }
.pgaa-carousel__dots {
  position: absolute; bottom: 8px; right: 12px; z-index: 3;
  display: flex; gap: 6px;
}
.pgaa-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.45); cursor: pointer; border: none; padding: 0;
}
.pgaa-carousel-dot.pgaa-is-active { background: var(--pgaa-orange); width: 22px; border-radius: 5px; }

/* Headings */
.pgaa-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 8px; }
.pgaa-section-head h2 { font-size: 1.8rem; color: #fff; }
.pgaa-section-head h2 .pgaa-accent { color: var(--pgaa-orange); }
.pgaa-section-head .pgaa-link { font-size: 1.25rem; color: var(--pgaa-primary); }
.pgaa-eyebrow { color: var(--pgaa-orange); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 1.15rem; }

/* Category tabs (decorative, no JS switch) */
.pgaa-cats { display: flex; gap: 8px; overflow-x: auto; padding: 6px 0 12px; -webkit-overflow-scrolling: touch; }
.pgaa-cats::-webkit-scrollbar { display: none; }
.pgaa-cat-pill {
  flex: 0 0 auto; padding: 8px 14px; border-radius: 999px;
  background: var(--pgaa-card); color: var(--pgaa-text); border: 1px solid var(--pgaa-border);
  font-size: 1.25rem; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.pgaa-cat-pill:hover { background: var(--pgaa-card-2); color: var(--pgaa-orange); }
.pgaa-cat-pill .material-icons-outlined, .pgaa-cat-pill i { font-size: 1.3rem; vertical-align: -2px; margin-right: 4px; }

/* Game grid */
.pgaa-game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.pgaa-game-card {
  background: var(--pgaa-card); border-radius: 12px; overflow: hidden;
  border: 1px solid var(--pgaa-border); transition: transform .15s ease, box-shadow .15s ease;
  display: block; text-decoration: none; color: var(--pgaa-text); cursor: pointer;
}
.pgaa-game-card:hover { transform: translateY(-2px); box-shadow: var(--pgaa-shadow); border-color: var(--pgaa-primary); }
.pgaa-game-card__img { aspect-ratio: 1 / 1; width: 100%; background: #0b1322; position: relative; }
.pgaa-game-card__img img { width: 100%; height: 100%; object-fit: cover; }
.pgaa-game-card__hot {
  position: absolute; top: 6px; left: 6px; background: var(--pgaa-danger);
  color: #fff; font-size: 1.0rem; font-weight: 700; padding: 2px 6px; border-radius: 6px;
}
.pgaa-game-card__name { padding: 6px 8px; font-size: 1.2rem; text-align: center; color: #fff; font-weight: 600; line-height: 1.25; min-height: 32px; display: flex; align-items: center; justify-content: center; }

/* Feature / info cards */
.pgaa-card {
  background: var(--pgaa-card); border: 1px solid var(--pgaa-border); border-radius: var(--pgaa-radius);
  padding: 14px; box-shadow: var(--pgaa-shadow);
}
.pgaa-card h3 { color: var(--pgaa-orange); }
.pgaa-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pgaa-feature { display: flex; gap: 10px; align-items: flex-start; padding: 12px; background: var(--pgaa-card); border-radius: 12px; border: 1px solid var(--pgaa-border); }
.pgaa-feature .pgaa-feature__icon {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--pgaa-primary), var(--pgaa-deep)); color: #fff; font-size: 1.8rem;
}
.pgaa-feature h4 { margin: 0 0 4px; color: #fff; font-size: 1.35rem; }
.pgaa-feature p { margin: 0; color: var(--pgaa-text-dim); font-size: 1.2rem; }

/* Steps */
.pgaa-steps { counter-reset: step; padding: 0; list-style: none; margin: 0; }
.pgaa-steps li {
  position: relative; padding: 12px 12px 12px 52px; margin-bottom: 8px;
  background: var(--pgaa-card); border: 1px solid var(--pgaa-border); border-radius: 12px;
}
.pgaa-steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pgaa-orange), var(--pgaa-amber));
  color: #1b1500; font-weight: 800; display: inline-flex; align-items: center; justify-content: center;
}
.pgaa-steps li b { color: var(--pgaa-orange); }

/* FAQ */
.pgaa-faq { border: 1px solid var(--pgaa-border); border-radius: 12px; overflow: hidden; background: var(--pgaa-card); }
.pgaa-faq details { border-bottom: 1px solid var(--pgaa-border); padding: 12px 14px; }
.pgaa-faq details:last-child { border-bottom: none; }
.pgaa-faq summary { cursor: pointer; font-weight: 700; color: #fff; list-style: none; position: relative; padding-right: 24px; }
.pgaa-faq summary::after { content: "+"; position: absolute; right: 0; color: var(--pgaa-orange); font-size: 1.8rem; line-height: 1; }
.pgaa-faq details[open] summary::after { content: "\2212"; }
.pgaa-faq p { margin: 8px 0 0; color: var(--pgaa-text-dim); font-size: 1.3rem; }

/* Testimonials */
.pgaa-testimonial { background: var(--pgaa-card); border: 1px solid var(--pgaa-border); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.pgaa-testimonial__head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.pgaa-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--pgaa-primary), var(--pgaa-deep)); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; }
.pgaa-stars { color: var(--pgaa-orange); font-size: 1.2rem; }
.pgaa-testimonial p { margin: 0; color: var(--pgaa-text-dim); font-size: 1.25rem; }

/* Winners ticker */
.pgaa-winner-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-bottom: 1px dashed var(--pgaa-border); }
.pgaa-winner-row:last-child { border-bottom: none; }
.pgaa-winner-row b { color: var(--pgaa-orange); }
.pgaa-winner-row span { color: var(--pgaa-text-dim); font-size: 1.2rem; }
.pgaa-badge-win { background: rgba(46, 204, 113, .15); color: var(--pgaa-success); padding: 3px 8px; border-radius: 6px; font-size: 1.1rem; font-weight: 700; }

/* Payment chips */
.pgaa-pay-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pgaa-pay {
  background: var(--pgaa-card); border: 1px solid var(--pgaa-border); border-radius: 10px;
  padding: 10px 6px; text-align: center; color: var(--pgaa-text-dim); font-size: 1.05rem; font-weight: 600;
}
.pgaa-pay i { font-size: 1.8rem; display: block; margin-bottom: 4px; color: var(--pgaa-primary); }

/* Promo / banner CTA */
.pgaa-promo-banner {
  border-radius: var(--pgaa-radius); padding: 16px; color: #fff;
  background: linear-gradient(135deg, var(--pgaa-deep) 0%, var(--pgaa-primary) 60%, var(--pgaa-orange) 120%);
  box-shadow: var(--pgaa-shadow); position: relative; overflow: hidden;
}
.pgaa-promo-banner h3 { color: #fff; font-size: 1.7rem; }
.pgaa-promo-banner p { color: rgba(255,255,255,.9); font-size: 1.25rem; margin-bottom: 12px; }

/* RTP table */
.pgaa-rtp-table { width: 100%; border-collapse: collapse; background: var(--pgaa-card); border-radius: 12px; overflow: hidden; }
.pgaa-rtp-table th, .pgaa-rtp-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--pgaa-border); font-size: 1.25rem; }
.pgaa-rtp-table th { background: var(--pgaa-card-2); color: var(--pgaa-orange); font-size: 1.2rem; text-transform: uppercase; letter-spacing: .05em; }
.pgaa-rtp-table tr:last-child td { border-bottom: none; }
.pgaa-rtp-bar { height: 6px; background: #0b1322; border-radius: 4px; overflow: hidden; }
.pgaa-rtp-bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--pgaa-primary), var(--pgaa-orange)); }

/* Achievements */
.pgaa-ach-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.pgaa-ach { background: var(--pgaa-card); border: 1px solid var(--pgaa-border); border-radius: 10px; padding: 10px; text-align: center; }
.pgaa-ach b { display: block; color: var(--pgaa-orange); font-size: 1.6rem; }
.pgaa-ach span { color: var(--pgaa-text-dim); font-size: 1.1rem; }

/* Footer */
.pgaa-footer {
  background: #0a1120; border-top: 1px solid var(--pgaa-border);
  padding: 24px 0 calc(var(--pgaa-bottom-h) + 24px);
  color: var(--pgaa-text-dim); font-size: 1.25rem;
}
.pgaa-footer__brand { color: #fff; font-weight: 800; font-size: 1.6rem; margin-bottom: 6px; }
.pgaa-footer__brand b { color: var(--pgaa-orange); }
.pgaa-footer h4 { color: #fff; font-size: 1.35rem; margin: 14px 0 8px; }
.pgaa-footer__links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 12px; margin: 8px 0 14px; }
.pgaa-footer__links a { color: var(--pgaa-text-dim); font-size: 1.2rem; }
.pgaa-footer__links a:hover { color: var(--pgaa-orange); }
.pgaa-footer__promo-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.pgaa-footer__promo-row .pgaa-btn { flex: 1 1 auto; font-size: 1.15rem; padding: 6px 10px; min-height: 32px; }
.pgaa-footer__copy { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--pgaa-border); font-size: 1.1rem; color: #6c7a99; text-align: center; }

/* Mobile bottom navigation */
.pgaa-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: var(--pgaa-bottom-h);
  background: linear-gradient(180deg, #162241 0%, #0a1120 100%);
  border-top: 1px solid var(--pgaa-border);
  display: flex; justify-content: space-around; align-items: stretch;
  padding: 4px 0 env(safe-area-inset-bottom, 0);
}
.pgaa-bottom-nav__btn {
  flex: 1; min-width: 60px; min-height: 60px;
  background: transparent; border: none; color: var(--pgaa-text-dim);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 1.05rem; font-weight: 600; cursor: pointer; padding: 4px 2px;
  transition: color .15s ease, transform .15s ease;
}
.pgaa-bottom-nav__btn:hover { color: var(--pgaa-orange); }
.pgaa-bottom-nav__btn:active { transform: scale(.92); }
.pgaa-bottom-nav__btn .material-icons-outlined,
.pgaa-bottom-nav__btn .material-icons,
.pgaa-bottom-nav__btn i { font-size: 22px; }
.pgaa-bottom-nav__btn.is-active { color: var(--pgaa-orange); }
.pgaa-bottom-nav__btn.is-active::after {
  content: ""; position: absolute; top: 0; width: 30px; height: 3px; border-radius: 0 0 4px 4px;
  background: var(--pgaa-orange);
}
.pgaa-bottom-nav__btn { position: relative; }

/* Mobile slide-in menu */
.pgaa-menu-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 1500;
  opacity: 0; visibility: hidden; transition: opacity .25s ease;
}
.pgaa-menu-overlay.pgaa-is-visible { opacity: 1; visibility: visible; }
.pgaa-mobile-menu {
  position: fixed; top: 0; right: -82%; width: 78%; max-width: 320px; height: 100vh;
  background: #0c1426; z-index: 2000; padding: 18px; overflow-y: auto;
  transform: translateX(0); transition: transform .28s ease; border-left: 1px solid var(--pgaa-border);
}
.pgaa-mobile-menu.pgaa-is-open { transform: translateX(-100%); right: 0; }
.pgaa-mobile-menu__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.pgaa-mobile-menu__head b { color: var(--pgaa-orange); font-size: 1.7rem; }
.pgaa-mobile-menu__close { background: transparent; border: 1px solid var(--pgaa-border); color: #fff; width: 34px; height: 34px; border-radius: 8px; font-size: 1.5rem; cursor: pointer; }
.pgaa-mobile-menu a {
  display: block; padding: 11px 12px; border-radius: 10px; color: var(--pgaa-text);
  border: 1px solid transparent; margin-bottom: 4px; font-size: 1.35rem;
}
.pgaa-mobile-menu a:hover { background: var(--pgaa-card); border-color: var(--pgaa-border); color: var(--pgaa-orange); }
.pgaa-mobile-menu a i, .pgaa-mobile-menu a .material-icons-outlined { width: 22px; color: var(--pgaa-primary); margin-right: 8px; vertical-align: -4px; }
.pgaa-mobile-menu__cta { display: flex; gap: 8px; margin: 14px 0 10px; }

/* Desktop: hide bottom nav, widen wrapper */
@media (min-width: 769px) {
  .pgaa-bottom-nav { display: none; }
  .pgaa-wrapper { max-width: 960px; }
  .pgaa-game-grid { grid-template-columns: repeat(6, 1fr); }
  .pgaa-grid-2 { grid-template-columns: repeat(4, 1fr); }
  .pgaa-footer__links { grid-template-columns: repeat(3, 1fr); }
  .pgaa-footer { padding-bottom: 24px; }
}

/* Ensure main content clears fixed header / bottom nav on mobile */
@media (max-width: 768px) {
  main.pgaa-main { padding-bottom: 80px; }
}

/* Utility: inline keyword link */
.pgaa-inline-link { color: var(--pgaa-orange); font-weight: 700; }
.pgaa-inline-link:hover { text-decoration: underline; }

/* Tag list for SEO clusters */
.pgaa-tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.pgaa-tag-cloud a {
  font-size: 1.15rem; padding: 5px 10px; border-radius: 999px;
  background: var(--pgaa-card); border: 1px solid var(--pgaa-border); color: var(--pgaa-text-dim);
}
.pgaa-tag-cloud a:hover { color: var(--pgaa-orange); border-color: var(--pgaa-orange); }
