/**
 * xx999.click - Main Stylesheet
 * Prefix: pg08-
 * Color palette: #0C0C0C (dark bg), #708090 (slate), #008B8B (teal accent),
 *                #DCDCDC (light text), #E0FFFF (highlight bg)
 * Mobile-first design, max-width 430px
 */

/* CSS Variables */
:root {
  --pg08-primary: #008B8B;
  --pg08-primary-light: #00A8A8;
  --pg08-bg-dark: #0C0C0C;
  --pg08-bg-card: #1A1A2E;
  --pg08-bg-section: #111827;
  --pg08-text-light: #DCDCDC;
  --pg08-text-bright: #E0FFFF;
  --pg08-text-muted: #708090;
  --pg08-accent: #00D4AA;
  --pg08-gold: #FFD700;
  --pg08-gradient: linear-gradient(135deg, #008B8B, #00D4AA);
  --pg08-radius: 8px;
  --pg08-radius-lg: 12px;
  --pg08-shadow: 0 2px 8px rgba(0,0,0,0.3);
  --pg08-font-size: 62.5%;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: var(--pg08-font-size); scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--pg08-bg-dark);
  color: var(--pg08-text-light);
  line-height: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--pg08-primary-light); text-decoration: none; }
a:hover { color: var(--pg08-accent); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* Header */
.pg08-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, #0C0C0C 0%, #111827 100%);
  border-bottom: 1px solid rgba(0,139,139,0.3);
  max-width: 430px; margin: 0 auto;
  padding: 0 1.2rem; height: 56px;
  display: flex; align-items: center; justify-content: space-between;
}
.pg08-header-left {
  display: flex; align-items: center; gap: 0.8rem;
}
.pg08-logo {
  width: 32px; height: 32px; border-radius: 6px;
}
.pg08-site-name {
  font-size: 1.8rem; font-weight: 700;
  color: var(--pg08-gold);
  letter-spacing: 1px;
}
.pg08-header-right {
  display: flex; align-items: center; gap: 0.6rem;
}
.pg08-btn-register, .pg08-btn-login {
  border: none; border-radius: var(--pg08-radius);
  padding: 0.6rem 1.4rem; font-size: 1.3rem;
  font-weight: 600; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  min-height: 36px;
}
.pg08-btn-register {
  background: var(--pg08-gradient); color: #fff;
  box-shadow: 0 2px 6px rgba(0,139,139,0.4);
}
.pg08-btn-register:hover { transform: scale(1.05); }
.pg08-btn-login {
  background: transparent; color: var(--pg08-text-light);
  border: 1px solid var(--pg08-primary);
}
.pg08-btn-login:hover { background: rgba(0,139,139,0.15); }

/* Menu Toggle */
.pg08-menu-toggle {
  background: none; border: none; color: var(--pg08-text-light);
  font-size: 2.2rem; cursor: pointer; padding: 0.4rem;
  display: flex; align-items: center;
}

/* Mobile Menu Overlay */
.pg08-menu-overlay {
  display: none; position: fixed; inset: 0; z-index: 9998;
  background: rgba(0,0,0,0.6);
}
.pg08-overlay-active { display: block; }

/* Mobile Menu Panel */
.pg08-mobile-menu {
  position: fixed; top: 0; right: -280px; z-index: 9999;
  width: 280px; height: 100vh;
  background: #111827;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}
.pg08-menu-active { right: 0; }
.pg08-mobile-menu .pg08-menu-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none; color: var(--pg08-text-light);
  font-size: 2.4rem; cursor: pointer;
}
.pg08-mobile-menu ul { margin-top: 3rem; }
.pg08-mobile-menu li {
  border-bottom: 1px solid rgba(112,128,144,0.2);
}
.pg08-mobile-menu a {
  display: block; padding: 1.2rem 0.8rem;
  color: var(--pg08-text-light); font-size: 1.4rem;
  transition: color 0.2s, padding-left 0.2s;
}
.pg08-mobile-menu a:hover {
  color: var(--pg08-accent); padding-left: 1.2rem;
}

/* Main Content */
main {
  padding-top: 56px;
  min-height: 100vh;
}
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}

/* Carousel */
.pg08-carousel {
  position: relative; overflow: hidden;
  margin-top: 56px; border-radius: 0;
}
.pg08-carousel-slide {
  display: none; cursor: pointer;
}
.pg08-slide-active { display: block; }
.pg08-carousel-slide img {
  width: 100%; height: auto; min-height: 160px; object-fit: cover;
}
.pg08-carousel-dots {
  position: absolute; bottom: 10px;
  width: 100%; text-align: center;
  display: flex; justify-content: center; gap: 6px;
}
.pg08-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4); border: none; cursor: pointer;
  transition: background 0.3s;
}
.pg08-dot-active { background: var(--pg08-gold); width: 20px; border-radius: 4px; }

/* Sections */
.pg08-section {
  padding: 2rem 1.2rem;
}
.pg08-section-title {
  font-size: 1.8rem; font-weight: 700;
  color: var(--pg08-text-bright);
  margin-bottom: 1.2rem;
  padding-left: 1rem;
  border-left: 3px solid var(--pg08-primary);
}

/* Category Tabs */
.pg08-category-label {
  font-size: 1.5rem; font-weight: 600;
  color: var(--pg08-gold);
  margin: 1.5rem 0 1rem;
  padding: 0.4rem 1rem;
  background: rgba(0,139,139,0.15);
  border-radius: var(--pg08-radius);
  display: inline-block;
}

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

/* Content Cards */
.pg08-card {
  background: var(--pg08-bg-card);
  border-radius: var(--pg08-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  box-shadow: var(--pg08-shadow);
  border: 1px solid rgba(0,139,139,0.15);
}
.pg08-card h2, .pg08-card h3 {
  color: var(--pg08-text-bright);
  margin-bottom: 0.8rem;
}
.pg08-card p {
  font-size: 1.3rem; line-height: 1.6;
  color: var(--pg08-text-light);
  margin-bottom: 0.8rem;
}
.pg08-card ul {
  padding-left: 1.5rem;
}
.pg08-card li {
  font-size: 1.3rem; line-height: 1.6;
  color: var(--pg08-text-light);
  margin-bottom: 0.4rem;
  list-style: disc;
}

/* Promo Buttons */
.pg08-promo-btn {
  display: inline-block;
  background: var(--pg08-gradient);
  color: #fff; font-weight: 600;
  padding: 0.8rem 2rem;
  border-radius: var(--pg08-radius);
  font-size: 1.4rem;
  cursor: pointer; border: none;
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
}
.pg08-promo-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,139,139,0.4);
}
.pg08-promo-link {
  color: var(--pg08-accent); font-weight: 600;
  border-bottom: 1px dashed var(--pg08-accent);
  cursor: pointer;
}
.pg08-promo-link:hover { color: var(--pg08-gold); }

/* Footer */
.pg08-footer {
  background: #080810;
  padding: 2rem 1.2rem 1rem;
  border-top: 1px solid rgba(0,139,139,0.2);
}
.pg08-footer-brand {
  font-size: 1.3rem; color: var(--pg08-text-muted);
  line-height: 1.6; margin-bottom: 1.5rem;
}
.pg08-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.8rem;
  margin-bottom: 1.5rem;
}
.pg08-footer-links a {
  font-size: 1.2rem; color: var(--pg08-text-muted);
  padding: 0.3rem 0.6rem;
  background: rgba(112,128,144,0.1);
  border-radius: 4px;
  transition: color 0.2s;
}
.pg08-footer-links a:hover { color: var(--pg08-accent); }
.pg08-footer-promo {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.pg08-footer-promo button {
  background: var(--pg08-gradient);
  color: #fff; border: none;
  padding: 0.5rem 1rem; border-radius: var(--pg08-radius);
  font-size: 1.2rem; cursor: pointer;
  font-weight: 500;
  transition: transform 0.15s;
}
.pg08-footer-promo button:hover { transform: scale(1.05); }
.pg08-footer-copy {
  font-size: 1.1rem; color: var(--pg08-text-muted);
  text-align: center; padding-top: 1rem;
  border-top: 1px solid rgba(112,128,144,0.15);
}

/* Bottom Fixed Navigation */
.pg08-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #111827 0%, #0C0C0C 100%);
  border-top: 1px solid rgba(0,139,139,0.3);
  max-width: 430px; margin: 0 auto;
  height: 60px;
  display: flex; justify-content: space-around; align-items: center;
  padding: 0 0.4rem;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.4);
}
.pg08-bottom-nav-btn {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: none; border: none;
  color: var(--pg08-text-muted);
  font-size: 1rem; cursor: pointer;
  min-width: 60px; min-height: 52px;
  transition: color 0.2s, transform 0.15s;
  border-radius: 8px;
  position: relative;
}
.pg08-bottom-nav-btn i,
.pg08-bottom-nav-btn .material-icons-outlined {
  font-size: 22px; margin-bottom: 2px;
}
.pg08-bottom-nav-btn span {
  font-size: 1rem; line-height: 1.2;
}
.pg08-bottom-nav-btn:hover,
.pg08-bottom-nav-btn.pg08-nav-active {
  color: var(--pg08-accent);
  transform: scale(1.08);
}
.pg08-bottom-nav-btn.pg08-nav-active::after {
  content: '';
  position: absolute; top: -1px; left: 25%; right: 25%;
  height: 2px; background: var(--pg08-accent);
  border-radius: 1px;
}

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

/* Utilities */
.pg08-text-center { text-align: center; }
.pg08-mt-1 { margin-top: 1rem; }
.pg08-mt-2 { margin-top: 2rem; }
.pg08-mb-1 { margin-bottom: 1rem; }
.pg08-mb-2 { margin-bottom: 2rem; }
.pg08-py-2 { padding-top: 2rem; padding-bottom: 2rem; }
.pg08-flex-center {
  display: flex; align-items: center; justify-content: center;
}

/* RTP Bar */
.pg08-rtp-bar {
  height: 8px; background: rgba(112,128,144,0.2);
  border-radius: 4px; overflow: hidden; margin: 0.4rem 0;
}
.pg08-rtp-fill {
  height: 100%; border-radius: 4px;
  background: var(--pg08-gradient);
  transition: width 0.5s ease;
}

/* Winner List */
.pg08-winner-item {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(112,128,144,0.1);
  font-size: 1.2rem;
}
.pg08-winner-amount {
  color: var(--pg08-gold); font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 360px) {
  .pg08-game-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
  }
  .pg08-site-name { font-size: 1.5rem; }
}
@media (min-width: 431px) {
  body { border-left: 1px solid rgba(0,139,139,0.1); border-right: 1px solid rgba(0,139,139,0.1); }
}
