/* PH798 Design System - All classes prefixed with pg13- */
/* Color Palette: #1A1A2E bg, #C0C0C0 text, #8FBC8F accent, #FF1493 highlight, #FA8072 secondary, #880E4F dark maroon */

:root {
  --pg13-primary: #C0C0C0;
  --pg13-bg: #1A1A2E;
  --pg13-bg-light: #252547;
  --pg13-bg-card: #2A2A4A;
  --pg13-text: #C0C0C0;
  --pg13-text-light: #E8E8E8;
  --pg13-accent: #8FBC8F;
  --pg13-highlight: #FF1493;
  --pg13-secondary: #FA8072;
  --pg13-maroon: #880E4F;
  --pg13-border: #3A3A5A;
  --pg13-radius: 1.2rem;
  --pg13-radius-sm: 0.8rem;
  --pg13-shadow: 0 2px 8px rgba(0,0,0,0.3);
  --pg13-transition: all 0.3s ease;
}

*, *::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, sans-serif;
  background-color: var(--pg13-bg);
  color: var(--pg13-text);
  font-size: 1.4rem;
  line-height: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--pg13-accent); text-decoration: none; }
a:hover { color: var(--pg13-highlight); }
img { max-width: 100%; height: auto; display: block; }

/* ===== HEADER ===== */
.pg13-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--pg13-maroon), var(--pg13-bg));
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 430px;
  margin: 0 auto;
  border-bottom: 1px solid var(--pg13-border);
}

.pg13-header-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pg13-header-logo img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.pg13-header-logo span {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pg13-highlight);
  letter-spacing: 0.5px;
}

.pg13-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pg13-btn-register,
.pg13-btn-login {
  padding: 0.5rem 1.2rem;
  border-radius: var(--pg13-radius-sm);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--pg13-transition);
}

.pg13-btn-register {
  background: linear-gradient(135deg, var(--pg13-highlight), var(--pg13-maroon));
  color: #fff;
}

.pg13-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(255,20,147,0.4);
}

.pg13-btn-login {
  background: transparent;
  border: 1.5px solid var(--pg13-accent);
  color: var(--pg13-accent);
}

.pg13-btn-login:hover {
  background: var(--pg13-accent);
  color: var(--pg13-bg);
}

.pg13-menu-toggle {
  background: none;
  border: none;
  color: var(--pg13-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  line-height: 1;
}

/* ===== MOBILE SLIDE MENU ===== */
.pg13-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 75%;
  max-width: 300px;
  height: 100vh;
  background: var(--pg13-bg-light);
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  padding: 2rem 0;
  overflow-y: auto;
}

.pg13-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem 1.5rem;
  border-bottom: 1px solid var(--pg13-border);
}

.pg13-menu-header span {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pg13-highlight);
}

.pg13-menu-close {
  background: none;
  border: none;
  color: var(--pg13-text);
  font-size: 2.2rem;
  cursor: pointer;
}

.pg13-menu-nav {
  list-style: none;
  padding: 1rem 0;
}

.pg13-menu-nav li a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  color: var(--pg13-text);
  font-size: 1.4rem;
  transition: var(--pg13-transition);
}

.pg13-menu-nav li a:hover {
  background: var(--pg13-bg-card);
  color: var(--pg13-highlight);
  padding-left: 2rem;
}

.pg13-menu-nav li a i,
.pg13-menu-nav li a span.material-symbols-outlined {
  font-size: 2rem;
  width: 2.4rem;
  text-align: center;
}

.pg13-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
}

/* ===== BANNER SLIDER ===== */
.pg13-banner-slider {
  position: relative;
  width: 100%;
  margin-top: 5rem;
  overflow: hidden;
  border-radius: 0 0 var(--pg13-radius) var(--pg13-radius);
}

.pg13-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}

.pg13-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 430/200;
  object-fit: cover;
}

.pg13-slide-active { display: block; }

.pg13-slide-controls {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
}

.pg13-slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(192,192,192,0.4);
  cursor: pointer;
  transition: var(--pg13-transition);
}

.pg13-dot-active {
  background: var(--pg13-highlight);
  width: 20px;
  border-radius: 4px;
}

.pg13-slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  padding: 0.6rem;
  cursor: pointer;
  font-size: 1.6rem;
  border-radius: 50%;
}

.pg13-slide-arrow-left { left: 0.5rem; }
.pg13-slide-arrow-right { right: 0.5rem; }

/* ===== MAIN CONTENT ===== */
.pg13-main {
  padding: 1.5rem;
  padding-top: 1rem;
}

.pg13-section {
  margin-bottom: 2.5rem;
}

.pg13-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pg13-highlight);
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--pg13-maroon);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.pg13-section-title i {
  font-size: 2rem;
  color: var(--pg13-accent);
}

/* ===== GAME GRID ===== */
.pg13-game-category-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--pg13-accent);
  margin: 1.5rem 0 1rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--pg13-highlight);
}

.pg13-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.pg13-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: var(--pg13-transition);
  border-radius: var(--pg13-radius-sm);
  padding: 0.5rem;
  background: var(--pg13-bg-card);
}

.pg13-game-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255,20,147,0.2);
  background: var(--pg13-bg-light);
}

.pg13-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--pg13-radius-sm);
  margin-bottom: 0.4rem;
}

.pg13-game-item span {
  font-size: 1rem;
  color: var(--pg13-text);
  text-align: center;
  line-height: 1.2;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ===== H1 TITLE ===== */
.pg13-h1-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--pg13-text-light);
  margin: 1.5rem 0 1rem;
  line-height: 1.3;
}

.pg13-h1-title span {
  color: var(--pg13-highlight);
}

/* ===== CARDS ===== */
.pg13-card {
  background: var(--pg13-bg-card);
  border-radius: var(--pg13-radius);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--pg13-border);
}

.pg13-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--pg13-accent);
  margin-bottom: 0.8rem;
}

.pg13-card p {
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--pg13-text);
}

/* ===== STEPS ===== */
.pg13-steps {
  counter-reset: step;
}

.pg13-step-item {
  position: relative;
  padding: 1rem 1rem 1rem 3.5rem;
  margin-bottom: 1rem;
  background: var(--pg13-bg-card);
  border-radius: var(--pg13-radius-sm);
  border-left: 3px solid var(--pg13-accent);
}

.pg13-step-item::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  background: var(--pg13-highlight);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
}

.pg13-step-item h3 {
  font-size: 1.3rem;
  color: var(--pg13-accent);
  margin-bottom: 0.3rem;
}

.pg13-step-item p {
  font-size: 1.2rem;
  color: var(--pg13-text);
  line-height: 1.5;
}

/* ===== PROMO BUTTONS ===== */
.pg13-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--pg13-highlight), var(--pg13-maroon));
  color: #fff;
  padding: 1rem 2rem;
  border-radius: var(--pg13-radius);
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: var(--pg13-transition);
  margin: 0.5rem 0;
}

.pg13-promo-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 16px rgba(255,20,147,0.5);
}

.pg13-promo-link {
  color: var(--pg13-highlight);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  transition: var(--pg13-transition);
}

.pg13-promo-link:hover {
  color: var(--pg13-secondary);
}

/* ===== FAQ ===== */
.pg13-faq-item {
  background: var(--pg13-bg-card);
  border-radius: var(--pg13-radius-sm);
  margin-bottom: 0.8rem;
  padding: 1.2rem;
  border: 1px solid var(--pg13-border);
}

.pg13-faq-item h3 {
  font-size: 1.3rem;
  color: var(--pg13-accent);
  margin-bottom: 0.5rem;
}

.pg13-faq-item p {
  font-size: 1.2rem;
  color: var(--pg13-text);
  line-height: 1.5;
}

/* ===== TESTIMONIALS ===== */
.pg13-testimonial {
  background: var(--pg13-bg-card);
  border-radius: var(--pg13-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--pg13-highlight);
}

.pg13-testimonial-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--pg13-accent);
  margin-bottom: 0.3rem;
}

.pg13-testimonial-text {
  font-size: 1.2rem;
  color: var(--pg13-text);
  line-height: 1.5;
  font-style: italic;
}

/* ===== WINNERS ===== */
.pg13-winners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.pg13-winner-item {
  background: var(--pg13-bg-card);
  border-radius: var(--pg13-radius-sm);
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--pg13-border);
}

.pg13-winner-game {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--pg13-highlight);
  margin-bottom: 0.3rem;
}

.pg13-winner-amount {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--pg13-accent);
}

.pg13-winner-player {
  font-size: 1rem;
  color: var(--pg13-text);
  opacity: 0.7;
}

/* ===== PAYMENT METHODS ===== */
.pg13-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.pg13-payment-item {
  background: var(--pg13-bg-card);
  border-radius: var(--pg13-radius-sm);
  padding: 0.8rem 1.2rem;
  font-size: 1.2rem;
  color: var(--pg13-text);
  border: 1px solid var(--pg13-border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ===== FOOTER ===== */
.pg13-footer {
  background: var(--pg13-bg-light);
  padding: 2rem 1.5rem;
  margin-top: 2rem;
  border-top: 2px solid var(--pg13-maroon);
}

.pg13-footer-brand {
  font-size: 1.3rem;
  color: var(--pg13-text);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.pg13-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.pg13-footer-links a {
  background: var(--pg13-bg-card);
  padding: 0.5rem 1rem;
  border-radius: var(--pg13-radius-sm);
  font-size: 1.1rem;
  color: var(--pg13-text);
  border: 1px solid var(--pg13-border);
  transition: var(--pg13-transition);
}

.pg13-footer-links a:hover {
  color: var(--pg13-highlight);
  border-color: var(--pg13-highlight);
}

.pg13-footer-copy {
  font-size: 1.1rem;
  color: var(--pg13-text);
  opacity: 0.6;
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid var(--pg13-border);
}

/* ===== BOTTOM NAVIGATION ===== */
.pg13-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, var(--pg13-bg-light), var(--pg13-bg));
  border-top: 1px solid var(--pg13-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  max-width: 430px;
  margin: 0 auto;
}

.pg13-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  cursor: pointer;
  transition: var(--pg13-transition);
  background: none;
  border: none;
  color: var(--pg13-text);
  position: relative;
}

.pg13-bottom-nav-item:hover,
.pg13-bottom-nav-item:active {
  color: var(--pg13-highlight);
  transform: scale(1.1);
}

.pg13-bottom-nav-item.active {
  color: var(--pg13-highlight);
}

.pg13-bottom-nav-item.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background: var(--pg13-highlight);
  border-radius: 1px;
}

.pg13-bottom-nav-item i,
.pg13-bottom-nav-item span.material-symbols-outlined,
.pg13-bottom-nav-item ion-icon,
.pg13-bottom-nav-item bi {
  font-size: 2.2rem;
  margin-bottom: 0.2rem;
}

.pg13-bottom-nav-item ion-icon {
  font-size: 2.4rem;
}

.pg13-bottom-nav-label {
  font-size: 1rem;
  font-weight: 500;
}

/* ===== DESKTOP: hide bottom nav ===== */
@media (min-width: 769px) {
  .pg13-bottom-nav { display: none; }
}

/* ===== MOBILE: bottom padding for nav ===== */
@media (max-width: 768px) {
  .pg13-main,
  .pg13-content-wrap {
    padding-bottom: 80px;
  }
}

/* ===== UTILITY ===== */
.pg13-text-center { text-align: center; }
.pg13-text-highlight { color: var(--pg13-highlight); }
.pg13-text-accent { color: var(--pg13-accent); }
.pg13-mb-1 { margin-bottom: 1rem; }
.pg13-mb-2 { margin-bottom: 2rem; }
.pg13-mt-1 { margin-top: 1rem; }

/* ===== CONTENT PARAGRAPH ===== */
.pg13-content p {
  font-size: 1.3rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: var(--pg13-text);
}

.pg13-content h2 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--pg13-highlight);
  margin: 2rem 0 1rem;
}

.pg13-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--pg13-accent);
  margin: 1.5rem 0 0.8rem;
}

/* ===== INTERNAL LINK STYLE ===== */
.pg13-internal-link {
  color: var(--pg13-accent);
  text-decoration: underline;
  font-weight: 500;
  transition: var(--pg13-transition);
}

.pg13-internal-link:hover {
  color: var(--pg13-highlight);
}

/* ===== APP DOWNLOAD CTA ===== */
.pg13-app-cta {
  background: linear-gradient(135deg, var(--pg13-maroon), var(--pg13-bg-card));
  border-radius: var(--pg13-radius);
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid var(--pg13-highlight);
}

.pg13-app-cta h3 {
  font-size: 1.6rem;
  color: var(--pg13-highlight);
  margin-bottom: 0.8rem;
}

.pg13-app-cta p {
  font-size: 1.3rem;
  color: var(--pg13-text);
  margin-bottom: 1.2rem;
}

/* ===== CATEGORY HIGHLIGHTS ===== */
.pg13-cat-highlight {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--pg13-bg-card);
  padding: 1rem;
  border-radius: var(--pg13-radius-sm);
  margin-bottom: 0.8rem;
  border: 1px solid var(--pg13-border);
}

.pg13-cat-highlight-icon {
  font-size: 2.4rem;
  color: var(--pg13-highlight);
}

.pg13-cat-highlight h3 {
  font-size: 1.3rem;
  color: var(--pg13-accent);
  margin-bottom: 0.2rem;
}

.pg13-cat-highlight p {
  font-size: 1.1rem;
  color: var(--pg13-text);
}

/* ===== RTP TABLE ===== */
.pg13-rtp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.pg13-rtp-item {
  background: var(--pg13-bg-card);
  padding: 0.8rem;
  border-radius: var(--pg13-radius-sm);
  text-align: center;
  border: 1px solid var(--pg13-border);
}

.pg13-rtp-item-name {
  font-size: 1.1rem;
  color: var(--pg13-text);
  margin-bottom: 0.3rem;
}

.pg13-rtp-item-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--pg13-accent);
}

/* ===== PAGE CONTENT AREA ===== */
.pg13-content-wrap {
  padding-top: 5.5rem;
  max-width: 430px;
  margin: 0 auto;
}

/* ===== TRUST BADGES ===== */
.pg13-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.pg13-trust-item {
  text-align: center;
  background: var(--pg13-bg-card);
  padding: 1rem 0.5rem;
  border-radius: var(--pg13-radius-sm);
  border: 1px solid var(--pg13-border);
}

.pg13-trust-item i {
  font-size: 2rem;
  color: var(--pg13-accent);
  margin-bottom: 0.4rem;
}

.pg13-trust-item span {
  display: block;
  font-size: 1rem;
  color: var(--pg13-text);
}
