/* =============================================
   V3 GAME – MAIN STYLESHEET
   Site: v3game.site
   ============================================= */

/* ============================
   COLOR TOKENS – WHITE THEME (WCAG AA/AAA COMPLIANT)
   ============================ */
:root {
  --primary:       #0052cc;
  --primary-dark:  #003d99;
  --accent:        #F2B90D;
  --accent-dark:   #92400E;

  --page-bg:       #F5F7FA;
  --card-bg:       #FFFFFF;
  --header-bg:     #FFFFFF;
  --header-border: #E2E8F0;
  --footer-bg:     #1E2A3A;
  --footer-text:   #CBD5E1;

  --text-dark:     #0F172A;
  --text-body:     #334155;
  --text-muted:    #475569;
  --border:        #CBD5E1;

  --red:           #991B1B;
  --link:          #0043b5;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size-adjust: 0.52;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-body);
  background-color: var(--page-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--link); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
p { margin-bottom: 1.5em; color: var(--text-body); }
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.3; color: var(--text-dark); }

/* Ensure links within text blocks do not rely solely on color */
p a,
li a,
td a,
h1 a,
h2 a,
h3 a,
h4 a,
.faq-body a,
.disclaimer-box a,
.above-header a,
.breadcrumb a {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

.main-nav a,
.mobile-nav a,
.footer-nav a,
.site-logo a,
.btn-primary,
.btn-gold,
.btn-outline-app,
.btn-dl-main,
.btn-dl-apk,
.quick-link-tag {
  text-decoration: none !important;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ============================
   ABOVE-HEADER STRIP
   ============================ */
.above-header {
  background-color: #0043b5;
  padding: 8px 20px;
  text-align: center;
}
.above-header p {
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}
.above-header a { color: #ffffff; font-weight: 700; text-decoration: underline; }

/* ============================
   HEADER
   ============================ */
.main-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 74px;
}

.site-logo img { width: 180px; max-width: 180px; }

/* Desktop nav */
.main-nav ul { display: flex; list-style: none; gap: 4px; align-items: center; }
.main-nav ul li a {
  display: block;
  padding: 8px 14px;
  color: var(--text-dark);
  font-size: 15px;
  font-weight: 500;
  border-radius: 6px;
  transition: background .15s, color .15s;
}
.main-nav ul li a:hover,
.main-nav ul li.active > a {
  background: var(--page-bg);
  color: var(--primary);
}

/* CTA Button */
.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  padding: 12px 24px;
  transition: background .2s, box-shadow .2s;
  box-shadow: 0 2px 8px rgba(0,102,255,0.25);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(0,102,255,0.35);
}

.btn-gold {
  display: inline-block;
  background: var(--accent);
  color: #000 !important;
  font-size: 16px;
  font-weight: 700;
  border-radius: 8px;
  padding: 15px 28px;
  text-align: center;
  transition: background .2s, box-shadow .2s;
  box-shadow: 0 2px 8px rgba(242,185,13,0.3);
}
.btn-gold:hover {
  background: var(--accent-dark);
  color: #000 !important;
}

/* Mobile toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-dark);
  font-size: 22px;
  width: 40px; height: 40px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; padding: 10px 20px 16px; }
.mobile-nav ul li a {
  display: block;
  padding: 11px 0;
  color: var(--text-dark);
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.mobile-nav ul li:last-child a { border-bottom: none; }
.mobile-nav ul li a:hover { color: var(--primary); }

/* ============================
   DOWNLOAD HERO STRIP
   ============================ */
.hero-strip {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding: 28px 20px;
}
.hero-strip-inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.hero-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 100%;
}

.btn-outline-app {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #F0F4FF;
  border: 2px solid #0052cc;
  color: #0043b5 !important;
  font-size: 15px;
  font-weight: 700;
  border-radius: 8px;
  padding: 13px 20px;
  transition: background .2s;
  text-decoration: none !important;
}
.btn-outline-app:hover { background: #dce8ff; color: #003399 !important; }

/* ============================
   MAIN CONTENT AREA
   ============================ */
.page-body { background: var(--page-bg); display: block; }

.content-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 20px;
}

.section-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  margin-bottom: 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

/* Gold h1 */
.heading-gold {
  font-size: 2em;
  font-weight: 800;
  color: #92400E !important;
  text-align: center;
  margin-bottom: 22px;
  letter-spacing: -0.3px;
}

.section-title {
  font-size: 1.55em;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

.section-title-lg {
  font-size: 1.75em;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.img-center {
  display: block;
  margin: 0 auto 24px;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* Steps list */
.steps-list {
  list-style: none;
  padding: 0;
  counter-reset: steps;
}
.steps-list li {
  counter-increment: steps;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.6;
}
.steps-list li:last-child { border-bottom: none; }
.steps-list li::before {
  content: counter(steps);
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  min-width: 26px; height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================
   INVITE CODE TABLE
   ============================ */
.invite-table-wrap { overflow-x: auto; margin-bottom: 8px; }
.invite-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.invite-table th,
.invite-table td {
  border: 1px solid var(--border);
  padding: 13px 18px;
  text-align: left;
  color: var(--text-body);
}
.invite-table thead tr { background: var(--page-bg); }
.invite-table th { font-weight: 700; color: var(--text-dark); }
.invite-table tbody tr:nth-child(even) td { background: #F9FAFB; }
.invite-code-val {
  background: #FEF3C7;
  color: #78350F;
  font-weight: 700;
  font-size: 16px;
  border-radius: 4px;
  padding: 2px 8px;
  display: inline-block;
}

/* ============================
   FAQ
   ============================ */
.faq-list { display: flex; flex-direction: column; gap: 10px; }

details.faq-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg);
  overflow: hidden;
}
details.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  user-select: none;
  gap: 10px;
  transition: background .15s;
}
details.faq-item summary:hover { background: var(--page-bg); }
details.faq-item summary::-webkit-details-marker { display: none; }

.faq-arrow {
  font-size: 14px;
  color: var(--text-muted);
  transition: transform .3s;
  flex-shrink: 0;
}
details.faq-item[open] .faq-arrow { transform: rotate(180deg); }
details.faq-item[open] summary { background: var(--page-bg); color: var(--primary); }

.faq-body {
  padding: 16px 20px;
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.75;
  border-top: 1px solid var(--border);
}

/* ============================
   DISCLAIMER
   ============================ */
.disclaimer-box {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 14px;
  color: #991B1B;
  line-height: 1.7;
}
.disclaimer-box strong { color: #7F1D1D; }

/* ============================
   FOOTER
   ============================ */
.site-footer {
  background: var(--footer-bg);
  border-top: 3px solid var(--primary);
  padding: 28px 20px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.footer-copyright { color: var(--footer-text); font-size: 15px; }
.footer-nav ul { display: flex; list-style: none; flex-wrap: wrap; justify-content: center; gap: 4px; }
.footer-nav ul li a {
  display: inline-block;
  padding: 5px 16px;
  color: var(--footer-text);
  font-size: 14px;
  border-radius: 4px;
  transition: background .15s, color .15s;
}
.footer-nav ul li a:hover { background: rgba(255,255,255,0.08); color: #fff; }

/* ============================
   SCROLL TOP
   ============================ */
#scroll-top {
  display: none;
  position: fixed;
  bottom: 28px; right: 28px;
  width: 40px; height: 40px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  box-shadow: 0 4px 14px rgba(0,102,255,0.35);
  z-index: 999;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
#scroll-top.visible { display: flex; }
#scroll-top:hover { background: var(--primary-dark); }

/* ============================
   PAGE HERO (inner pages)
   ============================ */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0043b5 100%);
  padding: 52px 20px;
  text-align: center;
}
.page-hero h1 { font-size: 2.2em; font-weight: 800; color: #fff; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.85); font-size: 1.05em; max-width: 520px; margin: 0 auto; }
.breadcrumb {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-top: 16px; font-size: 14px; color: rgba(255,255,255,0.7);
}
.breadcrumb a { color: rgba(255,255,255,0.9); font-weight: 500; }
.breadcrumb a:hover { color: #fff; }

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .mobile-toggle { display: flex; }
  .above-header { display: none; }
  .site-logo img { width: 140px; }
  .section-card { padding: 22px 18px; }
}

@media (max-width: 560px) {
  .hero-btn-row { grid-template-columns: 1fr; }
  .site-logo img { width: 110px; }
  .heading-gold { font-size: 1.5em; }
  .section-title-lg { font-size: 1.35em; }
  .invite-table th, .invite-table td { padding: 10px 12px; font-size: 14px; }
}
