/* ===========================================================
 * ph222 link - layout.css
 * Mobile-first base stylesheet. Every custom class uses the
 * "pg4b-" prefix; custom CSS variables use "--pg4b-*".
 * Palette: #004D40 (deep teal) | #333333 (graphite) | #E0E0E0 (mist).
 * =========================================================== */

:root {
  --pg4b-primary: #004D40;
  --pg4b-primary-dark: #002f27;
  --pg4b-primary-light: #00695C;
  --pg4b-secondary: #333333;
  --pg4b-muted: #6b7280;
  --pg4b-bg: #0a1f1b;
  --pg4b-bg-alt: #0f2a24;
  --pg4b-surface: #14342d;
  --pg4b-surface-2: #1a3f37;
  --pg4b-text: #E0E0E0;
  --pg4b-text-soft: #c8d3cf;
  --pg4b-text-dim: #8aa39c;
  --pg4b-accent: #FFC857;
  --pg4b-accent-2: #ff6b3d;
  --pg4b-accent-3: #2ed3b7;
  --pg4b-success: #34d399;
  --pg4b-danger: #f87171;
  --pg4b-border: rgba(224, 224, 224, 0.12);
  --pg4b-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --pg4b-shadow-md: 0 6px 18px rgba(0, 0, 0, 0.45);
  --pg4b-shadow-lg: 0 14px 36px rgba(0, 0, 0, 0.55);
  --pg4b-radius-sm: 8px;
  --pg4b-radius-md: 14px;
  --pg4b-radius-lg: 22px;
  --pg4b-radius-pill: 999px;
  --pg4b-font: "Segoe UI", "Helvetica Neue", Roboto, system-ui, -apple-system, Arial, sans-serif;
  --pg4b-header-h: 58px;
  --pg4b-bottom-nav-h: 62px;
  --pg4b-max: 430px;
  --pg4b-transition: 0.25s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  background: var(--pg4b-bg);
  color: var(--pg4b-text);
  font-family: var(--pg4b-font);
  font-size: 1.5rem;
  line-height: 1.55;
  scroll-behavior: smooth;
}
body { min-height: 100vh; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pg4b-accent-3); text-decoration: none; transition: color var(--pg4b-transition); }
a:hover { color: var(--pg4b-accent); }
button { font-family: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0 0 0.5rem; color: var(--pg4b-text); font-weight: 700; line-height: 1.25; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.55rem; }
p { margin: 0 0 1rem; color: var(--pg4b-text-soft); }

/* ---------- Page wrapper ---------- */
.pg4b-wrapper {
  width: 100%;
  max-width: var(--pg4b-max);
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
  background: radial-gradient(120% 80% at 50% 0%, #11362d 0%, var(--pg4b-bg) 70%);
}
.pg4b-main { padding-bottom: calc(var(--pg4b-bottom-nav-h) + 24px); }

/* ---------- Header ---------- */
.pg4b-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(0, 47, 39, 0.96), rgba(0, 77, 64, 0.92));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--pg4b-border);
  transition: background var(--pg4b-transition), box-shadow var(--pg4b-transition);
}
.pg4b-header--scrolled {
  background: linear-gradient(180deg, rgba(0, 77, 64, 0.98), rgba(0, 47, 39, 0.98));
  box-shadow: var(--pg4b-shadow-md);
}
.pg4b-header__bar {
  max-width: var(--pg4b-max);
  margin: 0 auto;
  height: var(--pg4b-header-h);
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.pg4b-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--pg4b-text);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 0.5px;
}
.pg4b-logo img { width: 30px; height: 30px; border-radius: 50%; }
.pg4b-logo span { color: var(--pg4b-accent); }

.pg4b-header__actions { display: flex; align-items: center; gap: 6px; }
.pg4b-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border: none;
  border-radius: var(--pg4b-radius-pill);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--pg4b-accent), var(--pg4b-accent-2));
  box-shadow: var(--pg4b-shadow-sm);
  transition: transform var(--pg4b-transition), box-shadow var(--pg4b-transition), filter var(--pg4b-transition);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.pg4b-btn:hover { transform: translateY(-1px); filter: brightness(1.1); }
.pg4b-btn:active { transform: translateY(0); }
.pg4b-btn--ghost {
  background: transparent;
  border: 1.5px solid var(--pg4b-accent-3);
  color: var(--pg4b-accent-3);
  box-shadow: none;
}
.pg4b-btn--ghost:hover { background: rgba(46, 211, 183, 0.1); }
.pg4b-btn--lg { min-height: 48px; padding: 0 26px; font-size: 1.5rem; }
.pg4b-btn--block { display: flex; width: 100%; }

.pg4b-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  background: transparent;
  border: 1px solid var(--pg4b-border);
  border-radius: 10px;
  color: var(--pg4b-text);
  font-size: 2rem;
  line-height: 1;
}

/* ---------- Mobile dropdown menu ---------- */
.pg4b-mobile-menu {
  position: fixed;
  top: var(--pg4b-header-h);
  left: 0; right: 0;
  z-index: 9999;
  background: linear-gradient(180deg, rgba(0, 47, 39, 0.99), rgba(15, 42, 36, 0.99));
  border-bottom: 1px solid var(--pg4b-border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.pg4b-mobile-menu--open { max-height: 460px; box-shadow: var(--pg4b-shadow-lg); }
.pg4b-mobile-menu__inner {
  max-width: var(--pg4b-max);
  margin: 0 auto;
  padding: 10px 14px 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.pg4b-mobile-menu__inner a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--pg4b-radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--pg4b-text-soft);
  font-size: 1.3rem;
  font-weight: 600;
  border: 1px solid var(--pg4b-border);
}
.pg4b-mobile-menu__inner a:hover { background: rgba(255, 200, 87, 0.12); color: var(--pg4b-text); }
.pg4b-mobile-menu__promo {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(255, 200, 87, 0.18), rgba(255, 107, 61, 0.18)) !important;
  color: var(--pg4b-accent) !important;
  border-color: rgba(255, 200, 87, 0.4) !important;
}

/* ---------- Sections ---------- */
.pg4b-section {
  padding: 26px 14px 18px;
}
.pg4b-section__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.7rem;
  margin-bottom: 4px;
}
.pg4b-section__title i { color: var(--pg4b-accent); }
.pg4b-section__sub {
  color: var(--pg4b-text-dim);
  font-size: 1.25rem;
  margin-bottom: 14px;
}
.pg4b-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--pg4b-border), transparent);
  margin: 6px 0 18px;
}

/* ---------- Hero carousel ---------- */
.pg4b-carousel {
  position: relative;
  margin: 14px 0 4px;
  border-radius: var(--pg4b-radius-md);
  overflow: hidden;
  box-shadow: var(--pg4b-shadow-md);
}
.pg4b-carousel-viewport { overflow: hidden; border-radius: var(--pg4b-radius-md); }
.pg4b-carousel-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.25, 0.8, 0.35, 1);
}
.pg4b-carousel-slide {
  flex: 0 0 100%;
  position: relative;
  cursor: pointer;
}
.pg4b-carousel-slide img { width: 100%; height: 170px; object-fit: cover; }
.pg4b-carousel-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 22px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.85));
  color: #fff;
}
.pg4b-carousel-caption strong {
  display: block;
  font-size: 1.5rem;
  color: var(--pg4b-accent);
}
.pg4b-carousel-caption span { font-size: 1.2rem; color: var(--pg4b-text); }
.pg4b-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}
.pg4b-carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  padding: 0;
  transition: background var(--pg4b-transition), transform var(--pg4b-transition);
}
.pg4b-carousel-dot--active { background: var(--pg4b-accent); transform: scale(1.3); }

/* ---------- Hero intro / H1 area ---------- */
.pg4b-hero {
  padding: 24px 16px 14px;
  text-align: center;
}
.pg4b-hero h1 {
  font-size: 2.3rem;
  background: linear-gradient(135deg, var(--pg4b-accent), var(--pg4b-accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}
.pg4b-hero p { color: var(--pg4b-text-soft); margin-bottom: 16px; }
.pg4b-hero__cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- Category filter pills ---------- */
.pg4b-filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 14px 12px;
  scrollbar-width: none;
}
.pg4b-filter-bar::-webkit-scrollbar { display: none; }
.pg4b-filter-pill {
  flex: 0 0 auto;
  padding: 8px 16px;
  border-radius: var(--pg4b-radius-pill);
  border: 1px solid var(--pg4b-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--pg4b-text-soft);
  font-size: 1.2rem;
  font-weight: 600;
  white-space: nowrap;
}
.pg4b-filter-pill--active {
  background: linear-gradient(135deg, var(--pg4b-primary-light), var(--pg4b-primary));
  color: #fff;
  border-color: transparent;
}

/* ---------- Game grid ---------- */
.pg4b-game-section { margin-bottom: 6px; }
.pg4b-game-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  margin-bottom: 8px;
}
.pg4b-game-section__head h2 {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.55rem;
}
.pg4b-game-section__head i { color: var(--pg4b-accent-2); }
.pg4b-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 14px;
}
.pg4b-game-card {
  background: linear-gradient(180deg, var(--pg4b-surface), var(--pg4b-surface-2));
  border: 1px solid var(--pg4b-border);
  border-radius: var(--pg4b-radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--pg4b-transition), box-shadow var(--pg4b-transition), border-color var(--pg4b-transition);
  text-align: center;
}
.pg4b-game-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 200, 87, 0.5);
  box-shadow: var(--pg4b-shadow-md);
}
.pg4b-game-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.pg4b-game-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.pg4b-game-card:hover .pg4b-game-card__media img { transform: scale(1.08); }
.pg4b-game-card__badge {
  position: absolute;
  top: 6px; left: 6px;
  background: linear-gradient(135deg, var(--pg4b-accent), var(--pg4b-accent-2));
  color: #1a1a1a;
  font-size: 1rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--pg4b-radius-pill);
}
.pg4b-game-card__title {
  padding: 6px 4px 8px;
  font-size: 1.15rem;
  color: var(--pg4b-text);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Info / promo blocks ---------- */
.pg4b-card {
  background: linear-gradient(180deg, var(--pg4b-surface), var(--pg4b-surface-2));
  border: 1px solid var(--pg4b-border);
  border-radius: var(--pg4b-radius-lg);
  padding: 18px 16px;
  margin: 0 14px 14px;
  box-shadow: var(--pg4b-shadow-sm);
}
.pg4b-card--accent {
  background: linear-gradient(135deg, rgba(0, 105, 92, 0.55), rgba(15, 42, 36, 0.85));
  border-color: rgba(46, 211, 183, 0.35);
}
.pg4b-card h2 { color: var(--pg4b-accent); display: flex; align-items: center; gap: 8px; }
.pg4b-card h3 { color: var(--pg4b-accent-3); margin-top: 10px; }
.pg4b-card ul { list-style: disc; padding-left: 18px; margin: 6px 0; }
.pg4b-card ul li { color: var(--pg4b-text-soft); margin-bottom: 4px; }

/* ---------- RTP table ---------- */
.pg4b-rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.2rem;
  margin-top: 8px;
}
.pg4b-rtp-table th, .pg4b-rtp-table td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--pg4b-border);
  text-align: left;
}
.pg4b-rtp-table th { color: var(--pg4b-accent); font-size: 1.15rem; }
.pg4b-rtp-table td:last-child { color: var(--pg4b-accent-3); font-weight: 700; }

/* ---------- Steps list ---------- */
.pg4b-steps { counter-reset: step; padding-left: 0; }
.pg4b-steps li {
  position: relative;
  padding: 8px 8px 8px 42px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--pg4b-radius-sm);
  border-left: 3px solid var(--pg4b-accent);
  counter-increment: step;
  color: var(--pg4b-text-soft);
  font-size: 1.25rem;
}
.pg4b-steps li::before {
  content: counter(step);
  position: absolute;
  left: 8px; top: 50%;
  transform: translateY(-50%);
  width: 26px; height: 26px;
  background: linear-gradient(135deg, var(--pg4b-accent), var(--pg4b-accent-2));
  color: #1a1a1a;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
}

/* ---------- Testimonials ---------- */
.pg4b-testimonials {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 0 14px;
}
.pg4b-testimonial {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--pg4b-border);
  border-left: 3px solid var(--pg4b-accent-3);
  border-radius: var(--pg4b-radius-md);
  padding: 12px 14px;
}
.pg4b-testimonial__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.pg4b-testimonial__avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pg4b-accent), var(--pg4b-accent-2));
  color: #1a1a1a;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.pg4b-testimonial__name { font-weight: 700; color: var(--pg4b-text); }
.pg4b-testimonial__stars { color: var(--pg4b-accent); font-size: 1.1rem; }
.pg4b-testimonial p { margin: 0; font-size: 1.2rem; color: var(--pg4b-text-soft); }

/* ---------- Winners ticker ---------- */
.pg4b-winners {
  background: linear-gradient(135deg, rgba(255, 200, 87, 0.1), rgba(46, 211, 183, 0.06));
  border: 1px solid rgba(255, 200, 87, 0.25);
  border-radius: var(--pg4b-radius-md);
  padding: 10px 14px;
  margin: 0 14px 14px;
}
.pg4b-winners__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed var(--pg4b-border);
  font-size: 1.2rem;
}
.pg4b-winners__row:last-child { border-bottom: none; }
.pg4b-winners__name { color: var(--pg4b-text); font-weight: 600; }
.pg4b-winners__game { color: var(--pg4b-text-dim); }
.pg4b-winners__amount { color: var(--pg4b-accent); font-weight: 800; }

/* ---------- Payment methods ---------- */
.pg4b-pay-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0 14px;
}
.pg4b-pay-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--pg4b-border);
  border-radius: var(--pg4b-radius-sm);
  padding: 10px 4px;
  text-align: center;
  font-size: 1rem;
  color: var(--pg4b-text-soft);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.pg4b-pay-item i { font-size: 1.8rem; color: var(--pg4b-accent-3); }

/* ---------- CTA banner ---------- */
.pg4b-cta {
  margin: 18px 14px;
  padding: 22px 16px;
  border-radius: var(--pg4b-radius-lg);
  background: linear-gradient(135deg, var(--pg4b-primary), var(--pg4b-primary-light));
  text-align: center;
  border: 1px solid rgba(255, 200, 87, 0.3);
  box-shadow: var(--pg4b-shadow-md);
}
.pg4b-cta h2 { color: var(--pg4b-accent); margin-bottom: 6px; }
.pg4b-cta p { color: var(--pg4b-text); margin-bottom: 14px; }

/* ---------- Footer ---------- */
.pg4b-footer {
  background: linear-gradient(180deg, var(--pg4b-bg-alt), #050f0c);
  border-top: 1px solid var(--pg4b-border);
  padding: 24px 14px calc(var(--pg4b-bottom-nav-h) + 20px);
  margin-top: 16px;
}
.pg4b-footer__brand { color: var(--pg4b-text); margin-bottom: 10px; }
.pg4b-footer__brand strong { color: var(--pg4b-accent); }
.pg4b-footer__desc { font-size: 1.2rem; color: var(--pg4b-text-dim); margin-bottom: 14px; }
.pg4b-footer__links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}
.pg4b-footer__links a {
  color: var(--pg4b-text-soft);
  font-size: 1.15rem;
  padding: 4px 0;
}
.pg4b-footer__links a:hover { color: var(--pg4b-accent); }
.pg4b-footer__cta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 14px;
}
.pg4b-footer__copy {
  border-top: 1px solid var(--pg4b-border);
  padding-top: 10px;
  font-size: 1.1rem;
  color: var(--pg4b-text-dim);
  text-align: center;
}

/* ---------- Bottom navigation ---------- */
.pg4b-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--pg4b-bottom-nav-h);
  background: linear-gradient(180deg, rgba(0, 77, 64, 0.98), rgba(0, 31, 25, 0.99));
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--pg4b-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.4);
}
.pg4b-bottom-nav__btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--pg4b-text-dim);
  font-size: 1rem;
  font-weight: 600;
  padding: 4px 2px;
  transition: color var(--pg4b-transition), transform var(--pg4b-transition);
}
.pg4b-bottom-nav__btn [class*="fa"],
.pg4b-bottom-nav__btn [class*="material"],
.pg4b-bottom-nav__btn [class*="ion-"],
.pg4b-bottom-nav__btn .bi,
.pg4b-bottom-nav__btn .tabler-icon {
  font-size: 2.2rem;
  line-height: 1;
}
.pg4b-bottom-nav__btn .material-icons { font-size: 2.4rem; }
.pg4b-bottom-nav__btn--active { color: var(--pg4b-accent); }
.pg4b-bottom-nav__btn--promo { color: var(--pg4b-accent-3); }
.pg4b-bottom-nav__btn:hover { color: var(--pg4b-accent); transform: translateY(-2px); }
.pg4b-bottom-nav__btn:active { transform: scale(0.94); }
.pg4b-bottom-nav__label { font-size: 1rem; letter-spacing: 0.3px; }
.pg4b-bottom-nav__btn--promo .pg4b-bottom-nav__label { color: var(--pg4b-accent); }

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

/* ---------- Helpers ---------- */
.pg4b-text-center { text-align: center; }
.pg4b-mt-8 { margin-top: 8px; }
.pg4b-mt-16 { margin-top: 16px; }
.pg4b-mb-16 { margin-bottom: 16px; }
.pg4b-highlight { color: var(--pg4b-accent); font-weight: 700; }
.pg4b-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--pg4b-radius-pill);
  background: rgba(46, 211, 183, 0.15);
  color: var(--pg4b-accent-3);
  font-size: 1.1rem;
  font-weight: 700;
}

/* ---------- Desktop / tablet ---------- */
@media (min-width: 769px) {
  .pg4b-bottom-nav { display: none; }
  .pg4b-wrapper { max-width: var(--pg4b-max); box-shadow: var(--pg4b-shadow-lg); }
  .pg4b-footer { padding-bottom: 24px; }
  .pg4b-main { padding-bottom: 30px; }
  .pg4b-mobile-menu { display: none; }
}

/* ---------- Small phones ---------- */
@media (max-width: 360px) {
  h1 { font-size: 1.9rem; }
  .pg4b-game-grid { grid-template-columns: repeat(2, 1fr); }
  .pg4b-pay-grid { grid-template-columns: repeat(3, 1fr); }
}
