/*!
 * soi cau 247 - layout-8da1.css
 * Mobile-first HTML5 casino homepage. Max width 430px on phones.
 * Class prefix: pg8d-
 * Palette: dark base (#1a1230 / #0e0b1f), pink #FF8A80, sky #87CEFA, blue #1E90FF, accent pink #FFC0CB.
 */

/* ===== Reset & base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
:root {
  font-size: 62.5%;
  --pg8d-bg: #0e0b1f;
  --pg8d-bg-2: #1a1230;
  --pg8d-card: #221742;
  --pg8d-card-2: #2a1d52;
  --pg8d-text: #f5f3ff;
  --pg8d-muted: #b9aee0;
  --pg8d-pink: #FF8A80;
  --pg8d-pink-soft: #FFC0CB;
  --pg8d-blue: #1E90FF;
  --pg8d-sky: #87CEFA;
  --pg8d-gold: #ffd479;
  --pg8d-green: #5ad37a;
  --pg8d-grad: linear-gradient(135deg, #1E90FF 0%, #87CEFA 50%, #FFC0CB 100%);
  --pg8d-grad-pink: linear-gradient(135deg, #FF8A80 0%, #FFC0CB 100%);
  --pg8d-shadow: 0 6px 22px rgba(0,0,0,.45);
}

body {
  margin: 0;
  font-family: "Be Vietnam Pro", "Roboto", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(30,144,255,.18), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(255,138,128,.16), transparent 55%),
    var(--pg8d-bg);
  color: var(--pg8d-text);
  font-size: 1.5rem;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--pg8d-sky); text-decoration: none; }
a:hover { color: var(--pg8d-pink-soft); text-decoration: underline; }

.pg8d-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 14px; }
.pg8d-no-scroll { overflow: hidden; }

h1, h2, h3, h4 { margin: 0 0 10px; line-height: 1.25; font-weight: 700; color: #fff; }
h1 { font-size: 2.6rem; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.7rem; }
p { margin: 0 0 12px; }

/* ===== Header ===== */
.pg8d-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(14,11,31,.95), rgba(14,11,31,.85));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(135,206,250,.18);
}
.pg8d-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 56px;
}
.pg8d-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.8rem;
  color: #fff;
  letter-spacing: .3px;
}
.pg8d-logo .pg8d-logo-mark {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--pg8d-grad);
  display: inline-flex; align-items: center; justify-content: center;
  color: #0e0b1f; font-weight: 900; font-size: 1.4rem;
  box-shadow: 0 4px 14px rgba(30,144,255,.4);
}
.pg8d-logo small { color: var(--pg8d-pink-soft); font-size: 1.1rem; font-weight: 600; display: block; margin-top: 2px;}

.pg8d-header-actions { display: flex; align-items: center; gap: 8px; }
.pg8d-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease, background .2s;
  min-height: 38px;
  line-height: 1;
  color: #fff;
}
.pg8d-btn:focus-visible { outline: 2px solid var(--pg8d-sky); outline-offset: 2px; }
.pg8d-btn-login {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(135,206,250,.45);
  color: #fff;
}
.pg8d-btn-login:hover { background: rgba(255,255,255,.16); }
.pg8d-btn-register {
  background: var(--pg8d-grad-pink);
  color: #2b0a06;
  box-shadow: 0 6px 16px rgba(255,138,128,.45);
}
.pg8d-btn-register:hover { transform: translateY(-1px); }

.pg8d-menu-btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(135,206,250,.35);
  background: rgba(34,23,66,.7);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.9rem;
  cursor: pointer;
}
.pg8d-btn-active { background: rgba(30,144,255,.25); }

/* Desktop-only nav (hidden on mobile) */
.pg8d-desktop-nav {
  display: none;
  gap: 18px;
}
.pg8d-desktop-nav a {
  color: var(--pg8d-muted);
  font-size: 1.45rem;
  font-weight: 600;
}
.pg8d-desktop-nav a:hover { color: #fff; }

/* ===== Mobile menu slide down ===== */
.pg8d-mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  background: linear-gradient(180deg, #1a1230 0%, #0e0b1f 100%);
  padding: 60px 18px 26px;
  transform: translateY(-100%);
  transition: transform .28s ease;
  border-bottom: 1px solid rgba(135,206,250,.2);
  max-height: 100vh;
  overflow-y: auto;
}
.pg8d-menu-open { transform: translateY(0); }
.pg8d-mobile-menu a {
  display: block;
  padding: 13px 6px;
  border-bottom: 1px solid rgba(135,206,250,.12);
  color: #fff;
  font-size: 1.55rem;
  font-weight: 600;
}
.pg8d-mobile-menu a:hover { color: var(--pg8d-pink-soft); }
.pg8d-menu-close {
  position: absolute; top: 14px; right: 14px;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,.1);
  color: #fff; border: 0;
  font-size: 2rem; cursor: pointer;
}

/* ===== Hero carousel ===== */
.pg8d-hero {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  margin: 14px 0;
  box-shadow: var(--pg8d-shadow);
}
.pg8d-hero-track {
  display: flex;
  transition: transform .55s ease;
}
.pg8d-hero-slide {
  min-width: 100%;
  position: relative;
  padding: 22px 18px;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.pg8d-hero-slide:nth-child(1) { background: linear-gradient(120deg, #1f3c88 0%, #143a7a 55%, #FF8A80 100%); }
.pg8d-hero-slide:nth-child(2) { background: linear-gradient(120deg, #6a1b4d 0%, #ad3a5f 55%, #FFC0CB 100%); }
.pg8d-hero-slide:nth-child(3) { background: linear-gradient(120deg, #1b3b2f 0%, #2f6b4f 55%, #5ad37a 100%); }
.pg8d-hero-slide:nth-child(4) { background: linear-gradient(120deg, #3a1d52 0%, #6a3aa0 55%, #87CEFA 100%); }
.pg8d-hero-tag {
  display: inline-block;
  background: rgba(0,0,0,.35);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 1.2rem; font-weight: 700;
  color: var(--pg8d-gold);
  margin-bottom: 10px;
  width: fit-content;
}
.pg8d-hero-slide h2 { font-size: 2.3rem; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.pg8d-hero-slide p { color: #f3f0ff; font-size: 1.4rem; margin-bottom: 14px; }
.pg8d-hero-dots {
  position: absolute; bottom: 10px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.pg8d-hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.5);
  border: 0; padding: 0; cursor: pointer;
}
.pg8d-dot-active { background: #fff; width: 22px; border-radius: 5px; }

/* ===== Sections ===== */
.pg8d-section {
  margin: 22px 0;
}
.pg8d-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.pg8d-section-title {
  font-size: 2rem;
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(90deg, #fff, var(--pg8d-pink-soft));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pg8d-section-title .material-icons,
.pg8d-section-title i { -webkit-text-fill-color: initial; color: var(--pg8d-sky); }
.pg8d-section-link {
  font-size: 1.3rem; color: var(--pg8d-pink-soft); font-weight: 600;
}
.pg8d-card {
  background: linear-gradient(160deg, var(--pg8d-card), var(--pg8d-card-2));
  border: 1px solid rgba(135,206,250,.15);
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--pg8d-shadow);
}

/* ===== Promo banner with CTA ===== */
.pg8d-promo {
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(255,138,128,.35), transparent 60%),
    linear-gradient(135deg, #2a1d52, #1a1230);
  border: 1px solid rgba(255,192,203,.35);
  border-radius: 16px;
  padding: 16px;
  margin: 14px 0;
  position: relative;
  overflow: hidden;
}
.pg8d-promo h3 { color: var(--pg8d-pink-soft); font-size: 1.85rem; }
.pg8d-promo p { color: var(--pg8d-muted); font-size: 1.4rem; }
.pg8d-promo .pg8d-btn-register { margin-top: 8px; }
.pg8d-promo-tag {
  position: absolute; top: 10px; right: -30px;
  transform: rotate(35deg);
  background: var(--pg8d-gold);
  color: #2b0a06;
  font-size: 1.1rem; font-weight: 800;
  padding: 4px 36px;
  box-shadow: 0 4px 10px rgba(0,0,0,.3);
}

/* ===== Tab buttons (categories) ===== */
.pg8d-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.pg8d-tabs::-webkit-scrollbar { display: none; }
.pg8d-tab {
  flex: 0 0 auto;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(135,206,250,.25);
  color: var(--pg8d-muted);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.pg8d-tab-active {
  background: var(--pg8d-grad-pink);
  color: #2b0a06;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(255,138,128,.45);
}

/* ===== Game grid ===== */
.pg8d-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}
.pg8d-game {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--pg8d-card);
  border: 1px solid rgba(135,206,250,.18);
  box-shadow: 0 4px 12px rgba(0,0,0,.35);
}
.pg8d-game-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: linear-gradient(135deg, #2a1d52, #143a7a);
  transition: transform .35s ease;
}
.pg8d-game:hover .pg8d-game-img { transform: scale(1.06); }
.pg8d-game-name {
  padding: 6px 6px 8px;
  font-size: 1.18rem;
  text-align: center;
  color: #fff;
  font-weight: 600;
  line-height: 1.2;
  min-height: 36px;
  display: flex; align-items: center; justify-content: center;
}
.pg8d-game-hot {
  position: absolute; top: 6px; left: 6px;
  background: var(--pg8d-pink);
  color: #2b0a06;
  font-size: 1rem; font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
}
.pg8d-game-overlay {
  position: absolute; inset: 0;
  background: rgba(14,11,31,.6);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .25s ease;
}
.pg8d-game:hover .pg8d-game-overlay { opacity: 1; }
.pg8d-play-mini {
  background: var(--pg8d-grad-pink);
  color: #2b0a06;
  padding: 7px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.25rem;
  border: 0; cursor: pointer;
}

/* ===== Featured game highlight ===== */
.pg8d-featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 12px;
}
.pg8d-featured-card {
  display: flex;
  gap: 12px;
  background: linear-gradient(160deg, #221742, #143a7a);
  border: 1px solid rgba(135,206,250,.25);
  border-radius: 14px;
  overflow: hidden;
  padding: 10px;
  align-items: center;
}
.pg8d-featured-img {
  width: 110px; height: 110px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}
.pg8d-featured-body { flex: 1; }
.pg8d-featured-body h4 { font-size: 1.55rem; color: #fff; margin-bottom: 4px;}
.pg8d-featured-body p { font-size: 1.3rem; color: var(--pg8d-muted); margin-bottom: 8px; }
.pg8d-featured-body .pg8d-btn { padding: 7px 14px; font-size: 1.25rem; }

/* ===== SEO long text ===== */
.pg8d-seo {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(135,206,250,.12);
  border-radius: 14px;
  padding: 16px;
  margin: 18px 0;
  font-size: 1.45rem;
  color: var(--pg8d-muted);
  line-height: 1.7;
}
.pg8d-seo h2 { color: #fff; margin-top: 14px; }
.pg8d-seo h2:first-child { margin-top: 0; }
.pg8d-seo h3 { color: var(--pg8d-sky); margin-top: 14px; }
.pg8d-seo p strong { color: var(--pg8d-pink-soft); }
.pg8d-seo ul { padding-left: 18px; margin: 6px 0 12px; }
.pg8d-seo li { margin-bottom: 5px; }
.pg8d-seo a { color: var(--pg8d-sky); text-decoration: underline; }

/* ===== Steps ===== */
.pg8d-steps { display: grid; gap: 10px; margin-top: 10px; }
.pg8d-step {
  display: flex; gap: 12px; align-items: flex-start;
  background: rgba(255,255,255,.04);
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(135,206,250,.15);
}
.pg8d-step-num {
  flex: 0 0 32px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--pg8d-grad);
  color: #0e0b1f;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.4rem;
}
.pg8d-step h4 { font-size: 1.5rem; margin-bottom: 3px; }
.pg8d-step p { margin: 0; font-size: 1.3rem; color: var(--pg8d-muted); }

/* ===== FAQ ===== */
.pg8d-faq { margin-top: 10px; }
.pg8d-faq-item {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(135,206,250,.15);
  border-radius: 12px;
  margin-bottom: 8px;
  overflow: hidden;
}
.pg8d-faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 14px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.45rem;
  color: #fff;
  background: none; border: 0; width: 100%; text-align: left;
}
.pg8d-faq-q .pg8d-faq-icon { transition: transform .25s; color: var(--pg8d-sky); }
.pg8d-faq-open .pg8d-faq-icon { transform: rotate(45deg); }
.pg8d-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  padding: 0 14px;
  color: var(--pg8d-muted);
  font-size: 1.38rem;
}
.pg8d-faq-open .pg8d-faq-a { max-height: 600px; padding: 0 14px 14px; }

/* ===== Stats ===== */
.pg8d-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0;
}
.pg8d-stat {
  background: linear-gradient(160deg, #221742, #143a7a);
  border: 1px solid rgba(135,206,250,.2);
  border-radius: 12px;
  padding: 12px 6px;
  text-align: center;
}
.pg8d-stat-num {
  font-size: 2rem; font-weight: 800;
  background: var(--pg8d-grad-pink);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pg8d-stat-label { font-size: 1.15rem; color: var(--pg8d-muted); margin-top: 3px; }

/* ===== Footer ===== */
.pg8d-footer {
  margin-top: 26px;
  background: linear-gradient(180deg, #1a1230, #0e0b1f);
  border-top: 1px solid rgba(135,206,250,.18);
  padding: 22px 0 100px;
}
.pg8d-footer h4 { color: var(--pg8d-pink-soft); font-size: 1.5rem; margin-bottom: 8px; margin-top: 16px; }
.pg8d-footer-links {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.pg8d-footer-links a {
  color: var(--pg8d-muted); font-size: 1.3rem;
}
.pg8d-footer-links a:hover { color: #fff; }
.pg8d-footer-bottom {
  text-align: center; color: var(--pg8d-muted);
  font-size: 1.2rem; margin-top: 18px;
  padding-top: 14px; border-top: 1px solid rgba(255,255,255,.06);
}
.pg8d-payments { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pg8d-payments span {
  background: rgba(255,255,255,.07);
  padding: 4px 8px; border-radius: 6px;
  font-size: 1.1rem; color: #fff;
}

/* ===== Bottom navigation (mobile only) ===== */
.pg8d-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  height: 62px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: linear-gradient(180deg, rgba(26,18,48,.97), rgba(14,11,31,.99));
  border-top: 1px solid rgba(135,206,250,.25);
  backdrop-filter: blur(10px);
  padding: 0 4px;
  box-shadow: 0 -6px 18px rgba(0,0,0,.4);
}
.pg8d-bottom-nav button,
.pg8d-bottom-nav a.pg8d-nav-item {
  flex: 1;
  background: none; border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  color: var(--pg8d-muted);
  text-decoration: none;
  cursor: pointer;
  transition: color .2s, transform .15s;
  position: relative;
  font-family: inherit;
}
.pg8d-bottom-nav .pg8d-nav-icon { font-size: 24px; line-height: 1; }
.pg8d-bottom-nav .pg8d-nav-label { font-size: 1.05rem; margin-top: 2px; font-weight: 600; }
.pg8d-bottom-nav button:hover,
.pg8d-bottom-nav a.pg8d-nav-item:hover { color: #fff; transform: translateY(-1px); }
.pg8d-bottom-nav .pg8d-nav-active { color: var(--pg8d-pink); }
.pg8d-bottom-nav .pg8d-nav-active::after {
  content: '';
  position: absolute; top: 0;
  width: 26px; height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--pg8d-pink);
}
.pg8d-bottom-nav .pg8d-nav-promo {
  color: #fff;
  background: var(--pg8d-grad-pink);
  margin-top: -22px;
  height: 56px; width: 56px;
  border-radius: 50%;
  flex: 0 0 56px;
  box-shadow: 0 6px 16px rgba(255,138,128,.55);
  border: 3px solid #1a1230;
}
.pg8d-bottom-nav .pg8d-nav-promo .pg8d-nav-icon { font-size: 22px; color: #2b0a06; }

/* Scroll-to-top */
.pg8d-top-btn {
  position: fixed;
  right: 14px;
  bottom: 78px;
  z-index: 999;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--pg8d-grad);
  color: #0e0b1f;
  border: 0;
  font-size: 22px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .2s;
  box-shadow: 0 6px 16px rgba(30,144,255,.5);
}
.pg8d-top-visible { opacity: 1; pointer-events: auto; }
.pg8d-top-btn:hover { transform: translateY(-2px); }

/* ===== Desktop breakpoints ===== */
@media (min-width: 769px) {
  body { background-color: #0e0b1f; }
  .pg8d-container { max-width: 960px; padding: 0 20px; }
  .pg8d-bottom-nav { display: none; }
  .pg8d-menu-btn { display: none; }
  .pg8d-desktop-nav { display: flex; }
  .pg8d-grid { grid-template-columns: repeat(6, 1fr); }
  .pg8d-featured { grid-template-columns: repeat(2, 1fr); }
  .pg8d-footer { padding-bottom: 26px; }
  .pg8d-footer-links { grid-template-columns: repeat(4, 1fr); }
  main { padding-bottom: 0 !important; }
}

/* Mobile bottom clearance */
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}
