/* kuvin - design-b565.css
   Mobile-first design for kuvin.cyou (VN)
   Prefix: wb565-
   Palette: #A0522D | #C0C0C0 | #1A1A2E | #FAF0E6
*/

:root {
  --wb565-primary: #A0522D;
  --wb565-secondary: #C0C0C0;
  --wb565-bg: #1A1A2E;
  --wb565-bg-2: #20203a;
  --wb565-bg-3: #16162a;
  --wb565-text: #FAF0E6;
  --wb565-muted: #b9b6c7;
  --wb565-accent: #d97a3a;
  --wb565-gold: #e8c170;
  --wb565-border: rgba(192, 192, 192, 0.18);
  --wb565-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  --wb565-radius: 14px;
}

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

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

body {
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: var(--wb565-bg);
  color: var(--wb565-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a { color: var(--wb565-gold); text-decoration: none; }
a:hover { color: var(--wb565-accent); }

.wb565-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.wb565-wrapper { padding-top: 5.4rem; padding-bottom: 1rem; }

/* ===== Header ===== */
.wb565-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #1a1a2e 0%, #20203a 100%);
  border-bottom: 1px solid var(--wb565-border);
  box-shadow: var(--wb565-shadow);
}
.wb565-header-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}
.wb565-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--wb565-text);
  letter-spacing: 0.03rem;
}
.wb565-logo img { width: 28px; height: 28px; border-radius: 6px; }
.wb565-logo .wb565-logo-dot { color: var(--wb565-gold); }

.wb565-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.wb565-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
  min-height: 36px;
}
.wb565-btn:hover { transform: translateY(-1px); }
.wb565-btn-register {
  background: linear-gradient(135deg, var(--wb565-primary), var(--wb565-accent));
  color: #fff;
  box-shadow: 0 3px 10px rgba(160, 82, 45, 0.45);
}
.wb565-btn-login {
  background: transparent;
  color: var(--wb565-text);
  border: 1px solid var(--wb565-secondary);
}
.wb565-btn-menu {
  background: transparent;
  color: var(--wb565-text);
  border: 1px solid var(--wb565-border);
  width: 36px; height: 36px;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ===== Mobile Menu ===== */
.wb565-menu {
  position: fixed;
  top: 0; left: 0;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--wb565-bg-2);
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.28s ease;
  padding: 5rem 1.4rem 2rem;
  overflow-y: auto;
  border-right: 1px solid var(--wb565-border);
}
.wb565-menu.wb565-open { transform: translateX(0); }
.wb565-menu-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--wb565-gold);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--wb565-border);
}
.wb565-menu a {
  display: block;
  padding: 0.85rem 0.6rem;
  color: var(--wb565-text);
  border-bottom: 1px dashed rgba(192,192,192,0.12);
  font-size: 1.3rem;
}
.wb565-menu a:hover { color: var(--wb565-gold); padding-left: 1rem; }
.wb565-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9998;
  display: none;
}
.wb565-overlay.wb565-open { display: block; }
.wb565-menu-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: transparent; border: none; color: var(--wb565-text);
  font-size: 2rem; cursor: pointer;
}

/* ===== Hero / Carousel ===== */
.wb565-hero {
  margin-top: 1rem;
  border-radius: var(--wb565-radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--wb565-shadow);
}
.wb565-carousel { position: relative; }
.wb565-slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--wb565-radius); }
.wb565-slides::-webkit-scrollbar { display: none; }
.wb565-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  position: relative;
}
.wb565-slide img { width: 100%; height: 170px; object-fit: cover; }
.wb565-slide-cap {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0.8rem 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.78));
  color: var(--wb565-text);
  font-size: 1.25rem;
  font-weight: 600;
}
.wb565-slide-cap span { color: var(--wb565-gold); font-weight: 700; }
.wb565-cdots {
  display: flex; gap: 0.4rem; justify-content: center;
  margin-top: 0.6rem;
}
.wb565-cdots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(250,240,230,0.35);
  cursor: pointer;
}
.wb565-cdots span.wb565-active { background: var(--wb565-gold); }

/* ===== Sections ===== */
.wb565-section { margin: 2rem 0; }
.wb565-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--wb565-text);
  margin-bottom: 0.8rem;
  padding-left: 0.8rem;
  border-left: 4px solid var(--wb565-primary);
}
.wb565-section-title .wb565-icon { color: var(--wb565-gold); }
.wb565-section-sub {
  font-size: 1.2rem;
  color: var(--wb565-muted);
  margin-bottom: 0.8rem;
}

.wb565-h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--wb565-text);
  margin: 1.4rem 0 0.8rem;
  line-height: 1.35;
}
.wb565-h1 .wb565-h1-accent { color: var(--wb565-gold); }
.wb565-h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--wb565-text);
  margin: 1.4rem 0 0.7rem;
}
.wb565-h3 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--wb565-gold);
  margin: 1rem 0 0.5rem;
}
.wb565-p { font-size: 1.3rem; color: var(--wb565-text); margin-bottom: 0.7rem; }
.wb565-muted { color: var(--wb565-muted); }
.wb565-strong { color: var(--wb565-gold); font-weight: 700; }

/* ===== Game Grid ===== */
.wb565-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
.wb565-game-card {
  background: var(--wb565-bg-2);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--wb565-border);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: block;
  text-align: center;
}
.wb565-game-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.4); }
.wb565-game-card img { width: 100%; height: 78px; object-fit: cover; }
.wb565-game-name {
  font-size: 1.05rem;
  color: var(--wb565-text);
  padding: 0.35rem 0.3rem 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wb565-cat-tag {
  display: inline-block;
  font-size: 1rem;
  color: var(--wb565-gold);
  background: rgba(160,82,45,0.18);
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}

/* ===== Cards / Feature blocks ===== */
.wb565-card {
  background: var(--wb565-bg-2);
  border-radius: var(--wb565-radius);
  padding: 1.2rem;
  border: 1px solid var(--wb565-border);
  margin-bottom: 1rem;
}
.wb565-card-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0;
  border-bottom: 1px dashed rgba(192,192,192,0.12);
}
.wb565-card-row:last-child { border-bottom: none; }
.wb565-card-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(160,82,45,0.2);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--wb565-gold);
  flex-shrink: 0;
}

/* ===== CTA ===== */
.wb565-cta {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: linear-gradient(135deg, rgba(160,82,45,0.25), rgba(232,193,112,0.12));
  border: 1px solid rgba(232,193,112,0.35);
  padding: 1.2rem;
  border-radius: var(--wb565-radius);
  margin: 1.2rem 0;
}
.wb565-cta-title { font-size: 1.5rem; font-weight: 700; color: var(--wb565-gold); }
.wb565-cta-text { font-size: 1.25rem; color: var(--wb565-text); }
.wb565-cta .wb565-btn { align-self: flex-start; }

.wb565-text-link {
  color: var(--wb565-gold);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

/* ===== RTP table ===== */
.wb565-rtp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.wb565-rtp-item {
  background: var(--wb565-bg-2);
  border-radius: 10px;
  padding: 0.7rem;
  border: 1px solid var(--wb565-border);
  text-align: center;
}
.wb565-rtp-name { font-size: 1.1rem; color: var(--wb565-muted); margin-bottom: 0.3rem; }
.wb565-rtp-val { font-size: 1.5rem; font-weight: 700; color: var(--wb565-gold); }

/* ===== Testimonial ===== */
.wb565-testi {
  background: var(--wb565-bg-2);
  border-left: 3px solid var(--wb565-gold);
  padding: 0.8rem 1rem;
  border-radius: 8px;
  margin-bottom: 0.7rem;
}
.wb565-testi-name { font-size: 1.15rem; color: var(--wb565-gold); font-weight: 700; margin-bottom: 0.3rem; }
.wb565-testi-text { font-size: 1.2rem; color: var(--wb565-text); }

/* ===== Payment / Badges ===== */
.wb565-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.wb565-badge {
  background: var(--wb565-bg-2);
  border: 1px solid var(--wb565-border);
  border-radius: 8px;
  padding: 0.5rem 0.8rem;
  font-size: 1.1rem;
  color: var(--wb565-text);
  display: inline-flex; align-items: center; gap: 0.4rem;
}

/* ===== Winners ===== */
.wb565-winner-row {
  display: flex; justify-content: space-between;
  padding: 0.5rem 0.8rem;
  border-bottom: 1px dashed rgba(192,192,192,0.12);
  font-size: 1.2rem;
}
.wb565-winner-row span:last-child { color: var(--wb565-gold); font-weight: 700; }

/* ===== Footer ===== */
.wb565-footer {
  margin-top: 2rem;
  padding: 1.6rem 1.2rem 2rem;
  background: var(--wb565-bg-3);
  border-top: 1px solid var(--wb565-border);
}
.wb565-footer-brand { font-size: 1.3rem; color: var(--wb565-text); margin-bottom: 0.8rem; }
.wb565-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1rem;
  margin: 0.8rem 0;
}
.wb565-footer-links a {
  font-size: 1.15rem;
  color: var(--wb565-muted);
}
.wb565-footer-links a:hover { color: var(--wb565-gold); }
.wb565-footer-promo {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin: 0.8rem 0;
}
.wb565-footer-copy {
  font-size: 1.1rem;
  color: var(--wb565-muted);
  margin-top: 1rem;
  text-align: center;
}

/* ===== Mobile Bottom Nav ===== */
.wb565-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  background: linear-gradient(180deg, #20203a 0%, #16162a 100%);
  border-top: 1px solid var(--wb565-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.35);
}
.wb565-navbtn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--wb565-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.15s ease;
  position: relative;
}
.wb565-navbtn .material-icons,
.wb565-navbtn ion-icon,
.wb565-navbtn i { font-size: 22px; }
.wb565-navbtn:hover { color: var(--wb565-gold); transform: translateY(-1px); }
.wb565-navbtn.wb565-active { color: var(--wb565-gold); }
.wb565-navbtn.wb565-active::after {
  content: '';
  position: absolute;
  top: 0;
  width: 30px; height: 2px;
  background: var(--wb565-gold);
  border-radius: 0 0 4px 4px;
}

/* ===== Utilities ===== */
.wb565-row { display: flex; gap: 0.6rem; align-items: center; }
.wb565-between { justify-content: space-between; }
.wb565-mt1 { margin-top: 0.6rem; }
.wb565-mt2 { margin-top: 1.2rem; }
.wb565-mb2 { margin-bottom: 1.2rem; }
.wb565-text-center { text-align: center; }
.wb565-list { list-style: none; padding-left: 0; }
.wb565-list li { padding: 0.4rem 0 0.4rem 1.2rem; position: relative; font-size: 1.25rem; }
.wb565-list li::before {
  content: '▸';
  position: absolute; left: 0;
  color: var(--wb565-primary);
  font-weight: 700;
}

/* ===== Desktop ===== */
@media (min-width: 769px) {
  .wb565-bottomnav { display: none; }
  .wb565-btn-menu { display: none; }
  .wb565-container { max-width: 760px; }
  .wb565-game-grid { grid-template-columns: repeat(6, 1fr); }
  .wb565-rtp-grid { grid-template-columns: repeat(4, 1fr); }
}

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