/* ============================================================
 * Table Games - mobile-first canvas stylesheet
 * Prefix: pgf3- (all custom classes & variables)
 * Palette: #1A1A1A / #4A4A4A (dark), #E9ECEF / #FFCCCB (light),
 *          #708090 (slate), #CD853F (warm gold accent)
 * Canvas: 320-430px; wider screens keep the centered phone canvas.
 * ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --pgf3-bg-deep: #1A1A1A;
  --pgf3-bg-mid: #232323;
  --pgf3-bg-card: #2A2A2A;
  --pgf3-bg-soft: #313131;
  --pgf3-slate: #708090;
  --pgf3-stone: #4A4A4A;
  --pgf3-gold: #CD853F;
  --pgf3-gold-bright: #E0A24A;
  --pgf3-rose: #FFCCCB;
  --pgf3-mist: #E9ECEF;
  --pgf3-mist-dim: #B8BCC2;
  --pgf3-line: rgba(233, 236, 239, 0.10);
  --pgf3-line-strong: rgba(233, 236, 239, 0.22);
  --pgf3-shadow-1: 0 2px 8px rgba(0, 0, 0, 0.35);
  --pgf3-shadow-2: 0 6px 22px rgba(0, 0, 0, 0.45);
  --pgf3-shadow-gold: 0 4px 14px rgba(205, 133, 63, 0.35);
  --pgf3-radius-sm: 8px;
  --pgf3-radius-md: 14px;
  --pgf3-radius-lg: 20px;
  --pgf3-max-canvas: 430px;
  --pgf3-header-h: 60px;
  --pgf3-bottom-h: 64px;
  --pgf3-safe-top: env(safe-area-inset-top, 0px);
  --pgf3-safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--pgf3-bg-deep);
  color: var(--pgf3-mist);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
body { min-height: 100vh; }
img { max-width: 100%; display: block; }
a { color: var(--pgf3-gold-bright); text-decoration: none; }
a:hover, a:focus { color: var(--pgf3-gold-bright); text-decoration: underline; }
button { font-family: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.25; font-weight: 700; color: var(--pgf3-mist); }
h1 { font-size: 1.55rem; letter-spacing: -0.01em; }
h2 { font-size: 1.25rem; letter-spacing: -0.005em; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 0.85em; color: var(--pgf3-mist-dim); }
ul, ol { margin: 0 0 0.85em; padding-left: 1.2em; }
li { margin: 0 0 0.35em; color: var(--pgf3-mist-dim); }
strong { color: var(--pgf3-mist); }
:focus-visible { outline: 2px solid var(--pgf3-gold-bright); outline-offset: 2px; }

/* ---------- Phone canvas frame ---------- */
.pgf3-canvas {
  max-width: var(--pgf3-max-canvas);
  margin: 0 auto;
  background: linear-gradient(180deg, #1f1f1f 0%, #1a1a1a 35%, #161616 100%);
  min-height: 100vh;
  position: relative;
  box-shadow: var(--pgf3-shadow-2);
}

/* ---------- Skip link ---------- */
.pgf3-skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--pgf3-gold);
  color: #1a1a1a;
  padding: 8px 14px;
  z-index: 2000;
  border-radius: 0 0 8px 0;
}
.pgf3-skip:focus { left: 0; }

/* ============================================================
 * Header - edge-aligned functional head
 * ============================================================ */
.pgf3-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding-top: var(--pgf3-safe-top);
  background: rgba(20, 20, 20, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--pgf3-line);
}
.pgf3-header-inner {
  height: var(--pgf3-header-h);
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pgf3-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
}
.pgf3-brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--pgf3-bg-card);
  border: 1px solid var(--pgf3-gold);
  box-shadow: var(--pgf3-shadow-gold);
  flex-shrink: 0;
}
.pgf3-brand-text { min-width: 0; }
.pgf3-brand-name {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--pgf3-mist);
  letter-spacing: 0.02em;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pgf3-brand-tag {
  font-size: 0.66rem;
  color: var(--pgf3-gold-bright);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  line-height: 1.2;
}
.pgf3-head-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.pgf3-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.pgf3-btn:active { transform: translateY(1px); }
.pgf3-btn-login {
  background: transparent;
  color: var(--pgf3-mist);
  border: 1px solid var(--pgf3-line-strong);
}
.pgf3-btn-login:hover { background: rgba(255,255,255,0.04); text-decoration: none; color: var(--pgf3-mist); }
.pgf3-btn-register {
  background: linear-gradient(135deg, var(--pgf3-gold) 0%, var(--pgf3-gold-bright) 100%);
  color: #1a1a1a;
  box-shadow: var(--pgf3-shadow-gold);
}
.pgf3-btn-register:hover { color: #1a1a1a; text-decoration: none; }
.pgf3-menu-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--pgf3-bg-card);
  border: 1px solid var(--pgf3-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--pgf3-mist);
}
.pgf3-menu-btn:hover { background: var(--pgf3-bg-soft); }
.pgf3-menu-icon { display: block; width: 18px; height: 14px; position: relative; }
.pgf3-menu-icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--pgf3-mist);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}
.pgf3-menu-icon span:nth-child(1) { top: 0; }
.pgf3-menu-icon span:nth-child(2) { top: 6px; }
.pgf3-menu-icon span:nth-child(3) { top: 12px; }
.pgf3-menu-open .pgf3-menu-icon span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.pgf3-menu-open .pgf3-menu-icon span:nth-child(2) { opacity: 0; }
.pgf3-menu-open .pgf3-menu-icon span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* ---------- Expanded navigation menu ---------- */
.pgf3-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1100;
}
.pgf3-menu-open .pgf3-nav-backdrop {
  opacity: 1;
  pointer-events: auto;
}
.pgf3-nav-menu {
  position: fixed;
  top: calc(var(--pgf3-header-h) + var(--pgf3-safe-top));
  right: 0;
  width: min(78%, 320px);
  background: var(--pgf3-bg-mid);
  border-left: 1px solid var(--pgf3-line);
  border-bottom: 1px solid var(--pgf3-line);
  transform: translateX(105%);
  transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
  z-index: 1200;
  padding: 12px 12px 18px;
  box-shadow: var(--pgf3-shadow-2);
  max-height: calc(100vh - var(--pgf3-header-h));
  overflow-y: auto;
}
.pgf3-menu-open .pgf3-nav-menu { transform: translateX(0); }
.pgf3-nav-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--pgf3-slate);
  margin: 8px 6px 6px;
}
.pgf3-nav-list { list-style: none; padding: 0; margin: 0; }
.pgf3-nav-list li { margin: 0; }
.pgf3-nav-list a {
  display: block;
  padding: 11px 12px;
  border-radius: var(--pgf3-radius-sm);
  color: var(--pgf3-mist);
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
}
.pgf3-nav-list a:hover {
  background: var(--pgf3-bg-card);
  color: var(--pgf3-gold-bright);
  text-decoration: none;
  transform: translateX(2px);
}
.pgf3-nav-list a::before {
  content: "\25B8";
  margin-right: 8px;
  color: var(--pgf3-gold);
  font-size: 0.78rem;
}
.pgf3-nav-cta {
  margin-top: 12px;
  display: block;
  text-align: center;
  padding: 12px;
  border-radius: var(--pgf3-radius-sm);
  background: linear-gradient(135deg, var(--pgf3-gold) 0%, var(--pgf3-gold-bright) 100%);
  color: #1a1a1a;
  font-weight: 800;
}
.pgf3-nav-cta:hover { text-decoration: none; color: #1a1a1a; opacity: 0.95; }

/* ============================================================
 * Layout helpers
 * ============================================================ */
.pgf3-main {
  padding: 14px 12px 0;
}
.pgf3-section { margin: 0 0 22px; }
.pgf3-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.pgf3-section-head h2 { margin: 0; }
.pgf3-section-link {
  font-size: 0.74rem;
  color: var(--pgf3-gold-bright);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.pgf3-eyebrow {
  display: inline-block;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--pgf3-gold);
  background: rgba(205, 133, 63, 0.10);
  border: 1px solid rgba(205, 133, 63, 0.30);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

/* ---------- Reveal-on-scroll ---------- */
.pgf3-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  will-change: opacity, transform;
}
.pgf3-reveal.pgf3-revealed { opacity: 1; transform: none; }

/* ============================================================
 * Hero carousel
 * ============================================================ */
.pgf3-hero {
  margin: 0 -12px 18px;
}
.pgf3-hero-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--pgf3-bg-card);
  overflow: hidden;
  border-bottom: 1px solid var(--pgf3-line);
}
.pgf3-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--carousel-fade-ms, 0.6s) ease;
  cursor: pointer;
}
.pgf3-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pgf3-hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.65) 100%);
  pointer-events: none;
}
.pgf3-hero-active { opacity: 1; z-index: 2; }
.pgf3-hero-overlay {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 3;
  padding: 14px 14px 16px;
  color: var(--pgf3-mist);
}
.pgf3-hero-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 4px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.pgf3-hero-sub {
  font-size: 0.78rem;
  margin: 0 0 8px;
  color: var(--pgf3-rose);
}
.pgf3-hero-cta {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pgf3-gold) 0%, var(--pgf3-gold-bright) 100%);
  color: #1a1a1a;
  font-weight: 800;
  font-size: 0.78rem;
  box-shadow: var(--pgf3-shadow-gold);
}
.pgf3-hero-cta:hover { color: #1a1a1a; text-decoration: none; }
.pgf3-hero-dots {
  position: absolute;
  bottom: 6px;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.pgf3-hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(233,236,239,0.45);
  padding: 0;
  transition: width 0.25s ease, background 0.25s ease;
}
.pgf3-hero-dot-active {
  width: 18px;
  border-radius: 6px;
  background: var(--pgf3-gold-bright);
}

/* ============================================================
 * Stat strip
 * ============================================================ */
.pgf3-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}
.pgf3-stat {
  background: var(--pgf3-bg-card);
  border: 1px solid var(--pgf3-line);
  border-radius: var(--pgf3-radius-md);
  padding: 10px 8px;
  text-align: center;
}
.pgf3-stat-num {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--pgf3-gold-bright);
  line-height: 1.1;
}
.pgf3-stat-label {
  display: block;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pgf3-mist-dim);
  margin-top: 2px;
}

/* ============================================================
 * Category section + game grid
 * ============================================================ */
.pgf3-cat-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.pgf3-cat-mark {
  width: 6px;
  height: 22px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--pgf3-gold) 0%, var(--pgf3-gold-bright) 100%);
  flex-shrink: 0;
}
.pgf3-cat-bar h2 { margin: 0; font-size: 1.1rem; }
.pgf3-cat-note {
  font-size: 0.72rem;
  color: var(--pgf3-mist-dim);
  margin: 0 0 10px;
}

.pgf3-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
@media (min-width: 360px) {
  .pgf3-game-grid { gap: 9px; }
}
@media (min-width: 400px) {
  .pgf3-game-grid { grid-template-columns: repeat(5, 1fr); }
}
.pgf3-game {
  background: var(--pgf3-bg-card);
  border: 1px solid var(--pgf3-line);
  border-radius: var(--pgf3-radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  display: block;
  color: var(--pgf3-mist);
}
.pgf3-game:hover {
  transform: translateY(-3px);
  box-shadow: var(--pgf3-shadow-1);
  border-color: rgba(205, 133, 63, 0.45);
  text-decoration: none;
  color: var(--pgf3-mist);
}
.pgf3-game:active { transform: translateY(-1px); }
.pgf3-game-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #0f0f0f;
  display: block;
  object-fit: cover;
}
.pgf3-game-name {
  font-size: 0.66rem;
  line-height: 1.2;
  padding: 5px 5px 6px;
  text-align: center;
  color: var(--pgf3-mist);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
 * Info / content cards (FAQ, payments, app download, etc.)
 * ============================================================ */
.pgf3-card {
  background: var(--pgf3-bg-card);
  border: 1px solid var(--pgf3-line);
  border-radius: var(--pgf3-radius-md);
  padding: 14px;
  margin-bottom: 12px;
}
.pgf3-card h3 { margin-top: 0; color: var(--pgf3-mist); }
.pgf3-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 380px) { .pgf3-card-grid { grid-template-columns: repeat(3, 1fr); } }
.pgf3-mini {
  background: var(--pgf3-bg-soft);
  border: 1px solid var(--pgf3-line);
  border-radius: var(--pgf3-radius-sm);
  padding: 10px 8px;
  text-align: center;
}
.pgf3-mini-icon {
  font-size: 1.15rem;
  color: var(--pgf3-gold-bright);
  margin-bottom: 4px;
  display: block;
}
.pgf3-mini-label {
  font-size: 0.74rem;
  color: var(--pgf3-mist);
  font-weight: 700;
}
.pgf3-mini-note {
  font-size: 0.66rem;
  color: var(--pgf3-mist-dim);
  margin-top: 2px;
}

/* ---------- FAQ ---------- */
.pgf3-faq { list-style: none; padding: 0; margin: 0; }
.pgf3-faq-item {
  border-bottom: 1px solid var(--pgf3-line);
  padding: 11px 0;
}
.pgf3-faq-item:last-child { border-bottom: 0; }
.pgf3-faq-q {
  font-weight: 700;
  color: var(--pgf3-mist);
  font-size: 0.92rem;
  margin-bottom: 4px;
}
.pgf3-faq-a {
  font-size: 0.84rem;
  color: var(--pgf3-mist-dim);
  margin: 0;
}

/* ---------- Checklist ---------- */
.pgf3-checklist { list-style: none; padding: 0; margin: 0; }
.pgf3-checklist li {
  position: relative;
  padding: 6px 0 6px 26px;
  color: var(--pgf3-mist-dim);
  font-size: 0.86rem;
}
.pgf3-checklist li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  background: rgba(205, 133, 63, 0.15);
  color: var(--pgf3-gold-bright);
  border-radius: 50%;
  font-size: 0.7rem;
  text-align: center;
  line-height: 18px;
  font-weight: 900;
}

/* ---------- Inline promo CTA banner ---------- */
.pgf3-cta-banner {
  background: linear-gradient(135deg, rgba(205,133,63,0.18) 0%, rgba(74,74,74,0.55) 100%);
  border: 1px solid rgba(205, 133, 63, 0.40);
  border-radius: var(--pgf3-radius-lg);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0;
}
.pgf3-cta-banner-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--pgf3-mist);
  margin: 0;
}
.pgf3-cta-banner-text {
  font-size: 0.84rem;
  margin: 0;
  color: var(--pgf3-mist-dim);
}
.pgf3-cta-banner-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Concept explainer ---------- */
.pgf3-concept {
  border-left: 3px solid var(--pgf3-gold);
  padding: 4px 0 4px 12px;
  margin: 10px 0;
  font-size: 0.86rem;
  color: var(--pgf3-mist-dim);
}

/* ============================================================
 * Extended footer (page directory / brand / promotions / disclaimer)
 * ============================================================ */
.pgf3-extended-foot {
  margin-top: 8px;
  padding: 16px 12px 14px;
  background: var(--pgf3-bg-mid);
  border-top: 1px solid var(--pgf3-line);
  border-radius: var(--pgf3-radius-lg) var(--pgf3-radius-lg) 0 0;
}
.pgf3-foot-block { margin-bottom: 16px; }
.pgf3-foot-block h3 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--pgf3-gold);
  margin-bottom: 8px;
}
.pgf3-foot-about { font-size: 0.84rem; color: var(--pgf3-mist-dim); margin: 0; }
.pgf3-foot-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.pgf3-foot-links a {
  font-size: 0.8rem;
  color: var(--pgf3-mist);
  display: block;
  padding: 4px 0;
  border-bottom: 1px dashed var(--pgf3-line);
}
.pgf3-foot-links a:hover { color: var(--pgf3-gold-bright); text-decoration: none; }
.pgf3-foot-promos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.pgf3-foot-promo-btn {
  display: block;
  text-align: center;
  padding: 9px 8px;
  border-radius: var(--pgf3-radius-sm);
  background: rgba(205, 133, 63, 0.12);
  border: 1px solid rgba(205, 133, 63, 0.35);
  color: var(--pgf3-mist);
  font-size: 0.78rem;
  font-weight: 700;
}
.pgf3-foot-promo-btn:hover { text-decoration: none; color: var(--pgf3-mist); background: rgba(205, 133, 63, 0.22); }
.pgf3-foot-disclaimer {
  font-size: 0.72rem;
  color: var(--pgf3-slate);
  border-top: 1px solid var(--pgf3-line);
  padding-top: 10px;
  margin-top: 4px;
  line-height: 1.5;
}

/* ============================================================
 * Generic footer (shared by all pages)
 * ============================================================ */
.pgf3-footer {
  background: #141414;
  border-top: 1px solid var(--pgf3-line);
  padding: 14px 12px calc(8px + var(--pgf3-safe-bottom));
  text-align: center;
}
.pgf3-footer-copy {
  font-size: 0.72rem;
  color: var(--pgf3-slate);
  margin: 0;
}
.pgf3-footer-mini-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 10px;
  padding: 0;
  margin: 6px 0 0;
}
.pgf3-footer-mini-links a {
  font-size: 0.72rem;
  color: var(--pgf3-mist-dim);
}
.pgf3-footer-mini-links a:hover { color: var(--pgf3-gold-bright); text-decoration: none; }

/* ============================================================
 * Bottom navigation (segmented action bar)
 * ============================================================ */
.pgf3-bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: var(--pgf3-max-canvas);
  height: calc(var(--pgf3-bottom-h) + var(--pgf3-safe-bottom));
  padding-bottom: var(--pgf3-safe-bottom);
  background: rgba(20, 20, 20, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--pgf3-line-strong);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 900;
}
.pgf3-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 2px 4px;
  color: var(--pgf3-mist-dim);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: transform 0.18s ease, color 0.18s ease;
  text-decoration: none;
}
.pgf3-bottom-nav-item:hover { color: var(--pgf3-mist); text-decoration: none; }
.pgf3-bottom-nav-item.pgf3-lift { transform: translateY(-4px); }
.pgf3-bottom-nav-item.pgf3-nav-active {
  color: var(--pgf3-gold-bright);
}
.pgf3-bottom-nav-item.pgf3-nav-active::before {
  content: "";
  position: absolute;
  top: 0;
  width: 28px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--pgf3-gold-bright);
}
.pgf3-bottom-nav-item { position: relative; }
.pgf3-bottom-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--pgf3-bg-card);
  border: 1px solid var(--pgf3-line);
  border-radius: 8px;
  color: var(--pgf3-mist);
}
.pgf3-bottom-nav-item.pgf3-nav-active .pgf3-bottom-icon {
  background: rgba(205, 133, 63, 0.18);
  border-color: rgba(205, 133, 63, 0.55);
  color: var(--pgf3-gold-bright);
  box-shadow: var(--pgf3-shadow-gold);
}
.pgf3-bottom-icon svg { width: 14px; height: 14px; display: block; }

/* ---------- Spacing for fixed bottom nav ---------- */
.pgf3-bottom-spacer { height: calc(var(--pgf3-bottom-h) + 14px + var(--pgf3-safe-bottom)); }

/* ---------- Desktop: keep mobile canvas centered ---------- */
@media (min-width: 480px) {
  body { background: #0d0d0d; }
  .pgf3-bottom-nav { box-shadow: 0 -6px 22px rgba(0,0,0,0.45); }
  .pgf3-header { box-shadow: 0 4px 14px rgba(0,0,0,0.35); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .pgf3-reveal { opacity: 1; transform: none; }
}
