/* ============================================================
 * Arena Plus PH - layout-8136.css
 * Shared stylesheet for arena-plus-ph.homes
 * CSS class prefix: v659-
 * Palette: #4682B4 | #0C0C0C | #FA8072 | #AFEEEE | #EEEEEE | #87CEEB
 * Mobile-first (max-width: 430px) with desktop scaling.
 * ============================================================ */

:root {
  --v659-primary: #4682B4;        /* Steel blue - brand */
  --v659-bg: #0C0C0C;             /* Deep dark - background */
  --v659-accent: #FA8072;         /* Salmon - CTA highlight */
  --v659-soft: #AFEEEE;           /* Pale turquoise - subtle text */
  --v659-light: #EEEEEE;          /* Light gray - body text */
  --v659-sky: #87CEEB;            /* Sky blue - secondary accent */
  --v659-card: #161616;
  --v659-card-2: #1d1d1d;
  --v659-border: rgba(174, 238, 238, 0.12);
  --v659-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  --v659-radius: 12px;
  --v659-radius-lg: 18px;
  --v659-header-h: 56px;
  --v659-bottom-h: 62px;
  --v659-max-w: 430px;
}

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

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

body {
  font-family: "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif;
  background: var(--v659-bg);
  color: var(--v659-light);
  line-height: 1.5;
  font-size: 1.5rem;
  max-width: var(--v659-max-w);
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
  padding-bottom: calc(var(--v659-bottom-h) + 18px);
  background-image:
    radial-gradient(circle at 12% -8%, rgba(70, 130, 180, 0.22), transparent 42%),
    radial-gradient(circle at 90% 4%, rgba(250, 128, 114, 0.16), transparent 38%);
  background-attachment: fixed;
}

img { max-width: 100%; display: block; }
a { color: var(--v659-sky); text-decoration: none; }
a:hover { color: var(--v659-soft); }

/* ---------- Layout primitives ---------- */
.v659-container {
  width: 100%;
  max-width: var(--v659-max-w);
  margin: 0 auto;
  padding: 0 14px;
}
.v659-wrapper { padding: 18px 14px; }
.v659-grid { display: grid; gap: 12px; }

/* ---------- Header ---------- */
.v659-header {
  position: fixed;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--v659-max-w);
  height: var(--v659-header-h);
  background: rgba(12, 12, 12, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--v659-border);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  transition: box-shadow 0.25s ease;
}
.v659-header-scrolled { box-shadow: 0 4px 18px rgba(0,0,0,0.55); }
.v659-brand {
  display: flex; align-items: center; gap: 8px;
  color: var(--v659-light); font-weight: 700; font-size: 1.5rem;
}
.v659-brand .v659-logo {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--v659-primary), var(--v659-sky));
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.4rem;
}
.v659-brand .v659-brand-text {
  display: flex; flex-direction: column; line-height: 1.1;
}
.v659-brand .v659-brand-text small { color: var(--v659-sky); font-size: 1rem; font-weight: 500; }

.v659-header-actions { display: flex; align-items: center; gap: 8px; }
.v659-menu-btn {
  background: transparent; border: 1px solid var(--v659-border);
  color: var(--v659-light); width: 36px; height: 36px;
  border-radius: 8px; font-size: 1.8rem; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- Buttons ---------- */
.v659-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 9px 16px; border-radius: 999px;
  font-size: 1.3rem; font-weight: 700; cursor: pointer;
  border: none; min-height: 36px; transition: transform 0.18s ease, box-shadow 0.2s ease;
  text-decoration: none;
}
.v659-btn:active { transform: scale(0.96); }
.v659-btn-primary {
  background: linear-gradient(135deg, var(--v659-accent), #ff5e4e);
  color: #fff; box-shadow: 0 4px 14px rgba(250, 128, 114, 0.35);
}
.v659-btn-secondary {
  background: linear-gradient(135deg, var(--v659-primary), #2c5d80);
  color: #fff; box-shadow: 0 4px 14px rgba(70, 130, 180, 0.30);
}
.v659-btn-ghost {
  background: transparent; border: 1px solid var(--v659-border); color: var(--v659-soft);
}
.v659-btn-lg { padding: 14px 26px; font-size: 1.6rem; min-height: 50px; width: 100%; }
.v659-text-link {
  color: var(--v659-accent); font-weight: 700; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.v659-text-link:hover { color: var(--v659-soft); }

/* ---------- Mobile menu drawer ---------- */
.v659-mobile-menu {
  position: fixed; top: 0; right: -85%;
  width: 78%; max-width: 320px; height: 100vh;
  background: #0a0a0a; border-left: 1px solid var(--v659-border);
  padding: 22px 18px; z-index: 9999;
  transform: translateX(0); transition: right 0.28s ease;
  overflow-y: auto;
}
.v659-menu-open { right: 0; }
.v659-mobile-menu h3 {
  color: var(--v659-sky); font-size: 1.4rem; margin: 18px 0 8px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.v659-mobile-menu a {
  display: block; padding: 11px 12px; color: var(--v659-light);
  border-radius: 8px; font-size: 1.45rem; border-bottom: 1px solid rgba(255,255,255,0.04);
}
.v659-mobile-menu a:hover { background: rgba(70, 130, 180, 0.15); color: #fff; }
.v659-menu-cta { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.v659-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  z-index: 9998; opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.v659-overlay-show { opacity: 1; pointer-events: auto; }
.v659-menu-close {
  background: transparent; border: none; color: var(--v659-light);
  font-size: 2.4rem; cursor: pointer; float: right; line-height: 1;
}

/* ---------- Main content ---------- */
.v659-main { padding-top: calc(var(--v659-header-h) + 10px); }

/* ---------- Carousel ---------- */
.v659-carousel {
  position: relative; border-radius: var(--v659-radius-lg);
  overflow: hidden; margin: 14px 0; box-shadow: var(--v659-shadow);
}
.v659-carousel-track { position: relative; }
.v659-carousel-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.7s ease;
  display: flex; align-items: flex-end;
}
.v659-carousel-slide img { width: 100%; height: 200px; object-fit: cover; }
.v659-slide-active { opacity: 1; position: relative; }
.v659-carousel-caption {
  position: absolute; left: 14px; right: 14px; bottom: 16px;
  background: linear-gradient(0deg, rgba(0,0,0,0.85), transparent);
  padding: 24px 14px 12px; color: #fff;
}
.v659-carousel-caption h2 { font-size: 1.7rem; margin-bottom: 4px; }
.v659-carousel-caption p { font-size: 1.25rem; color: var(--v659-soft); margin-bottom: 8px; }
.v659-carousel-dots {
  position: absolute; bottom: 10px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px; z-index: 2;
}
.v659-carousel-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer; border: none; padding: 0;
}
.v659-dot-active { background: var(--v659-accent); width: 18px; border-radius: 4px; }

/* ---------- Section title ---------- */
.v659-section { padding: 18px 0; }
.v659-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.v659-section-head h2 {
  font-size: 1.7rem; color: #fff; font-weight: 700;
  border-left: 3px solid var(--v659-accent); padding-left: 9px;
}
.v659-section-head .v659-more { color: var(--v659-sky); font-size: 1.2rem; }

/* ---------- Filter tabs ---------- */
.v659-filters {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px;
  scrollbar-width: none;
}
.v659-filters::-webkit-scrollbar { display: none; }
.v659-filter-tab {
  flex: 0 0 auto; padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--v659-border);
  color: var(--v659-light); font-size: 1.25rem; cursor: pointer; white-space: nowrap;
}
.v659-filter-active {
  background: linear-gradient(135deg, var(--v659-accent), #ff5e4e);
  border-color: transparent; color: #fff; font-weight: 700;
}

/* ---------- Game grid ---------- */
.v659-game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.v659-game-card {
  background: var(--v659-card); border-radius: var(--v659-radius);
  overflow: hidden; border: 1px solid var(--v659-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease; cursor: pointer;
}
.v659-game-card:hover { transform: translateY(-2px); box-shadow: var(--v659-shadow); }
.v659-game-thumb {
  position: relative; aspect-ratio: 1 / 1; background: #000;
}
.v659-game-thumb img { width: 100%; height: 100%; object-fit: cover; }
.v659-game-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.4), transparent 60%);
}
.v659-game-name {
  padding: 7px 8px; font-size: 1.15rem; color: var(--v659-light);
  text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.v659-game-tag {
  position: absolute; top: 6px; left: 6px; background: var(--v659-accent);
  color: #fff; font-size: 0.95rem; padding: 2px 7px; border-radius: 4px;
  font-weight: 700; z-index: 1;
}
.v659-game-cat-title {
  grid-column: 1 / -1; color: var(--v659-sky); font-size: 1.35rem;
  font-weight: 700; margin: 10px 0 4px; display: flex; align-items: center; gap: 8px;
}

/* ---------- Info / feature cards ---------- */
.v659-card {
  background: var(--v659-card); border: 1px solid var(--v659-border);
  border-radius: var(--v659-radius); padding: 14px;
}
.v659-feature-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.v659-feature {
  background: var(--v659-card); border: 1px solid var(--v659-border);
  border-radius: var(--v659-radius); padding: 14px 10px; text-align: center;
}
.v659-feature .v659-feature-ico {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--v659-primary), var(--v659-sky));
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 2rem; margin-bottom: 8px;
}
.v659-feature h3 { color: #fff; font-size: 1.3rem; margin-bottom: 4px; }
.v659-feature p { color: var(--v659-soft); font-size: 1.15rem; }

/* ---------- Article / SEO content ---------- */
.v659-article { line-height: 1.7; color: var(--v659-light); }
.v659-article h2 {
  color: #fff; font-size: 1.7rem; margin: 18px 0 8px;
  border-left: 3px solid var(--v659-sky); padding-left: 10px;
}
.v659-article h3 { color: var(--v659-sky); font-size: 1.4rem; margin: 14px 0 6px; }
.v659-article p { margin-bottom: 10px; font-size: 1.4rem; }
.v659-article ul, .v659-article ol { margin: 6px 0 12px 22px; }
.v659-article li { margin-bottom: 5px; font-size: 1.4rem; }
.v659-article a { color: var(--v659-accent); text-decoration: underline; text-underline-offset: 2px; }
.v659-prose-block {
  background: rgba(70, 130, 180, 0.06); border-left: 3px solid var(--v659-primary);
  padding: 12px 14px; border-radius: 8px; margin: 12px 0;
}
.v659-callout {
  background: linear-gradient(135deg, rgba(250,128,114,0.12), rgba(70,130,180,0.10));
  border: 1px solid rgba(250,128,114,0.3); border-radius: var(--v659-radius);
  padding: 14px; margin: 14px 0;
}
.v659-callout h3 { color: var(--v659-accent); margin-bottom: 6px; }

/* ---------- Testimonials ---------- */
.v659-testimonials { display: grid; gap: 10px; }
.v659-testimonial {
  background: var(--v659-card); border: 1px solid var(--v659-border);
  border-radius: var(--v659-radius); padding: 12px 14px;
}
.v659-testimonial-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.v659-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--v659-primary), var(--v659-accent));
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 1.3rem;
}
.v659-testimonial-name { color: #fff; font-size: 1.3rem; font-weight: 600; }
.v659-stars { color: #ffd166; font-size: 1.2rem; }
.v659-testimonial p { color: var(--v659-soft); font-size: 1.3rem; }

/* ---------- Winners ticker ---------- */
.v659-winners {
  background: var(--v659-card-2); border-radius: var(--v659-radius);
  border: 1px solid var(--v659-border); padding: 10px 12px; margin: 12px 0;
}
.v659-winner-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0; border-bottom: 1px dashed rgba(255,255,255,0.06); font-size: 1.25rem;
}
.v659-winner-row:last-child { border-bottom: none; }
.v659-winner-name { color: var(--v659-sky); }
.v659-winner-game { color: var(--v659-soft); }
.v659-winner-amount { color: var(--v659-accent); font-weight: 700; }

/* ---------- Payment icons ---------- */
.v659-pay-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.v659-pay-item {
  background: var(--v659-card); border: 1px solid var(--v659-border);
  border-radius: 10px; padding: 10px 4px; text-align: center;
  color: var(--v659-soft); font-size: 1.05rem;
}
.v659-pay-item .v659-pay-ico { font-size: 2.2rem; color: var(--v659-sky); margin-bottom: 4px; }

/* ---------- FAQ ---------- */
.v659-faq-item {
  background: var(--v659-card); border: 1px solid var(--v659-border);
  border-radius: var(--v659-radius); margin-bottom: 8px; overflow: hidden;
}
.v659-faq-q {
  width: 100%; text-align: left; padding: 12px 14px; background: transparent;
  border: none; color: #fff; font-size: 1.35rem; font-weight: 600;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
}
.v659-faq-q .v659-faq-ico { color: var(--v659-accent); font-size: 1.8rem; }
.v659-faq-a {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  padding: 0 14px; color: var(--v659-soft); font-size: 1.3rem;
}
.v659-faq-open .v659-faq-a { max-height: 320px; padding: 0 14px 12px; }

/* ---------- App download CTA ---------- */
.v659-app-cta {
  background: linear-gradient(135deg, var(--v659-primary), #2c5d80);
  border-radius: var(--v659-radius-lg); padding: 18px 16px;
  text-align: center; color: #fff; margin: 14px 0;
}
.v659-app-cta h3 { font-size: 1.6rem; margin-bottom: 4px; }
.v659-app-cta p { color: var(--v659-soft); font-size: 1.25rem; margin-bottom: 10px; }

/* ---------- Footer ---------- */
.v659-footer {
  background: #060606; border-top: 1px solid var(--v659-border);
  padding: 22px 14px 14px; margin-top: 18px;
}
.v659-footer-cols { display: grid; gap: 14px; margin-bottom: 16px; }
.v659-footer h4 {
  color: var(--v659-sky); font-size: 1.3rem; margin-bottom: 8px;
  text-transform: uppercase; letter-spacing: 0.4px;
}
.v659-footer ul { list-style: none; }
.v659-footer li { margin-bottom: 6px; }
.v659-footer a { color: var(--v659-light); font-size: 1.25rem; }
.v659-footer a:hover { color: var(--v659-accent); }
.v659-footer-bottom {
  text-align: center; padding-top: 14px; border-top: 1px solid var(--v659-border);
  color: var(--v659-soft); font-size: 1.15rem;
}
.v659-footer-brand { color: #fff; font-weight: 700; font-size: 1.4rem; margin-bottom: 6px; }
.v659-footer-promos {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0;
}
.v659-footer-promos .v659-btn { flex: 1 1 45%; font-size: 1.2rem; padding: 8px 12px; }

/* ---------- Mobile bottom nav ---------- */
.v659-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--v659-max-w); height: var(--v659-bottom-h);
  background: rgba(8, 8, 8, 0.98); backdrop-filter: blur(10px);
  border-top: 1px solid var(--v659-border);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000; padding: 4px 0;
}
.v659-bottom-nav-btn {
  flex: 1; background: transparent; border: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; min-height: 58px; min-width: 60px;
  color: var(--v659-soft); cursor: pointer; transition: color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}
.v659-bottom-nav-btn:active { transform: scale(0.9); }
.v659-bottom-nav-btn .v659-nav-ico { font-size: 2.2rem; line-height: 1; }
.v659-bottom-nav-btn .v659-nav-label { font-size: 1rem; }
.v659-bottom-nav-btn.v659-nav-current,
.v659-bottom-nav-btn:hover { color: var(--v659-accent); }
.v659-bottom-nav-btn.v659-nav-promo {
  background: linear-gradient(135deg, var(--v659-accent), #ff5e4e);
  color: #fff; border-radius: 50%; width: 52px; height: 52px;
  flex: 0 0 52px; margin-top: -18px; box-shadow: 0 4px 14px rgba(250, 128, 114, 0.4);
}
.v659-bottom-nav-btn.v659-nav-promo .v659-nav-ico { font-size: 2.4rem; }
.v659-bottom-nav-btn.v659-nav-promo .v659-nav-label { display: none; }

/* ---------- Utility ---------- */
.v659-hidden { display: none !important; }
.v659-text-center { text-align: center; }
.v659-mt-8 { margin-top: 8px; }
.v659-mt-16 { margin-top: 16px; }
.v659-mb-8 { margin-bottom: 8px; }
.v659-tag {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  background: rgba(135, 206, 235, 0.15); color: var(--v659-sky);
  font-size: 1.1rem; margin: 2px;
}

/* ---------- Desktop (>=769px) ---------- */
@media (min-width: 769px) {
  body { max-width: 768px; padding-bottom: 30px; }
  .v659-bottom-nav { display: none; }
  .v659-header { max-width: 768px; }
  .v659-game-grid { grid-template-columns: repeat(5, 1fr); }
  .v659-feature-grid { grid-template-columns: repeat(3, 1fr); }
  .v659-footer-cols { grid-template-columns: repeat(3, 1fr); }
  .v659-carousel-slide img { height: 320px; }
}
