/* ===========================================================
   table game 2 - design.css
   Prefix: pg3d-
   Palette: #FF4500 / #34495E / #FF6347 / #F08080
   Mobile-first (max-width: 430px)
   =========================================================== */

:root {
  --pg3d-bg:        #34495E;
  --pg3d-bg-deep:   #243240;
  --pg3d-bg-soft:   #3d566e;
  --pg3d-primary:   #FF4500;
  --pg3d-secondary: #FF6347;
  --pg3d-tertiary:  #F08080;
  --pg3d-light:     #ffffff;
  --pg3d-muted:     #c8d2dd;
  --pg3d-card:      #2a3744;
  --pg3d-border:    #4a5b6d;
  --pg3d-gold:      #ffcf5c;
  --pg3d-shadow:    0 6px 22px rgba(0, 0, 0, 0.28);
}

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

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

body {
  font-family: "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif;
  background: var(--pg3d-bg);
  color: var(--pg3d-light);
  line-height: 1.5;
  font-size: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}

a { color: var(--pg3d-tertiary); text-decoration: none; }
a:hover { color: var(--pg3d-gold); }
img { max-width: 100%; display: block; }

/* ===================== HEADER ===================== */
.pg3d-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #243240 0%, #34495E 60%, #3d566e 100%);
  border-bottom: 2px solid var(--pg3d-primary);
  box-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.pg3d-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  gap: 8px;
}
.pg3d-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--pg3d-light);
  letter-spacing: .3px;
}
.pg3d-logo .pg3d-logo-mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #FF4500, #F08080);
  display: grid; place-items: center;
  color: #fff; font-size: 1.6rem;
  box-shadow: 0 3px 8px rgba(255,69,0,.45);
}
.pg3d-logo span b { color: var(--pg3d-primary); }

.pg3d-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 1.35rem;
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
.pg3d-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.pg3d-btn:active { transform: translateY(0); }
.pg3d-btn-primary {
  background: linear-gradient(135deg, #FF4500, #FF6347);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 69, 0, .5);
}
.pg3d-btn-ghost {
  background: rgba(255,255,255,.08);
  color: var(--pg3d-light);
  border: 1px solid rgba(255,255,255,.18);
}
.pg3d-ico-btn {
  background: transparent;
  color: var(--pg3d-light);
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14);
  display: grid; place-items: center;
  cursor: pointer;
}

.pg3d-nav-cta { display: flex; gap: 8px; align-items: center; }

/* desktop nav (hidden on mobile) */
.pg3d-desktop-nav {
  display: none;
  background: var(--pg3d-bg-deep);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.pg3d-desktop-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  padding: 8px 14px;
  flex-wrap: wrap;
}
.pg3d-desktop-nav a {
  display: inline-block;
  padding: 8px 12px;
  color: var(--pg3d-muted);
  border-radius: 8px;
  font-size: 1.35rem;
  font-weight: 600;
}
.pg3d-desktop-nav a:hover { background: rgba(255,255,255,.06); color: var(--pg3d-light); }

/* ===================== MOBILE MENU ===================== */
.pg3d-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.pg3d-menu-backdrop.pg3d-open {
  opacity: 1;
  pointer-events: auto;
}
.pg3d-mobile-menu {
  position: fixed;
  top: 0; right: -86%;
  width: 86%;
  max-width: 360px;
  height: 100%;
  background: linear-gradient(180deg, #243240, #2a3744);
  z-index: 9999;
  transition: right .3s ease;
  overflow-y: auto;
  padding: 18px 16px 40px;
  box-shadow: -8px 0 30px rgba(0,0,0,.45);
}
.pg3d-mobile-menu.pg3d-open { right: 0; }
.pg3d-menu-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.pg3d-menu-head h3 { font-size: 1.7rem; color: var(--pg3d-primary); }
.pg3d-menu-close {
  background: transparent; border: none; color: var(--pg3d-light);
  font-size: 2rem; cursor: pointer; line-height: 1;
}
.pg3d-mobile-menu nav { margin-top: 14px; }
.pg3d-mobile-menu nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 10px;
  color: var(--pg3d-light);
  font-size: 1.45rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.pg3d-mobile-menu nav a:hover {
  background: rgba(255, 69, 0, .12);
  color: var(--pg3d-secondary);
}
.pg3d-mobile-menu nav a i,
.pg3d-mobile-menu nav a span.material-symbols-outlined,
.pg3d-mobile-menu nav a bi {
  color: var(--pg3d-primary);
}

/* ===================== MAIN ===================== */
main { padding-bottom: 90px; }
.pg3d-section { padding: 22px 14px; }
.pg3d-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.pg3d-section-title {
  font-size: 1.8rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--pg3d-light);
}
.pg3d-section-title::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 22px;
  background: linear-gradient(180deg, #FF4500, #F08080);
  border-radius: 4px;
}
.pg3d-section-link {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--pg3d-tertiary);
}

/* ===================== HERO ===================== */
.pg3d-hero {
  position: relative;
  background:
    radial-gradient(circle at 20% 0%, rgba(255,99,71,.35), transparent 55%),
    radial-gradient(circle at 90% 80%, rgba(240,128,128,.28), transparent 50%),
    linear-gradient(160deg, #243240, #34495E 70%);
  padding: 24px 16px 28px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  overflow: hidden;
}
.pg3d-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.pg3d-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,69,0,.18);
  border: 1px solid rgba(255,69,0,.5);
  color: var(--pg3d-tertiary);
  font-size: 1.15rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
  position: relative;
}
.pg3d-hero h1 {
  font-size: 2.4rem;
  line-height: 1.2;
  font-weight: 800;
  position: relative;
  margin-bottom: 8px;
}
.pg3d-hero h1 .pg3d-h-acc { color: var(--pg3d-primary); }
.pg3d-hero p {
  color: var(--pg3d-muted);
  font-size: 1.35rem;
  margin-bottom: 16px;
  position: relative;
}
.pg3d-hero-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
}
.pg3d-hero-cta .pg3d-btn { padding: 11px 18px; font-size: 1.4rem; }
.pg3d-hero-stats {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  position: relative;
}
.pg3d-hero-stat {
  flex: 1;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
}
.pg3d-hero-stat b {
  display: block;
  font-size: 1.7rem;
  color: var(--pg3d-gold);
  font-weight: 800;
}
.pg3d-hero-stat small { font-size: 1.1rem; color: var(--pg3d-muted); }

/* ===================== CAROUSEL ===================== */
.pg3d-carousel { position: relative; background: var(--pg3d-bg-deep); overflow: hidden; }
.pg3d-hero-slide { display: none; aspect-ratio: 16 / 7; background: #1c2733; }
.pg3d-hero-slide.pg3d-active { display: block; }
.pg3d-hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.pg3d-carousel-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 7px; }
.pg3d-hero-dot { width: 8px; height: 8px; border: 0; border-radius: 50%; background: rgba(255,255,255,.55); cursor: pointer; }
.pg3d-hero-dot.pg3d-active { width: 22px; border-radius: 8px; background: var(--pg3d-primary); }

/* ===================== MARQUEE / TICKER ===================== */
.pg3d-ticker {
  background: var(--pg3d-bg-deep);
  border-top: 1px solid rgba(255,69,0,.25);
  border-bottom: 1px solid rgba(255,69,0,.25);
  overflow: hidden;
  padding: 9px 0;
}
.pg3d-ticker-track {
  display: inline-flex;
  gap: 28px;
  white-space: nowrap;
  padding-left: 100%;
  animation: pg3dTicker 26s linear infinite;
  font-size: 1.25rem;
  color: var(--pg3d-muted);
}
.pg3d-ticker-track b { color: var(--pg3d-gold); }
@keyframes pg3dTicker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ===================== CATEGORY PILLS ===================== */
.pg3d-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 2px 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.pg3d-pills::-webkit-scrollbar { display: none; }
.pg3d-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--pg3d-muted);
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .18s ease;
}
.pg3d-pill.pg3d-active,
.pg3d-pill:hover {
  background: linear-gradient(135deg, #FF4500, #FF6347);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 3px 10px rgba(255,69,0,.45);
}

/* ===================== GAME GRID ===================== */
.pg3d-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.pg3d-game-card {
  position: relative;
  background: var(--pg3d-card);
  border: 1px solid var(--pg3d-border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.pg3d-game-card:hover {
  transform: translateY(-3px);
  border-color: var(--pg3d-primary);
  box-shadow: 0 8px 18px rgba(0,0,0,.4);
}
.pg3d-game-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #1c2733;
}
.pg3d-game-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.pg3d-game-card:hover .pg3d-game-thumb img { transform: scale(1.06); }
.pg3d-game-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.75) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 10px;
  opacity: 0;
  transition: opacity .22s ease;
}
.pg3d-game-card:hover .pg3d-game-overlay { opacity: 1; }
.pg3d-play-btn {
  background: linear-gradient(135deg, #FF4500, #F08080);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 1.2rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 10px rgba(255,69,0,.55);
}
.pg3d-game-tag {
  position: absolute;
  top: 6px; left: 6px;
  background: rgba(255,69,0,.92);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.pg3d-game-title {
  padding: 8px 9px 10px;
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--pg3d-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===================== FEATURED ===================== */
.pg3d-featured {
  background: linear-gradient(135deg, #2a3744, #3d566e);
  border: 1px solid var(--pg3d-border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.pg3d-featured-img {
  aspect-ratio: 16 / 9;
  background: #1c2733;
  overflow: hidden;
}
.pg3d-featured-img img { width: 100%; height: 100%; object-fit: cover; }
.pg3d-featured-body { padding: 14px; }
.pg3d-featured-body h3 {
  font-size: 1.7rem;
  color: var(--pg3d-light);
  margin-bottom: 6px;
}
.pg3d-featured-body p { font-size: 1.3rem; color: var(--pg3d-muted); margin-bottom: 12px; }

/* ===================== STEPS ===================== */
.pg3d-steps {
  display: grid;
  gap: 12px;
  counter-reset: pg3dStep;
}
.pg3d-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.06);
  padding: 12px;
  border-radius: 12px;
}
.pg3d-step-num {
  flex: 0 0 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF4500, #F08080);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
}
.pg3d-step-body h4 { font-size: 1.4rem; color: var(--pg3d-light); margin-bottom: 4px; }
.pg3d-step-body p { font-size: 1.25rem; color: var(--pg3d-muted); }

/* ===================== PROMO BANNER ===================== */
.pg3d-promo {
  background:
    radial-gradient(circle at 100% 0%, rgba(240,128,128,.35), transparent 55%),
    linear-gradient(135deg, #FF4500, #FF6347);
  border-radius: 16px;
  padding: 18px;
  text-align: center;
  color: #fff;
  box-shadow: 0 8px 22px rgba(255,69,0,.45);
}
.pg3d-promo h3 { font-size: 1.9rem; margin-bottom: 6px; }
.pg3d-promo p { font-size: 1.3rem; margin-bottom: 12px; opacity: .95; }

/* ===================== ARTICLE / FAQ ===================== */
.pg3d-prose p {
  color: var(--pg3d-muted);
  margin-bottom: 12px;
  font-size: 1.32rem;
  line-height: 1.65;
}
.pg3d-prose h2 {
  font-size: 1.85rem;
  color: var(--pg3d-light);
  margin: 18px 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pg3d-prose h2::before {
  content: "";
  width: 5px; height: 20px;
  background: linear-gradient(180deg, #FF4500, #F08080);
  border-radius: 4px;
}
.pg3d-prose h3 { font-size: 1.55rem; color: var(--pg3d-tertiary); margin: 14px 0 6px; }
.pg3d-prose a { color: var(--pg3d-tertiary); text-decoration: underline; }
.pg3d-prose ul { padding-left: 18px; margin-bottom: 12px; color: var(--pg3d-muted); }
.pg3d-prose li { margin-bottom: 6px; font-size: 1.3rem; }

.pg3d-faq-item {
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
}
.pg3d-faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 14px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--pg3d-light);
}
.pg3d-faq-q .pg3d-faq-icon { color: var(--pg3d-primary); transition: transform .2s ease; }
.pg3d-faq-item.pg3d-open .pg3d-faq-q .pg3d-faq-icon { transform: rotate(45deg); }
.pg3d-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .28s ease;
  padding: 0 14px;
  color: var(--pg3d-muted);
  font-size: 1.28rem;
}
.pg3d-faq-item.pg3d-open .pg3d-faq-a {
  max-height: 320px;
  padding: 0 14px 14px;
}

/* ===================== FOOTER ===================== */
.pg3d-footer {
  background: var(--pg3d-bg-deep);
  border-top: 2px solid var(--pg3d-primary);
  padding: 24px 14px 30px;
  color: var(--pg3d-muted);
}
.pg3d-footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}
.pg3d-footer-col h4 {
  color: var(--pg3d-light);
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.pg3d-footer-col a {
  display: block;
  font-size: 1.2rem;
  color: var(--pg3d-muted);
  padding: 3px 0;
}
.pg3d-footer-col a:hover { color: var(--pg3d-tertiary); }
.pg3d-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 14px;
  text-align: center;
  font-size: 1.15rem;
}
.pg3d-footer-disclaimer {
  font-size: 1.1rem;
  color: rgba(200,210,221,.6);
  margin-top: 8px;
  line-height: 1.5;
}

/* ===================== BACK TO TOP ===================== */
.pg3d-to-top {
  position: fixed;
  right: 14px;
  bottom: 84px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF4500, #F08080);
  color: #fff;
  border: none;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 998;
}
.pg3d-to-top.pg3d-show { opacity: 1; pointer-events: auto; }

/* ===================== MOBILE BOTTOM NAV ===================== */
.pg3d-bottom-nav {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #2a3744, #1c2733);
  border-top: 1px solid var(--pg3d-border);
  box-shadow: 0 -4px 16px rgba(0,0,0,.35);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  height: 62px;
}
.pg3d-bottom-nav button,
.pg3d-bottom-nav a {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--pg3d-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  transition: color .18s ease;
}
.pg3d-bottom-nav button i,
.pg3d-bottom-nav a i,
.pg3d-bottom-nav .material-symbols-outlined {
  font-size: 22px;
}
.pg3d-bottom-nav button:hover,
.pg3d-bottom-nav a:hover { color: var(--pg3d-light); }
.pg3d-bottom-nav .pg3d-bn-active { color: var(--pg3d-primary); }
.pg3d-bottom-nav .pg3d-bn-active::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 28px; height: 3px;
  background: linear-gradient(90deg, #FF4500, #F08080);
  border-radius: 0 0 4px 4px;
}
.pg3d-bn-center {
  position: relative;
}
.pg3d-bn-center .pg3d-bn-play {
  position: absolute;
  top: -22px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF4500, #FF6347);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 24px;
  border: 3px solid #1c2733;
  box-shadow: 0 5px 14px rgba(255,69,0,.55);
}

/* ===================== UTILITY ===================== */
.pg3d-container { width: 100%; max-width: 430px; margin: 0 auto; }
.pg3d-hide-mobile { display: none; }
.pg3d-text-center { text-align: center; }
.pg3d-mt-16 { margin-top: 16px; }
.pg3d-mt-24 { margin-top: 24px; }

/* ===================== RESPONSIVE ===================== */
@media (min-width: 431px) {
  body { max-width: 430px; box-shadow: 0 0 30px rgba(0,0,0,.4); }
}

@media (min-width: 769px) {
  .pg3d-bottom-nav { display: none; }
  main { padding-bottom: 30px; }
  .pg3d-hide-mobile { display: block; }
  .pg3d-mobile-only { display: none; }
  .pg3d-desktop-nav { display: block; }
}

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

@media (max-width: 360px) {
  .pg3d-game-grid { grid-template-columns: repeat(2, 1fr); }
  .pg3d-hero h1 { font-size: 2.1rem; }
}
