/* ============================================================
 * t98.click - layout.css
 * Mobile-first casino / gaming layout (Vietnamese site)
 * All custom classes use the "pged-" prefix.
 * Palette: #CD853F gold | #FFC0CB pink | #800080 purple |
 *          #1B263B deep navy (bg) | #FA8072 salmon
 * Root font = 62.5% => 1rem = 10px.
 * ============================================================ */

:root {
  --pged-bg: #1B263B;
  --pged-bg-soft: #23314c;
  --pged-bg-card: #2a3a59;
  --pged-primary: #CD853F;
  --pged-secondary: #800080;
  --pged-accent: #FA8072;
  --pged-pink: #FFC0CB;
  --pged-text: #f5f7fb;
  --pged-text-soft: #c3cee0;
  --pged-border: rgba(255, 255, 255, 0.08);
  --pged-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  --pged-radius: 14px;
}

* { box-sizing: border-box; }

html {
  font-size: 62.5%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: radial-gradient(circle at top, #2a3a59 0%, var(--pged-bg) 55%);
  color: var(--pged-text);
  font-family: "Segoe UI", "Be Vietnam", "Roboto", Arial, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5rem;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: var(--pged-primary); text-decoration: none; }
h1, h2, h3 { margin: 0 0 0.8rem; line-height: 1.4; font-weight: 700; }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.65rem; }
p { margin: 0 0 1rem; }

/* ---- Layout shell ------------------------------------------ */
.pged-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  background: var(--pged-bg);
  min-height: 100vh;
  overflow-x: hidden;
}

.pged-container {
  width: 100%;
  padding: 0 1.4rem;
}

main { padding-bottom: 8rem; }

/* ---- Header ------------------------------------------------ */
.pged-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(120deg, var(--pged-secondary), var(--pged-bg) 60%, var(--pged-primary));
  padding: 0.6rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  border-bottom: 1px solid var(--pged-border);
  box-shadow: var(--pged-shadow);
}

.pged-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}
.pged-brand img { width: 28px; height: 28px; border-radius: 6px; }
.pged-brand-name {
  font-weight: 800;
  font-size: 1.7rem;
  color: #fff;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.pged-brand-name span { color: var(--pged-pink); }

.pged-header-actions { display: flex; align-items: center; gap: 0.5rem; }

.pged-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
  min-height: 36px;
  font-family: inherit;
}
.pged-btn:active { transform: scale(0.94); }
.pged-btn--primary { background: linear-gradient(135deg, var(--pged-primary), var(--pged-accent)); color: #fff; }
.pged-btn--ghost { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.25); }

.pged-icon-btn {
  background: rgba(255,255,255,0.12);
  border: 0;
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.8rem;
}

/* ---- Mobile nav drawer ------------------------------------- */
.pged-nav-drawer {
  position: fixed;
  top: 0;
  right: -85%;
  width: 80%;
  max-width: 320px;
  height: 100%;
  background: var(--pged-bg-soft);
  z-index: 9999;
  padding: 7rem 1.4rem 2rem;
  transform: translateX(0);
  transition: right 0.28s ease;
  overflow-y: auto;
  border-left: 1px solid var(--pged-border);
}
.pged-nav-drawer--open { right: 0; }

.pged-nav-drawer h3 { color: var(--pged-pink); font-size: 1.5rem; margin: 1.4rem 0 0.6rem; }
.pged-nav-drawer a {
  display: block;
  color: var(--pged-text);
  padding: 0.85rem 0.6rem;
  border-bottom: 1px dashed var(--pged-border);
  font-size: 1.4rem;
}
.pged-nav-drawer a:active { background: rgba(255,255,255,0.05); }

.pged-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  z-index: 9998;
}
.pged-overlay--visible { opacity: 1; visibility: visible; }

/* ---- Carousel ---------------------------------------------- */
.pged-carousel {
  position: relative;
  border-radius: var(--pged-radius);
  overflow: hidden;
  margin: 1.2rem 0;
  box-shadow: var(--pged-shadow);
}
.pged-carousel-track { position: relative; height: 180px; }
.pged-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.pged-carousel-slide img { width: 100%; height: 180px; object-fit: cover; cursor: pointer; }
.pged-carousel-slide--active { opacity: 1; }

.pged-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.pged-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: 0;
  cursor: pointer;
  padding: 0;
}
.pged-carousel-dot--active { background: var(--pged-primary); width: 18px; border-radius: 4px; }

/* ---- Sections ---------------------------------------------- */
.pged-section { margin: 2rem 0; }
.pged-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.pged-section-head h2 { color: var(--pged-pink); }
.pged-section-head a { font-size: 1.25rem; color: var(--pged-primary); font-weight: 600; }

.pged-card {
  background: var(--pged-bg-card);
  border: 1px solid var(--pged-border);
  border-radius: var(--pged-radius);
  padding: 1.4rem;
  margin-bottom: 1.2rem;
  box-shadow: var(--pged-shadow);
}
.pged-card h3 { color: var(--pged-primary); }

/* ---- Game grid --------------------------------------------- */
.pged-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}
.pged-game {
  background: var(--pged-bg-soft);
  border: 1px solid var(--pged-border);
  border-radius: 12px;
  padding: 0.6rem;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}
.pged-game:active { transform: scale(0.95); box-shadow: 0 6px 18px rgba(205,133,63,0.35); }
.pged-game img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.4rem;
}
.pged-game-name {
  font-size: 1.15rem;
  color: var(--pged-text);
  line-height: 1.25;
  min-height: 2.6em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pged-game-type {
  font-size: 1rem;
  color: var(--pged-primary);
  font-weight: 600;
  margin-bottom: 0.4rem;
  letter-spacing: 0.5px;
}

/* ---- Feature list ------------------------------------------ */
.pged-features { display: grid; gap: 0.8rem; }
.pged-feature {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  background: var(--pged-bg-soft);
  padding: 1rem;
  border-radius: 12px;
  border-left: 3px solid var(--pged-primary);
}
.pged-feature i { color: var(--pged-accent); font-size: 2rem; }
.pged-feature h3 { font-size: 1.4rem; margin-bottom: 0.3rem; }
.pged-feature p { margin: 0; font-size: 1.25rem; color: var(--pged-text-soft); }

/* ---- Promo inline link ------------------------------------- */
.pged-promo-link {
  color: var(--pged-primary);
  font-weight: 700;
  border-bottom: 1px dashed var(--pged-primary);
  cursor: pointer;
}
.pged-promo-link:hover { color: var(--pged-pink); }

/* ---- Stats / RTP ------------------------------------------- */
.pged-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
.pged-stat {
  background: var(--pged-bg-soft);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--pged-border);
}
.pged-stat-num { display: block; font-size: 2.2rem; font-weight: 800; color: var(--pged-primary); }
.pged-stat-label { font-size: 1.15rem; color: var(--pged-text-soft); }

/* ---- Testimonials ------------------------------------------ */
.pged-testimonial {
  background: var(--pged-bg-soft);
  border-radius: 12px;
  padding: 1.1rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--pged-pink);
}
.pged-testimonial p { margin: 0 0 0.4rem; font-style: italic; }
.pged-testimonial span { font-size: 1.15rem; color: var(--pged-primary); font-weight: 700; }

/* ---- Payment grid ------------------------------------------ */
.pged-payments { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pged-payment {
  flex: 1 1 calc(33% - 0.6rem);
  background: var(--pged-bg-soft);
  border-radius: 10px;
  padding: 0.8rem;
  text-align: center;
  font-size: 1.15rem;
  border: 1px solid var(--pged-border);
}
.pged-payment i { font-size: 2.2rem; color: var(--pged-primary); display: block; margin-bottom: 0.3rem; }

/* ---- Footer ------------------------------------------------ */
.pged-footer {
  background: var(--pged-bg-soft);
  padding: 2rem 1.4rem 9rem;
  border-top: 1px solid var(--pged-border);
  margin-top: 2rem;
}
.pged-footer-brand { color: var(--pged-text-soft); font-size: 1.3rem; margin-bottom: 1rem; }
.pged-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.pged-footer-links a {
  color: var(--pged-text);
  font-size: 1.2rem;
  padding: 0.4rem 0;
}
.pged-footer-promos { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.pged-footer-promos .pged-btn { flex: 1 1 calc(50% - 0.5rem); justify-content: center; }
.pged-copyright { color: var(--pged-text-soft); font-size: 1.1rem; text-align: center; }

/* ---- Bottom navigation ------------------------------------- */
.pged-bottomnav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 62px;
  background: linear-gradient(180deg, var(--pged-bg-soft), var(--pged-bg));
  border-top: 1px solid var(--pged-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -3px 14px rgba(0,0,0,0.35);
}
.pged-bottomnav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--pged-text-soft);
  background: transparent;
  border: 0;
  text-decoration: none;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  position: relative;
  min-width: 60px;
  min-height: 60px;
  transition: color 0.2s ease;
}
.pged-bottomnav-btn i { font-size: 22px; line-height: 1; }
.pged-bottomnav-btn span { font-size: 1rem; }
.pged-bottomnav-btn--active { color: var(--pged-primary); }
.pged-bottomnav-btn--active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  background: var(--pged-primary);
  border-radius: 0 0 4px 4px;
}
.pged-bottomnav-btn:active { transform: scale(0.9); color: var(--pged-pink); }
.pged-bottomnav-btn--promo {
  background: linear-gradient(135deg, var(--pged-primary), var(--pged-accent));
  color: #fff;
  border-radius: 14px 14px 0 0;
  margin: 0 4px;
}

/* ---- Desktop: hide bottom nav, widen wrapper --------------- */
@media (min-width: 769px) {
  .pged-bottomnav { display: none; }
  main { padding-bottom: 2rem; }
  .pged-footer { padding-bottom: 2rem; }
  .pged-wrapper { max-width: 430px; }
}

/* Ensure mobile viewport keeps the 430px limit. */
@media (max-width: 768px) {
  body { padding-bottom: 0; }
}

/* Utility */
.pged-text-center { text-align: center; }
.pged-mt-1 { margin-top: 1rem; }
.pged-hidden { display: none !important; }
