/* =========================================================
   PH Plus (phplus.homes) - core stylesheet
   Palette: #0A0A0A background | #FFB74D amber | #FFEB3B yellow
   All custom classes use the gad6- prefix.
   ========================================================= */

:root {
  --gad6-bg: #0A0A0A;
  --gad6-bg-2: #141414;
  --gad6-bg-3: #1d1d1d;
  --gad6-card: #1a1a1a;
  --gad6-amber: #FFB74D;
  --gad6-yellow: #FFEB3B;
  --gad6-text: #F8F4E6;
  --gad6-muted: #B5B5B5;
  --gad6-border: rgba(255, 183, 77, 0.18);
  --gad6-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  --gad6-radius: 14px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", system-ui, -apple-system, Arial, sans-serif;
  background: radial-gradient(circle at 0% 0%, #1a1304 0%, var(--gad6-bg) 55%);
  color: var(--gad6-text);
  line-height: 1.55;
  font-size: 16px;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a {
  color: var(--gad6-amber);
  text-decoration: none;
  transition: color .18s ease;
}
a:hover { color: var(--gad6-yellow); }

.gad6-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 14px;
}

/* ---------- Header ---------- */
.gad6-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #0d0d0d, rgba(10, 10, 10, 0.96));
  border-bottom: 1px solid var(--gad6-border);
  backdrop-filter: blur(8px);
}
.gad6-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.gad6-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: .5px;
  color: var(--gad6-text);
}
.gad6-logo .gad6-logo-mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gad6-amber), var(--gad6-yellow));
  color: #0A0A0A;
  display: grid; place-items: center;
  font-size: 1.05rem;
  box-shadow: 0 4px 12px rgba(255, 183, 77, .35);
}
.gad6-logo small { display: block; font-size: .62rem; color: var(--gad6-muted); font-weight: 500; }

.gad6-header-actions { display: flex; align-items: center; gap: 8px; }
.gad6-icon-btn {
  background: transparent;
  border: 1px solid var(--gad6-border);
  color: var(--gad6-text);
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid; place-items: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all .2s;
}
.gad6-icon-btn:hover { border-color: var(--gad6-amber); color: var(--gad6-amber); }

.gad6-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .9rem;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: transform .15s, box-shadow .2s, background .2s;
  line-height: 1;
}
.gad6-btn-primary {
  background: linear-gradient(135deg, var(--gad6-amber), var(--gad6-yellow));
  color: #0A0A0A;
  box-shadow: 0 4px 14px rgba(255, 183, 77, .35);
}
.gad6-btn-primary:hover { transform: translateY(-1px); color: #0A0A0A; }
.gad6-btn-ghost {
  background: transparent;
  color: var(--gad6-amber);
  border: 1.5px solid var(--gad6-amber);
}
.gad6-btn-ghost:hover { background: rgba(255, 183, 77, .12); color: var(--gad6-yellow); }

.gad6-btn-block { width: 100%; padding: 13px 16px; font-size: 1rem; }

/* ---------- Mobile menu ---------- */
.gad6-menu-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, .6);
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
  z-index: 9998;
}
.gad6-overlay-visible { opacity: 1; pointer-events: auto; }

.gad6-mobile-menu {
  position: fixed;
  top: 0; right: -86%;
  width: 78%;
  max-width: 320px;
  height: 100%;
  background: var(--gad6-bg-2);
  z-index: 9999;
  padding: 22px 18px;
  transition: right .28s ease;
  overflow-y: auto;
  border-left: 1px solid var(--gad6-border);
}
.gad6-menu-open { right: 0; }
.gad6-menu-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.gad6-menu-head h3 { margin: 0; font-size: 1.15rem; color: var(--gad6-amber); }
.gad6-menu-close {
  background: transparent; border: none; color: var(--gad6-text);
  font-size: 1.4rem; cursor: pointer; line-height: 1;
}
.gad6-menu-promo {
  display: flex; gap: 8px; margin-bottom: 18px;
}
.gad6-menu-promo .gad6-btn { flex: 1; padding: 11px; font-size: .82rem; }
.gad6-menu-list { list-style: none; padding: 0; margin: 0; }
.gad6-menu-list li { border-bottom: 1px solid rgba(255,255,255,.05); }
.gad6-menu-list a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 6px;
  color: var(--gad6-text);
  font-size: .95rem;
}
.gad6-menu-list a i { color: var(--gad6-amber); font-size: 1.1rem; width: 22px; text-align: center; }
.gad6-menu-list a:hover { color: var(--gad6-yellow); }

body.gad6-no-scroll { overflow: hidden; }

/* ---------- Hero ---------- */
.gad6-hero {
  position: relative;
  margin: 14px 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--gad6-shadow);
  background: var(--gad6-card);
}
.gad6-hero-slide {
  position: relative;
  display: none;
  min-height: 200px;
  padding: 22px 20px;
  background-size: cover;
  background-position: center;
}
.gad6-hero-slide::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,10,10,.92) 0%, rgba(10,10,10,.55) 60%, rgba(10,10,10,.15) 100%);
}
.gad6-slide-active { display: block; animation: gad6-fade .55s ease; }
@keyframes gad6-fade { from { opacity: 0; } to { opacity: 1; } }
.gad6-hero-content { position: relative; z-index: 2; }
.gad6-hero-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 235, 59, .15);
  color: var(--gad6-yellow);
  font-size: .68rem;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.gad6-hero-title {
  margin: 0 0 6px;
  font-size: 1.65rem;
  line-height: 1.2;
  color: var(--gad6-text);
}
.gad6-hero-title span { color: var(--gad6-amber); }
.gad6-hero-desc { margin: 0 0 14px; font-size: .9rem; color: var(--gad6-muted); }
.gad6-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.gad6-hero-dots {
  position: absolute; bottom: 12px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
  z-index: 3;
}
.gad6-hero-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.4); cursor: pointer;
  transition: all .2s;
}
.gad6-dot-active { background: var(--gad6-yellow); width: 22px; border-radius: 4px; }

/* ---------- Section ---------- */
.gad6-section { padding: 18px 0; }
.gad6-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.gad6-section-title {
  margin: 0;
  font-size: 1.25rem;
  color: var(--gad6-text);
  display: flex; align-items: center; gap: 8px;
}
.gad6-section-title::before {
  content: "";
  width: 4px; height: 22px;
  background: linear-gradient(180deg, var(--gad6-amber), var(--gad6-yellow));
  border-radius: 3px;
}
.gad6-section-more { font-size: .82rem; color: var(--gad6-amber); font-weight: 600; }

.gad6-text-amber { color: var(--gad6-amber); font-weight: 700; }
.gad6-text-yellow { color: var(--gad6-yellow); font-weight: 700; }

/* ---------- Tabs ---------- */
.gad6-tabs {
  display: flex; gap: 8px;
  overflow-x: auto;
  padding: 4px 0 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.gad6-tabs::-webkit-scrollbar { display: none; }
.gad6-tab {
  flex: 0 0 auto;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--gad6-bg-3);
  color: var(--gad6-text);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: all .2s;
}
.gad6-tab-active {
  background: linear-gradient(135deg, var(--gad6-amber), var(--gad6-yellow));
  color: #0A0A0A;
}

/* ---------- Game grid ---------- */
.gad6-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.gad6-game-card {
  background: var(--gad6-card);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.gad6-game-card:hover {
  transform: translateY(-3px);
  border-color: var(--gad6-border);
  box-shadow: 0 8px 18px rgba(0,0,0,.4);
}
.gad6-game-card img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
}
.gad6-game-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(10,10,10,.92) 100%);
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 10px;
  opacity: 0; transition: opacity .25s;
}
.gad6-game-card:hover .gad6-game-overlay { opacity: 1; }
.gad6-game-play {
  background: linear-gradient(135deg, var(--gad6-amber), var(--gad6-yellow));
  color: #0A0A0A;
  font-size: .72rem; font-weight: 800;
  padding: 5px 14px; border-radius: 999px;
  letter-spacing: .5px;
}
.gad6-game-name {
  font-size: .76rem;
  text-align: center;
  padding: 6px 4px;
  color: var(--gad6-text);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gad6-game-tag {
  position: absolute; top: 6px; left: 6px;
  background: rgba(255, 183, 77, .92);
  color: #0A0A0A;
  font-size: .6rem; font-weight: 800;
  padding: 2px 7px; border-radius: 4px;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.gad6-game-tag.hot { background: #ff3b3b; color: #fff; }

/* ---------- Feature cards ---------- */
.gad6-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.gad6-feature-card {
  background: var(--gad6-card);
  border: 1px solid var(--gad6-border);
  border-radius: 14px;
  padding: 16px 14px;
  text-align: center;
  transition: transform .2s;
}
.gad6-feature-card:hover { transform: translateY(-3px); }
.gad6-feature-icon {
  width: 48px; height: 48px;
  margin: 0 auto 10px;
  background: linear-gradient(135deg, rgba(255,183,77,.25), rgba(255,235,59,.18));
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.4rem;
  color: var(--gad6-amber);
}
.gad6-feature-card h3 { margin: 0 0 6px; font-size: .95rem; color: var(--gad6-text); }
.gad6-feature-card p { margin: 0; font-size: .76rem; color: var(--gad6-muted); line-height: 1.4; }

/* ---------- Featured / promo banner ---------- */
.gad6-promo-banner {
  background: linear-gradient(135deg, #1c1404, #2a1d05);
  border: 1px solid var(--gad6-border);
  border-radius: 16px;
  padding: 18px 16px;
  margin: 16px 0;
  display: flex; gap: 14px; align-items: center;
}
.gad6-promo-banner .gad6-promo-icon {
  flex: 0 0 auto;
  width: 54px; height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gad6-amber), var(--gad6-yellow));
  color: #0A0A0A;
  display: grid; place-items: center;
  font-size: 1.6rem;
}
.gad6-promo-banner h3 { margin: 0 0 4px; font-size: 1.05rem; color: var(--gad6-text); }
.gad6-promo-banner p { margin: 0 0 10px; font-size: .82rem; color: var(--gad6-muted); }

/* ---------- Article / SEO long text ---------- */
.gad6-article {
  background: var(--gad6-card);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 14px;
  padding: 18px 16px;
  margin: 14px 0;
}
.gad6-article h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  color: var(--gad6-amber);
}
.gad6-article h3 {
  margin: 16px 0 6px;
  font-size: 1.05rem;
  color: var(--gad6-yellow);
}
.gad6-article p {
  margin: 0 0 10px;
  font-size: .9rem;
  color: var(--gad6-text);
  line-height: 1.7;
}
.gad6-article ul { margin: 0 0 10px; padding-left: 20px; }
.gad6-article li { font-size: .88rem; margin-bottom: 6px; color: var(--gad6-text); }
.gad6-article a { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- FAQ ---------- */
.gad6-faq-item {
  background: var(--gad6-card);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 12px;
  margin-bottom: 8px;
  overflow: hidden;
}
.gad6-faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 14px 14px;
  color: var(--gad6-text);
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.gad6-faq-q .gad6-faq-icon { color: var(--gad6-amber); transition: transform .25s; flex: 0 0 auto; }
.gad6-faq-open .gad6-faq-q .gad6-faq-icon { transform: rotate(45deg); }
.gad6-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  padding: 0 14px;
  color: var(--gad6-muted);
  font-size: .86rem;
  line-height: 1.6;
}
.gad6-faq-open .gad6-faq-a {
  max-height: 320px;
  padding-bottom: 14px;
}

/* ---------- Steps ---------- */
.gad6-steps { counter-reset: gad6-step; list-style: none; padding: 0; margin: 0; }
.gad6-steps li {
  position: relative;
  padding: 10px 0 10px 46px;
  font-size: .9rem;
  color: var(--gad6-text);
  border-bottom: 1px dashed rgba(255,255,255,.07);
}
.gad6-steps li:last-child { border-bottom: none; }
.gad6-steps li::before {
  counter-increment: gad6-step;
  content: counter(gad6-step);
  position: absolute; left: 0; top: 8px;
  width: 30px; height: 30px;
  background: linear-gradient(135deg, var(--gad6-amber), var(--gad6-yellow));
  color: #0A0A0A;
  border-radius: 50%;
  font-weight: 800;
  font-size: .85rem;
  display: grid; place-items: center;
}

/* ---------- Stats ---------- */
.gad6-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px 0;
}
.gad6-stat {
  background: var(--gad6-card);
  border: 1px solid var(--gad6-border);
  border-radius: 12px;
  padding: 14px 8px;
  text-align: center;
}
.gad6-stat-num {
  font-size: 1.5rem; font-weight: 800;
  color: var(--gad6-yellow);
  line-height: 1;
}
.gad6-stat-label { font-size: .72rem; color: var(--gad6-muted); margin-top: 4px; }

/* ---------- Footer ---------- */
.gad6-footer {
  background: #060606;
  border-top: 1px solid var(--gad6-border);
  padding: 22px 0 28px;
  margin-top: 20px;
}
.gad6-footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
.gad6-footer-col h4 {
  margin: 0 0 8px;
  font-size: .9rem;
  color: var(--gad6-amber);
}
.gad6-footer-col ul { list-style: none; padding: 0; margin: 0; }
.gad6-footer-col li { margin-bottom: 5px; }
.gad6-footer-col a {
  color: var(--gad6-muted); font-size: .8rem;
}
.gad6-footer-col a:hover { color: var(--gad6-yellow); }
.gad6-footer-bottom {
  text-align: center;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.05);
  font-size: .74rem;
  color: var(--gad6-muted);
}
.gad6-footer-warning {
  background: rgba(255, 59, 59, .08);
  border: 1px solid rgba(255, 59, 59, .25);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: .72rem;
  color: #ffb4b4;
  margin-bottom: 14px;
  text-align: center;
}

/* ---------- Bottom nav ---------- */
.gad6-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  background: linear-gradient(180deg, #0d0d0d, #050505);
  border-top: 1px solid var(--gad6-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.gad6-bottom-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--gad6-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  position: relative;
  transition: color .2s;
  padding: 4px 2px;
}
.gad6-bottom-btn i, .gad6-bottom-btn span.material-icons-outlined,
.gad6-bottom-btn ion-icon { font-size: 22px; transition: transform .2s, color .2s; }
.gad6-bottom-btn:hover { color: var(--gad6-amber); }
.gad6-bottom-btn:hover i, .gad6-bottom-btn:hover span,
.gad6-bottom-btn:hover ion-icon { transform: translateY(-2px); }
.gad6-bottom-btn.gad6-active { color: var(--gad6-yellow); }
.gad6-bottom-btn.gad6-promo-center {
  position: relative;
}
.gad6-bottom-btn.gad6-promo-center::before {
  content: "";
  position: absolute;
  top: -16px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gad6-amber), var(--gad6-yellow));
  box-shadow: 0 4px 12px rgba(255,183,77,.45);
}
.gad6-bottom-btn.gad6-promo-center i,
.gad6-bottom-btn.gad6-promo-center span {
  position: relative;
  z-index: 2;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gad6-amber), var(--gad6-yellow));
  color: #0A0A0A;
  display: grid; place-items: center;
  font-size: 22px;
  top: -8px;
}

/* ---------- Back to top ---------- */
.gad6-back-top {
  position: fixed;
  right: 14px; bottom: 76px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gad6-amber), var(--gad6-yellow));
  color: #0A0A0A;
  display: grid; place-items: center;
  cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .2s;
  z-index: 900;
  border: none;
  font-size: 1.1rem;
  box-shadow: 0 6px 16px rgba(0,0,0,.4);
}
.gad6-back-visible { opacity: 1; pointer-events: auto; }
.gad6-back-top:hover { transform: translateY(-2px); }

/* ---------- Reveal animation ---------- */
.gad6-reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.gad6-reveal.gad6-revealed { opacity: 1; transform: translateY(0); }

/* ---------- Main padding ---------- */
main { padding-bottom: 80px; }

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  .gad6-bottom-nav { display: none; }
  .gad6-container { max-width: 960px; }
  .gad6-game-grid { grid-template-columns: repeat(6, 1fr); }
  .gad6-feature-grid { grid-template-columns: repeat(4, 1fr); }
  .gad6-footer-cols { grid-template-columns: repeat(4, 1fr); }
  .gad6-hero-slide { min-height: 280px; }
  main { padding-bottom: 30px; }
  .gad6-hero-title { font-size: 2.1rem; }
}

@media (min-width: 600px) and (max-width: 768px) {
  .gad6-game-grid { grid-template-columns: repeat(4, 1fr); }
}
