/* ============================================================
 * rwwin.homes - Core stylesheet (prefix: w7005-)
 * Palette: #8B4513 (brown/gold) | #BC8F8F (rosy) | #CED4DA (light) | #1A1A2E (dark bg)
 * Mobile-first, max wrapper width 430px.
 * ============================================================ */

:root {
  --w7005-primary: #8B4513;
  --w7005-accent: #BC8F8F;
  --w7005-light: #CED4DA;
  --w7005-bg: #1A1A2E;
  --w7005-bg-soft: #232347;
  --w7005-card: #20203a;
  --w7005-text: #f3efe7;
  --w7005-muted: #b9b4c7;
  --w7005-gold: #d8a657;
  --w7005-danger: #d9504e;
  --w7005-success: #4caf7a;
  --w7005-radius: 14px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Be Vietnam Pro", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  background: var(--w7005-bg);
  color: var(--w7005-text);
  font-size: 1.5rem;
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--w7005-gold); text-decoration: none; }
a:hover { color: var(--w7005-accent); }

/* ---------- Wrapper: mobile-first cap 430px ---------- */
.w7005-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background: var(--w7005-bg);
  position: relative;
  min-height: 100vh;
  box-shadow: 0 0 40px rgba(0,0,0,.45);
}

.w7005-container {
  width: 100%;
  padding: 0 1.4rem;
}

main { display: block; padding-bottom: 9rem; }

/* ---------- Header ---------- */
.w7005-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #1d1d36 0%, #16162b 100%);
  border-bottom: 2px solid var(--w7005-primary);
}
.w7005-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding: .8rem 1rem;
}
.w7005-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-width: 0;
}
.w7005-brand img { width: 30px; height: 30px; border-radius: 8px; }
.w7005-brand b {
  font-size: 1.7rem;
  color: var(--w7005-gold);
  letter-spacing: .5px;
}
.w7005-brand small { color: var(--w7005-muted); font-size: 1rem; }
.w7005-header-actions { display: flex; align-items: center; gap: .5rem; }
.w7005-menu-btn {
  background: transparent;
  border: 1px solid var(--w7005-primary);
  color: var(--w7005-gold);
  width: 38px; height: 38px;
  border-radius: 10px;
  font-size: 1.6rem;
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.w7005-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border: 0;
  border-radius: 999px;
  padding: .85rem 1.4rem;
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .12s ease, filter .12s ease;
  min-height: 40px;
  text-decoration: none;
}
.w7005-btn:active { transform: scale(.96); }
.w7005-btn-primary { background: linear-gradient(180deg, var(--w7005-gold), #b9823a); color: #1a1a2e; }
.w7005-btn-primary:hover { filter: brightness(1.06); color: #1a1a2e; }
.w7005-btn-ghost { background: transparent; border: 1px solid var(--w7005-accent); color: var(--w7005-light); }
.w7005-btn-block { display: flex; width: 100%; justify-content: center; }

/* ---------- Mobile nav (expandable) ---------- */
.w7005-mobile-nav {
  max-height: 0;
  overflow: hidden;
  transition: max-height .28s ease;
  background: #15152a;
  border-top: 1px solid rgba(188,143,143,.25);
}
.w7005-mobile-nav.w7005-nav-open { max-height: 480px; }
.w7005-mobile-nav nav { display: flex; flex-direction: column; padding: .4rem 1rem .9rem; }
.w7005-mobile-nav a {
  padding: .85rem .4rem;
  border-bottom: 1px dashed rgba(206,212,218,.15);
  font-size: 1.4rem;
  color: var(--w7005-light);
}
.w7005-mobile-nav a:last-child { border-bottom: 0; }

/* ---------- Carousel ---------- */
.w7005-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 var(--w7005-radius) var(--w7005-radius);
  margin-bottom: 1rem;
}
.w7005-carousel-viewport { overflow: hidden; }
.w7005-carousel-track {
  display: flex;
  width: 100%;
  transition: transform .5s ease;
}
.w7005-slide { min-width: 100%; position: relative; }
.w7005-slide img { width: 100%; height: 190px; object-fit: cover; }
.w7005-slide .w7005-slide-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: .9rem 1rem;
  background: linear-gradient(0deg, rgba(10,10,25,.85), transparent);
  font-size: 1.4rem; font-weight: 700; color: #fff;
}
.w7005-dots {
  position: absolute; bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: .5rem;
}
.w7005-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.4);
}
.w7005-carousel-dot.w7005-dot-active { background: var(--w7005-gold); }

/* ---------- Sections ---------- */
.w7005-section { padding: 1.2rem 0; }
.w7005-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: .8rem;
}
.w7005-section-head h2 {
  font-size: 1.7rem; color: var(--w7005-gold); margin: 0;
  display: flex; align-items: center; gap: .5rem;
}
.w7005-section-head a { font-size: 1.2rem; }

.w7005-h1 {
  font-size: 2rem; line-height: 1.35;
  margin: 0 0 .6rem;
  color: var(--w7005-gold);
  font-weight: 800;
}
.w7005-lead { color: var(--w7005-muted); font-size: 1.35rem; line-height: 1.55; }

/* ---------- Game grid ---------- */
.w7005-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .7rem;
}
.w7005-game-card {
  background: var(--w7005-card);
  border: 1px solid rgba(188,143,143,.18);
  border-radius: var(--w7005-radius);
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: transform .12s ease, border-color .12s ease;
}
.w7005-game-card:active { transform: scale(.96); border-color: var(--w7005-gold); }
.w7005-game-card img {
  width: 100%; height: 86px; object-fit: cover;
  background: #0e0e1e;
}
.w7005-game-card span {
  display: block;
  padding: .35rem .25rem;
  font-size: 1.1rem;
  color: var(--w7005-light);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- Cards / generic ---------- */
.w7005-card {
  background: var(--w7005-card);
  border-radius: var(--w7005-radius);
  padding: 1rem;
  border: 1px solid rgba(188,143,143,.16);
}
.w7005-card h3 { margin: 0 0 .4rem; font-size: 1.45rem; color: var(--w7005-gold); }
.w7005-card p { margin: 0 0 .6rem; font-size: 1.25rem; color: var(--w7005-muted); line-height: 1.55; }
.w7005-card a { font-weight: 700; }

.w7005-row { display: flex; gap: .8rem; flex-wrap: wrap; }
.w7005-col { flex: 1 1 0; min-width: 0; }

/* ---------- Lists ---------- */
.w7005-list { margin: .4rem 0 0; padding-left: 1.2rem; color: var(--w7005-muted); font-size: 1.25rem; line-height: 1.6; }
.w7005-list li { margin-bottom: .3rem; }

/* ---------- Badges ---------- */
.w7005-badge {
  display: inline-block;
  padding: .2rem .65rem;
  border-radius: 999px;
  background: rgba(216,166,87,.18);
  color: var(--w7005-gold);
  font-size: 1.1rem; font-weight: 700;
  margin-right: .3rem;
}
.w7005-badge-hot { background: rgba(217,80,78,.18); color: var(--w7005-danger); }
.w7005-badge-ok { background: rgba(76,175,122,.18); color: var(--w7005-success); }

/* ---------- RTP table ---------- */
.w7005-table { width: 100%; border-collapse: collapse; font-size: 1.2rem; }
.w7005-table th, .w7005-table td { text-align: left; padding: .55rem .4rem; border-bottom: 1px solid rgba(206,212,218,.12); }
.w7005-table th { color: var(--w7005-gold); }
.w7005-table td .w7005-bar {
  height: 6px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; width: 70px; display: inline-block; vertical-align: middle; margin-right: .4rem;
}
.w7005-table td .w7005-bar i { display: block; height: 100%; background: var(--w7005-gold); }

/* ---------- Testimonials ---------- */
.w7005-quote { background: var(--w7005-card); border-left: 3px solid var(--w7005-gold); padding: .7rem .9rem; border-radius: 8px; margin-bottom: .7rem; }
.w7005-quote p { margin: 0 0 .3rem; font-size: 1.25rem; color: var(--w7005-light); }
.w7005-quote small { color: var(--w7005-muted); }

/* ---------- Payment chips ---------- */
.w7005-chip {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--w7005-card); border: 1px solid rgba(188,143,143,.25);
  padding: .5rem .8rem; border-radius: 999px; font-size: 1.15rem; color: var(--w7005-light);
}

/* ---------- Highlight flash ---------- */
.w7005-flash { animation: w7005flash .9s ease; }
@keyframes w7005flash {
  0% { box-shadow: 0 0 0 0 rgba(216,166,87,.6); }
  100% { box-shadow: 0 0 0 12px rgba(216,166,87,0); }
}

/* ---------- Footer ---------- */
.w7005-footer {
  background: #11111f;
  border-top: 2px solid var(--w7005-primary);
  padding: 1.4rem 1rem 2rem;
  color: var(--w7005-muted);
  font-size: 1.2rem;
}
.w7005-footer h4 { color: var(--w7005-gold); font-size: 1.35rem; margin: .8rem 0 .4rem; }
.w7005-footer-links { display: flex; flex-wrap: wrap; gap: .4rem .9rem; }
.w7005-footer-links a { color: var(--w7005-light); font-size: 1.15rem; }
.w7005-footer-promos { display: flex; flex-wrap: wrap; gap: .5rem; margin: .8rem 0; }
.w7005-footer-promos .w7005-btn { font-size: 1.2rem; padding: .6rem 1rem; }
.w7005-copy { margin-top: .8rem; font-size: 1.1rem; opacity: .8; }

/* ---------- Mobile bottom nav ---------- */
.w7005-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #1d1d36, #11111f);
  border-top: 1px solid var(--w7005-primary);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  height: 62px;
}
.w7005-bottom-nav a, .w7005-bottom-nav button {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .15rem;
  background: transparent;
  border: 0;
  color: var(--w7005-muted);
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  min-width: 60px;
  min-height: 60px;
  transition: color .12s ease, transform .12s ease;
}
.w7005-bottom-nav a:active, .w7005-bottom-nav button:active { transform: scale(.92); }
.w7005-bottom-nav .material-icons,
.w7005-bottom-nav ion-icon,
.w7005-bottom-nav i { font-size: 22px; line-height: 1; }
.w7005-bottom-nav .w7005-active { color: var(--w7005-gold); }
.w7005-bottom-nav .w7005-badge-dot {
  position: relative;
}
.w7005-bottom-nav .w7005-badge-dot::after {
  content: "";
  position: absolute; top: 8px; right: calc(50% - 18px);
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--w7005-danger);
}

/* ---------- Desktop: hide bottom nav, widen wrapper ---------- */
@media (min-width: 769px) {
  .w7005-bottom-nav { display: none; }
  main { padding-bottom: 2rem; }
}

/* ---------- Small phones fine-tune ---------- */
@media (max-width: 360px) {
  .w7005-grid { grid-template-columns: repeat(2, 1fr); }
  .w7005-h1 { font-size: 1.8rem; }
}

/* Utility */
.w7005-text-center { text-align: center; }
.w7005-mt-1 { margin-top: .6rem; }
.w7005-mt-2 { margin-top: 1rem; }
.w7005-hidden { display: none !important; }
