/**
 * 75555.cfd - Main Stylesheet
 * Traditional Dice Analysis / Folk Culture Style
 * All classes prefixed with pg9d- for namespace isolation
 */

/* === CSS Variables === */
:root {
  --pg9d-primary: #9932CC;
  --pg9d-secondary: #778899;
  --pg9d-bg-dark: #1C2833;
  --pg9d-bg-medium: #36454F;
  --pg9d-bg-light: #5D5D5D;
  --pg9d-text-light: #F0F0F0;
  --pg9d-text-muted: #B0B0B0;
  --pg9d-accent: #9932CC;
  --pg9d-gold: #DAA520;
  --pg9d-border: #3A4A56;
  --pg9d-card-bg: #2A3A46;
  --pg9d-radius: 8px;
  --pg9d-radius-lg: 12px;
  --pg9d-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  --pg9d-transition: all 0.3s ease;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--pg9d-bg-dark);
  color: var(--pg9d-text-light);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--pg9d-accent); text-decoration: none; transition: var(--pg9d-transition); }
a:hover { color: var(--pg9d-gold); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* === Container === */
.pg9d-container { max-width: 430px; margin: 0 auto; padding: 0 12px; width: 100%; }

/* === Header === */
.pg9d-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, var(--pg9d-bg-dark) 0%, var(--pg9d-bg-medium) 100%);
  border-bottom: 2px solid var(--pg9d-primary);
  transition: var(--pg9d-transition);
  height: 56px;
}
.pg9d-header-scrolled { box-shadow: 0 4px 16px rgba(153, 50, 204, 0.3); }
.pg9d-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; max-width: 430px; margin: 0 auto; padding: 0 10px;
}
.pg9d-logo-area { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.pg9d-logo-img { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--pg9d-primary); }
.pg9d-logo-text { font-size: 18px; font-weight: 700; color: var(--pg9d-text-light); letter-spacing: 1px; }
.pg9d-header-actions { display: flex; align-items: center; gap: 8px; }
.pg9d-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  padding: 8px 16px; border-radius: var(--pg9d-radius); font-size: 13px;
  font-weight: 600; cursor: pointer; border: none; transition: var(--pg9d-transition);
  text-decoration: none; white-space: nowrap;
}
.pg9d-btn-register {
  background: linear-gradient(135deg, var(--pg9d-primary), #B040E0);
  color: #fff; box-shadow: 0 2px 6px rgba(153, 50, 204, 0.4);
}
.pg9d-btn-register:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(153, 50, 204, 0.6); }
.pg9d-btn-login {
  background: transparent; color: var(--pg9d-text-light);
  border: 1px solid var(--pg9d-primary);
}
.pg9d-btn-login:hover { background: rgba(153, 50, 204, 0.15); }
.pg9d-menu-toggle {
  background: none; border: none; color: var(--pg9d-text-light);
  font-size: 22px; cursor: pointer; padding: 4px 6px;
}
.pg9d-menu-toggle:hover { color: var(--pg9d-primary); }

/* === Mobile Menu === */
.pg9d-overlay {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6); z-index: 9998;
}
.pg9d-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100%;
  background: var(--pg9d-bg-medium); z-index: 9999; transition: right 0.3s ease;
  overflow-y: auto; padding: 20px 0;
}
.pg9d-menu-open { right: 0 !important; }
.pg9d-menu-closed { right: -280px; }
.pg9d-menu-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 16px 16px; border-bottom: 1px solid var(--pg9d-border);
}
.pg9d-menu-title { font-size: 18px; font-weight: 700; color: var(--pg9d-primary); }
.pg9d-menu-close { background: none; border: none; color: var(--pg9d-text-light); font-size: 22px; cursor: pointer; }
.pg9d-menu-list { padding: 12px 0; }
.pg9d-menu-item {
  display: block; padding: 12px 20px; color: var(--pg9d-text-light);
  font-size: 14px; border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: var(--pg9d-transition);
}
.pg9d-menu-item:hover { background: rgba(153, 50, 204, 0.15); color: var(--pg9d-primary); padding-left: 26px; }
.pg9d-menu-section-title {
  padding: 12px 20px 6px; font-size: 11px; text-transform: uppercase;
  color: var(--pg9d-text-muted); letter-spacing: 1px; font-weight: 600;
}

/* === Carousel === */
.pg9d-carousel { position: relative; overflow: hidden; border-radius: var(--pg9d-radius-lg); margin-top: 62px; }
.pg9d-slide {
  display: none; width: 100%; cursor: pointer; position: relative;
  transition: opacity 0.5s ease; opacity: 0;
}
.pg9d-slide img { width: 100%; height: 180px; object-fit: cover; border-radius: var(--pg9d-radius-lg); }
.pg9d-slide-overlay {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 12px 16px;
  background: linear-gradient(transparent, rgba(28, 40, 51, 0.9));
}
.pg9d-slide-title { font-size: 16px; font-weight: 700; color: #fff; }
.pg9d-slide-desc { font-size: 12px; color: var(--pg9d-text-muted); margin-top: 2px; }
.pg9d-dots {
  display: flex; justify-content: center; gap: 8px; padding: 10px 0;
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
}
.pg9d-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4);
  cursor: pointer; transition: var(--pg9d-transition); border: none;
}
.pg9d-dot-active { background: var(--pg9d-primary); width: 20px; border-radius: 4px; }

/* === Section Titles === */
.pg9d-section-title {
  font-size: 20px; font-weight: 700; margin: 24px 0 14px;
  padding-bottom: 8px; border-bottom: 2px solid var(--pg9d-primary);
  display: flex; align-items: center; gap: 8px;
}
.pg9d-section-title .material-symbols-outlined,
.pg9d-section-title .bi { color: var(--pg9d-primary); }

/* === Game Grid === */
.pg9d-game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin-bottom: 20px;
}
.pg9d-game-card {
  background: var(--pg9d-card-bg); border-radius: var(--pg9d-radius);
  overflow: hidden; cursor: pointer; transition: var(--pg9d-transition);
  border: 1px solid var(--pg9d-border); position: relative;
}
.pg9d-game-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(153, 50, 204, 0.25); border-color: var(--pg9d-primary); }
.pg9d-game-img { width: 100%; height: 90px; object-fit: cover; }
.pg9d-game-name {
  padding: 6px 8px; font-size: 11px; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--pg9d-text-light);
}

/* === Content Cards === */
.pg9d-card {
  background: var(--pg9d-card-bg); border-radius: var(--pg9d-radius-lg);
  padding: 16px; margin-bottom: 16px; border: 1px solid var(--pg9d-border);
}
.pg9d-card-title {
  font-size: 16px; font-weight: 700; margin-bottom: 10px;
  color: var(--pg9d-primary); display: flex; align-items: center; gap: 6px;
}
.pg9d-card-text { font-size: 13px; color: var(--pg9d-text-muted); line-height: 1.7; }
.pg9d-card-text p { margin-bottom: 8px; }
.pg9d-card-text strong { color: var(--pg9d-text-light); }

/* === Promo Banner === */
.pg9d-promo-banner {
  background: linear-gradient(135deg, var(--pg9d-primary), #B040E0);
  border-radius: var(--pg9d-radius-lg); padding: 18px 16px;
  margin: 16px 0; text-align: center; cursor: pointer;
  transition: var(--pg9d-transition);
}
.pg9d-promo-banner:hover { transform: scale(1.02); box-shadow: 0 6px 20px rgba(153, 50, 204, 0.4); }
.pg9d-promo-banner-title { font-size: 18px; font-weight: 700; color: #fff; }
.pg9d-promo-banner-text { font-size: 13px; color: rgba(255,255,255,0.85); margin-top: 6px; }

/* === FAQ === */
.pg9d-faq-item { margin-bottom: 12px; }
.pg9d-faq-q {
  font-size: 14px; font-weight: 600; color: var(--pg9d-primary);
  margin-bottom: 4px; display: flex; align-items: flex-start; gap: 6px;
}
.pg9d-faq-a { font-size: 13px; color: var(--pg9d-text-muted); padding-left: 20px; line-height: 1.6; }

/* === Category Tabs === */
.pg9d-cat-tabs {
  display: flex; gap: 8px; overflow-x: auto; padding: 10px 0;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.pg9d-cat-tabs::-webkit-scrollbar { display: none; }
.pg9d-cat-tab {
  padding: 8px 16px; border-radius: 20px; font-size: 13px; font-weight: 600;
  white-space: nowrap; cursor: pointer; transition: var(--pg9d-transition);
  background: var(--pg9d-card-bg); color: var(--pg9d-text-muted);
  border: 1px solid var(--pg9d-border); text-decoration: none;
}
.pg9d-cat-tab:hover, .pg9d-cat-tab-active {
  background: var(--pg9d-primary); color: #fff; border-color: var(--pg9d-primary);
}

/* === Winner Ticker === */
.pg9d-winner-ticker {
  background: var(--pg9d-card-bg); border-radius: var(--pg9d-radius);
  padding: 10px 14px; margin: 14px 0; overflow: hidden;
  border-left: 3px solid var(--pg9d-gold);
}
.pg9d-winner-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 13px;
}
.pg9d-winner-row:last-child { border-bottom: none; }
.pg9d-winner-game { color: var(--pg9d-text-muted); }
.pg9d-winner-amount { color: var(--pg9d-gold); font-weight: 700; }

/* === Footer === */
.pg9d-footer {
  background: var(--pg9d-bg-medium); padding: 24px 12px 16px;
  border-top: 2px solid var(--pg9d-primary); margin-top: 30px;
}
.pg9d-footer-brand { text-align: center; margin-bottom: 16px; }
.pg9d-footer-brand-name { font-size: 20px; font-weight: 700; color: var(--pg9d-primary); }
.pg9d-footer-desc { font-size: 12px; color: var(--pg9d-text-muted); margin-top: 6px; line-height: 1.6; }
.pg9d-footer-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin: 16px 0;
}
.pg9d-footer-link {
  padding: 6px 14px; border-radius: 20px; font-size: 12px;
  background: rgba(153, 50, 204, 0.15); color: var(--pg9d-primary);
  transition: var(--pg9d-transition); text-decoration: none;
}
.pg9d-footer-link:hover { background: var(--pg9d-primary); color: #fff; }
.pg9d-footer-partners {
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
  margin: 14px 0; opacity: 0.6;
}
.pg9d-footer-partners img { height: 22px; filter: grayscale(100%); }
.pg9d-footer-copy {
  text-align: center; font-size: 11px; color: var(--pg9d-text-muted);
  border-top: 1px solid var(--pg9d-border); padding-top: 12px; margin-top: 12px;
}

/* === Bottom Navigation (Mobile) === */
.pg9d-bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 1000; height: 60px;
  background: linear-gradient(180deg, var(--pg9d-bg-medium) 0%, var(--pg9d-bg-dark) 100%);
  border-top: 2px solid var(--pg9d-primary);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
}
.pg9d-bottom-nav-inner {
  display: flex; justify-content: space-around; align-items: center;
  height: 60px; max-width: 430px; margin: 0 auto;
}
.pg9d-bottom-nav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 56px; background: none; border: none;
  color: var(--pg9d-text-muted); cursor: pointer; transition: var(--pg9d-transition);
  padding: 4px 2px; text-decoration: none; border-radius: 8px;
}
.pg9d-bottom-nav-btn:hover, .pg9d-bottom-nav-btn-active {
  color: var(--pg9d-primary); background: rgba(153, 50, 204, 0.1);
}
.pg9d-bottom-nav-btn i,
.pg9d-bottom-nav-btn .material-symbols-outlined,
.pg9d-bottom-nav-btn .bi { font-size: 22px; margin-bottom: 2px; }
.pg9d-bottom-nav-btn span:last-child { font-size: 10px; font-weight: 600; }

/* === Page Content Helpers === */
.pg9d-main { padding-top: 62px; padding-bottom: 20px; }
.pg9d-h1 {
  font-size: 22px; font-weight: 700; margin: 18px 0 10px;
  color: var(--pg9d-text-light); line-height: 1.4;
}
.pg9d-h2 { font-size: 18px; font-weight: 700; margin: 16px 0 8px; color: var(--pg9d-primary); }
.pg9d-text-block { font-size: 13px; color: var(--pg9d-text-muted); line-height: 1.8; margin-bottom: 14px; }
.pg9d-text-block a { color: var(--pg9d-primary); font-weight: 600; text-decoration: underline; }
.pg9d-promo-text {
  font-size: 14px; font-weight: 700; color: var(--pg9d-gold);
  cursor: pointer; text-decoration: underline; display: inline-block;
  transition: var(--pg9d-transition);
}
.pg9d-promo-text:hover { color: var(--pg9d-primary); }

/* === Help Page Styles === */
.pg9d-help-section { margin-bottom: 18px; }
.pg9d-help-list { padding-left: 18px; }
.pg9d-help-list li {
  font-size: 13px; color: var(--pg9d-text-muted); line-height: 1.7;
  margin-bottom: 6px; list-style: disc;
}
.pg9d-help-list li::marker { color: var(--pg9d-primary); }
.pg9d-step-list { counter-reset: pg9d-step; }
.pg9d-step-list li {
  counter-increment: pg9d-step; font-size: 13px; color: var(--pg9d-text-muted);
  line-height: 1.7; margin-bottom: 8px; padding-left: 30px; position: relative;
  list-style: none;
}
.pg9d-step-list li::before {
  content: counter(pg9d-step);
  position: absolute; left: 0; top: 1px;
  background: var(--pg9d-primary); color: #fff;
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}

/* === Responsive === */
@media (max-width: 768px) {
  .pg9d-main { padding-bottom: 80px; }
  .pg9d-bottom-nav { display: block; }
}
@media (min-width: 769px) {
  .pg9d-container { max-width: 430px; }
  .pg9d-bottom-nav { display: none; }
}
@media (max-width: 360px) {
  .pg9d-game-grid { grid-template-columns: repeat(2, 1fr); }
  .pg9d-game-img { height: 75px; }
  .pg9d-h1 { font-size: 19px; }
}
