/*!
 * FBM Play - site stylesheet (visual-2ede.css)
 * All custom classes and CSS variables use the "pg2e-" prefix.
 * Mobile-first canvas for 320-430px viewports.
 */

:root {
  --pg2e-c-lemon: #FFFACD;
  --pg2e-c-ink:   #2C2C2C;
  --pg2e-c-muted: #ADB5BD;
  --pg2e-c-mist:  #ECF0F1;
  --pg2e-c-sand:  #DEB887;
  --pg2e-c-pap:   #FFEFD5;
  --pg2e-bg:      #1c1a17;
  --pg2e-bg-2:    #23201b;
  --pg2e-bg-3:    #2C2C2C;
  --pg2e-card:    #2a2722;
  --pg2e-card-2:  #33302a;
  --pg2e-text:    #FFEFD5;
  --pg2e-text-2:  #FFFACD;
  --pg2e-text-dim:#c9bfa9;
  --pg2e-accent:  #DEB887;
  --pg2e-accent-2:#FFFACD;
  --pg2e-border:  rgba(222, 184, 135, 0.22);
  --pg2e-shadow:  0 10px 26px rgba(0, 0, 0, 0.45);
  --pg2e-radius:  14px;
  --pg2e-radius-sm: 10px;
  --pg2e-maxw:    480px;
  --pg2e-header-h: 56px;
  --pg2e-bottom-h: 64px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--pg2e-bg);
  color: var(--pg2e-text);
  font-family: "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body {
  min-height: 100vh;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(222, 184, 135, 0.12), transparent 70%),
    linear-gradient(180deg, var(--pg2e-bg) 0%, var(--pg2e-bg-2) 100%);
}
img { max-width: 100%; display: block; }
a { color: var(--pg2e-accent); text-decoration: none; }
a:focus-visible { outline: 2px solid var(--pg2e-accent); outline-offset: 2px; }
h1, h2, h3, h4 { color: var(--pg2e-text-2); line-height: 1.3; margin: 0 0 10px; }
h1 { font-size: 24px; letter-spacing: -0.02em; }
h2 { font-size: 19px; letter-spacing: -0.01em; }
h3 { font-size: 16px; }
p { margin: 0 0 12px; color: var(--pg2e-text); }

/* Centered mobile canvas on wide screens. */
.pg2e-canvas {
  max-width: var(--pg2e-maxw);
  margin: 0 auto;
  background: var(--pg2e-bg);
  min-height: 100vh;
  position: relative;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
}

/* ============ Identity Bar (Top Header) ============ */
.pg2e-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--pg2e-header-h);
  background: linear-gradient(180deg, rgba(44, 44, 44, 0.96), rgba(28, 26, 23, 0.96));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--pg2e-border);
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
}
.pg2e-brand {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}
.pg2e-brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--pg2e-accent);
  box-shadow: 0 0 0 2px rgba(222, 184, 135, 0.15);
  background: var(--pg2e-c-mist);
}
.pg2e-brand-name {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.04em;
  color: var(--pg2e-text-2);
  white-space: nowrap;
}
.pg2e-brand-name b { color: var(--pg2e-accent); }
.pg2e-header-left { grid-column: 1; display: flex; align-items: center; }
.pg2e-header-right {
  grid-column: 3;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pg2e-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(222, 184, 135, 0.12);
  border: 1px solid var(--pg2e-border);
  color: var(--pg2e-text-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.pg2e-icon-btn:hover, .pg2e-icon-btn:focus-visible {
  background: rgba(222, 184, 135, 0.22);
  box-shadow: 0 0 12px rgba(222, 184, 135, 0.25);
}
.pg2e-icon-btn svg { width: 20px; height: 20px; }

.pg2e-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-align: center;
}
.pg2e-btn:active { transform: translateY(1px); }
.pg2e-btn-primary {
  background: linear-gradient(135deg, #FFE08A, #DEB887);
  color: #2C2C2C;
  box-shadow: 0 6px 18px rgba(222, 184, 135, 0.35);
}
.pg2e-btn-primary:hover, .pg2e-btn-primary:focus-visible {
  box-shadow: 0 0 18px rgba(255, 250, 205, 0.55);
}
.pg2e-btn-ghost {
  background: transparent;
  color: var(--pg2e-text-2);
  border: 1px solid var(--pg2e-accent);
}
.pg2e-btn-ghost:hover, .pg2e-btn-ghost:focus-visible {
  background: rgba(222, 184, 135, 0.14);
}
.pg2e-btn-block { width: 100%; padding: 12px; font-size: 14px; min-height: 44px; }

/* ============ Side Drawer ============ */
.pg2e-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 90;
}
.pg2e-scrim.pg2e-show { opacity: 1; pointer-events: auto; }
.pg2e-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(82%, 320px);
  height: 100vh;
  background: linear-gradient(180deg, #23201b, #1c1a17);
  border-right: 1px solid var(--pg2e-border);
  transform: translateX(-100%);
  transition: transform 0.28s ease;
  z-index: 100;
  overflow-y: auto;
  padding: 18px 14px calc(var(--pg2e-bottom-h) + 24px);
}
.pg2e-drawer.pg2e-drawer-open { transform: translateX(0); box-shadow: var(--pg2e-shadow); }
.pg2e-drawer-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--pg2e-border);
  margin-bottom: 12px;
}
.pg2e-drawer-head img { width: 32px; height: 32px; border-radius: 8px; }
.pg2e-drawer-head .pg2e-drawer-title { font-weight: 800; color: var(--pg2e-text-2); font-size: 16px; }
.pg2e-drawer-section-title {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  color: var(--pg2e-text-dim);
  margin: 14px 4px 6px;
}
.pg2e-drawer a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 10px;
  border-radius: 10px;
  color: var(--pg2e-text);
  font-size: 14px;
  font-weight: 600;
}
.pg2e-drawer a:hover, .pg2e-drawer a:focus-visible {
  background: rgba(222, 184, 135, 0.12);
  color: var(--pg2e-text-2);
}
.pg2e-drawer a .pg2e-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--pg2e-accent);
}
.pg2e-drawer-cta {
  margin-top: 18px;
  display: grid; gap: 8px;
}

/* ============ Page Wrap / Sections ============ */
.pg2e-main {
  padding: 12px 12px calc(var(--pg2e-bottom-h) + 28px);
}
.pg2e-section { margin: 18px 0; }
.pg2e-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.pg2e-section-head h2 { margin: 0; }
.pg2e-section-head .pg2e-link { font-size: 12px; color: var(--pg2e-accent); }
.pg2e-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  color: var(--pg2e-accent);
  margin-bottom: 6px;
}

/* ============ Hero Carousel ============ */
.pg2e-hero {
  position: relative;
  border-radius: var(--pg2e-radius);
  overflow: hidden;
  box-shadow: var(--pg2e-shadow);
  border: 1px solid var(--pg2e-border);
  background: #000;
}
.pg2e-hero-track {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}
.pg2e-hero-slide {
  flex: 0 0 100%;
  position: relative;
  display: block;
}
.pg2e-hero-slide img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  filter: brightness(0.78);
}
.pg2e-hero-caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}
.pg2e-hero-text { max-width: 70%; }
.pg2e-hero-text .pg2e-hero-tag {
  display: inline-block;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--pg2e-accent);
  color: var(--pg2e-accent);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.pg2e-hero-text h2 {
  margin: 0;
  font-size: 17px;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}
.pg2e-hero-text p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #FFEFD5;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}
.pg2e-hero-dots {
  position: absolute;
  bottom: 10px;
  right: 12px;
  display: flex;
  gap: 6px;
}
.pg2e-hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease;
}
.pg2e-hero-dot.pg2e-active {
  background: var(--pg2e-accent);
  width: 20px;
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(222, 184, 135, 0.7);
}

/* ============ Quick Action Strip ============ */
.pg2e-quick-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 14px 0 4px;
}
.pg2e-quick {
  background: var(--pg2e-card);
  border: 1px solid var(--pg2e-border);
  border-radius: 12px;
  padding: 10px 4px 8px;
  text-align: center;
  color: var(--pg2e-text);
  font-size: 11px;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.pg2e-quick:hover, .pg2e-quick:focus-visible {
  border-color: var(--pg2e-accent);
  box-shadow: 0 0 14px rgba(222, 184, 135, 0.25);
  transform: translateY(-2px);
}
.pg2e-quick svg {
  width: 22px; height: 22px; margin: 0 auto 4px; color: var(--pg2e-accent);
}

/* ============ Search Bar ============ */
.pg2e-search-wrap {
  margin: 8px 0 4px;
}
.pg2e-search {
  width: 100%;
  background: var(--pg2e-card);
  border: 1px solid var(--pg2e-border);
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--pg2e-text);
  font-size: 14px;
  outline: none;
}
.pg2e-search::placeholder { color: var(--pg2e-text-dim); }
.pg2e-search:focus { border-color: var(--pg2e-accent); box-shadow: 0 0 12px rgba(222, 184, 135, 0.25); }

/* ============ Game Grid ============ */
.pg2e-cat {
  margin: 22px 0;
}
.pg2e-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.pg2e-cat-head h2 { margin: 0; font-size: 17px; }
.pg2e-cat-head .pg2e-cat-badge {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(222, 184, 135, 0.14);
  border: 1px solid var(--pg2e-border);
  color: var(--pg2e-accent);
  padding: 3px 8px;
  border-radius: 999px;
}
.pg2e-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.pg2e-game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px;
  background: var(--pg2e-card);
  border: 1px solid var(--pg2e-border);
  border-radius: 12px;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.pg2e-game-card:hover, .pg2e-game-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--pg2e-accent);
  box-shadow: 0 0 14px rgba(222, 184, 135, 0.25);
}
.pg2e-game-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 9px;
  background: #000;
}
.pg2e-game-name {
  font-size: 11px;
  text-align: center;
  color: var(--pg2e-text);
  line-height: 1.25;
  font-weight: 600;
  height: 28px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media (min-width: 375px) {
  .pg2e-grid { grid-template-columns: repeat(5, 1fr); }
  .pg2e-hero-slide img { height: 188px; }
}
@media (min-width: 414px) {
  h1 { font-size: 26px; }
  .pg2e-hero-slide img { height: 210px; }
}

/* ============ Info / SEO Blocks ============ */
.pg2e-panel {
  background: var(--pg2e-card);
  border: 1px solid var(--pg2e-border);
  border-radius: var(--pg2e-radius);
  padding: 16px;
  margin: 14px 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.pg2e-panel p { font-size: 14px; color: var(--pg2e-text); }
.pg2e-panel a.pg2e-inline {
  color: var(--pg2e-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pg2e-list { padding-left: 18px; margin: 8px 0 12px; }
.pg2e-list li { margin: 4px 0; color: var(--pg2e-text); }
.pg2e-feature-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 10px 0;
}
.pg2e-feature {
  background: var(--pg2e-card-2);
  border: 1px solid var(--pg2e-border);
  border-radius: 12px;
  padding: 12px;
}
.pg2e-feature h3 { margin: 0 0 4px; color: var(--pg2e-text-2); font-size: 14px; }
.pg2e-feature p { margin: 0; font-size: 12.5px; color: var(--pg2e-text-dim); }

.pg2e-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0;
}
.pg2e-stat {
  background: var(--pg2e-card-2);
  border: 1px solid var(--pg2e-border);
  border-radius: 12px;
  padding: 10px 6px;
  text-align: center;
}
.pg2e-stat b {
  display: block;
  color: var(--pg2e-accent);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
}
.pg2e-stat span { font-size: 11px; color: var(--pg2e-text-dim); }

/* ============ Promo CTA Banner ============ */
.pg2e-cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--pg2e-radius);
  padding: 18px 16px;
  background: linear-gradient(135deg, rgba(222, 184, 135, 0.22), rgba(255, 250, 205, 0.10));
  border: 1px solid var(--pg2e-accent);
  box-shadow: 0 0 22px rgba(222, 184, 135, 0.25);
  margin: 18px 0;
}
.pg2e-cta h2 { margin: 0 0 6px; color: var(--pg2e-accent-2); }
.pg2e-cta p { margin: 0 0 12px; font-size: 13px; color: var(--pg2e-text); }
.pg2e-cta-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ============ Extended Footer (home only) ============ */
.pg2e-extended-footer {
  margin: 22px 0 6px;
  border-top: 1px solid var(--pg2e-border);
  padding-top: 16px;
}
.pg2e-ext-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 10px 0;
}
.pg2e-ext-col {
  background: var(--pg2e-card);
  border: 1px solid var(--pg2e-border);
  border-radius: 12px;
  padding: 12px;
}
.pg2e-ext-col h4 {
  margin: 0 0 8px;
  color: var(--pg2e-text-2);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pg2e-ext-col ul { list-style: none; padding: 0; margin: 0; }
.pg2e-ext-col li { margin: 5px 0; }
.pg2e-ext-col a { color: var(--pg2e-text); font-size: 12.5px; }
.pg2e-ext-col a:hover { color: var(--pg2e-accent); }

.pg2e-promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 10px 0;
}
.pg2e-promo-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 4px;
  background: var(--pg2e-card);
  border: 1px solid var(--pg2e-border);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--pg2e-text);
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.pg2e-promo-pill:hover, .pg2e-promo-pill:focus-visible {
  border-color: var(--pg2e-accent);
  transform: translateY(-2px);
  box-shadow: 0 0 12px rgba(222, 184, 135, 0.3);
}
.pg2e-promo-pill svg { width: 20px; height: 20px; color: var(--pg2e-accent); }

.pg2e-disclaimer {
  font-size: 11.5px;
  color: var(--pg2e-text-dim);
  border-top: 1px dashed var(--pg2e-border);
  padding-top: 10px;
  margin-top: 10px;
  line-height: 1.5;
}

/* ============ Common Footer ============ */
.pg2e-footer {
  text-align: center;
  padding: 14px 12px calc(var(--pg2e-bottom-h) + 14px);
  font-size: 12px;
  color: var(--pg2e-text-dim);
  border-top: 1px solid var(--pg2e-border);
  margin-top: 12px;
}
.pg2e-footer .pg2e-footer-brand {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 6px;
}
.pg2e-footer .pg2e-footer-brand img { width: 24px; height: 24px; border-radius: 6px; }
.pg2e-footer .pg2e-footer-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px;
  margin: 8px 0;
}
.pg2e-footer .pg2e-footer-links a { color: var(--pg2e-text-dim); font-size: 12px; }
.pg2e-footer .pg2e-footer-links a:hover { color: var(--pg2e-accent); }

/* ============ Bottom Floating Nav ============ */
.pg2e-bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 10px;
  width: calc(100% - 20px);
  max-width: calc(var(--pg2e-maxw) - 20px);
  z-index: 60;
  background: linear-gradient(180deg, rgba(44, 44, 44, 0.97), rgba(28, 26, 23, 0.97));
  border: 1px solid var(--pg2e-border);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), 0 0 18px rgba(222, 184, 135, 0.10);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 6px 4px;
  backdrop-filter: blur(10px);
}
.pg2e-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 2px 5px;
  color: var(--pg2e-text-dim);
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  min-height: 44px;
  position: relative;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.25s ease, transform 0.15s ease;
}
.pg2e-bottom-nav a svg {
  width: 22px; height: 22px;
  fill: currentColor;
  color: var(--pg2e-text-dim);
  transition: color 0.2s ease, transform 0.2s ease;
}
.pg2e-bottom-nav a:hover { color: var(--pg2e-text-2); }
.pg2e-bottom-nav a:hover svg { color: var(--pg2e-accent); transform: translateY(-1px); }
.pg2e-bottom-nav a.pg2e-active {
  color: #2C2C2C;
  background: linear-gradient(135deg, #FFE08A, #DEB887);
  box-shadow: 0 0 14px rgba(255, 250, 205, 0.55);
}
.pg2e-bottom-nav a.pg2e-active svg { color: #2C2C2C; }
.pg2e-bottom-nav a.pg2e-nav-promo::before {
  content: "";
  position: absolute;
  top: -3px; left: 50%;
  transform: translateX(-50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--pg2e-accent);
  box-shadow: 0 0 6px rgba(222, 184, 135, 0.8);
}

.pg2e-no-scroll { overflow: hidden; }

/* Visually-hidden helper for accessibility text. */
.pg2e-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

#pg2e-empty-state {
  display: none;
  text-align: center;
  padding: 24px 12px;
  color: var(--pg2e-text-dim);
  font-size: 13px;
}
