/* ============================================
   MAIN STYLESHEET - Luxurious Dark Crimson Theme
   Unique design: Deep crimson + gold accents
   Mobile-first responsive design
   ============================================ */

/* === CSS Variables === */
:root {
  --primary: #8B0000;
  --primary-light: #C41E3A;
  --primary-dark: #4A0000;
  --accent: #D4AF37;
  --accent-light: #F0D060;
  --accent-dark: #A08020;
  --bg-dark: #0A0510;
  --bg-card: #150A1E;
  --bg-section: #0F0818;
  --bg-alt: #1A0D28;
  --text-main: #E8E0F0;
  --text-muted: #9A8FB0;
  --text-bright: #FFFFFF;
  --border: #2A1A3A;
  --success: #28A745;
  --warning: #FFC107;
  --danger: #DC3545;
  --shadow: 0 4px 24px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 20px rgba(212,175,55,0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-heading: 'Noto Serif SC', 'SimSun', serif;
  --max-width: 1280px;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-main);
  background: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; border: 0; }
a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-light); }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: var(--text-bright); line-height: 1.3; }

/* === Layout === */
.wrapper { max-width: var(--max-width); margin: 0 auto; padding: 0 16px; }
.section-block { padding: 48px 0; }
.section-block:nth-child(even) { background: var(--bg-alt); }
.section-title {
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: 36px;
  position: relative;
  padding-bottom: 16px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
  border-radius: 2px;
}

/* === Header / Navigation (NOT sticky) === */
.site-header {
  background: linear-gradient(135deg, var(--bg-dark), var(--primary-dark));
  border-bottom: 2px solid var(--accent-dark);
  position: relative;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.site-logo img { height: 48px; width: auto; }
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-size: 1.5rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.main-nav ul {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.main-nav a {
  display: block;
  padding: 8px 14px;
  color: var(--text-main);
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active {
  background: var(--primary);
  color: var(--accent);
}

/* === Mobile Nav === */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 2px solid var(--accent-dark);
    padding: 12px;
    z-index: 99;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { padding: 12px 16px; font-size: 1rem; }
}

/* === Breadcrumb === */
.breadcrumb {
  padding: 12px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--accent); }
.breadcrumb span { margin: 0 6px; }

/* === Hero Section === */
.hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--primary-dark), var(--bg-dark));
  min-height: 420px;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 60px 20px;
  width: 100%;
}
.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.8);
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-content p {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 24px;
  color: var(--text-main);
}

/* === CTA Button === */
.cta-btn {
  display: inline-block;
  padding: 14px 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--accent) !important;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50px;
  border: 2px solid var(--accent);
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: var(--shadow-glow);
}
.cta-btn:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--bg-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(212,175,55,0.3);
}

/* === Video Section === */
.video-module {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.video-module img { width: 100%; display: block; }
.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(212,175,55,0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.video-play-btn::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 16px 0 16px 28px;
  border-color: transparent transparent transparent var(--bg-dark);
  margin-left: 4px;
}
.video-module:hover .video-play-btn {
  background: var(--accent);
  transform: translate(-50%, -50%) scale(1.1);
}
.video-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.video-overlay.active { display: flex; }
.video-overlay video {
  max-width: 90%;
  max-height: 80vh;
  border-radius: var(--radius);
}
.video-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2.5rem;
  color: var(--accent);
  cursor: pointer;
  background: none;
  border: none;
  z-index: 10000;
}

/* === Game Cards Grid === */
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 768px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .games-grid { grid-template-columns: 1fr; }
}
.game-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
}
.game-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
  border-color: var(--accent-dark);
}
.game-card figure { position: relative; overflow: hidden; }
.game-card figure img { transition: transform 0.5s ease; }
.game-card:hover figure img { transform: scale(1.08); }
.game-card figcaption {
  padding: 16px;
}
.game-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.game-card p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 12px; }
.game-card .card-cta {
  display: inline-block;
  padding: 8px 20px;
  background: var(--primary);
  color: var(--accent);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--accent-dark);
}
.game-card .card-cta:hover {
  background: var(--accent);
  color: var(--bg-dark);
}

/* === Tournament Section === */
.tournament-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.tournament-item {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.tournament-item:hover {
  border-color: var(--accent-dark);
  box-shadow: var(--shadow-glow);
}
.tournament-item figure img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.tournament-info { padding: 20px; }
.tournament-info h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--accent); }
.tournament-info p { font-size: 0.9rem; color: var(--text-muted); }
.tournament-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary);
  color: var(--accent);
  border-radius: 20px;
  font-size: 0.75rem;
  margin-top: 10px;
}

/* === Article Cards === */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.article-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.article-card figure img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.article-card .article-body { padding: 16px; }
.article-card h3 { font-size: 1rem; margin-bottom: 8px; }
.article-card .article-excerpt { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 10px; }
.article-card .read-more { color: var(--accent); font-size: 0.85rem; font-weight: 600; }

/* === Reviews === */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.review-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
}
.review-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.review-header img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--accent-dark);
}
.review-meta h4 { font-size: 0.95rem; color: var(--accent); }
.review-meta .review-info { font-size: 0.78rem; color: var(--text-muted); }
.review-stars { color: var(--accent); font-size: 1rem; margin-bottom: 10px; }
.review-text { font-size: 0.9rem; color: var(--text-main); line-height: 1.7; }
.review-date { font-size: 0.78rem; color: var(--text-muted); margin-top: 10px; }

/* === FAQ === */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-question {
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--text-bright);
  transition: var(--transition);
}
.faq-question:hover { background: rgba(212,175,55,0.05); }
.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--accent);
  transition: var(--transition);
  flex-shrink: 0;
  margin-left: 12px;
}
.faq-item.open .faq-question::after { content: '−'; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer-inner {
  padding: 0 20px 20px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.8;
}

/* === Payment Section === */
.payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
.payment-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  width: 140px;
  transition: var(--transition);
}
.payment-item:hover { border-color: var(--accent-dark); }
.payment-item img { width: 80px; height: 48px; object-fit: contain; margin: 0 auto 8px; }
.payment-item span { font-size: 0.8rem; color: var(--text-muted); }

/* === License Section === */
.license-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  align-items: center;
}
.license-card {
  background: var(--bg-card);
  border: 1px solid var(--accent-dark);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  max-width: 380px;
}
.license-card img { max-width: 200px; margin: 0 auto 16px; }
.license-card h3 { color: var(--accent); margin-bottom: 10px; }
.license-card p { font-size: 0.88rem; color: var(--text-muted); }

/* === Support Section === */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.support-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: var(--transition);
}
.support-card:hover { border-color: var(--accent-dark); transform: translateY(-3px); }
.support-card img { width: 80px; height: 80px; margin: 0 auto 14px; border-radius: 50%; }
.support-card h4 { color: var(--accent); margin-bottom: 6px; }
.support-card p { font-size: 0.85rem; color: var(--text-muted); }

/* === About Section === */
.about-content {
  max-width: 900px;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.9;
}
.about-content h3 {
  color: var(--accent);
  margin: 28px 0 14px;
  font-size: 1.25rem;
}
.about-content p { margin-bottom: 16px; color: var(--text-main); }

/* === Author Box === */
.author-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 30px 0;
}
.author-box img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid var(--accent-dark);
  flex-shrink: 0;
}
.author-info h4 { color: var(--accent); margin-bottom: 4px; }
.author-info .author-title { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 8px; }
.author-info p { font-size: 0.88rem; color: var(--text-main); }

/* === Recharge Activity === */
.recharge-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 0 auto;
  max-width: 900px;
}
.recharge-banner img { width: 100%; }
.recharge-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.4);
  text-align: center;
  padding: 20px;
}
.recharge-overlay h3 { font-size: 1.8rem; color: var(--accent); margin-bottom: 10px; }
.recharge-overlay p { font-size: 1.1rem; color: var(--text-main); margin-bottom: 20px; }

/* === Responsible Gaming === */
.responsible-section {
  background: var(--bg-card);
  border: 1px solid var(--danger);
  border-radius: var(--radius);
  padding: 30px;
  max-width: 800px;
  margin: 0 auto;
}
.responsible-section h3 { color: var(--danger); margin-bottom: 16px; }
.responsible-section p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 10px; }
.responsible-section ul { padding-left: 20px; }
.responsible-section li {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  position: relative;
  padding-left: 16px;
}
.responsible-section li::before {
  content: '•';
  color: var(--danger);
  position: absolute;
  left: 0;
}

/* === APP Download Page === */
.app-hero {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(160deg, var(--primary-dark), var(--bg-dark));
}
.app-hero h1 { color: var(--accent); margin-bottom: 16px; }
.app-preview-img { max-width: 300px; margin: 30px auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.download-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin: 24px 0; }
.download-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
}
.download-btn.android { background: #3DDC84; color: #000; }
.download-btn.ios { background: #333; color: #fff; border: 1px solid #555; }
.download-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.qr-code { max-width: 200px; margin: 20px auto; border-radius: var(--radius-sm); }

/* === Inner Page Content === */
.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 16px;
}
.page-content h1 { font-size: 2rem; margin-bottom: 20px; color: var(--accent); }
.page-content h2 { font-size: 1.5rem; margin: 32px 0 16px; color: var(--text-bright); }
.page-content h3 { font-size: 1.2rem; margin: 24px 0 12px; color: var(--accent); }
.page-content p { margin-bottom: 16px; font-size: 0.95rem; line-height: 1.85; }
.page-content figure {
  margin: 24px 0;
  border-radius: var(--radius);
  overflow: hidden;
}
.page-content figcaption {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 8px;
  background: var(--bg-card);
}
.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9rem;
}
.page-content th, .page-content td {
  padding: 12px 16px;
  border: 1px solid var(--border);
  text-align: left;
}
.page-content th {
  background: var(--primary-dark);
  color: var(--accent);
  font-weight: 600;
}
.page-content td { background: var(--bg-card); }

/* === Footer === */
.site-footer {
  background: linear-gradient(180deg, var(--bg-card), var(--bg-dark));
  border-top: 2px solid var(--accent-dark);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}
.footer-col h4 {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.88rem;
  padding: 4px 0;
  transition: var(--transition);
}
.footer-col a:hover { color: var(--accent); padding-left: 4px; }
.footer-col p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; }
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.footer-social img { width: 36px; height: 36px; border-radius: 50%; transition: var(--transition); }
.footer-social img:hover { transform: scale(1.15); }
.footer-payment {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.footer-payment img { height: 32px; width: auto; border-radius: 4px; }
.footer-bottom {
  text-align: center;
  padding: 24px 16px 0;
  margin-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-bottom .age-badge { display: inline-block; margin: 10px 0; }
.footer-bottom .age-badge img { width: 50px; height: 50px; display: inline-block; }

/* === Animations === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp 0.6s ease forwards; }

/* === Utility === */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }

/* === Mobile Optimizations === */
@media (max-width: 600px) {
  html { font-size: 15px; }
  .hero-content h1 { font-size: 1.8rem; }
  .hero-content p { font-size: 1rem; }
  .section-title { font-size: 1.4rem; }
  .section-block { padding: 32px 0; }
  .games-grid { grid-template-columns: 1fr; gap: 14px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .tournament-list { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .author-box { flex-direction: column; align-items: center; text-align: center; }
  .page-content h1 { font-size: 1.5rem; }
  .recharge-overlay h3 { font-size: 1.3rem; }
}

@media (max-width: 380px) {
  .footer-grid { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .download-btns { flex-direction: column; align-items: center; }
}
