/* ============================================================
 * 36Win Casino - layout.css
 * All custom classes use the "s712-" prefix.
 * Mobile-first, max-width 430px viewport optimised.
 * Comments in English only.
 * ============================================================ */

:root {
  --s712-bg: #0C0C0C;
  --s712-primary: #FFCC02;
  --s712-text: #D3D3D3;
  --s712-accent: #E65100;
  --s712-muted: #E5E5E5;
  --s712-cool: #778899;
  --s712-card: #161616;
  --s712-card-alt: #1f1f1f;
  --s712-border: #2a2a2a;
  --s712-green: #2ecc71;
  --s712-red: #e74c3c;
}

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

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

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

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

a { color: var(--s712-primary); text-decoration: none; }

h1, h2, h3, h4 { color: #fff; line-height: 2.2rem; margin-bottom: 0.8rem; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.6rem; }
p { margin-bottom: 1rem; color: var(--s712-text); }

.s712-wrapper {
  width: 100%;
  padding: 0 1.2rem;
}

main { padding-bottom: 90px; }

/* ===================== Header ===================== */
.s712-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: linear-gradient(180deg, #000 0%, #111 100%);
  border-bottom: 1px solid var(--s712-border);
  z-index: 1000;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.s712-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--s712-primary);
  font-weight: 700;
  font-size: 1.6rem;
}
.s712-logo img { width: 28px; height: 28px; border-radius: 6px; }
.s712-logo span { color: #fff; }
.s712-logo b { color: var(--s712-primary); }

.s712-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.s712-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.3rem;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  min-height: 36px;
  white-space: nowrap;
}
.s712-btn:active { transform: scale(0.95); }
.s712-btn-register {
  background: linear-gradient(135deg, var(--s712-accent) 0%, #ff8a00 100%);
  color: #fff;
  box-shadow: 0 3px 10px rgba(230,81,0,.35);
}
.s712-btn-login {
  background: linear-gradient(135deg, var(--s712-primary) 0%, #ffd84d 100%);
  color: #1a1a1a;
  box-shadow: 0 3px 10px rgba(255,204,2,.3);
}
.s712-btn-ghost {
  background: transparent;
  border: 1px solid var(--s712-border);
  color: var(--s712-text);
}
.s712-menu-toggle {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 0 0.4rem;
}

/* ===================== Mobile menu ===================== */
.s712-mobile-menu {
  position: fixed;
  top: 56px; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: #0a0a0a;
  border-bottom: 1px solid var(--s712-border);
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s ease;
  z-index: 9999;
}
.s712-mobile-menu.s712-menu-open { max-height: 480px; }
.s712-mobile-menu a {
  display: block;
  padding: 1rem 1.4rem;
  color: var(--s712-text);
  border-bottom: 1px solid #181818;
  font-size: 1.4rem;
}
.s712-mobile-menu a:active { background: #161616; }
.s712-mobile-menu a i { color: var(--s712-primary); margin-right: 0.6rem; }

/* ===================== Hero / Carousel ===================== */
.s712-carousel {
  position: relative;
  margin-top: 56px;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 14px 14px;
}
.s712-slide {
  display: none;
  position: relative;
  width: 100%;
  height: 200px;
}
.s712-slide img { width: 100%; height: 200px; object-fit: cover; }
.s712-slide.s712-slide-active { display: block; }
.s712-slide-caption {
  position: absolute;
  left: 1rem; right: 1rem; bottom: 1.2rem;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,.8);
}
.s712-slide-caption h3 { font-size: 1.7rem; color: #fff; }
.s712-slide-caption p { font-size: 1.2rem; color: #f0f0f0; }

.s712-carousel-dots {
  position: absolute;
  bottom: 6px; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.s712-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none; cursor: pointer;
}
.s712-dot.s712-dot-active { background: var(--s712-primary); }

/* ===================== Sections ===================== */
.s712-section {
  padding: 1.6rem 1.2rem;
}
.s712-section-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--s712-primary);
  padding-left: 0.8rem;
}
.s712-section-title h2 { margin: 0; font-size: 1.7rem; color: #fff; }
.s712-section-title i { color: var(--s712-primary); font-size: 1.8rem; }

.s712-intro {
  background: linear-gradient(135deg, #151515 0%, #0d0d0d 100%);
  border: 1px solid var(--s712-border);
  border-radius: 12px;
  padding: 1.4rem;
  color: var(--s712-text);
}
.s712-intro p { color: var(--s712-text); }
.s712-intro strong { color: var(--s712-primary); }

/* ===================== Game grid ===================== */
.s712-cat-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.6rem 1.2rem;
  margin-bottom: 0.4rem;
  scrollbar-width: none;
}
.s712-cat-tabs::-webkit-scrollbar { display: none; }
.s712-cat-tab {
  flex: 0 0 auto;
  padding: 0.5rem 1rem;
  background: #181818;
  color: var(--s712-text);
  border-radius: 20px;
  font-size: 1.25rem;
  border: 1px solid var(--s712-border);
  cursor: pointer;
}
.s712-cat-tab i { margin-right: 0.3rem; color: var(--s712-primary); }

.s712-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
.s712-game-card {
  background: var(--s712-card);
  border: 1px solid var(--s712-border);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease;
  text-align: center;
}
.s712-game-card:active {
  transform: scale(0.96);
  border-color: var(--s712-primary);
}
.s712-game-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  background: #000;
}
.s712-game-card-name {
  font-size: 1.15rem;
  color: var(--s712-text);
  padding: 0.4rem 0.3rem 0.5rem;
  line-height: 1.3rem;
  min-height: 3.2rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.s712-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1.4rem 0 0.8rem;
}
.s712-cat-header h3 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--s712-primary);
}
.s712-cat-header .s712-more {
  font-size: 1.2rem;
  color: var(--s712-cool);
}

/* ===================== Promo CTA ===================== */
.s712-cta {
  background: linear-gradient(135deg, var(--s712-accent) 0%, #ff7a00 100%);
  border-radius: 14px;
  padding: 1.4rem;
  text-align: center;
  margin: 1.2rem 0;
  color: #fff;
  box-shadow: 0 4px 16px rgba(230,81,0,.3);
}
.s712-cta h3 { color: #fff; margin-bottom: 0.4rem; }
.s712-cta p { color: #fff5e6; font-size: 1.3rem; margin-bottom: 0.8rem; }
.s712-cta-btn {
  display: inline-block;
  background: #fff;
  color: var(--s712-accent);
  padding: 0.7rem 1.6rem;
  border-radius: 30px;
  font-weight: 800;
  font-size: 1.4rem;
}

/* ===================== Feature list ===================== */
.s712-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}
.s712-feature {
  background: var(--s712-card);
  border: 1px solid var(--s712-border);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
}
.s712-feature i {
  font-size: 2.2rem;
  color: var(--s712-primary);
  margin-bottom: 0.4rem;
}
.s712-feature h4 { color: #fff; font-size: 1.3rem; margin-bottom: 0.3rem; }
.s712-feature p { font-size: 1.15rem; color: var(--s712-text); margin: 0; line-height: 1.4rem; }

/* ===================== RTP table ===================== */
.s712-rtp-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--s712-card);
  border-radius: 10px;
  overflow: hidden;
}
.s712-rtp-table th, .s712-rtp-table td {
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--s712-border);
  font-size: 1.25rem;
  text-align: left;
}
.s712-rtp-table th { background: #0a0a0a; color: var(--s712-primary); }
.s712-rtp-table td.s712-rtp-high { color: var(--s712-green); font-weight: 700; }
.s712-rtp-table tr:last-child td { border-bottom: none; }

/* ===================== Testimonials ===================== */
.s712-testimonial {
  background: var(--s712-card);
  border-left: 3px solid var(--s712-primary);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.7rem;
}
.s712-testimonial p { font-size: 1.25rem; color: var(--s712-text); margin-bottom: 0.4rem; }
.s712-testimonial .s712-author {
  color: var(--s712-primary);
  font-size: 1.15rem;
  font-weight: 700;
}

/* ===================== Winners ===================== */
.s712-winner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--s712-card);
  border: 1px solid var(--s712-border);
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  margin-bottom: 0.5rem;
}
.s712-winner .s712-w-name { font-size: 1.2rem; color: var(--s712-text); }
.s712-winner .s712-w-amount { color: var(--s712-green); font-weight: 700; font-size: 1.3rem; }

/* ===================== Payment methods ===================== */
.s712-pay-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
.s712-pay-item {
  background: var(--s712-card);
  border: 1px solid var(--s712-border);
  border-radius: 8px;
  padding: 0.7rem 0.3rem;
  text-align: center;
  font-size: 1.05rem;
  color: var(--s712-text);
}
.s712-pay-item i { font-size: 1.8rem; color: var(--s712-primary); display: block; margin-bottom: 0.2rem; }

/* ===================== Guide steps ===================== */
.s712-step-list {
  counter-reset: s712step;
  list-style: none;
  padding: 0;
  margin: 0 0 0.8rem;
}
.s712-step-list li {
  counter-increment: s712step;
  position: relative;
  background: var(--s712-card);
  border: 1px solid var(--s712-border);
  border-radius: 10px;
  padding: 0.9rem 1rem 0.9rem 3.6rem;
  margin-bottom: 0.6rem;
  font-size: 1.28rem;
  line-height: 1.5rem;
  color: var(--s712-text);
}
.s712-step-list li::before {
  content: counter(s712step);
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--s712-primary);
  color: #0c0c0c;
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.s712-step-list li strong { color: var(--s712-primary); }

/* Inline promo text link used inside content blocks */
.s712-txt-promo {
  display: inline-block;
  color: var(--s712-primary);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.s712-txt-promo:active { color: var(--s712-accent); }

/* ===================== FAQ ===================== */
.s712-faq-item {
  background: var(--s712-card);
  border: 1px solid var(--s712-border);
  border-radius: 8px;
  margin-bottom: 0.6rem;
  overflow: hidden;
}
.s712-faq-q {
  padding: 0.9rem 1rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.3rem;
}
.s712-faq-q i { color: var(--s712-primary); transition: transform .2s ease; }
.s712-faq-open .s712-faq-q i { transform: rotate(45deg); }
.s712-faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  padding: 0 1rem;
  color: var(--s712-text);
  font-size: 1.22rem;
}

/* ===================== Footer ===================== */
.s712-footer {
  background: #050505;
  border-top: 1px solid var(--s712-border);
  padding: 1.6rem 1.2rem 2.4rem;
  margin-top: 1.4rem;
}
.s712-footer-brand { color: var(--s712-text); font-size: 1.2rem; margin-bottom: 1rem; }
.s712-footer-brand b { color: var(--s712-primary); }
.s712-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 0.8rem;
  margin-bottom: 1rem;
}
.s712-footer-links a {
  color: var(--s712-text);
  font-size: 1.2rem;
}
.s712-footer-links a i { color: var(--s712-primary); margin-right: 0.3rem; }
.s712-footer-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.s712-footer-promos .s712-btn { flex: 1 1 45%; font-size: 1.2rem; padding: 0.5rem 0.6rem; min-height: 32px; }
.s712-copyright {
  color: var(--s712-cool);
  font-size: 1.1rem;
  text-align: center;
  border-top: 1px solid #141414;
  padding-top: 1rem;
}

/* ===================== Bottom nav ===================== */
.s712-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: linear-gradient(180deg, #111 0%, #000 100%);
  border-top: 1px solid var(--s712-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 62px;
  z-index: 1000;
}
.s712-nav-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--s712-cool);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  padding: 6px 0;
  font-size: 1.05rem;
  min-width: 60px;
  min-height: 60px;
  transition: color .15s ease, transform .15s ease;
}
.s712-nav-btn i { font-size: 22px; }
.s712-nav-btn:active { transform: scale(0.92); }
.s712-nav-btn.s712-nav-active { color: var(--s712-primary); }
.s712-nav-btn.s712-nav-promo { color: var(--s712-primary); }
.s712-nav-btn.s712-nav-promo i { filter: drop-shadow(0 0 4px rgba(255,204,2,.4)); }

/* ===================== Back-to-top ===================== */
.s712-back-top {
  position: fixed;
  right: 14px; bottom: 76px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--s712-primary);
  color: #000;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 999;
}
.s712-back-top.s712-back-show { opacity: 1; pointer-events: auto; }

/* ===================== Desktop ===================== */
@media (min-width: 769px) {
  body { max-width: 430px; box-shadow: 0 0 30px rgba(0,0,0,.5); }
  .s712-bottom-nav { display: none; }
  main { padding-bottom: 30px; }
}

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

/* small viewport tweaks */
@media (max-width: 360px) {
  .s712-game-grid { grid-template-columns: repeat(2, 1fr); }
  .s712-pay-grid { grid-template-columns: repeat(3, 1fr); }
  h1 { font-size: 1.85rem; }
}
