/* ==========================================================================
   Design DNA Stylesheet: casinogamesplayph.com
   Archetype: bento-mosaic | Hero: editorial-masthead | CSS Prefix: hpb4
   Palette: Light Complementary (#FBFCF9, #FFFFFF, #242B10, #5C25F3, #5627D8)
   Fonts: Sora (Headings) / Nunito Sans (Body)
   ========================================================================== */

:root {
  --hpb4-bg: #FBFCF9;
  --hpb4-surface: #FFFFFF;
  --hpb4-surface-tint: #F5F3FF;
  --hpb4-surface-subtle: #FAF9FE;
  --hpb4-ink: #242B10;
  --hpb4-ink-muted: #565E42;
  --hpb4-ink-subtle: #798263;
  --hpb4-accent: #5C25F3;
  --hpb4-accent2: #5627D8;
  --hpb4-accent-glow: rgba(92, 37, 243, 0.14);
  --hpb4-on-accent: #FFFFFF;
  --hpb4-border: rgba(92, 37, 243, 0.12);
  --hpb4-border-subtle: rgba(36, 43, 16, 0.08);
  --hpb4-pill-radius: 24px;
  --hpb4-btn-radius: 12px;
  --hpb4-shadow-sm: 0 2px 8px rgba(36, 43, 16, 0.04);
  --hpb4-shadow-md: 0 6px 24px rgba(36, 43, 16, 0.07);
  --hpb4-shadow-lg: 0 12px 36px rgba(92, 37, 243, 0.10);
  
  --hpb4-font-head: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --hpb4-font-body: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --hpb4-base-size: 18px;
  --hpb4-scale: 1.333;
}

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

html {
  font-size: var(--hpb4-base-size);
  background-color: var(--hpb4-bg);
  color: var(--hpb4-ink);
  font-family: var(--hpb4-font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--hpb4-bg);
  overflow-x: hidden;
}

body.hpb4-menu-open {
  overflow: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--hpb4-font-head);
  color: var(--hpb4-ink);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: 2.36rem; margin-bottom: 1rem; }
h2 { font-size: 1.77rem; margin-top: 2rem; margin-bottom: 0.85rem; }
h3 { font-size: 1.33rem; margin-top: 1.5rem; margin-bottom: 0.65rem; }
h4 { font-size: 1.05rem; margin-top: 1.2rem; margin-bottom: 0.5rem; }

p {
  margin-bottom: 1.2rem;
  color: var(--hpb4-ink-muted);
}

a {
  color: var(--hpb4-accent);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 0.15s ease, opacity 0.15s ease;
}

a:hover {
  color: var(--hpb4-accent2);
}

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

/* Container */
.hpb4-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

/* Top Utility Bar */
.hpb4-top-bar {
  background: #141808;
  color: #E2E8D5;
  font-size: 0.78rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hpb4-top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.hpb4-age-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(220, 38, 38, 0.22);
  color: #FCA5A5;
  border: 1px solid rgba(220, 38, 38, 0.45);
  padding: 0.18rem 0.65rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.hpb4-age-mobile {
  display: none;
}

.hpb4-top-support {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.hpb4-top-support a {
  color: #D1D5DB;
  text-decoration: none;
  font-size: 0.78rem;
  transition: color 0.15s ease;
}

.hpb4-top-support a:hover {
  color: #FFFFFF;
}

/* Navbar */
.hpb4-navbar {
  background: var(--hpb4-surface);
  border-bottom: 1px solid var(--hpb4-border-subtle);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--hpb4-shadow-sm);
}

.hpb4-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0;
  gap: 0.75rem;
}

/* Brand Lockup */
.hpb4-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex-shrink: 0;
}

.hpb4-brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(92, 37, 243, 0.25);
  background: #242B10;
  flex-shrink: 0;
}

.hpb4-brand-token {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hpb4-brand-name {
  font-family: var(--hpb4-font-head);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--hpb4-ink);
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.hpb4-brand-suffix {
  color: var(--hpb4-accent);
  font-weight: 800;
}

.hpb4-brand-badge {
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(92, 37, 243, 0.1);
  color: var(--hpb4-accent);
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  margin-left: 0.4rem;
  letter-spacing: 0.03em;
}

/* Desktop Menu Links */
.hpb4-nav-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hpb4-nav-item {
  white-space: nowrap;
  flex-shrink: 0;
}

.hpb4-nav-item a {
  text-decoration: none;
  font-family: var(--hpb4-font-head);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--hpb4-ink);
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  transition: all 0.15s ease;
  white-space: nowrap;
  display: block;
}

.hpb4-nav-item a:hover,
.hpb4-nav-item.active a {
  color: var(--hpb4-accent);
  background: var(--hpb4-surface-tint);
}

.hpb4-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

/* Mobile Controls */
.hpb4-mobile-actions {
  display: none;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.hpb4-hamburger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--hpb4-border);
  border-radius: 10px;
  background: var(--hpb4-surface);
  color: var(--hpb4-ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.2s ease;
}

.hpb4-hamburger:hover {
  background: var(--hpb4-surface-tint);
  border-color: var(--hpb4-accent);
}

.hpb4-hamburger svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.hpb4-hamburger .hpb4-icon-close {
  display: none;
}

.hpb4-hamburger.active .hpb4-icon-menu {
  display: none;
}

.hpb4-hamburger.active .hpb4-icon-close {
  display: block;
}

/* Mobile Drawer Overlay */
.hpb4-mobile-drawer {
  display: none;
  position: fixed;
  top: 86px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(20, 24, 8, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.hpb4-mobile-drawer.open {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.hpb4-mobile-drawer-content {
  background: var(--hpb4-surface);
  border-bottom: 3px solid var(--hpb4-accent);
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  max-height: calc(100vh - 90px);
  overflow-y: auto;
  padding: 1.25rem 1.25rem 2rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  transform: translateY(-12px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hpb4-mobile-drawer.open .hpb4-mobile-drawer-content {
  transform: translateY(0);
}

.hpb4-mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
}

.hpb4-mobile-nav-list li a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--hpb4-font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--hpb4-ink);
  text-decoration: none;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  transition: background 0.15s ease, color 0.15s ease;
}

.hpb4-mobile-nav-list li a:hover,
.hpb4-mobile-nav-list li.active a {
  background: var(--hpb4-surface-tint);
  color: var(--hpb4-accent);
}

.hpb4-mobile-nav-icon {
  width: 24px;
  text-align: center;
  font-size: 1.1rem;
}

.hpb4-mobile-nav-divider {
  height: 1px;
  background: var(--hpb4-border-subtle);
  margin: 1rem 0;
}

.hpb4-mobile-secondary-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.84rem;
  padding: 0 0.5rem;
}

.hpb4-mobile-secondary-links a {
  color: var(--hpb4-ink-muted);
  text-decoration: none;
}

.hpb4-mobile-secondary-links a:hover {
  color: var(--hpb4-accent);
}

.hpb4-mobile-drawer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--hpb4-border-subtle);
}

/* Button Archetype: outlined-button */
.hpb4-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--hpb4-font-head);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.65rem 1.4rem;
  border-radius: var(--hpb4-btn-radius);
  text-decoration: none;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hpb4-btn-outline {
  background: transparent;
  color: var(--hpb4-accent);
  border: 2px solid var(--hpb4-accent);
}

.hpb4-btn-outline:hover {
  background: var(--hpb4-accent);
  color: var(--hpb4-on-accent);
  box-shadow: var(--hpb4-shadow-md);
  transform: translateY(-1px);
}

.hpb4-btn-primary {
  background: var(--hpb4-accent);
  color: var(--hpb4-on-accent);
  border: 2px solid var(--hpb4-accent);
  box-shadow: var(--hpb4-shadow-md);
}

.hpb4-btn-primary:hover {
  background: var(--hpb4-accent2);
  border-color: var(--hpb4-accent2);
  transform: translateY(-1px);
}

.hpb4-btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  min-height: 38px;
}

.hpb4-btn-lg {
  padding: 0.85rem 1.85rem;
  font-size: 1.05rem;
  border-radius: 14px;
}

/* Hero Pattern: editorial-masthead */
.hpb4-masthead {
  background: linear-gradient(180deg, #F5F3FF 0%, #FBFCF9 100%);
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--hpb4-border-subtle);
  position: relative;
}

.hpb4-masthead-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.hpb4-tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(92, 37, 243, 0.08);
  color: var(--hpb4-accent);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hpb4-masthead-hero-img {
  width: 100%;
  border-radius: var(--hpb4-pill-radius);
  box-shadow: var(--hpb4-shadow-lg);
  object-fit: cover;
}

/* Bento Mosaic Grid Archetype */
.hpb4-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.hpb4-bento-col-12 { grid-column: span 12; }
.hpb4-bento-col-8 { grid-column: span 8; }
.hpb4-bento-col-6 { grid-column: span 6; }
.hpb4-bento-col-4 { grid-column: span 4; }
.hpb4-bento-col-3 { grid-column: span 3; }

/* Soft-pill Card Archetype: 24px radius, tinted fill, no border */
.hpb4-card {
  background: var(--hpb4-surface);
  border-radius: var(--hpb4-pill-radius);
  padding: 1.85rem;
  box-shadow: var(--hpb4-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.hpb4-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--hpb4-shadow-md);
}

.hpb4-card-tinted {
  background: var(--hpb4-surface-tint);
}

.hpb4-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(92, 37, 243, 0.12);
  color: var(--hpb4-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.hpb4-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--hpb4-ink);
}

/* Callout Capsules */
.hpb4-capsule {
  border-radius: 18px;
  padding: 1.4rem 1.6rem;
  margin: 1.5rem 0;
}

.hpb4-expert-callout {
  background: #FAF5FF;
  border-left: 5px solid var(--hpb4-accent);
  color: #3B0764;
}

.hpb4-tldr-box {
  background: #F0FDF4;
  border-left: 5px solid #16A34A;
  color: #14532D;
}

.hpb4-answer-capsule {
  background: var(--hpb4-surface-tint);
  border-left: 4px solid var(--hpb4-accent);
  padding: 1rem 1.4rem;
  border-radius: 12px;
  margin: 0.8rem 0 1.2rem;
  font-weight: 500;
  color: #2E1065;
}

.hpb4-pro-tip {
  background: #FEF3C7;
  border-left: 4px solid #D97706;
  color: #78350F;
}

.hpb4-warning-box {
  background: #FEF2F2;
  border-left: 4px solid #DC2626;
  color: #7F1D1D;
}

/* Custom Data Tables */
.hpb4-table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 1.8rem 0;
  border-radius: 16px;
  box-shadow: var(--hpb4-shadow-sm);
  background: var(--hpb4-surface);
}

.hpb4-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.hpb4-table th {
  background: #242B10;
  color: #FFFFFF;
  padding: 1rem 1.2rem;
  font-family: var(--hpb4-font-head);
  font-weight: 600;
}

.hpb4-table td {
  padding: 0.95rem 1.2rem;
  border-bottom: 1px solid var(--hpb4-border-subtle);
  color: var(--hpb4-ink);
}

.hpb4-table tr:last-child td {
  border-bottom: none;
}

.hpb4-table tr:nth-child(even) td {
  background: #FAF9FE;
}

/* Numbered Step Walkthrough */
.hpb4-steps {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin: 1.8rem 0;
}

.hpb4-step-item {
  display: flex;
  gap: 1.2rem;
  background: var(--hpb4-surface);
  padding: 1.4rem 1.6rem;
  border-radius: 18px;
  box-shadow: var(--hpb4-shadow-sm);
  align-items: flex-start;
}

.hpb4-step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--hpb4-accent);
  color: var(--hpb4-on-accent);
  font-family: var(--hpb4-font-head);
  font-weight: 800;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.hpb4-step-content h4 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 1.15rem;
}

/* FAQ Accordion / Details */
.hpb4-faq-group {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.hpb4-faq-item {
  background: var(--hpb4-surface);
  border-radius: 16px;
  padding: 1.2rem 1.5rem;
  box-shadow: var(--hpb4-shadow-sm);
}

.hpb4-faq-q {
  font-family: var(--hpb4-font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--hpb4-ink);
  margin-bottom: 0.5rem;
}

.hpb4-faq-a {
  color: var(--hpb4-ink-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Responsible Gaming Advisory Section */
.hpb4-responsible-banner {
  background: #191E0B;
  color: #F3F4F6;
  border-radius: var(--hpb4-pill-radius);
  padding: 2.2rem;
  margin: 3rem 0;
}

.hpb4-responsible-banner h3 {
  color: #FFFFFF;
  margin-top: 0;
}

.hpb4-helpline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-top: 1.2rem;
}

.hpb4-helpline-card {
  background: rgba(255, 255, 255, 0.08);
  padding: 1rem 1.2rem;
  border-radius: 14px;
}

.hpb4-helpline-card strong {
  display: block;
  color: #FFFFFF;
  margin-bottom: 0.3rem;
}

/* Footer: four-column-sitemap */
.hpb4-footer {
  background: #141808;
  color: #9CA3AF;
  padding: 3.5rem 0 2rem;
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.9rem;
}

.hpb4-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.hpb4-footer-col h4 {
  color: #FFFFFF;
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
  margin-top: 0;
}

.hpb4-footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.hpb4-footer-col a {
  color: #D1D5DB;
  text-decoration: none;
}

.hpb4-footer-col a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.hpb4-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: #6B7280;
}

/* Article Layout & Sidebar */
.hpb4-article-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  padding: 2.5rem 0;
}

.hpb4-article-body {
  min-width: 0;
}

.hpb4-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hpb4-sticky-widget {
  position: sticky;
  top: 90px;
}

/* Breadcrumbs */
.hpb4-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--hpb4-ink-subtle);
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}

.hpb4-breadcrumbs a {
  color: var(--hpb4-ink-muted);
  text-decoration: none;
}

.hpb4-breadcrumbs a:hover {
  color: var(--hpb4-accent);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (min-width: 1200px) {
  .hpb4-nav-links {
    gap: 1.15rem;
  }
  .hpb4-nav-item a {
    font-size: 0.91rem;
    padding: 0.45rem 0.7rem;
  }
}

@media (max-width: 1100px) and (min-width: 901px) {
  .hpb4-nav-links {
    gap: 0.4rem;
  }
  .hpb4-nav-item a {
    font-size: 0.82rem;
    padding: 0.35rem 0.45rem;
  }
  .hpb4-brand-name {
    font-size: 1.05rem;
  }
  .hpb4-btn {
    padding: 0.4rem 0.85rem;
    font-size: 0.84rem;
  }
}

@media (max-width: 992px) {
  .hpb4-masthead-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hpb4-article-layout {
    grid-template-columns: 1fr;
  }
  .hpb4-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hpb4-bento-col-8,
  .hpb4-bento-col-6,
  .hpb4-bento-col-4,
  .hpb4-bento-col-3 {
    grid-column: span 12;
  }
}

@media (max-width: 900px) {
  .hpb4-nav-links,
  .hpb4-nav-actions {
    display: none !important;
  }
  .hpb4-mobile-actions,
  .hpb4-hamburger {
    display: flex !important;
  }
  .hpb4-top-support {
    display: none !important;
  }
  .hpb4-top-bar-inner {
    justify-content: center !important;
  }
  .hpb4-mobile-drawer {
    top: 86px;
  }
}

@media (max-width: 768px) {
  .hpb4-age-desktop {
    display: none !important;
  }
  .hpb4-age-mobile {
    display: inline !important;
  }
  .hpb4-footer-grid {
    grid-template-columns: 1fr;
  }
  h1 { font-size: 1.95rem; }
  h2 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .hpb4-brand-name {
    font-size: 0.98rem;
  }
  .hpb4-brand-icon {
    width: 30px;
    height: 30px;
  }
  .hpb4-brand-badge {
    display: none;
  }
  .hpb4-age-badge {
    font-size: 0.69rem;
    padding: 0.12rem 0.45rem;
  }
  .hpb4-mobile-actions .hpb4-btn-sm {
    padding: 0.35rem 0.7rem;
    font-size: 0.78rem;
    min-height: 36px;
  }
  .hpb4-hamburger {
    width: 38px;
    height: 38px;
  }
}
