/**
 * K9999 Layout Stylesheet
 * Prefix: pg2d-
 * Color palette: #FFCC02 | #FF8C00 | #FF7F50 | #2C3E50 | #6F4E37
 */

:root {
  --pg2d-primary: #FFCC02;
  --pg2d-secondary: #FF8C00;
  --pg2d-accent: #FF7F50;
  --pg2d-dark: #2C3E50;
  --pg2d-brown: #6F4E37;
  --pg2d-bg: #1a1a2e;
  --pg2d-bg2: #16213e;
  --pg2d-bg3: #0f3460;
  --pg2d-text: #f0f0f0;
  --pg2d-text-muted: #b0b0b0;
  --pg2d-gold: #FFCC02;
  --pg2d-orange: #FF8C00;
  --pg2d-coral: #FF7F50;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--pg2d-bg);
  color: var(--pg2d-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
  max-width: 430px;
  margin: 0 auto;
}

/* ========== HEADER ========== */
.pg2d-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: linear-gradient(135deg, var(--pg2d-dark) 0%, var(--pg2d-brown) 100%);
  z-index: 1000;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--pg2d-primary);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.pg2d-logo-area {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.pg2d-logo-area img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.pg2d-logo-area span {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pg2d-primary);
  letter-spacing: 0.5px;
}

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

.pg2d-btn-register {
  background: linear-gradient(135deg, var(--pg2d-primary), var(--pg2d-orange));
  color: var(--pg2d-dark);
  font-weight: 700;
  font-size: 1.2rem;
  padding: 0.5rem 1.2rem;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 32px;
}

.pg2d-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(255, 204, 2, 0.5);
}

.pg2d-btn-login {
  background: transparent;
  color: var(--pg2d-primary);
  font-weight: 600;
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
  border: 1.5px solid var(--pg2d-primary);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 32px;
}

.pg2d-btn-login:hover {
  background: rgba(255, 204, 2, 0.15);
}

.pg2d-menu-toggle {
  background: none;
  border: none;
  color: var(--pg2d-primary);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}

/* ========== MOBILE MENU ========== */
.pg2d-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.pg2d-overlay-active {
  opacity: 1;
  visibility: visible;
}

.pg2d-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 270px;
  height: 100%;
  background: linear-gradient(180deg, var(--pg2d-dark) 0%, var(--pg2d-bg2) 100%);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

.pg2d-menu-active {
  right: 0;
}

.pg2d-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--pg2d-primary);
  font-size: 2.2rem;
  cursor: pointer;
}

.pg2d-mobile-menu ul {
  list-style: none;
  margin-top: 3rem;
}

.pg2d-mobile-menu li {
  margin-bottom: 0.3rem;
}

.pg2d-mobile-menu a {
  display: block;
  color: var(--pg2d-text);
  text-decoration: none;
  padding: 1rem 0.8rem;
  font-size: 1.4rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.pg2d-mobile-menu a:hover {
  background: rgba(255, 204, 2, 0.1);
  border-left-color: var(--pg2d-primary);
  color: var(--pg2d-primary);
}

/* ========== MAIN CONTENT ========== */
.pg2d-main {
  padding-top: 56px;
  min-height: 100vh;
}

@media (max-width: 768px) {
  .pg2d-main {
    padding-bottom: 80px;
  }
}

/* ========== CAROUSEL ========== */
.pg2d-carousel {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: var(--pg2d-bg2);
}

.pg2d-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}

.pg2d-slide-active {
  opacity: 1;
}

.pg2d-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pg2d-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}

.pg2d-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.pg2d-dot-active {
  background: var(--pg2d-primary);
  transform: scale(1.3);
}

/* ========== SECTION STYLES ========== */
.pg2d-section {
  padding: 1.5rem 1rem;
}

.pg2d-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pg2d-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--pg2d-secondary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pg2d-section-title i {
  font-size: 2rem;
}

/* ========== GAME GRID ========== */
.pg2d-cat-label {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pg2d-coral);
  margin: 1.2rem 0 0.6rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--pg2d-orange);
}

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

.pg2d-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.pg2d-game-item:hover {
  transform: scale(1.05);
}

.pg2d-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  border: 2px solid rgba(255, 204, 2, 0.2);
  transition: border-color 0.2s ease;
}

.pg2d-game-item:hover img {
  border-color: var(--pg2d-primary);
}

.pg2d-game-name {
  font-size: 1.1rem;
  color: var(--pg2d-text);
  margin-top: 0.3rem;
  line-height: 1.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========== BUTTONS ========== */
.pg2d-btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 25px;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
}

.pg2d-btn-primary {
  background: linear-gradient(135deg, var(--pg2d-primary), var(--pg2d-orange));
  color: var(--pg2d-dark);
}

.pg2d-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 204, 2, 0.4);
}

.pg2d-btn-accent {
  background: linear-gradient(135deg, var(--pg2d-coral), var(--pg2d-orange));
  color: #fff;
}

/* ========== CARDS ========== */
.pg2d-card {
  background: linear-gradient(135deg, var(--pg2d-bg2), var(--pg2d-bg3));
  border-radius: 12px;
  padding: 1.2rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 204, 2, 0.1);
}

.pg2d-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pg2d-primary);
  margin-bottom: 0.6rem;
}

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

/* ========== FOOTER ========== */
.pg2d-footer {
  background: linear-gradient(180deg, var(--pg2d-dark), #0a0a1a);
  padding: 2rem 1rem 1rem;
  border-top: 2px solid var(--pg2d-brown);
}

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

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

.pg2d-footer-links a {
  color: var(--pg2d-primary);
  text-decoration: none;
  font-size: 1.2rem;
  padding: 0.4rem 0.8rem;
  background: rgba(255, 204, 2, 0.08);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.pg2d-footer-links a:hover {
  background: rgba(255, 204, 2, 0.2);
}

.pg2d-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.pg2d-footer-nav a {
  color: var(--pg2d-text-muted);
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.2s ease;
}

.pg2d-footer-nav a:hover {
  color: var(--pg2d-primary);
}

.pg2d-copyright {
  text-align: center;
  color: #666;
  font-size: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ========== BOTTOM NAV ========== */
.pg2d-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: linear-gradient(180deg, var(--pg2d-dark), #0a0a1a);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  border-top: 2px solid var(--pg2d-primary);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.5);
}

.pg2d-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 52px;
  background: none;
  border: none;
  color: var(--pg2d-text-muted);
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0.3rem;
  border-radius: 8px;
}

.pg2d-bottom-btn:hover,
.pg2d-bottom-btn:active {
  color: var(--pg2d-primary);
  transform: scale(1.1);
}

.pg2d-bottom-btn .pg2d-bnav-icon {
  font-size: 22px;
  margin-bottom: 2px;
}

.pg2d-bottom-btn .pg2d-bnav-label {
  font-size: 1rem;
  font-weight: 500;
}

.pg2d-bottom-btn.pg2d-active {
  color: var(--pg2d-primary);
}

.pg2d-bottom-btn.pg2d-active .pg2d-bnav-icon {
  transform: scale(1.1);
}

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

/* ========== INFO/HELP PAGE STYLES ========== */
.pg2d-content-wrap {
  padding: 1rem;
}

.pg2d-content-wrap h2 {
  font-size: 1.6rem;
  color: var(--pg2d-primary);
  margin: 1.5rem 0 0.8rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--pg2d-orange);
}

.pg2d-content-wrap h3 {
  font-size: 1.4rem;
  color: var(--pg2d-coral);
  margin: 1.2rem 0 0.6rem;
}

.pg2d-content-wrap p {
  color: var(--pg2d-text-muted);
  line-height: 1.7rem;
  margin-bottom: 0.8rem;
}

.pg2d-content-wrap ul {
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
}

.pg2d-content-wrap li {
  color: var(--pg2d-text-muted);
  line-height: 1.7rem;
  margin-bottom: 0.4rem;
}

.pg2d-content-wrap a {
  color: var(--pg2d-primary);
  text-decoration: none;
  font-weight: 600;
}

.pg2d-content-wrap a:hover {
  text-decoration: underline;
}

/* ========== PROMO BANNER ========== */
.pg2d-promo-banner {
  background: linear-gradient(135deg, var(--pg2d-orange), var(--pg2d-coral));
  border-radius: 12px;
  padding: 1.2rem;
  text-align: center;
  margin: 1rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.pg2d-promo-banner:hover {
  transform: scale(1.02);
}

.pg2d-promo-banner h3 {
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.pg2d-promo-banner p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
}

/* ========== FAQ ========== */
.pg2d-faq-item {
  background: var(--pg2d-bg2);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--pg2d-orange);
}

.pg2d-faq-q {
  font-weight: 700;
  color: var(--pg2d-primary);
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.pg2d-faq-a {
  color: var(--pg2d-text-muted);
  font-size: 1.2rem;
  line-height: 1.6rem;
}

/* ========== RTP TABLE ========== */
.pg2d-rtp-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.8rem 0;
  font-size: 1.2rem;
}

.pg2d-rtp-table th {
  background: var(--pg2d-bg3);
  color: var(--pg2d-primary);
  padding: 0.6rem;
  text-align: left;
  font-weight: 600;
}

.pg2d-rtp-table td {
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--pg2d-text-muted);
}

/* ========== TESTIMONIALS ========== */
.pg2d-testimonial {
  background: var(--pg2d-bg2);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 0.8rem;
  border: 1px solid rgba(255, 204, 2, 0.1);
}

.pg2d-testimonial-name {
  font-weight: 700;
  color: var(--pg2d-primary);
  font-size: 1.3rem;
}

.pg2d-testimonial-text {
  color: var(--pg2d-text-muted);
  font-size: 1.2rem;
  margin-top: 0.4rem;
  line-height: 1.5rem;
}

/* ========== WINNER SHOWCASE ========== */
.pg2d-winner-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pg2d-winner-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--pg2d-bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pg2d-primary);
  font-size: 1.4rem;
  flex-shrink: 0;
}

.pg2d-winner-info {
  flex: 1;
}

.pg2d-winner-name {
  font-weight: 600;
  color: var(--pg2d-text);
  font-size: 1.2rem;
}

.pg2d-winner-game {
  color: var(--pg2d-text-muted);
  font-size: 1.1rem;
}

.pg2d-winner-amount {
  font-weight: 700;
  color: var(--pg2d-primary);
  font-size: 1.3rem;
}

/* ========== UTILITY ========== */
.pg2d-text-center {
  text-align: center;
}

.pg2d-mt-1 {
  margin-top: 0.5rem;
}

.pg2d-mb-1 {
  margin-bottom: 0.5rem;
}

.pg2d-hidden {
  display: none;
}
