/* 13w-homes design - all classes prefixed with s767- */
/* English comments only. Mobile-first. Max width 430px. */

:root {
  --s767-primary: #2C3E50;
  --s767-accent: #FFEFD5;
  --s767-accent2: #FDF5E6;
  --s767-gray: #808080;
  --s767-gray2: #A9A9A9;
  --s767-bg: #1a2533;
  --s767-bg2: #243447;
  --s767-text: #FDF5E6;
  --s767-text-dim: #A9A9A9;
  --s767-gold: #F5C453;
  --s767-red: #E25555;
  --s767-green: #4CAF85;
  --s767-radius: 14px;
  --s767-shadow: 0 6px 20px rgba(0,0,0,0.35);
}

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

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

body {
  font-family: "Be Vietnam", "Segoe UI", Roboto, system-ui, sans-serif;
  background: var(--s767-bg);
  color: var(--s767-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ===== Header ===== */
.s767-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  background: linear-gradient(180deg, #2C3E50 0%, #1a2533 100%);
  z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1.2rem;
  border-bottom: 1px solid rgba(255,239,213,0.12);
}
.s767-logo { display: flex; align-items: center; gap: 0.6rem; }
.s767-logo img { width: 30px; height: 30px; border-radius: 8px; }
.s767-logo-text {
  font-size: 1.8rem; font-weight: 800; color: var(--s767-accent);
  letter-spacing: 0.5px;
}
.s767-logo-text span { color: var(--s767-gold); }
.s767-h-actions { display: flex; align-items: center; gap: 0.6rem; }
.s767-btn {
  border: none; border-radius: 10px; cursor: pointer;
  font-weight: 700; font-size: 1.3rem; padding: 0.7rem 1.2rem;
  min-height: 36px; transition: transform .15s ease, opacity .2s ease;
}
.s767-btn:active { transform: scale(0.94); }
.s767-btn-register {
  background: linear-gradient(135deg, #FFEFD5, #F5C453);
  color: #2C3E50; box-shadow: 0 3px 10px rgba(245,196,83,0.4);
}
.s767-btn-login {
  background: transparent; color: var(--s767-accent);
  border: 1.5px solid var(--s767-accent);
}
#s767-menu-toggle {
  background: transparent; border: none; color: var(--s767-accent);
  font-size: 2.2rem; cursor: pointer; min-width: 40px; min-height: 40px;
  display: flex; align-items: center; justify-content: center;
}

/* ===== Mobile menu ===== */
.s767-mobile-menu {
  position: fixed; top: 56px; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  background: #1a2533; z-index: 9999;
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
  border-bottom-left-radius: 14px; border-bottom-right-radius: 14px;
  box-shadow: var(--s767-shadow);
}
.s767-mobile-menu.s767-menu-open { max-height: 480px; }
.s767-mobile-menu a {
  display: block; padding: 1.3rem 1.6rem;
  color: var(--s767-text); border-bottom: 1px solid rgba(255,239,213,0.08);
  font-size: 1.45rem; font-weight: 600;
}
.s767-mobile-menu a:active { background: rgba(245,196,83,0.12); }

/* ===== Layout ===== */
.s767-main { padding-top: 56px; }
.s767-section { padding: 2.2rem 1.4rem; }
.s767-section h2 {
  font-size: 2rem; color: var(--s767-accent); margin-bottom: 1rem;
  font-weight: 800; line-height: 2.4rem;
}
.s767-section h3 {
  font-size: 1.65rem; color: var(--s767-gold); margin: 1rem 0 0.6rem;
  font-weight: 700;
}
.s767-section p { margin-bottom: 0.9rem; color: var(--s767-text-dim); }
.s767-eyebrow {
  display: inline-block; padding: 0.3rem 0.9rem;
  background: rgba(245,196,83,0.15); color: var(--s767-gold);
  border-radius: 20px; font-size: 1.15rem; font-weight: 700;
  margin-bottom: 0.8rem; letter-spacing: 0.5px;
}

/* ===== Carousel ===== */
.s767-carousel {
  position: relative; width: 100%; height: 200px;
  overflow: hidden; border-radius: 0;
}
.s767-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease;
}
.s767-slide.s767-slide-active { opacity: 1; }
.s767-slide img { width: 100%; height: 200px; object-fit: cover; }
.s767-slide-overlay {
  position: absolute; left: 1.2rem; bottom: 1.2rem; right: 1.2rem;
  background: linear-gradient(0deg, rgba(26,37,51,0.9), transparent);
  padding: 1.6rem 1rem 0.6rem; border-radius: 10px;
}
.s767-slide-overlay h3 { color: var(--s767-accent); font-size: 1.7rem; margin-bottom: 0.4rem; }
.s767-slide-overlay p { color: var(--s767-text-dim); font-size: 1.2rem; }
.s767-carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(26,37,51,0.6); color: var(--s767-accent);
  border: none; width: 36px; height: 36px; border-radius: 50%;
  font-size: 1.6rem; cursor: pointer; z-index: 5;
}
.s767-carousel-arrow.prev { left: 8px; }
.s767-carousel-arrow.next { right: 8px; }
.s767-dots { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 5; }
.s767-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,239,213,0.4); border: none; cursor: pointer; }
.s767-dot.s767-dot-active { background: var(--s767-gold); width: 20px; border-radius: 4px; }

/* ===== Hero / CTA ===== */
.s767-hero-cta {
  background: linear-gradient(135deg, #2C3E50, #243447);
  border-radius: var(--s767-radius); padding: 1.6rem; text-align: center;
  border: 1px solid rgba(245,196,83,0.25);
}
.s767-hero-cta h2 { margin-bottom: 0.8rem; }
.s767-cta-btn {
  display: inline-block; margin-top: 0.8rem; padding: 1.1rem 2rem;
  background: linear-gradient(135deg, #FFEFD5, #F5C453);
  color: #2C3E50; border-radius: 12px; font-weight: 800; font-size: 1.5rem;
  box-shadow: 0 4px 14px rgba(245,196,83,0.45); cursor: pointer;
}
.s767-text-link { color: var(--s767-gold); font-weight: 700; text-decoration: underline; }
.s767-text-link:hover { color: var(--s767-accent); }

/* ===== Game grid ===== */
.s767-cat-block { margin-bottom: 2.2rem; }
.s767-cat-title {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 1.7rem; color: var(--s767-accent); font-weight: 800;
  margin-bottom: 1rem; padding-bottom: 0.6rem;
  border-bottom: 2px solid rgba(245,196,83,0.3);
}
.s767-cat-title i { color: var(--s767-gold); }
.s767-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.s767-game-card {
  background: var(--s767-bg2); border-radius: 12px; overflow: hidden;
  cursor: pointer; transition: transform .15s ease;
  border: 1px solid rgba(255,239,213,0.06);
}
.s767-game-card:active { transform: scale(0.95); }
.s767-game-card img { width: 100%; height: 90px; object-fit: cover; }
.s767-game-name {
  font-size: 1.1rem; text-align: center; padding: 0.5rem 0.3rem;
  color: var(--s767-text); font-weight: 600; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}

/* ===== Info cards / modules ===== */
.s767-card {
  background: var(--s767-bg2); border-radius: var(--s767-radius);
  padding: 1.5rem; margin-bottom: 1.2rem;
  border: 1px solid rgba(255,239,213,0.06);
}
.s767-card h3 { margin-top: 0; }
.s767-card ul { padding-left: 1.4rem; }
.s767-card ul li { margin-bottom: 0.5rem; color: var(--s767-text-dim); }
.s767-card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
.s767-mini-card {
  background: rgba(255,239,213,0.05); border-radius: 10px; padding: 1rem;
  text-align: center;
}
.s767-mini-card i { font-size: 2.4rem; color: var(--s767-gold); margin-bottom: 0.4rem; }
.s767-mini-card h4 { font-size: 1.3rem; color: var(--s767-accent); margin-bottom: 0.3rem; }
.s767-mini-card p { font-size: 1.15rem; color: var(--s767-text-dim); margin: 0; }

/* ===== RTP table ===== */
.s767-rtp-table { width: 100%; border-collapse: collapse; font-size: 1.2rem; }
.s767-rtp-table th, .s767-rtp-table td {
  padding: 0.7rem 0.5rem; text-align: left;
  border-bottom: 1px solid rgba(255,239,213,0.08);
}
.s767-rtp-table th { color: var(--s767-gold); font-weight: 700; }
.s767-rtp-table td { color: var(--s767-text-dim); }
.s767-bar { height: 6px; background: rgba(255,255,255,0.1); border-radius: 4px; overflow: hidden; }
.s767-bar > span { display: block; height: 100%; background: linear-gradient(90deg, #F5C453, #FFEFD5); }

/* ===== Testimonials ===== */
.s767-testimonial {
  background: var(--s767-bg2); border-radius: 12px; padding: 1.2rem;
  margin-bottom: 0.9rem; border-left: 3px solid var(--s767-gold);
}
.s767-testimonial .s767-t-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.5rem; }
.s767-testimonial .s767-t-head strong { color: var(--s767-accent); font-size: 1.3rem; }
.s767-stars { color: var(--s767-gold); font-size: 1.1rem; }
.s767-testimonial p { font-size: 1.25rem; margin: 0; color: var(--s767-text-dim); }

/* ===== Payment / winners ===== */
.s767-pay-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.s767-pay-chip {
  background: var(--s767-bg2); border-radius: 24px; padding: 0.5rem 1rem;
  font-size: 1.15rem; color: var(--s767-text); border: 1px solid rgba(255,239,213,0.1);
  display: flex; align-items: center; gap: 0.4rem;
}
.s767-winner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.7rem 0; border-bottom: 1px solid rgba(255,239,213,0.06);
}
.s767-winner span:first-child { color: var(--s767-accent); font-weight: 600; font-size: 1.15rem; }
.s767-winner span:last-child { color: var(--s767-green); font-weight: 800; font-size: 1.2rem; }

/* ===== FAQ ===== */
.s767-faq-item {
  background: var(--s767-bg2); border-radius: 10px; padding: 1rem 1.2rem;
  margin-bottom: 0.7rem;
}
.s767-faq-item h3 { margin: 0 0 0.4rem; font-size: 1.4rem; }
.s767-faq-item p { margin: 0; font-size: 1.2rem; }

/* ===== Help / link modules ===== */
.s767-internal-links {
  display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0;
}
.s767-internal-links a {
  color: var(--s767-accent); font-weight: 700; text-decoration: underline;
  font-size: 1.2rem;
}
.s767-step-list { counter-reset: s767-step; list-style: none; padding-left: 0; }
.s767-step-list li {
  counter-increment: s767-step; position: relative; padding: 0.9rem 0.9rem 0.9rem 3.8rem;
  background: rgba(255,239,213,0.05); border-radius: 10px; margin-bottom: 0.8rem;
  color: var(--s767-text-dim);
}
.s767-step-list li::before {
  content: counter(s767-step); position: absolute; left: 0.9rem; top: 0.85rem;
  width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--s767-gold);
  color: #2C3E50; display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}
.s767-note {
  border-left: 3px solid var(--s767-gold); background: rgba(245,196,83,0.08);
  padding: 1rem; border-radius: 10px; color: var(--s767-text-dim); margin: 1rem 0;
}
.s767-partners { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.s767-partner-chip {
  border: 1px solid rgba(255,239,213,0.12); border-radius: 999px; padding: 0.45rem 0.8rem;
  color: var(--s767-accent); font-size: 1.1rem; background: rgba(255,239,213,0.04);
}

/* ===== Footer ===== */
.s767-footer {
  background: #16202c; padding: 2.2rem 1.4rem 5.5rem;
  border-top: 1px solid rgba(255,239,213,0.08);
}
.s767-footer-brand p { color: var(--s767-text-dim); font-size: 1.2rem; margin-bottom: 1rem; }
.s767-footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.2rem; }
.s767-footer-links a {
  font-size: 1.15rem; color: var(--s767-accent);
  padding: 0.3rem 0.6rem; border: 1px solid rgba(255,239,213,0.12); border-radius: 6px;
}
.s767-footer-promo {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.2rem;
}
.s767-footer-promo button {
  flex: 1 1 45%; padding: 0.8rem; border: none; cursor: pointer;
  background: linear-gradient(135deg, #FFEFD5, #F5C453); color: #2C3E50;
  font-weight: 700; border-radius: 8px; font-size: 1.25rem;
}
.s767-footer-copy { color: var(--s767-gray2); font-size: 1.1rem; text-align: center; }

/* ===== Bottom nav ===== */
.s767-bnav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: 60px;
  background: linear-gradient(180deg, #243447, #1a2533);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000; border-top: 1px solid rgba(255,239,213,0.12);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.4);
}
.s767-bnav-btn {
  background: transparent; border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 60px; padding: 0.4rem 0.2rem; gap: 2px;
  color: var(--s767-text-dim); transition: color .2s, transform .15s;
}
.s767-bnav-btn:active { transform: scale(0.9); }
.s767-bnav-btn .s767-bnav-icon { font-size: 24px; line-height: 1; }
.s767-bnav-btn .s767-bnav-label { font-size: 10px; line-height: 1; }
.s767-bnav-btn.s767-bnav-active { color: var(--s767-gold); }
.s767-bnav-btn.s767-bnav-active .s767-bnav-icon { color: var(--s767-accent); }
.s767-bnav-btn.s767-bnav-promo { color: var(--s767-gold); }

/* ===== Reveal animation ===== */
.s767-reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .6s; }
.s767-reveal.s767-revealed { opacity: 1; transform: translateY(0); }

/* ===== Desktop ===== */
@media (min-width: 769px) {
  .s767-bnav { display: none; }
  .s767-footer { padding-bottom: 2.2rem; }
}
@media (max-width: 768px) {
  .s767-main { padding-bottom: 80px; }
}

@media (min-width: 431px) {
  body { border-left: 1px solid rgba(255,239,213,0.06); border-right: 1px solid rgba(255,239,213,0.06); }
}