/* ============================================
   SUPERKING - Core Stylesheet (pg3c- prefix)
   VIP mobile-first casino theme
   ============================================ */

/* Design tokens */
:root {
  --pg3c-primary: #2E4057;
  --pg3c-secondary: #6F4E37;
  --pg3c-accent: #DA70D6;
  --pg3c-gold: #DEB887;
  --pg3c-mint: #BAFFC9;
  --pg3c-text: #E0E0E0;
  --pg3c-bg-deep: #23354a;
  --pg3c-bg-card: rgba(255, 255, 255, 0.05);
  --pg3c-border: rgba(222, 184, 135, 0.22);
  --pg3c-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  --pg3c-radius: 14px;
  --pg3c-radius-sm: 10px;
}

/* 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', 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(180deg, var(--pg3c-primary) 0%, var(--pg3c-bg-deep) 100%);
  color: var(--pg3c-text);
  line-height: 1.5;
  font-size: 1.5rem;
  overflow-x: hidden;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--pg3c-gold); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* Layout helpers */
.pg3c-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 14px; }
.pg3c-wrapper { padding-top: 56px; padding-bottom: 80px; min-height: 100vh; }
@media (min-width: 769px) { .pg3c-wrapper { padding-bottom: 0; } }
.pg3c-section { padding: 18px 0; }
.pg3c-section-title { font-size: 2rem; font-weight: 700; margin-bottom: 12px; color: var(--pg3c-text); display: flex; align-items: center; gap: 8px; }
.pg3c-section-title .pg3c-ico { color: var(--pg3c-accent); font-size: 2.2rem; }
.pg3c-lead { color: #c7d0da; font-size: 1.45rem; line-height: 1.65; }
.pg3c-h2 { font-size: 1.9rem; font-weight: 700; margin: 14px 0 8px; color: var(--pg3c-text); }

/* Header */
.pg3c-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(35, 53, 74, 0.96); backdrop-filter: blur(12px); border-bottom: 1px solid var(--pg3c-border); }
.pg3c-header-inner { max-width: 430px; margin: 0 auto; padding: 7px 12px; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.pg3c-brand { display: flex; align-items: center; gap: 8px; font-size: 1.7rem; font-weight: 800; color: var(--pg3c-text); }
.pg3c-brand img { width: 30px; height: 30px; border-radius: 6px; }
.pg3c-brand-name { background: linear-gradient(90deg, var(--pg3c-gold), var(--pg3c-accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: 0.3px; }
.pg3c-header-actions { display: flex; align-items: center; gap: 6px; }

/* Buttons */
.pg3c-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 999px; padding: 8px 14px; font-size: 1.3rem; font-weight: 700; transition: transform .18s ease, opacity .18s ease; min-height: 36px; }
.pg3c-btn:active { transform: scale(0.96); }
.pg3c-btn-login { background: transparent; border: 1px solid var(--pg3c-border); color: var(--pg3c-text); }
.pg3c-btn-register { background: linear-gradient(90deg, var(--pg3c-accent), #b14fb1); color: #fff; box-shadow: 0 4px 14px rgba(218, 112, 214, 0.4); }
.pg3c-btn-gold { background: linear-gradient(90deg, var(--pg3c-gold), #c79a5e); color: var(--pg3c-primary); }
.pg3c-btn-block { width: 100%; padding: 12px; font-size: 1.45rem; }
.pg3c-text-link { color: var(--pg3c-gold); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* Hamburger toggle */
.pg3c-menu-toggle { width: 38px; height: 38px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: rgba(255,255,255,0.05); border: 1px solid var(--pg3c-border); }
.pg3c-menu-toggle span { width: 18px; height: 2px; background: var(--pg3c-text); border-radius: 2px; transition: .25s; }
.pg3c-toggle-active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.pg3c-toggle-active span:nth-child(2) { opacity: 0; }
.pg3c-toggle-active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer menu */
.pg3c-mobile-menu { position: fixed; top: 0; right: -86%; width: 86%; max-width: 340px; height: 100vh; background: linear-gradient(180deg, var(--pg3c-bg-deep), #1b2a3d); z-index: 9999; padding: 64px 18px 24px; transition: right .3s ease; box-shadow: -8px 0 30px rgba(0,0,0,0.4); overflow-y: auto; }
.pg3c-menu-open { right: 0; }
.pg3c-menu-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 9998; opacity: 0; pointer-events: none; transition: opacity .25s; }
.pg3c-overlay-active { opacity: 1; pointer-events: auto; }
.pg3c-menu-section { margin-bottom: 18px; }
.pg3c-menu-heading { font-size: 1.2rem; text-transform: uppercase; color: var(--pg3c-gold); letter-spacing: 1px; margin-bottom: 6px; font-weight: 700; }
.pg3c-menu-link { display: flex; align-items: center; gap: 10px; padding: 9px 10px; color: var(--pg3c-text); font-size: 1.4rem; border-radius: 10px; transition: background .18s; }
.pg3c-menu-link:active, .pg3c-menu-link:hover { background: rgba(218, 112, 214, 0.14); }
.pg3c-menu-link i, .pg3c-menu-link .material-icons-outlined { color: var(--pg3c-accent); width: 22px; text-align: center; font-size: 1.8rem; }
.pg3c-menu-cta { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }

/* Hero / Carousel */
.pg3c-hero { padding: 14px 0 4px; }
.pg3c-carousel { position: relative; border-radius: var(--pg3c-radius); overflow: hidden; box-shadow: var(--pg3c-shadow); }
.pg3c-carousel-track { display: flex; transition: transform .5s ease; }
.pg3c-carousel-slide { min-width: 100%; position: relative; cursor: pointer; }
.pg3c-carousel-slide img { width: 100%; height: 180px; object-fit: cover; }
.pg3c-carousel-cap { position: absolute; left: 12px; bottom: 12px; right: 12px; background: linear-gradient(90deg, rgba(46,64,87,0.88), rgba(218,112,214,0.5)); padding: 9px 11px; border-radius: 10px; }
.pg3c-carousel-cap h2 { font-size: 1.6rem; color: #fff; }
.pg3c-carousel-cap p { font-size: 1.2rem; color: var(--pg3c-mint); }
.pg3c-carousel-dots { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 2; }
.pg3c-carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); transition: .25s; }
.pg3c-carousel-dot-active { background: var(--pg3c-gold); width: 22px; border-radius: 5px; }

/* Headline */
.pg3c-hero-title { font-size: 2.2rem; font-weight: 800; margin: 16px 0 6px; line-height: 1.25; }
.pg3c-hero-sub { color: #c7d0da; font-size: 1.4rem; margin-bottom: 8px; }
.pg3c-hero-cta { display: flex; gap: 8px; margin: 10px 0 4px; }
.pg3c-hero-cta .pg3c-btn { flex: 1; padding: 12px; font-size: 1.4rem; }

/* Category chips */
.pg3c-chips { display: flex; gap: 8px; overflow-x: auto; padding: 6px 0 10px; scrollbar-width: none; }
.pg3c-chips::-webkit-scrollbar { display: none; }
.pg3c-chip { flex: 0 0 auto; padding: 7px 14px; border-radius: 999px; font-size: 1.25rem; color: var(--pg3c-text); background: rgba(255,255,255,0.05); border: 1px solid var(--pg3c-border); white-space: nowrap; }
.pg3c-chip-active { background: linear-gradient(90deg, var(--pg3c-accent), #b14fb1); color: #fff; border-color: transparent; }

/* Game grid */
.pg3c-game-section { margin-bottom: 20px; }
.pg3c-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pg3c-game-card { background: var(--pg3c-bg-card); border: 1px solid var(--pg3c-border); border-radius: var(--pg3c-radius-sm); padding: 8px; text-align: center; transition: transform .18s, border-color .18s; cursor: pointer; }
.pg3c-game-card:active { transform: scale(0.96); border-color: var(--pg3c-accent); }
.pg3c-game-card img { width: 100%; height: 78px; object-fit: cover; border-radius: 8px; margin-bottom: 6px; }
.pg3c-game-name { font-size: 1.2rem; color: var(--pg3c-text); line-height: 1.25; min-height: 30px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Generic card */
.pg3c-card { background: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)); border: 1px solid var(--pg3c-border); border-radius: var(--pg3c-radius); padding: 14px; margin-bottom: 12px; box-shadow: var(--pg3c-shadow); }
.pg3c-card h3 { font-size: 1.65rem; color: var(--pg3c-text); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.pg3c-card h3 i, .pg3c-card h3 .material-icons-outlined { color: var(--pg3c-accent); }
.pg3c-card p { font-size: 1.4rem; color: #c7d0da; line-height: 1.6; margin-bottom: 6px; }
.pg3c-card ul { list-style: none; padding: 0; }
.pg3c-card ul li { padding: 6px 0 6px 22px; position: relative; font-size: 1.4rem; color: #c7d0da; }
.pg3c-card ul li::before { content: '\f005'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--pg3c-gold); position: absolute; left: 0; top: 6px; font-size: 1.2rem; }

/* Stats */
.pg3c-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pg3c-stat { background: rgba(218, 112, 214, 0.1); border: 1px solid var(--pg3c-border); border-radius: var(--pg3c-radius-sm); padding: 12px; text-align: center; }
.pg3c-stat-num { font-size: 2rem; font-weight: 800; color: var(--pg3c-gold); display: block; }
.pg3c-stat-label { font-size: 1.2rem; color: #c7d0da; }

/* RTP bars */
.pg3c-rtp-row { margin-bottom: 10px; }
.pg3c-rtp-head { display: flex; justify-content: space-between; font-size: 1.3rem; margin-bottom: 4px; color: var(--pg3c-text); }
.pg3c-rtp-track { height: 8px; background: rgba(255,255,255,0.1); border-radius: 5px; overflow: hidden; }
.pg3c-rtp-fill { height: 100%; background: linear-gradient(90deg, var(--pg3c-mint), var(--pg3c-accent)); border-radius: 5px; }

/* Testimonial / winner */
.pg3c-quote { font-style: italic; color: #d6dde6; font-size: 1.4rem; line-height: 1.6; }
.pg3c-quote-author { margin-top: 6px; font-size: 1.25rem; color: var(--pg3c-gold); font-weight: 700; }
.pg3c-winner { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.pg3c-winner:last-child { border-bottom: none; }
.pg3c-winner-avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--pg3c-accent), var(--pg3c-gold)); display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; font-size: 1.3rem; flex-shrink: 0; }
.pg3c-winner-info { flex: 1; min-width: 0; }
.pg3c-winner-name { font-size: 1.3rem; color: var(--pg3c-text); font-weight: 600; }
.pg3c-winner-game { font-size: 1.15rem; color: #9aa6b3; }
.pg3c-winner-amount { font-size: 1.35rem; color: var(--pg3c-mint); font-weight: 800; }

/* Payment methods */
.pg3c-pay { display: flex; flex-wrap: wrap; gap: 8px; }
.pg3c-pay-item { flex: 1 0 28%; text-align: center; padding: 8px; background: rgba(255,255,255,0.04); border: 1px solid var(--pg3c-border); border-radius: 8px; font-size: 1.15rem; color: #c7d0da; }
.pg3c-pay-item i { display: block; font-size: 2rem; color: var(--pg3c-gold); margin-bottom: 4px; }

/* App download CTA */
.pg3c-app-cta { display: flex; gap: 10px; align-items: center; }
.pg3c-app-cta .pg3c-btn { flex: 1; }
.pg3c-qr { width: 88px; height: 88px; border-radius: 8px; background: #fff; display: flex; align-items: center; justify-content: center; color: var(--pg3c-primary); font-size: 1rem; font-weight: 700; text-align: center; flex-shrink: 0; }

/* Category highlight tiles */
.pg3c-cat-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pg3c-cat-tile { background: linear-gradient(135deg, rgba(218,112,214,0.18), rgba(222,184,135,0.12)); border: 1px solid var(--pg3c-border); border-radius: var(--pg3c-radius-sm); padding: 12px; }
.pg3c-cat-tile i { font-size: 2.4rem; color: var(--pg3c-gold); }
.pg3c-cat-tile h4 { font-size: 1.4rem; color: var(--pg3c-text); margin: 4px 0 2px; }
.pg3c-cat-tile p { font-size: 1.15rem; color: #9aa6b3; margin: 0; }

/* FAQ */
.pg3c-faq-item { border-bottom: 1px solid rgba(255,255,255,0.08); padding: 10px 0; }
.pg3c-faq-item summary { font-size: 1.4rem; color: var(--pg3c-text); font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pg3c-faq-item summary::-webkit-details-marker { display: none; }
.pg3c-faq-item summary::after { content: '+'; color: var(--pg3c-gold); font-size: 1.8rem; line-height: 1; }
.pg3c-faq-item[open] summary::after { content: '\2212'; }
.pg3c-faq-item p { margin-top: 8px; font-size: 1.35rem; color: #c7d0da; line-height: 1.6; }

/* Footer */
.pg3c-footer { background: var(--pg3c-secondary); padding: 24px 0 100px; margin-top: 18px; border-top: 2px solid var(--pg3c-gold); }
@media (min-width: 769px) { .pg3c-footer { padding-bottom: 30px; } }
.pg3c-footer-brand { font-size: 1.4rem; color: var(--pg3c-text); line-height: 1.6; margin-bottom: 14px; }
.pg3c-footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.pg3c-footer-col h5 { font-size: 1.3rem; color: var(--pg3c-gold); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.pg3c-footer-col a { display: block; font-size: 1.22rem; color: #d6c5b1; line-height: 1.9; }
.pg3c-footer-promo { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.pg3c-footer-promo .pg3c-btn { font-size: 1.2rem; padding: 8px 12px; }
.pg3c-footer-copy { font-size: 1.15rem; color: #b0a394; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 10px; text-align: center; line-height: 1.6; }

/* Mobile bottom nav */
.pg3c-bottomnav { position: fixed; bottom: 0; left: 0; right: 0; height: 62px; background: rgba(35, 53, 74, 0.98); backdrop-filter: blur(10px); border-top: 1px solid var(--pg3c-border); display: flex; justify-content: space-around; align-items: center; z-index: 1000; box-shadow: 0 -4px 18px rgba(0,0,0,0.35); }
.pg3c-bottomnav-btn { flex: 1; min-width: 60px; min-height: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #9aa6b3; font-size: 1.05rem; transition: color .2s, transform .18s; position: relative; }
.pg3c-bottomnav-btn i, .pg3c-bottomnav-btn .material-icons-outlined, .pg3c-bottomnav-btn .material-icons, .pg3c-bottomnav-btn ion-icon { font-size: 22px; }
.pg3c-bottomnav-btn:active { transform: scale(0.92); }
.pg3c-bottomnav-active { color: var(--pg3c-accent); }
.pg3c-bottomnav-promo { color: var(--pg3c-gold); }
.pg3c-bottomnav-promo::after { content: ''; position: absolute; top: 4px; right: 18px; width: 7px; height: 7px; border-radius: 50%; background: var(--pg3c-accent); }
@media (min-width: 769px) { .pg3c-bottomnav { display: none; } }

/* Utility */
.pg3c-tag { display: inline-block; padding: 2px 8px; font-size: 1.05rem; border-radius: 4px; background: rgba(186,255,201,0.15); color: var(--pg3c-mint); margin-left: 6px; }
.pg3c-mt8 { margin-top: 8px; } .pg3c-mt12 { margin-top: 12px; }
