/* da ga layout CSS - prefix: v613- */
/* English comments only. Palette: #A9A9A9 | #FAFAFA | #3C3C3C | #DCDCDC | #2C3E50 */

:root {
  --v613-primary: #2C3E50;
  --v613-accent: #C0392B;
  --v613-gold: #E6B422;
  --v613-bg: #2C3E50;
  --v613-bg2: #3C3C3C;
  --v613-surface: #FAFAFA;
  --v613-text: #FAFAFA;
  --v613-text-dark: #3C3C3C;
  --v613-muted: #A9A9A9;
  --v613-border: #DCDCDC;
  --v613-radius: 10px;
}

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

html { font-size: 62.5%; }

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: var(--v613-bg);
  color: var(--v613-text);
  line-height: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

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

a { color: var(--v613-gold); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.v613-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #2C3E50 0%, #3C3C3C 100%);
  border-bottom: 2px solid var(--v613-gold);
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.v613-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--v613-text);
  font-weight: 700;
  font-size: 1.5rem;
}
.v613-brand img { width: 28px; height: 28px; border-radius: 6px; }
.v613-brand span { color: var(--v613-gold); }
.v613-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.v613-btn {
  border: none;
  border-radius: 20px;
  padding: 0.6rem 1.2rem;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 36px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.v613-btn:active { transform: scale(0.94); }
.v613-btn-register { background: var(--v613-gold); color: var(--v613-primary); }
.v613-btn-login { background: transparent; color: var(--v613-text); border: 1px solid var(--v613-gold); }
.v613-menu-btn {
  background: transparent;
  border: none;
  color: var(--v613-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0 0.4rem;
}

/* ---------- Mobile expandable menu ---------- */
.v613-mobile-menu {
  position: fixed;
  top: 0; right: -85%;
  width: 75%;
  height: 100%;
  background: var(--v613-bg2);
  z-index: 9999;
  padding: 2rem 1.4rem;
  transition: right 0.3s ease;
  overflow-y: auto;
}
.v613-mobile-menu.v613-menu-open { right: 0; }
.v613-mobile-menu h3 { color: var(--v613-gold); font-size: 1.4rem; margin: 1.2rem 0 0.6rem; }
.v613-mobile-menu a {
  display: block;
  padding: 0.7rem 0.4rem;
  border-bottom: 1px solid #4a4a4a;
  color: var(--v613-text);
  font-size: 1.3rem;
}
.v613-menu-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: transparent; border: none; color: var(--v613-text); font-size: 2rem; cursor: pointer;
}

/* ---------- Layout ---------- */
.v613-container { width: 100%; padding: 0 1rem; }
main { padding-bottom: 80px; }
.v613-section { padding: 1.6rem 1rem; }
.v613-section h2 {
  font-size: 1.8rem;
  color: var(--v613-gold);
  margin-bottom: 0.8rem;
  border-left: 4px solid var(--v613-gold);
  padding-left: 0.6rem;
}
.v613-section h3 { font-size: 1.4rem; color: var(--v613-text); margin: 1rem 0 0.5rem; }
.v613-section p { font-size: 1.3rem; color: #E8E8E8; margin-bottom: 0.8rem; }

/* ---------- Carousel ---------- */
.v613-carousel {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: var(--v613-radius);
  margin: 1rem 0;
}
.v613-carousel-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.v613-carousel-slide.v613-slide-active { opacity: 1; }
.v613-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.v613-carousel-dots {
  position: absolute;
  bottom: 6px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.v613-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(250,250,250,0.5); cursor: pointer;
}
.v613-carousel-dot.v613-dot-active { background: var(--v613-gold); }

/* ---------- Hero ---------- */
.v613-hero {
  text-align: center;
  padding: 1.4rem 1rem;
}
.v613-hero h1 {
  font-size: 2rem;
  color: var(--v613-gold);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}
.v613-hero p { font-size: 1.3rem; color: #E8E8E8; }
.v613-cta-row { display: flex; gap: 0.6rem; justify-content: center; margin-top: 1rem; }
.v613-cta-row .v613-btn { padding: 0.8rem 1.6rem; font-size: 1.4rem; }

/* ---------- Game grid ---------- */
.v613-cat-title {
  font-size: 1.5rem;
  color: var(--v613-gold);
  margin: 1.2rem 0 0.6rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.v613-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
.v613-card {
  background: var(--v613-bg2);
  border-radius: var(--v613-radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 1px solid #4a4a4a;
}
.v613-card:active { transform: scale(0.96); }
.v613-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.v613-card-name {
  font-size: 1.1rem;
  color: var(--v613-text);
  padding: 0.4rem 0.3rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Info / features blocks ---------- */
.v613-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}
.v613-info-box {
  background: var(--v613-bg2);
  border-radius: var(--v613-radius);
  padding: 0.9rem;
  border-left: 3px solid var(--v613-gold);
}
.v613-info-box h3 { font-size: 1.3rem; color: var(--v613-gold); margin-bottom: 0.3rem; }
.v613-info-box p { font-size: 1.2rem; color: #E0E0E0; }

.v613-list { list-style: none; padding-left: 0; }
.v613-list li { font-size: 1.3rem; color: #E8E8E8; padding: 0.4rem 0 0.4rem 1.4rem; position: relative; }
.v613-list li::before { content: "▸"; color: var(--v613-gold); position: absolute; left: 0; }

/* ---------- FAQ ---------- */
.v613-faq-item {
  background: var(--v613-bg2);
  border-radius: var(--v613-radius);
  padding: 0.8rem 1rem;
  margin-bottom: 0.6rem;
}
.v613-faq-item h3 { font-size: 1.3rem; color: var(--v613-gold); margin-bottom: 0.3rem; }
.v613-faq-item p { font-size: 1.2rem; color: #E0E0E0; }

/* ---------- Testimonials ---------- */
.v613-testimonial {
  background: var(--v613-bg2);
  border-radius: var(--v613-radius);
  padding: 1rem;
  margin-bottom: 0.6rem;
  border-left: 3px solid var(--v613-gold);
}
.v613-testimonial .v613-stars { color: var(--v613-gold); font-size: 1.2rem; }
.v613-testimonial p { font-size: 1.2rem; color: #E0E0E0; margin: 0.3rem 0; }
.v613-testimonial .v613-author { font-size: 1.1rem; color: var(--v613-muted); }

/* ---------- Payment / winners ---------- */
.v613-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.v613-chip {
  background: var(--v613-bg2);
  color: var(--v613-text);
  border: 1px solid var(--v613-gold);
  border-radius: 20px;
  padding: 0.4rem 0.9rem;
  font-size: 1.2rem;
}
.v613-winner {
  display: flex; justify-content: space-between;
  background: var(--v613-bg2);
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  margin-bottom: 0.4rem;
  font-size: 1.2rem;
}
.v613-winner span:last-child { color: var(--v613-gold); font-weight: 700; }

/* ---------- Footer ---------- */
.v613-footer {
  background: #243343;
  padding: 1.6rem 1rem 2rem;
  border-top: 2px solid var(--v613-gold);
}
.v613-footer p { font-size: 1.2rem; color: #C8C8C8; margin-bottom: 0.6rem; }
.v613-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.4rem 0.8rem;
  margin: 0.8rem 0;
}
.v613-footer-links a {
  font-size: 1.2rem;
  color: var(--v613-text);
  border: 1px solid #4a4a4a;
  border-radius: 16px;
  padding: 0.3rem 0.8rem;
}
.v613-footer-links a:hover { background: var(--v613-gold); color: var(--v613-primary); text-decoration: none; }
.v613-footer-copy { font-size: 1.1rem; color: var(--v613-muted); margin-top: 0.8rem; }

/* ---------- Bottom nav ---------- */
.v613-bottomnav {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 62px;
  background: linear-gradient(180deg, #3C3C3C 0%, #2C3E50 100%);
  border-top: 2px solid var(--v613-gold);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
}
.v613-bottomnav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--v613-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  font-size: 1rem;
  transition: color 0.15s ease, transform 0.15s ease;
}
.v613-bottomnav-btn .material-icons,
.v613-bottomnav-btn ion-icon,
.v613-bottomnav-btn i { font-size: 22px; }
.v613-bottomnav-btn:active { transform: scale(0.9); }
.v613-bottomnav-btn.v613-nav-active { color: var(--v613-gold); }
.v613-bottomnav-btn:hover { color: var(--v613-gold); }

/* Back to top */
.v613-top-btn {
  position: fixed;
  right: 14px; bottom: 76px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--v613-gold);
  color: var(--v613-primary);
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 999;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  .v613-bottomnav { display: none; }
  body { max-width: 768px; }
  main { padding-bottom: 20px; }
  .v613-grid { grid-template-columns: repeat(5, 1fr); }
  .v613-info-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}
