/* SA9.click - Core stylesheet (mobile-first) */
/* All custom classes use pg85- prefix to isolate namespace */

:root {
  --pg85-primary: #8A2BE2;
  --pg85-secondary: #800080;
  --pg85-accent: #B040C0;
  --pg85-bg: #1a0d24;
  --pg85-bg-alt: #2a1638;
  --pg85-bg-card: #34194a;
  --pg85-text: #E0E0E0;
  --pg85-text-dim: #b9a7c9;
  --pg85-text-strong: #ffffff;
  --pg85-dark: #34495E;
  --pg85-gold: #FFD166;
  --pg85-success: #2ecc71;
  --pg85-danger: #ff4d6d;
  --pg85-border: rgba(224, 224, 224, 0.12);
  --pg85-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  --pg85-radius: 14px;
  --pg85-radius-sm: 10px;
  --pg85-radius-lg: 22px;
  --pg85-gradient: linear-gradient(135deg, #8A2BE2 0%, #800080 60%, #5a005a 100%);
  --pg85-gradient-gold: linear-gradient(135deg, #FFD166 0%, #ff9e2c 100%);
  --pg85-header-h: 60px;
  --pg85-bottomnav-h: 62px;
  --pg85-maxw: 430px;
}

/* Base reset */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", "Inter", "Roboto", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: var(--pg85-bg);
  color: var(--pg85-text);
  line-height: 1.5;
  font-size: 1.5rem;
  overflow-x: hidden;
  min-height: 100vh;
  background-image: radial-gradient(circle at 20% 0%, rgba(138,43,226,0.18), transparent 45%),
                    radial-gradient(circle at 80% 30%, rgba(128,0,128,0.15), transparent 50%);
}
img { max-width: 100%; display: block; }
a { color: var(--pg85-gold); text-decoration: none; }
a:hover { color: var(--pg85-text-strong); }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* Layout */
.pg85-container { width: 100%; max-width: var(--pg85-maxw); margin: 0 auto; padding: 0 14px; }
.pg85-wrapper { width: 100%; max-width: var(--pg85-maxw); margin: 0 auto; position: relative; }
.pg85-section { padding: 28px 14px; }
.pg85-section-tight { padding: 18px 14px; }
.pg85-divider { height: 1px; background: var(--pg85-border); margin: 18px 0; border: none; }

/* Header */
.pg85-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--pg85-header-h);
  background: linear-gradient(90deg, rgba(26,13,36,0.96), rgba(42,22,56,0.96));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--pg85-border);
}
.pg85-header-inner { max-width: var(--pg85-maxw); margin: 0 auto; height: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; gap: 8px; }
.pg85-logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.pg85-logo img { width: 32px; height: 32px; border-radius: 8px; }
.pg85-logo-text { font-size: 1.8rem; font-weight: 800; color: var(--pg85-text-strong); letter-spacing: 0.5px; }
.pg85-logo-text span { color: var(--pg85-primary); }
.pg85-header-actions { display: flex; align-items: center; gap: 8px; }
.pg85-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 14px; border-radius: var(--pg85-radius-sm); font-size: 1.35rem; font-weight: 700; min-height: 40px; transition: transform .15s ease, box-shadow .2s ease; }
.pg85-btn:active { transform: scale(0.95); }
.pg85-btn-login { background: transparent; color: var(--pg85-text); border: 1px solid var(--pg85-border); }
.pg85-btn-register { background: var(--pg85-gradient); color: #fff; box-shadow: 0 4px 14px rgba(138,43,226,0.4); }
.pg85-btn-gold { background: var(--pg85-gradient-gold); color: #3a1c00; }
.pg85-menu-btn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: rgba(255,255,255,0.06); color: var(--pg85-text); font-size: 2rem; }

/* Mobile menu panel */
.pg85-mobile-menu {
  position: fixed; top: var(--pg85-header-h); left: 0; right: 0; z-index: 9999;
  background: linear-gradient(180deg, rgba(26,13,36,0.99), rgba(42,22,56,0.99));
  border-bottom: 1px solid var(--pg85-border);
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
}
.pg85-mobile-menu.pg85-open { max-height: 80vh; overflow-y: auto; }
.pg85-mobile-menu-inner { max-width: var(--pg85-maxw); margin: 0 auto; padding: 14px 14px 20px; }
.pg85-mobile-menu a { display: flex; align-items: center; gap: 12px; padding: 13px 12px; border-radius: 10px; color: var(--pg85-text); font-size: 1.5rem; font-weight: 600; border-bottom: 1px solid var(--pg85-border); }
.pg85-mobile-menu a:active { background: rgba(138,43,226,0.18); }
.pg85-mobile-menu a i { font-size: 1.9rem; color: var(--pg85-primary); width: 22px; text-align: center; }

/* Hero / Carousel */
.pg85-hero { padding-top: calc(var(--pg85-header-h) + 16px); }
.pg85-carousel { position: relative; border-radius: var(--pg85-radius-lg); overflow: hidden; box-shadow: var(--pg85-shadow); }
.pg85-carousel-track { display: flex; transition: transform .5s ease; }
.pg85-slide { min-width: 100%; position: relative; }
.pg85-slide img { width: 100%; height: 190px; object-fit: cover; }
.pg85-slide-overlay { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 14px 18px; background: linear-gradient(180deg, transparent, rgba(26,13,36,0.92)); }
.pg85-slide-title { font-size: 1.9rem; font-weight: 800; color: #fff; margin-bottom: 6px; }
.pg85-slide-sub { font-size: 1.3rem; color: var(--pg85-text-dim); margin-bottom: 10px; }
.pg85-slide-cta { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; background: var(--pg85-gradient-gold); color: #3a1c00; border-radius: 20px; font-size: 1.25rem; font-weight: 800; }
.pg85-carousel-dots { position: absolute; bottom: 8px; right: 14px; display: flex; gap: 6px; }
.pg85-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.45); }
.pg85-dot.pg85-active { background: var(--pg85-gold); width: 18px; border-radius: 4px; }

/* Headings */
.pg85-h1 { font-size: 2.3rem; font-weight: 800; color: var(--pg85-text-strong); line-height: 1.3; margin-bottom: 8px; }
.pg85-h2 { font-size: 2rem; font-weight: 800; color: var(--pg85-text-strong); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.pg85-h2 i { color: var(--pg85-gold); font-size: 2.2rem; }
.pg85-h3 { font-size: 1.65rem; font-weight: 700; color: var(--pg85-text-strong); margin: 14px 0 8px; }
.pg85-section-intro { color: var(--pg85-text-dim); font-size: 1.4rem; margin-bottom: 14px; }
.pg85-text-lead { color: var(--pg85-text); font-size: 1.45rem; line-height: 1.6; }
.pg85-text-lead p { margin-bottom: 10px; }
.pg85-text-lead strong { color: var(--pg85-gold); }
.pg85-link-inline { color: var(--pg85-gold); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* Category tabs */
.pg85-cat-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 6px 0 12px; -webkit-overflow-scrolling: touch; }
.pg85-cat-tabs::-webkit-scrollbar { display: none; }
.pg85-cat-tab { flex: 0 0 auto; padding: 7px 14px; border-radius: 20px; background: rgba(255,255,255,0.06); color: var(--pg85-text-dim); font-size: 1.3rem; font-weight: 700; border: 1px solid var(--pg85-border); transition: all .2s ease; }
.pg85-cat-tab.pg85-active { background: var(--pg85-gradient); color: #fff; border-color: transparent; }

/* Game grid */
.pg85-game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pg85-game-card { background: var(--pg85-bg-card); border-radius: var(--pg85-radius); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; border: 1px solid var(--pg85-border); }
.pg85-game-card:active { transform: scale(0.97); }
.pg85-game-card img { width: 100%; height: 92px; object-fit: cover; background: #000; }
.pg85-game-name { padding: 7px 6px 8px; font-size: 1.15rem; font-weight: 600; color: var(--pg85-text); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; min-height: 32px; }
.pg85-game-badge { position: absolute; top: 6px; left: 6px; background: var(--pg85-gradient); color: #fff; font-size: 0.95rem; font-weight: 800; padding: 2px 7px; border-radius: 8px; }
.pg85-game-wrap { position: relative; }

/* Cards */
.pg85-card { background: var(--pg85-bg-card); border-radius: var(--pg85-radius); padding: 16px; border: 1px solid var(--pg85-border); box-shadow: var(--pg85-shadow); }
.pg85-card-gold { background: linear-gradient(135deg, rgba(255,209,102,0.12), rgba(138,43,226,0.08)); border: 1px solid rgba(255,209,102,0.3); }
.pg85-card-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--pg85-border); }
.pg85-card-row:last-child { border-bottom: none; }
.pg85-card-row i { font-size: 2.4rem; color: var(--pg85-primary); width: 30px; text-align: center; flex-shrink: 0; }
.pg85-card-row-title { font-size: 1.45rem; font-weight: 700; color: var(--pg85-text-strong); }
.pg85-card-row-sub { font-size: 1.25rem; color: var(--pg85-text-dim); }

/* Feature grid */
.pg85-feature-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.pg85-feature-item { display: flex; gap: 12px; padding: 14px; background: var(--pg85-bg-card); border-radius: var(--pg85-radius); border: 1px solid var(--pg85-border); }
.pg85-feature-icon { width: 42px; height: 42px; flex-shrink: 0; border-radius: 10px; background: var(--pg85-gradient); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 2rem; }
.pg85-feature-text h4 { font-size: 1.5rem; font-weight: 700; color: var(--pg85-text-strong); margin-bottom: 4px; }
.pg85-feature-text p { font-size: 1.3rem; color: var(--pg85-text-dim); line-height: 1.5; }

/* Steps */
.pg85-steps { counter-reset: step; }
.pg85-step { display: flex; gap: 12px; padding: 12px 0; }
.pg85-step-num { width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; background: var(--pg85-gradient); color: #fff; font-weight: 800; font-size: 1.4rem; display: flex; align-items: center; justify-content: center; }
.pg85-step-body h4 { font-size: 1.45rem; font-weight: 700; color: var(--pg85-text-strong); margin-bottom: 3px; }
.pg85-step-body p { font-size: 1.3rem; color: var(--pg85-text-dim); }

/* Promotions */
.pg85-promo-list { display: flex; flex-direction: column; gap: 12px; }
.pg85-promo { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--pg85-bg-card); border-radius: var(--pg85-radius); border: 1px solid var(--pg85-border); }
.pg85-promo img { width: 70px; height: 70px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.pg85-promo-body { flex: 1; }
.pg85-promo-title { font-size: 1.5rem; font-weight: 700; color: var(--pg85-text-strong); margin-bottom: 3px; }
.pg85-promo-sub { font-size: 1.25rem; color: var(--pg85-text-dim); line-height: 1.4; }
.pg85-promo-tag { display: inline-block; padding: 2px 8px; background: var(--pg85-gradient-gold); color: #3a1c00; font-size: 1.05rem; font-weight: 800; border-radius: 6px; margin-top: 4px; }

/* RTP table */
.pg85-rtp-table { width: 100%; border-collapse: collapse; font-size: 1.3rem; }
.pg85-rtp-table th, .pg85-rtp-table td { padding: 10px 8px; text-align: left; border-bottom: 1px solid var(--pg85-border); }
.pg85-rtp-table th { color: var(--pg85-gold); font-weight: 800; font-size: 1.25rem; }
.pg85-rtp-table td { color: var(--pg85-text); }
.pg85-rtp-table td.pg85-rtp-high { color: var(--pg85-success); font-weight: 700; }

/* Winners */
.pg85-winner-list { display: flex; flex-direction: column; gap: 8px; }
.pg85-winner { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; background: var(--pg85-bg-card); border-radius: 10px; border: 1px solid var(--pg85-border); }
.pg85-winner-user { display: flex; align-items: center; gap: 8px; }
.pg85-winner-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--pg85-gradient); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 1.3rem; }
.pg85-winner-name { font-size: 1.3rem; color: var(--pg85-text); font-weight: 600; }
.pg85-winner-game { font-size: 1.15rem; color: var(--pg85-text-dim); }
.pg85-winner-amount { font-size: 1.4rem; color: var(--pg85-gold); font-weight: 800; }

/* Testimonials */
.pg85-testi { padding: 14px; background: var(--pg85-bg-card); border-radius: var(--pg85-radius); border: 1px solid var(--pg85-border); margin-bottom: 10px; }
.pg85-testi-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.pg85-testi-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--pg85-gradient); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.5rem; }
.pg85-testi-name { font-size: 1.4rem; font-weight: 700; color: var(--pg85-text-strong); }
.pg85-testi-stars { color: var(--pg85-gold); font-size: 1.2rem; }
.pg85-testi-text { font-size: 1.3rem; color: var(--pg85-text-dim); line-height: 1.5; }

/* Payments */
.pg85-pay-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pg85-pay-item { background: var(--pg85-bg-card); border-radius: 10px; padding: 10px 6px; text-align: center; border: 1px solid var(--pg85-border); }
.pg85-pay-item i { font-size: 2.4rem; color: var(--pg85-primary); margin-bottom: 4px; }
.pg85-pay-item span { display: block; font-size: 1.1rem; color: var(--pg85-text-dim); }

/* App download */
.pg85-app-box { background: linear-gradient(135deg, rgba(138,43,226,0.18), rgba(128,0,128,0.12)); border-radius: var(--pg85-radius-lg); padding: 20px; border: 1px solid var(--pg85-border); text-align: center; }
.pg85-app-box h3 { color: var(--pg85-text-strong); font-size: 1.8rem; margin-bottom: 8px; }
.pg85-app-box p { color: var(--pg85-text-dim); font-size: 1.3rem; margin-bottom: 14px; }
.pg85-app-buttons { display: flex; flex-direction: column; gap: 10px; }
.pg85-app-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 12px; font-size: 1.45rem; font-weight: 700; }
.pg85-app-btn-android { background: var(--pg85-gradient-gold); color: #3a1c00; }
.pg85-app-btn-ios { background: #fff; color: #000; }

/* FAQ */
.pg85-faq-item { background: var(--pg85-bg-card); border-radius: 10px; margin-bottom: 8px; border: 1px solid var(--pg85-border); overflow: hidden; }
.pg85-faq-q { display: flex; justify-content: space-between; align-items: center; padding: 13px 14px; font-size: 1.4rem; font-weight: 700; color: var(--pg85-text-strong); }
.pg85-faq-q i { color: var(--pg85-primary); font-size: 1.6rem; transition: transform .2s ease; }
.pg85-faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; padding: 0 14px; color: var(--pg85-text-dim); font-size: 1.3rem; line-height: 1.55; }
.pg85-faq-item.pg85-open .pg85-faq-a { max-height: 240px; padding-bottom: 14px; }
.pg85-faq-item.pg85-open .pg85-faq-q i { transform: rotate(45deg); }

/* CTA banner */
.pg85-cta-banner { background: var(--pg85-gradient); border-radius: var(--pg85-radius-lg); padding: 22px 18px; text-align: center; margin: 18px 0; box-shadow: var(--pg85-shadow); }
.pg85-cta-banner h3 { color: #fff; font-size: 2rem; font-weight: 800; margin-bottom: 6px; }
.pg85-cta-banner p { color: rgba(255,255,255,0.9); font-size: 1.3rem; margin-bottom: 14px; }
.pg85-cta-btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; background: var(--pg85-gradient-gold); color: #3a1c00; border-radius: 26px; font-size: 1.6rem; font-weight: 800; box-shadow: 0 6px 20px rgba(255,209,102,0.4); }
.pg85-cta-btn:active { transform: scale(0.95); }

/* Footer */
.pg85-footer { background: #0e0716; border-top: 1px solid var(--pg85-border); padding: 24px 14px 20px; margin-top: 20px; }
.pg85-footer-brand { font-size: 1.35rem; color: var(--pg85-text-dim); line-height: 1.6; margin-bottom: 14px; }
.pg85-footer-brand strong { color: var(--pg85-text-strong); }
.pg85-footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.pg85-footer-links a { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: var(--pg85-bg-card); border-radius: 8px; font-size: 1.25rem; color: var(--pg85-text); border: 1px solid var(--pg85-border); }
.pg85-footer-links a i { color: var(--pg85-primary); font-size: 1.4rem; }
.pg85-footer-copy { text-align: center; font-size: 1.15rem; color: var(--pg85-text-dim); padding-top: 12px; border-top: 1px solid var(--pg85-border); }

/* Bottom nav */
.pg85-bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: var(--pg85-bottomnav-h);
  background: linear-gradient(180deg, rgba(42,22,56,0.98), rgba(26,13,36,0.99));
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--pg85-border);
  display: flex; justify-content: space-around; align-items: stretch;
}
.pg85-bottomnav-inner { max-width: var(--pg85-maxw); margin: 0 auto; width: 100%; display: flex; justify-content: space-around; align-items: stretch; }
.pg85-nav-btn { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 60px; min-height: 60px; color: var(--pg85-text-dim); position: relative; transition: color .2s ease; }
.pg85-nav-btn i { font-size: 2.2rem; }
.pg85-nav-btn span { font-size: 1.05rem; font-weight: 600; }
.pg85-nav-btn.pg85-active { color: var(--pg85-gold); }
.pg85-nav-btn.pg85-active::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 30px; height: 3px; background: var(--pg85-gold); border-radius: 0 0 4px 4px; }
.pg85-nav-btn:active { transform: scale(0.92); }
.pg85-nav-badge { position: absolute; top: 6px; right: 18px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--pg85-danger); color: #fff; font-size: 1rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }

/* Utility */
.pg85-hidden { display: none !important; }
.pg85-center { text-align: center; }
.pg85-mt-12 { margin-top: 12px; }
.pg85-mt-16 { margin-top: 16px; }
.pg85-mb-12 { margin-bottom: 12px; }
.pg85-pb-80 { padding-bottom: 80px; }
.pg85-pill { display: inline-block; padding: 3px 10px; background: rgba(138,43,226,0.25); color: var(--pg85-text-strong); font-size: 1.15rem; font-weight: 700; border-radius: 12px; border: 1px solid rgba(138,43,226,0.4); }
.pg85-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* Desktop */
@media (min-width: 769px) {
  .pg85-bottomnav { display: none; }
  .pg85-header-inner { padding: 0 20px; }
  .pg85-container, .pg85-wrapper, .pg85-footer, .pg85-header, .pg85-bottomnav-inner { max-width: 760px; }
  body { font-size: 1.6rem; }
  .pg85-game-grid { grid-template-columns: repeat(6, 1fr); }
  .pg85-feature-grid { grid-template-columns: 1fr 1fr; }
  .pg85-pay-grid { grid-template-columns: repeat(8, 1fr); }
  .pg85-footer-links { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
  .pg85-slide img { height: 180px; }
}

@media (max-width: 420px) {
  .pg85-header-inner { padding: 0 8px; gap: 6px; max-width: 100%; }
  .pg85-logo { gap: 6px; }
  .pg85-logo-text { font-size: 1.55rem; }
  .pg85-header-actions { gap: 5px; min-width: 0; }
  .pg85-btn { padding: 8px 9px; font-size: 1.18rem; min-height: 38px; white-space: nowrap; }
  .pg85-menu-btn { width: 38px; height: 38px; flex: 0 0 38px; }
  .pg85-rtp-table { table-layout: fixed; word-break: break-word; }
  .pg85-card { overflow-x: auto; }
}
