/* ============================================================
 * phix.click - global layout stylesheet
 * Prefix every custom class with "pg0b-".
 * Palette: cream #FDF5E6 | dark #0D1117 | accent #FFEF94
 * ============================================================ */

:root {
  --pg0b-bg: #0D1117;
  --pg0b-bg-soft: #161B22;
  --pg0b-bg-card: #1C2230;
  --pg0b-text: #FDF5E6;
  --pg0b-text-mute: #B9B2A2;
  --pg0b-accent: #FFEF94;
  --pg0b-accent-deep: #F2C94C;
  --pg0b-line: rgba(253, 245, 230, 0.12);
  --pg0b-danger: #FF6B6B;
  --pg0b-success: #4CD7A0;
  --pg0b-radius: 14px;
  --pg0b-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  --pg0b-header-h: 60px;
  --pg0b-bottomnav-h: 62px;
}

* { box-sizing: border-box; }

html {
  font-size: 62.5%; /* 1rem = 10px */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", "Helvetica Neue", Roboto, Arial, system-ui, sans-serif;
  background-color: var(--pg0b-bg);
  color: var(--pg0b-text);
  line-height: 1.5;
  font-size: 1.5rem;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--pg0b-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.pg0b-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--pg0b-accent);
  color: var(--pg0b-bg);
  padding: 8px 14px;
  z-index: 2000;
}
.pg0b-skip:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */
.pg0b-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--pg0b-header-h);
  background: linear-gradient(180deg, #0B0F14 0%, #0D1117 100%);
  border-bottom: 1px solid var(--pg0b-line);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 10px;
}
.pg0b-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--pg0b-text);
  font-weight: 700;
  font-size: 1.9rem;
  letter-spacing: 0.4px;
}
.pg0b-logo img { width: 30px; height: 30px; border-radius: 6px; }
.pg0b-logo .pg0b-logo-dot { color: var(--pg0b-accent); }
.pg0b-header-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}
.pg0b-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 1.35rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
  line-height: 1;
}
.pg0b-btn:hover { text-decoration: none; transform: translateY(-1px); }
.pg0b-btn-primary {
  background: var(--pg0b-accent);
  color: var(--pg0b-bg);
  box-shadow: 0 4px 12px rgba(255, 239, 148, 0.25);
}
.pg0b-btn-ghost {
  background: transparent;
  color: var(--pg0b-text);
  border-color: var(--pg0b-line);
}
.pg0b-btn-block {
  display: flex;
  width: 100%;
  padding: 14px 16px;
  font-size: 1.55rem;
}
.pg0b-menu-btn {
  background: transparent;
  border: 1px solid var(--pg0b-line);
  color: var(--pg0b-text);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.8rem;
}

/* ---------- Mobile slide menu ---------- */
.pg0b-mobile-menu {
  position: fixed;
  top: var(--pg0b-header-h);
  left: 0; right: 0;
  background: var(--pg0b-bg-soft);
  border-bottom: 1px solid var(--pg0b-line);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  z-index: 9999;
}
.pg0b-mobile-menu.pg0b-menu-open { max-height: 80vh; overflow-y: auto; }
.pg0b-mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 8px 14px;
}
.pg0b-mobile-menu li { border-bottom: 1px solid var(--pg0b-line); }
.pg0b-mobile-menu li:last-child { border-bottom: 0; }
.pg0b-mobile-menu a {
  display: block;
  padding: 14px 4px;
  color: var(--pg0b-text);
  font-size: 1.45rem;
}
.pg0b-mobile-menu a:hover { color: var(--pg0b-accent); }
.pg0b-mobile-menu .pg0b-menu-cta {
  display: flex;
  gap: 10px;
  padding: 12px 14px 18px;
}

/* ---------- Desktop top nav (hidden on mobile) ---------- */
.pg0b-topnav {
  display: none;
  margin-left: 18px;
  gap: 14px;
}
.pg0b-topnav a {
  color: var(--pg0b-text-mute);
  font-size: 1.35rem;
  padding: 6px 2px;
}
.pg0b-topnav a:hover { color: var(--pg0b-accent); text-decoration: none; }

/* ---------- Layout ---------- */
.pg0b-main {
  margin-top: var(--pg0b-header-h);
  padding-bottom: 80px;
}
.pg0b-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 14px;
}
.pg0b-section {
  padding: 30px 0;
}
.pg0b-section-alt {
  background: var(--pg0b-bg-soft);
}
.pg0b-section-title {
  font-size: 2.1rem;
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--pg0b-text);
}
.pg0b-section-title .pg0b-accent { color: var(--pg0b-accent); }
.pg0b-section-sub {
  color: var(--pg0b-text-mute);
  font-size: 1.35rem;
  margin: 0 0 18px;
}
.pg0b-divider {
  height: 1px;
  background: var(--pg0b-line);
  margin: 18px 0;
  border: 0;
}

/* ---------- Hero ---------- */
.pg0b-hero {
  position: relative;
  padding: 28px 0 18px;
  background:
    radial-gradient(900px 400px at 80% -10%, rgba(255, 239, 148, 0.16), transparent 60%),
    linear-gradient(180deg, #11161E 0%, #0D1117 100%);
  overflow: hidden;
}
.pg0b-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.pg0b-hero-slides {
  position: relative;
  border-radius: var(--pg0b-radius);
  overflow: hidden;
  min-height: 220px;
  background: var(--pg0b-bg-card);
  box-shadow: var(--pg0b-shadow);
}
.pg0b-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  background: linear-gradient(135deg, #1a2230 0%, #2a3245 100%);
}
.pg0b-hero-slide.pg0b-active { opacity: 1; position: relative; }
.pg0b-hero-slide h2 {
  margin: 0 0 6px;
  font-size: 2.1rem;
  font-weight: 800;
}
.pg0b-hero-slide p {
  margin: 0 0 12px;
  color: var(--pg0b-text-mute);
  font-size: 1.35rem;
}
.pg0b-hero-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 239, 148, 0.18);
  color: var(--pg0b-accent);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  align-self: flex-start;
}
.pg0b-hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.pg0b-hero-side {
  background: var(--pg0b-bg-card);
  border: 1px solid var(--pg0b-line);
  border-radius: var(--pg0b-radius);
  padding: 16px;
  display: grid;
  gap: 12px;
}
.pg0b-hero-side h3 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--pg0b-accent);
}
.pg0b-hero-side ul {
  margin: 0;
  padding-left: 18px;
  color: var(--pg0b-text-mute);
  font-size: 1.3rem;
}
.pg0b-hero-side li { margin-bottom: 6px; }

/* ---------- Filter tabs ---------- */
.pg0b-filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 0 12px;
  -webkit-overflow-scrolling: touch;
}
.pg0b-filter-bar::-webkit-scrollbar { display: none; }
.pg0b-filter-tab {
  flex: 0 0 auto;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--pg0b-line);
  background: var(--pg0b-bg-card);
  color: var(--pg0b-text-mute);
  font-size: 1.3rem;
  cursor: pointer;
  white-space: nowrap;
}
.pg0b-filter-tab.pg0b-tab-active {
  background: var(--pg0b-accent);
  color: var(--pg0b-bg);
  border-color: var(--pg0b-accent);
  font-weight: 700;
}

/* ---------- Game grid ---------- */
.pg0b-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.pg0b-card {
  background: var(--pg0b-bg-card);
  border: 1px solid var(--pg0b-line);
  border-radius: var(--pg0b-radius);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  display: flex;
  flex-direction: column;
}
.pg0b-card:hover {
  transform: translateY(-2px);
  border-color: var(--pg0b-accent);
  box-shadow: var(--pg0b-shadow);
}
.pg0b-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #0a0d12;
}
.pg0b-card-media img { width: 100%; height: 100%; object-fit: cover; }
.pg0b-card-badge {
  position: absolute;
  top: 6px; left: 6px;
  background: rgba(13, 17, 23, 0.85);
  color: var(--pg0b-accent);
  font-size: 1rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
}
.pg0b-card-badge.pg0b-hot { background: var(--pg0b-danger); color: #fff; }
.pg0b-card-body {
  padding: 8px 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pg0b-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--pg0b-text);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pg0b-card-link {
  font-size: 1.2rem;
  color: var(--pg0b-accent);
  font-weight: 700;
  cursor: pointer;
}

/* ---------- Featured / promo ---------- */
.pg0b-feature {
  background: linear-gradient(135deg, #1a2230 0%, #2a3245 100%);
  border: 1px solid var(--pg0b-line);
  border-radius: var(--pg0b-radius);
  padding: 20px;
  display: grid;
  gap: 14px;
}
.pg0b-feature h3 {
  margin: 0;
  font-size: 1.8rem;
  color: var(--pg0b-accent);
}
.pg0b-feature p {
  margin: 0;
  color: var(--pg0b-text-mute);
  font-size: 1.35rem;
}
.pg0b-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pg0b-pill {
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 239, 148, 0.12);
  color: var(--pg0b-accent);
  font-size: 1.2rem;
  font-weight: 700;
}

/* ---------- Long-form SEO content ---------- */
.pg0b-prose {
  color: var(--pg0b-text);
  font-size: 1.4rem;
  line-height: 1.7;
}
.pg0b-prose h2 {
  font-size: 1.9rem;
  margin: 22px 0 8px;
  color: var(--pg0b-accent);
}
.pg0b-prose h3 {
  font-size: 1.6rem;
  margin: 18px 0 6px;
  color: var(--pg0b-text);
}
.pg0b-prose p { margin: 0 0 12px; color: var(--pg0b-text-mute); }
.pg0b-prose ul, .pg0b-prose ol { padding-left: 20px; color: var(--pg0b-text-mute); }
.pg0b-prose li { margin-bottom: 6px; }
.pg0b-prose strong { color: var(--pg0b-text); }

/* ---------- FAQ ---------- */
.pg0b-faq-item {
  border: 1px solid var(--pg0b-line);
  border-radius: 12px;
  margin-bottom: 10px;
  background: var(--pg0b-bg-card);
  overflow: hidden;
}
.pg0b-faq-head {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 14px 16px;
  color: var(--pg0b-text);
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.pg0b-faq-head .pg0b-faq-icon { color: var(--pg0b-accent); }
.pg0b-faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 16px;
  color: var(--pg0b-text-mute);
  font-size: 1.35rem;
}
.pg0b-faq-open .pg0b-faq-body {
  max-height: 600px;
  padding: 0 16px 14px;
}

/* ---------- Footer ---------- */
.pg0b-footer {
  background: #090C11;
  border-top: 1px solid var(--pg0b-line);
  padding: 30px 0 20px;
  color: var(--pg0b-text-mute);
}
.pg0b-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.pg0b-footer h4 {
  color: var(--pg0b-accent);
  margin: 0 0 10px;
  font-size: 1.4rem;
}
.pg0b-footer p { font-size: 1.3rem; margin: 0 0 10px; line-height: 1.6; }
.pg0b-footer ul { list-style: none; margin: 0; padding: 0; }
.pg0b-footer li { margin-bottom: 7px; }
.pg0b-footer a { color: var(--pg0b-text-mute); font-size: 1.3rem; }
.pg0b-footer a:hover { color: var(--pg0b-accent); }
.pg0b-footer-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0;
}
.pg0b-footer-bottom {
  border-top: 1px solid var(--pg0b-line);
  margin-top: 18px;
  padding-top: 14px;
  font-size: 1.2rem;
  text-align: center;
}

/* ---------- Mobile bottom nav ---------- */
.pg0b-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--pg0b-bottomnav-h);
  background: #090C11;
  border-top: 1px solid var(--pg0b-line);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom);
}
.pg0b-bottomnav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 60px;
  min-height: 60px;
  color: var(--pg0b-text-mute);
  font-size: 1.05rem;
  text-decoration: none;
  transition: color 0.18s ease, transform 0.18s ease;
}
.pg0b-bottomnav a:hover { text-decoration: none; }
.pg0b-bottomnav a .pg0b-bn-icon { font-size: 2.1rem; line-height: 1; }
.pg0b-bottomnav a.pg0b-bn-active { color: var(--pg0b-accent); }
.pg0b-bottomnav a.pg0b-bn-center {
  background: var(--pg0b-accent);
  color: var(--pg0b-bg);
  border-radius: 50%;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  margin-top: -22px;
  box-shadow: 0 6px 18px rgba(255, 239, 148, 0.35);
  font-weight: 800;
}
.pg0b-bottomnav a.pg0b-bn-center .pg0b-bn-icon { font-size: 2.4rem; }
.pg0b-bottomnav a:active { transform: scale(0.94); }

/* ---------- Utility ---------- */
.pg0b-hide-mobile { display: none; }
.pg0b-text-center { text-align: center; }
.pg0b-mt-8 { margin-top: 8px; }
.pg0b-mt-16 { margin-top: 16px; }

/* ---------- Responsive breakpoints ---------- */
@media (min-width: 600px) {
  .pg0b-grid { grid-template-columns: repeat(3, 1fr); }
  .pg0b-hero-grid { grid-template-columns: 2fr 1fr; }
  .pg0b-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 769px) {
  .pg0b-bottomnav { display: none; }
  .pg0b-menu-btn { display: none; }
  .pg0b-mobile-menu { display: none; }
  .pg0b-topnav { display: flex; }
  .pg0b-main { padding-bottom: 30px; }
  .pg0b-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .pg0b-footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .pg0b-hide-mobile { display: block; }
  .pg0b-hero { padding: 48px 0 30px; }
  .pg0b-hero-slide h2 { font-size: 2.6rem; }
}

@media (min-width: 992px) {
  .pg0b-grid { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 768px) {
  .pg0b-main { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
}
