/* ==========================================================================
   ninong.homes — Core Base Styles
   Prefix: v369-
   Palette: #F8F8FF (text/light) | #34495E (background/dark)
   Mobile-first, max 430px primary, responsive up to desktop.
   ========================================================================== */

:root {
  --v369-bg: #34495E;
  --v369-bg-deep: #2c3e50;
  --v369-bg-soft: #3d5673;
  --v369-text: #F8F8FF;
  --v369-text-dim: #c9d3e0;
  --v369-accent: #f5b301;
  --v369-accent-2: #ff6b35;
  --v369-accent-3: #2ecc71;
  --v369-card: #3d5673;
  --v369-card-hover: #476385;
  --v369-border: rgba(248, 248, 255, 0.12);
  --v369-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  --v369-radius: 14px;
  --v369-radius-sm: 10px;
  --v369-header-h: 60px;
  --v369-bottom-h: 64px;
  --v369-max: 430px;
}

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

html { font-size: 62.5%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Segoe UI", "Helvetica Neue", Roboto, system-ui, -apple-system, sans-serif;
  background: var(--v369-bg);
  color: var(--v369-text);
  line-height: 1.5;
  font-size: 1.6rem;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--v369-accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--v369-accent-2); }

/* ============================ Layout ============================ */
.v369-wrap {
  width: 100%;
  max-width: var(--v369-max);
  margin: 0 auto;
  padding: 0 12px;
}

main.v369-main {
  padding-top: calc(var(--v369-header-h) + 6px);
  padding-bottom: calc(var(--v369-bottom-h) + 20px);
}

@media (min-width: 769px) {
  main.v369-main { padding-bottom: 30px; }
}

section { margin: 22px 0; }

/* ============================ Header ============================ */
.v369-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--v369-header-h);
  background: linear-gradient(180deg, #2c3e50 0%, #34495E 100%);
  border-bottom: 1px solid var(--v369-border);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
}

.v369-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  gap: 10px;
}

.v369-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 2.1rem; font-weight: 800;
  color: var(--v369-text);
  letter-spacing: .5px;
}
.v369-logo .v369-logo-badge {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--v369-accent), var(--v369-accent-2));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #2c3e50; font-weight: 800; font-size: 1.6rem;
}
.v369-logo span { color: var(--v369-accent); }

.v369-head-actions { display: flex; align-items: center; gap: 8px; }

.v369-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: none;
  border-radius: 30px;
  padding: 9px 18px;
  font-size: 1.4rem; font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  font-family: inherit;
  min-height: 36px;
  white-space: nowrap;
}
.v369-btn:active { transform: scale(.96); }
.v369-btn-primary {
  background: linear-gradient(135deg, var(--v369-accent), var(--v369-accent-2));
  color: #2c3e50;
  box-shadow: 0 3px 10px rgba(245,179,1,.35);
}
.v369-btn-ghost {
  background: transparent;
  color: var(--v369-text);
  border: 1.5px solid rgba(248,248,255,.4);
}
.v369-btn-block { width: 100%; padding: 12px 18px; font-size: 1.5rem; }

.v369-menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: transparent; border: none; color: var(--v369-text);
  font-size: 2.2rem; cursor: pointer;
}

/* ============================ Top nav (desktop) ============================ */
.v369-topnav {
  display: none;
  gap: 18px;
  margin: 0 8px;
  flex: 1;
  justify-content: center;
}
.v369-topnav a {
  color: var(--v369-text-dim);
  font-size: 1.4rem;
  font-weight: 600;
  padding: 6px 4px;
  border-bottom: 2px solid transparent;
}
.v369-topnav a:hover { color: var(--v369-accent); border-bottom-color: var(--v369-accent); }

/* ============================ Mobile slide menu ============================ */
.v369-mobile-menu {
  position: fixed;
  top: 0; right: -85%;
  width: 85%; max-width: 340px;
  height: 100vh;
  background: var(--v369-bg-deep);
  z-index: 9999;
  padding: 22px 18px;
  overflow-y: auto;
  transition: right .28s ease;
  box-shadow: -6px 0 24px rgba(0,0,0,.4);
}
.v369-mobile-menu.v369-open { right: 0; }
.v369-mobile-menu .v369-mm-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--v369-border);
}
.v369-mobile-menu h3 { font-size: 1.7rem; color: var(--v369-accent); }
.v369-mm-close {
  width: 34px; height: 34px;
  background: transparent; border: none; color: var(--v369-text);
  font-size: 2rem; cursor: pointer;
}
.v369-mobile-menu nav { display: flex; flex-direction: column; gap: 4px; }
.v369-mobile-menu nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 12px;
  border-radius: var(--v369-radius-sm);
  color: var(--v369-text);
  font-size: 1.5rem; font-weight: 600;
}
.v369-mobile-menu nav a:hover { background: var(--v369-card); color: var(--v369-accent); }
.v369-mobile-menu nav a i { color: var(--v369-accent); font-size: 1.8rem; width: 22px; text-align: center; }

.v369-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 9998;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.v369-overlay.v369-open { opacity: 1; pointer-events: auto; }

/* ============================ Hero ============================ */
.v369-hero {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  margin: 14px 0 22px;
  background: linear-gradient(135deg, #2c3e50 0%, #3d5673 60%, #476385 100%);
  box-shadow: var(--v369-shadow);
}
.v369-hero-slides { display: flex; transition: transform .5s ease; }
.v369-hero-slide {
  flex: 0 0 100%;
  padding: 26px 20px;
  min-height: 220px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
}
.v369-hero-slide::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(245,179,1,.25), transparent 50%);
  pointer-events: none;
}
.v369-hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(245,179,1,.15);
  border: 1px solid rgba(245,179,1,.4);
  color: var(--v369-accent);
  padding: 4px 12px; border-radius: 30px;
  font-size: 1.2rem; font-weight: 700;
  width: fit-content;
  margin-bottom: 10px;
}
.v369-hero-slide h1, .v369-hero-slide h2 {
  font-size: 2.6rem; line-height: 1.2;
  margin-bottom: 8px;
  color: var(--v369-text);
}
.v369-hero-slide h1 span, .v369-hero-slide h2 span { color: var(--v369-accent); }
.v369-hero-slide p {
  color: var(--v369-text-dim);
  font-size: 1.4rem;
  margin-bottom: 14px;
  max-width: 90%;
}
.v369-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 2; }

.v369-hero-dots {
  display: flex; justify-content: center; gap: 6px;
  padding: 10px 0 14px;
}
.v369-hero-dots button {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(248,248,255,.3);
  border: none; cursor: pointer; padding: 0;
  transition: all .2s ease;
}
.v369-hero-dots button.v369-active {
  background: var(--v369-accent); width: 22px; border-radius: 4px;
}

/* ============================ Section title ============================ */
.v369-sec-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 24px 0 12px;
  gap: 10px;
}
.v369-sec-head h2 {
  font-size: 1.9rem; font-weight: 800;
  display: flex; align-items: center; gap: 8px;
  color: var(--v369-text);
}
.v369-sec-head h2 i { color: var(--v369-accent); }
.v369-sec-head a { font-size: 1.3rem; font-weight: 600; color: var(--v369-text-dim); }
.v369-sec-head a:hover { color: var(--v369-accent); }

/* ============================ Category chips ============================ */
.v369-chips {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 4px 2px 12px;
  scrollbar-width: none;
}
.v369-chips::-webkit-scrollbar { display: none; }
.v369-chip {
  flex: 0 0 auto;
  padding: 8px 16px;
  border-radius: 30px;
  background: var(--v369-card);
  color: var(--v369-text-dim);
  font-size: 1.3rem; font-weight: 600;
  border: 1px solid var(--v369-border);
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.v369-chip.v369-active, .v369-chip:hover {
  background: linear-gradient(135deg, var(--v369-accent), var(--v369-accent-2));
  color: #2c3e50; border-color: transparent;
}

/* ============================ Game grid ============================ */
.v369-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (min-width: 600px) { .v369-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; } }
@media (min-width: 992px) { .v369-grid { grid-template-columns: repeat(6, 1fr); } }

.v369-card {
  position: relative;
  border-radius: var(--v369-radius-sm);
  overflow: hidden;
  background: var(--v369-card);
  border: 1px solid var(--v369-border);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
  aspect-ratio: 3 / 4;
  display: flex; flex-direction: column;
}
.v369-card:hover, .v369-card:active {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,.4);
  border-color: var(--v369-accent);
}
.v369-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.v369-card:hover img { transform: scale(1.05); }
.v369-card .v369-card-name {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 14px 8px 6px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.85));
  font-size: 1.2rem; font-weight: 600;
  text-align: center;
  color: var(--v369-text);
}
.v369-card .v369-card-tag {
  position: absolute; top: 6px; left: 6px;
  background: var(--v369-accent-2);
  color: #fff; font-size: 1rem; font-weight: 700;
  padding: 2px 6px; border-radius: 4px;
  text-transform: uppercase;
}
.v369-card .v369-card-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(44,62,80,.55);
  opacity: 0; transition: opacity .25s ease;
}
.v369-card:hover .v369-card-play { opacity: 1; }
.v369-card-play span {
  background: linear-gradient(135deg, var(--v369-accent), var(--v369-accent-2));
  color: #2c3e50; font-weight: 700; font-size: 1.3rem;
  padding: 8px 18px; border-radius: 30px;
}

/* ============================ Featured ============================ */
.v369-featured {
  background: var(--v369-bg-deep);
  border-radius: var(--v369-radius);
  padding: 18px;
  border: 1px solid var(--v369-border);
  box-shadow: var(--v369-shadow);
}
.v369-feature-item {
  display: flex; gap: 12px; align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed var(--v369-border);
}
.v369-feature-item:last-child { border-bottom: none; }
.v369-feature-icon {
  flex: 0 0 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--v369-accent), var(--v369-accent-2));
  display: flex; align-items: center; justify-content: center;
  color: #2c3e50; font-size: 2rem;
}
.v369-feature-text h4 { font-size: 1.55rem; margin-bottom: 2px; color: var(--v369-text); }
.v369-feature-text p { font-size: 1.3rem; color: var(--v369-text-dim); }

/* ============================ Promo banner ============================ */
.v369-promo-banner {
  background: linear-gradient(135deg, #f5b301, #ff6b35);
  border-radius: var(--v369-radius);
  padding: 22px 18px;
  color: #2c3e50;
  text-align: center;
  box-shadow: var(--v369-shadow);
  margin: 22px 0;
}
.v369-promo-banner h3 { font-size: 2.1rem; margin-bottom: 6px; }
.v369-promo-banner p { font-size: 1.35rem; margin-bottom: 12px; font-weight: 600; }
.v369-promo-banner .v369-btn { background: #2c3e50; color: var(--v369-accent); }

/* ============================ SEO content ============================ */
.v369-seo {
  background: var(--v369-bg-deep);
  border-radius: var(--v369-radius);
  padding: 18px;
  border: 1px solid var(--v369-border);
}
.v369-seo h2 { font-size: 1.9rem; margin-bottom: 10px; color: var(--v369-accent); }
.v369-seo h3 { font-size: 1.6rem; margin: 16px 0 6px; color: var(--v369-text); }
.v369-seo p { font-size: 1.4rem; color: var(--v369-text-dim); margin-bottom: 10px; }
.v369-seo ul { padding-left: 20px; margin-bottom: 10px; }
.v36369-seo li, .v369-seo li { font-size: 1.4rem; color: var(--v369-text-dim); margin-bottom: 6px; }
.v369-seo a { color: var(--v369-accent); font-weight: 600; }

/* ============================ FAQ ============================ */
.v369-faq-item {
  border-bottom: 1px solid var(--v369-border);
  padding: 12px 0;
}
.v369-faq-q {
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer;
  font-size: 1.5rem; font-weight: 700;
  color: var(--v369-text);
  gap: 10px;
}
.v369-faq-q .v369-faq-ico { color: var(--v369-accent); transition: transform .25s; }
.v369-faq-item.v369-open .v369-faq-ico { transform: rotate(45deg); }
.v369-faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  font-size: 1.4rem; color: var(--v369-text-dim);
}
.v369-faq-item.v369-open .v369-faq-a { max-height: 320px; padding-top: 8px; }

/* ============================ Footer ============================ */
.v369-footer {
  background: var(--v369-bg-deep);
  padding: 26px 0 30px;
  border-top: 1px solid var(--v369-border);
  margin-top: 30px;
}
.v369-footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 14px;
}
.v369-footer-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
@media (min-width: 768px) {
  .v369-footer-grid { grid-template-columns: repeat(4, 1fr); }
}
.v369-footer h4 { color: var(--v369-accent); font-size: 1.5rem; margin-bottom: 10px; }
.v369-footer ul { list-style: none; }
.v369-footer li { margin-bottom: 6px; }
.v369-footer a { color: var(--v369-text-dim); font-size: 1.35rem; }
.v369-footer a:hover { color: var(--v369-accent); }
.v369-footer p { color: var(--v369-text-dim); font-size: 1.3rem; }
.v369-footer-bottom {
  text-align: center; margin-top: 22px;
  padding-top: 14px; border-top: 1px solid var(--v369-border);
  font-size: 1.25rem; color: var(--v369-text-dim);
}
.v369-pay-list { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.v369-pay-list span {
  background: var(--v369-card); padding: 4px 10px; border-radius: 6px;
  font-size: 1.2rem; color: var(--v369-text); font-weight: 600;
}

/* ============================ Bottom nav ============================ */
.v369-bottom {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--v369-bottom-h);
  background: linear-gradient(180deg, #3d5673 0%, #2c3e50 100%);
  border-top: 1px solid var(--v369-border);
  display: flex; justify-content: space-around; align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -3px 12px rgba(0,0,0,.3);
}
.v369-bottom-btn {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  background: transparent; border: none;
  color: var(--v369-text-dim);
  font-size: 1.1rem; font-weight: 600;
  cursor: pointer;
  min-width: 60px; min-height: 60px;
  padding: 4px 2px;
  transition: color .2s ease;
  font-family: inherit;
}
.v369-bottom-btn i { font-size: 2rem; }
.v369-bottom-btn .material-icons { font-size: 2.2rem; }
.v369-bottom-btn:hover, .v369-bottom-btn.v369-active { color: var(--v369-accent); }
.v369-bottom-btn.v369-active i { transform: translateY(-2px); transition: transform .2s; }
.v369-bottom-btn.v369-promo {
  color: var(--v369-accent);
  position: relative;
}
.v369-bottom-btn.v369-promo::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 34px; height: 3px; background: var(--v369-accent); border-radius: 0 0 4px 4px;
}

/* desktop hide bottom nav */
@media (min-width: 769px) {
  .v369-bottom { display: none; }
  .v369-menu-toggle { display: none; }
  .v369-topnav { display: flex; }
}

/* desktop responsive header */
@media (min-width: 769px) {
  .v369-header-inner { max-width: 1200px; padding: 0 22px; }
  .v369-wrap { max-width: 1200px; padding: 0 22px; }
  .v369-hero-slide h1, .v369-hero-slide h2 { font-size: 3.4rem; }
  .v369-grid { grid-template-columns: repeat(6, 1fr); }
}

/* small screens tweaks */
@media (max-width: 360px) {
  .v369-grid { grid-template-columns: repeat(2, 1fr); }
  .v369-hero-slide h1, .v369-hero-slide h2 { font-size: 2.2rem; }
  .v369-btn { padding: 8px 14px; font-size: 1.3rem; }
}

/* accessibility */
.v369-skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--v369-accent); color: #2c3e50;
  padding: 8px 16px; z-index: 10000;
}
.v369-skip:focus { left: 8px; top: 8px; }
