/**
 * 1222.click - Main Stylesheet
 * All class names use prefix: pg9c-
 * Color palette: #E9967A | #B03060 | #0F0F23 | #FA8072 | #FFE135
 * Dark bg: #0F0F23, Light text: #FFE135/#E9967A
 */

/* CSS Variables */
:root {
  --pg9c-primary: #B03060;
  --pg9c-secondary: #E9967A;
  --pg9c-accent: #FA8072;
  --pg9c-highlight: #FFE135;
  --pg9c-bg: #0F0F23;
  --pg9c-bg-card: #1a1a3e;
  --pg9c-bg-dark: #0a0a1a;
  --pg9c-text: #E9967A;
  --pg9c-text-light: #f0e6e0;
  --pg9c-text-bright: #FFE135;
  --pg9c-border: #2a2a4e;
  --pg9c-radius: 8px;
  --pg9c-radius-lg: 16px;
  --pg9c-header-h: 56px;
  --pg9c-bnav-h: 60px;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--pg9c-bg);
  color: var(--pg9c-text-light);
  line-height: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Container */
.pg9c-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.pg9c-wrapper { padding: 1.2rem 0; }

/* Header */
.pg9c-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: var(--pg9c-header-h);
  background: var(--pg9c-bg-dark); border-bottom: 1px solid var(--pg9c-border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem; z-index: 1000;
}
.pg9c-header-left { display: flex; align-items: center; gap: 0.8rem; }
.pg9c-header-logo { width: 28px; height: 28px; border-radius: 6px; }
.pg9c-header-name { font-size: 1.8rem; font-weight: 700; color: var(--pg9c-highlight); }
.pg9c-header-right { display: flex; align-items: center; gap: 0.6rem; }
.pg9c-btn-reg {
  background: var(--pg9c-highlight); color: var(--pg9c-bg-dark);
  font-size: 1.2rem; font-weight: 700; padding: 0.5rem 1.2rem;
  border: none; border-radius: var(--pg9c-radius); cursor: pointer;
  min-height: 32px; min-width: 60px;
}
.pg9c-btn-login {
  background: transparent; color: var(--pg9c-highlight);
  font-size: 1.2rem; font-weight: 600; padding: 0.5rem 1rem;
  border: 1.5px solid var(--pg9c-highlight); border-radius: var(--pg9c-radius);
  cursor: pointer; min-height: 32px;
}
.pg9c-btn-reg:hover, .pg9c-btn-login:hover { opacity: 0.85; }

/* Mobile Menu Overlay */
.pg9c-menu-overlay {
  display: none; position: fixed; top: 0; left: 0;
  width: 100%; height: 100%; background: rgba(0,0,0,0.6);
  z-index: 9998;
}
.pg9c-overlay-active { display: block; }

/* Mobile Menu */
.pg9c-mobile-menu {
  position: fixed; top: 0; left: -280px; width: 280px; height: 100%;
  background: var(--pg9c-bg-dark); z-index: 9999;
  transition: left 0.3s ease; overflow-y: auto; padding: 1.6rem 0;
}
.pg9c-menu-active { left: 0; }
.pg9c-menu-header { padding: 0 1.6rem 1.4rem; border-bottom: 1px solid var(--pg9c-border); margin-bottom: 1rem; }
.pg9c-menu-header img { width: 36px; height: 36px; border-radius: 8px; }
.pg9c-menu-header span { font-size: 2rem; font-weight: 700; color: var(--pg9c-highlight); margin-left: 0.8rem; }
.pg9c-menu-item {
  display: block; padding: 1.2rem 1.6rem; color: var(--pg9c-text-light);
  text-decoration: none; font-size: 1.4rem; border-bottom: 1px solid var(--pg9c-border);
  transition: background 0.2s;
}
.pg9c-menu-item:hover { background: var(--pg9c-bg-card); color: var(--pg9c-highlight); }

/* Hamburger */
.pg9c-hamburger {
  display: flex; flex-direction: column; gap: 4px; cursor: pointer;
  padding: 6px; background: none; border: none;
}
.pg9c-hamburger span {
  display: block; width: 20px; height: 2px; background: var(--pg9c-highlight);
  border-radius: 2px; transition: 0.3s;
}

/* Main Content */
.pg9c-main {
  padding-top: var(--pg9c-header-h); padding-bottom: 2rem;
  min-height: 100vh;
}

/* Carousel */
.pg9c-carousel { position: relative; width: 100%; overflow: hidden; margin-bottom: 1.2rem; }
.pg9c-slide { display: none; width: 100%; cursor: pointer; }
.pg9c-slide img { width: 100%; height: auto; border-radius: 0; display: block; }
.pg9c-carousel-dots { text-align: center; padding: 0.6rem 0; }
.pg9c-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--pg9c-border); margin: 0 4px; cursor: pointer;
  transition: background 0.3s;
}
.pg9c-dot-active { background: var(--pg9c-highlight); }

/* Section */
.pg9c-section { padding: 1.4rem 0; }
.pg9c-section-title {
  font-size: 1.6rem; font-weight: 700; color: var(--pg9c-highlight);
  margin-bottom: 1rem; padding: 0 1.2rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.pg9c-section-title i { font-size: 2rem; }

/* Game Grid */
.pg9c-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem; padding: 0 1.2rem;
}
.pg9c-game-item { text-align: center; cursor: pointer; transition: transform 0.2s; }
.pg9c-game-item:hover { transform: scale(1.05); }
.pg9c-game-item img {
  width: 100%; aspect-ratio: 1; border-radius: var(--pg9c-radius);
  border: 1px solid var(--pg9c-border); object-fit: cover;
}
.pg9c-game-name {
  font-size: 1.05rem; color: var(--pg9c-text-light); margin-top: 0.3rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Cards */
.pg9c-card {
  background: var(--pg9c-bg-card); border-radius: var(--pg9c-radius-lg);
  padding: 1.4rem; margin: 0 1.2rem 1.2rem; border: 1px solid var(--pg9c-border);
}
.pg9c-card h3 { font-size: 1.4rem; color: var(--pg9c-highlight); margin-bottom: 0.6rem; }
.pg9c-card p { font-size: 1.2rem; color: var(--pg9c-text-light); line-height: 1.6rem; }

/* Promo Button */
.pg9c-promo-btn {
  display: inline-block; background: linear-gradient(135deg, var(--pg9c-primary), var(--pg9c-accent));
  color: #fff; font-size: 1.3rem; font-weight: 700; padding: 0.8rem 2rem;
  border-radius: var(--pg9c-radius); border: none; cursor: pointer;
  text-decoration: none; text-align: center; margin: 0.6rem 0;
  transition: transform 0.2s, box-shadow 0.2s;
}
.pg9c-promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(176,48,96,0.4);
}

/* Promo Link (text style) */
.pg9c-promo-link {
  color: var(--pg9c-highlight); font-weight: 700; text-decoration: underline;
  cursor: pointer; font-size: 1.3rem;
}

/* Footer */
.pg9c-footer {
  background: var(--pg9c-bg-dark); padding: 2rem 1.2rem 1rem;
  border-top: 1px solid var(--pg9c-border); text-align: center;
}
.pg9c-footer-brand { font-size: 1.2rem; color: var(--pg9c-text); margin-bottom: 1.2rem; line-height: 1.6rem; }
.pg9c-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-bottom: 1.2rem; }
.pg9c-footer-links a {
  color: var(--pg9c-secondary); text-decoration: none; font-size: 1.1rem;
  padding: 0.3rem 0.6rem; border: 1px solid var(--pg9c-border); border-radius: 4px;
}
.pg9c-footer-links a:hover { color: var(--pg9c-highlight); border-color: var(--pg9c-highlight); }
.pg9c-footer-copy { font-size: 1rem; color: #666; margin-top: 1rem; }

/* Bottom Navigation */
.pg9c-bnav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: var(--pg9c-bnav-h);
  background: var(--pg9c-bg-dark); border-top: 1px solid var(--pg9c-border);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000; padding: 0 0.4rem;
}
.pg9c-bnav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 50px; cursor: pointer; background: none;
  border: none; color: var(--pg9c-text); transition: color 0.2s, transform 0.2s;
  gap: 2px; padding: 4px;
}
.pg9c-bnav-btn i, .pg9c-bnav-btn .material-icons { font-size: 22px; }
.pg9c-bnav-btn span { font-size: 1rem; }
.pg9c-bnav-btn:hover { color: var(--pg9c-highlight); transform: scale(1.08); }
.pg9c-bnav-active { color: var(--pg9c-highlight) !important; }
.pg9c-bnav-active i, .pg9c-bnav-active .material-icons { color: var(--pg9c-highlight) !important; }

/* Content Typography */
.pg9c-h1 {
  font-size: 1.8rem; font-weight: 700; color: var(--pg9c-highlight);
  padding: 1rem 1.2rem; line-height: 2.2rem;
}
.pg9c-h2 {
  font-size: 1.5rem; font-weight: 700; color: var(--pg9c-secondary);
  margin: 1.2rem 1.2rem 0.6rem; line-height: 2rem;
}
.pg9c-h3 {
  font-size: 1.3rem; font-weight: 600; color: var(--pg9c-accent);
  margin: 0.8rem 1.2rem 0.4rem;
}
.pg9c-text { font-size: 1.2rem; color: var(--pg9c-text-light); padding: 0 1.2rem; line-height: 1.6rem; }
.pg9c-text-sm { font-size: 1.1rem; color: var(--pg9c-text); padding: 0 1.2rem; line-height: 1.5rem; }

/* Tags */
.pg9c-tag {
  display: inline-block; background: var(--pg9c-primary); color: #fff;
  font-size: 1rem; padding: 0.2rem 0.8rem; border-radius: 12px;
  margin: 0.2rem;
}

/* Feature List */
.pg9c-feature-list { list-style: none; padding: 0 1.2rem; }
.pg9c-feature-list li {
  padding: 0.6rem 0; font-size: 1.2rem; color: var(--pg9c-text-light);
  display: flex; align-items: flex-start; gap: 0.6rem;
}
.pg9c-feature-list li i { color: var(--pg9c-highlight); margin-top: 0.2rem; font-size: 1.4rem; }

/* Winner marquee */
.pg9c-winner-bar {
  background: var(--pg9c-bg-card); border-radius: var(--pg9c-radius);
  padding: 0.6rem 1rem; margin: 0 1.2rem; display: flex;
  align-items: center; gap: 0.6rem; overflow: hidden;
}
.pg9c-winner-bar i { color: var(--pg9c-highlight); font-size: 1.6rem; }
.pg9c-winner-text { font-size: 1.1rem; color: var(--pg9c-secondary); white-space: nowrap; }

/* Payment row */
.pg9c-payment-row {
  display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap;
  padding: 0 1.2rem; margin: 0.8rem 0;
}
.pg9c-payment-item {
  background: var(--pg9c-bg-card); border: 1px solid var(--pg9c-border);
  border-radius: var(--pg9c-radius); padding: 0.6rem 1rem;
  font-size: 1.2rem; color: var(--pg9c-text-light);
}

/* Stats bar */
.pg9c-stats {
  display: flex; justify-content: space-around; padding: 1rem 1.2rem;
  margin: 0.8rem 1.2rem; background: var(--pg9c-bg-card);
  border-radius: var(--pg9c-radius-lg); border: 1px solid var(--pg9c-border);
}
.pg9c-stat-item { text-align: center; }
.pg9c-stat-num { font-size: 1.8rem; font-weight: 700; color: var(--pg9c-highlight); }
.pg9c-stat-label { font-size: 1rem; color: var(--pg9c-text); }

/* Testimonial */
.pg9c-testimonial {
  background: var(--pg9c-bg-card); border-radius: var(--pg9c-radius-lg);
  padding: 1rem; margin: 0.6rem 1.2rem; border: 1px solid var(--pg9c-border);
}
.pg9c-testimonial-text { font-size: 1.15rem; color: var(--pg9c-text-light); font-style: italic; line-height: 1.5rem; }
.pg9c-testimonial-author { font-size: 1rem; color: var(--pg9c-highlight); margin-top: 0.4rem; }

/* RTP Table */
.pg9c-rtp-table { width: calc(100% - 2.4rem); margin: 0.6rem 1.2rem; border-collapse: collapse; }
.pg9c-rtp-table th {
  background: var(--pg9c-primary); color: #fff; font-size: 1.1rem;
  padding: 0.5rem 0.6rem; text-align: left;
}
.pg9c-rtp-table td {
  padding: 0.5rem 0.6rem; font-size: 1.1rem; border-bottom: 1px solid var(--pg9c-border);
  color: var(--pg9c-text-light);
}
.pg9c-rtp-table tr:nth-child(even) td { background: var(--pg9c-bg-card); }

/* Internal links */
.pg9c-internal-link {
  color: var(--pg9c-secondary); text-decoration: underline;
  font-size: 1.2rem; cursor: pointer;
}
.pg9c-internal-link:hover { color: var(--pg9c-highlight); }

/* Mobile bottom padding */
@media (max-width: 768px) {
  .pg9c-main { padding-bottom: calc(var(--pg9c-bnav-h) + 1.2rem); }
  .pg9c-footer { padding-bottom: calc(var(--pg9c-bnav-h) + 2rem); }
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
  .pg9c-bnav { display: none; }
}
