/* phfunapp.ph — Design DNA stylesheet (prefix: vnw3)
 * Scheme: Light Analogous (Hue 137) | Layout: timeline-rail | Nav: centered-logo-split-nav
 * Fonts: Young Serif + Hanken Grotesk | Base: 18px | Scale: 1.333 | Motion: hover-feedback-on-links-only
 */
:root {
  --vnw3-bg: #F9FBFA;
  --vnw3-surface: #FFFFFF;
  --vnw3-ink: #0F2715;
  --vnw3-muted: #3A5440;
  --vnw3-accent: #2B8113;
  --vnw3-accent-dark: #1E5D0D;
  --vnw3-accent2: #274ED8;
  --vnw3-on-accent: #FFFFFF;
  --vnw3-line: #D5E2D8;
  --vnw3-tint: #EEF5F0;
  --vnw3-warn-bg: #FFF9EB;
  --vnw3-warn-border: #D97706;
  --vnw3-radius: 12px;
  --vnw3-shadow: 0 2px 6px rgba(15, 39, 21, 0.06), 0 10px 24px rgba(15, 39, 21, 0.07);
  --vnw3-font-display: 'Young Serif', Georgia, serif;
  --vnw3-font-body: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --vnw3-max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 18px; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--vnw3-bg);
  color: var(--vnw3-ink);
  font-family: var(--vnw3-font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 68px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--vnw3-accent2); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--vnw3-accent); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--vnw3-accent2); outline-offset: 2px; }

.vnw3-skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--vnw3-ink); color: #fff; padding: 10px 16px; z-index: 1000;
}
.vnw3-skip:focus { left: 8px; top: 8px; }

/* Non-blocking 21+ compliance ribbon */
.vnw3-ribbon {
  background: var(--vnw3-ink);
  color: #E8F2EB;
  font-size: 0.78rem;
  padding: 6px 16px;
  text-align: center;
}
.vnw3-ribbon a { color: #A6F090; font-weight: 600; }

/* Centered-logo split navigation */
.vnw3-header {
  background: var(--vnw3-surface);
  border-bottom: 1px solid var(--vnw3-line);
  position: sticky;
  top: 0;
  z-index: 90;
}
.vnw3-navwrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}
.vnw3-navgroup {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  font-weight: 600;
}
.vnw3-navgroup-right { justify-content: flex-end; }
.vnw3-navgroup a:not(.vnw3-split-cta) {
  color: var(--vnw3-ink);
  text-decoration: none;
  padding: 6px 2px;
  white-space: nowrap;
}
.vnw3-navgroup a:not(.vnw3-split-cta):hover {
  color: var(--vnw3-accent);
  text-decoration: underline;
}

.vnw3-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--vnw3-ink);
  white-space: nowrap;
  flex-shrink: 0;
}
.vnw3-brand img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.vnw3-brand-name {
  font-family: var(--vnw3-font-display);
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  line-height: 1;
}
.vnw3-mobile-actions {
  display: none;
  align-items: center;
  gap: 8px;
}
.vnw3-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--vnw3-tint);
  border: 1px solid var(--vnw3-line);
  color: var(--vnw3-ink);
  padding: 0 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  min-height: 44px;
  white-space: nowrap;
}

/* Split-button-with-label CTA */
.vnw3-split-cta {
  display: inline-flex;
  align-items: stretch;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.84rem;
  border: 1px solid var(--vnw3-accent-dark);
  min-height: 40px;
  padding: 0;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
}
.vnw3-split-cta-main {
  background: var(--vnw3-accent);
  color: var(--vnw3-on-accent);
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.vnw3-split-cta-tag {
  background: var(--vnw3-ink);
  color: #E8F2EB;
  padding: 10px 11px;
  font-size: 0.76rem;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.vnw3-split-cta:hover { text-decoration: none; }
.vnw3-split-cta:hover .vnw3-split-cta-main { background: var(--vnw3-accent-dark); }

.vnw3-secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--vnw3-accent2);
  color: var(--vnw3-accent2);
  background: var(--vnw3-surface);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
}
.vnw3-secondary-cta:hover { background: var(--vnw3-accent2); color: #FFFFFF; }

/* Main wrapper & Typography scale (1.333 Perfect Fourth) */
.vnw3-wrap { max-width: var(--vnw3-max); margin: 0 auto; padding: 24px 20px 48px; }
h1, h2, h3 {
  font-family: var(--vnw3-font-display);
  color: var(--vnw3-ink);
  line-height: 1.22;
  margin-top: 0;
}
h1 { font-size: clamp(1.75rem, 3.2vw, 2.37rem); margin-bottom: 14px; }
h2 { font-size: clamp(1.33rem, 2.2vw, 1.78rem); margin-bottom: 12px; }
h3 { font-size: 1.15rem; margin-bottom: 8px; }

/* Breadcrumbs & Byline */
.vnw3-crumbs {
  display: flex; flex-wrap: wrap; gap: 6px;
  font-size: 0.82rem; color: var(--vnw3-muted);
  list-style: none; padding: 0; margin: 0 0 14px;
}
.vnw3-crumbs li::after { content: "/"; margin-left: 6px; color: #8AA191; }
.vnw3-crumbs li:last-child::after { content: ""; }
.vnw3-meta-bar {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  font-size: 0.84rem; color: var(--vnw3-muted);
  margin: 12px 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--vnw3-line);
}
.vnw3-disclosure {
  font-size: 0.8rem;
  background: var(--vnw3-tint);
  border-left: 4px solid var(--vnw3-accent);
  padding: 10px 14px;
  border-radius: 6px;
  margin: 14px 0 20px;
  color: var(--vnw3-muted);
}

/* Layered-elevation card (12px radius, two-layer shadow) */
.vnw3-card {
  background: var(--vnw3-surface);
  border: 1px solid var(--vnw3-line);
  border-radius: var(--vnw3-radius);
  box-shadow: var(--vnw3-shadow);
  padding: 22px;
}

/* Hero Top-Picks Carousel */
.vnw3-hero {
  background: var(--vnw3-surface);
  border: 1px solid var(--vnw3-line);
  border-radius: var(--vnw3-radius);
  box-shadow: var(--vnw3-shadow);
  padding: 28px;
  margin-bottom: 32px;
}
.vnw3-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: center;
}
.vnw3-hero-media {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--vnw3-line);
  aspect-ratio: 16 / 9;
  background: var(--vnw3-tint);
}
.vnw3-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.vnw3-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

.vnw3-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 16px 2px 8px;
  margin-top: 20px;
}
.vnw3-carousel-item {
  scroll-snap-align: start;
  background: var(--vnw3-bg);
  border: 1px solid var(--vnw3-line);
  border-radius: var(--vnw3-radius);
  padding: 16px;
}
.vnw3-carousel-item h3 { font-size: 1rem; margin: 0 0 6px; }
.vnw3-carousel-item p { font-size: 0.86rem; margin: 0 0 10px; color: var(--vnw3-muted); }

/* Timeline-Rail Layout (Single Memorable Element) */
.vnw3-rail {
  position: relative;
  padding-left: 42px;
}
.vnw3-rail::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  background: var(--vnw3-line);
}
.vnw3-stop {
  position: relative;
  margin-bottom: 28px;
}
.vnw3-stop::before {
  content: "";
  position: absolute;
  left: -35px;
  top: 24px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--vnw3-accent);
  border: 3px solid var(--vnw3-bg);
  box-shadow: 0 0 0 2px var(--vnw3-accent);
}
.vnw3-stop-alt::before {
  background: var(--vnw3-accent2);
  box-shadow: 0 0 0 2px var(--vnw3-accent2);
}

/* Expert Insight & TL;DR */
.vnw3-insight {
  background: var(--vnw3-tint);
  border-left: 4px solid var(--vnw3-accent2);
  padding: 14px 18px;
  border-radius: 8px;
  margin: 0 0 18px;
  font-size: 0.92rem;
}
.vnw3-tldr {
  background: var(--vnw3-surface);
  border: 2px solid var(--vnw3-accent);
  border-radius: var(--vnw3-radius);
  padding: 18px 20px;
  margin: 0 0 22px;
}
.vnw3-tldr-label {
  font-weight: 800;
  color: var(--vnw3-accent);
  font-size: 0.85rem;
  margin-bottom: 6px;
  display: block;
}

/* Tables & Lists */
.vnw3-table-wrap { overflow-x: auto; margin: 16px 0; }
.vnw3-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}
.vnw3-table caption {
  text-align: left;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--vnw3-ink);
}
.vnw3-table th, .vnw3-table td {
  border: 1px solid var(--vnw3-line);
  padding: 10px 12px;
  text-align: left;
}
.vnw3-table thead th {
  background: var(--vnw3-ink);
  color: #FFFFFF;
}
.vnw3-table tbody tr:nth-child(even) { background: var(--vnw3-bg); }

.vnw3-steps { padding-left: 22px; margin: 14px 0; }
.vnw3-steps li { margin-bottom: 10px; }
.vnw3-bullets { padding-left: 22px; margin: 14px 0; }
.vnw3-bullets li { margin-bottom: 8px; }

.vnw3-callout {
  background: var(--vnw3-warn-bg);
  border-left: 4px solid var(--vnw3-warn-border);
  padding: 14px 16px;
  border-radius: 8px;
  margin: 16px 0;
  font-size: 0.94rem;
}

/* Figures & Inline Media */
.vnw3-figure {
  margin: 18px 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--vnw3-line);
  background: var(--vnw3-surface);
}
.vnw3-figure img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.vnw3-figure figcaption {
  padding: 10px 14px;
  font-size: 0.82rem;
  color: var(--vnw3-muted);
  border-top: 1px solid var(--vnw3-line);
}

/* Grids for Hubs / Guides */
.vnw3-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 16px;
}
.vnw3-link-card {
  background: var(--vnw3-surface);
  border: 1px solid var(--vnw3-line);
  border-radius: var(--vnw3-radius);
  box-shadow: var(--vnw3-shadow);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.vnw3-link-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.vnw3-link-card p { font-size: 0.88rem; color: var(--vnw3-muted); margin: 0 0 12px; }

/* FAQ / PAA Answer Blocks */
.vnw3-faq-item {
  border-top: 1px solid var(--vnw3-line);
  padding: 16px 0;
}
.vnw3-faq-item:first-of-type { border-top: none; padding-top: 4px; }
.vnw3-faq-item h3 { font-size: 1.08rem; margin-bottom: 8px; color: var(--vnw3-ink); }
.vnw3-faq-item p { margin: 0; }

/* Responsible Gaming Box */
.vnw3-rg {
  background: #F1F6F2;
  border: 2px solid var(--vnw3-ink);
  border-radius: var(--vnw3-radius);
  padding: 22px;
}
.vnw3-rg-badge {
  display: inline-block;
  background: var(--vnw3-ink);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}

/* Four-column Sitemap Footer */
.vnw3-footer {
  background: var(--vnw3-ink);
  color: #DCE9DF;
  padding: 44px 20px 28px;
  margin-top: 40px;
}
.vnw3-footer a { color: #B4F2A2; text-decoration: none; }
.vnw3-footer a:hover { text-decoration: underline; }
.vnw3-footer-grid {
  max-width: var(--vnw3-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.vnw3-footer h3 { color: #FFFFFF; font-size: 1.05rem; margin-bottom: 12px; }
.vnw3-footer ul { list-style: none; padding: 0; margin: 0; font-size: 0.86rem; }
.vnw3-footer li { margin-bottom: 8px; }
.vnw3-footer-bottom {
  max-width: var(--vnw3-max);
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.16);
  font-size: 0.8rem;
  color: #B6CCB9;
}

/* Mobile sticky action bar */
.vnw3-sticky-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--vnw3-surface);
  border-top: 1px solid var(--vnw3-line);
  padding: 10px 16px;
  display: flex;
  justify-content: center;
  gap: 12px;
  z-index: 95;
  box-shadow: 0 -4px 16px rgba(15, 39, 21, 0.08);
}

/* Mobile Responsive (down to 360px) */
.vnw3-mobile-drawer {
  display: none;
  background: var(--vnw3-surface);
  border-top: 1px solid var(--vnw3-line);
  padding: 14px 20px;
}
.vnw3-mobile-drawer.vnw3-open { display: block; }
.vnw3-mobile-drawer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.vnw3-mobile-drawer a { color: var(--vnw3-ink); font-weight: 600; text-decoration: none; padding: 6px 0; display: block; }

@media (max-width: 1040px) {
  .vnw3-navwrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    gap: 10px;
  }
  .vnw3-nav-left, .vnw3-navgroup-right { display: none; }
  .vnw3-mobile-actions { display: inline-flex; }
  .vnw3-hero-grid { grid-template-columns: 1fr; }
  .vnw3-footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  html { font-size: 16px; }
  .vnw3-rail { padding-left: 24px; }
  .vnw3-rail::before { left: 6px; }
  .vnw3-stop::before { left: -24px; width: 13px; height: 13px; }
  .vnw3-hero { padding: 18px; }
  .vnw3-card { padding: 16px; }
  .vnw3-footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
