/* ============================================================
   Playing card game - style.css
   All custom classes use prefix "ve9b-"
   Palette: #141414 #34495E #00CED1 #E8F5E8 #BDC3C7 #A9A9A9
   ============================================================ */

:root {
  --ve9b-bg: #141414;
  --ve9b-bg-soft: #1f2329;
  --ve9b-surface: #2a2f36;
  --ve9b-primary: #00CED1;
  --ve9b-primary-dark: #00a3a5;
  --ve9b-text: #E8F5E8;
  --ve9b-muted: #BDC3C7;
  --ve9b-faint: #A9A9A9;
  --ve9b-deep: #34495E;
  --ve9b-accent: #ffd34d;
  --ve9b-danger: #ff5a5f;
  --ve9b-line: rgba(189, 195, 199, 0.15);
}

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

html {
  font-size: 62.5%; /* 1rem = 10px */
  -webkit-text-size-adjust: 100%;
}

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

img { max-width: 100%; display: block; }
a { color: var(--ve9b-primary); text-decoration: none; }

/* ---------- Layout containers ---------- */
.ve9b-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  background: var(--ve9b-bg);
  min-height: 100vh;
}

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

main.ve9b-main {
  padding-top: 6rem;
  padding-bottom: 1rem;
}

/* ---------- Header ---------- */
.ve9b-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(20,20,20,0.98), rgba(20,20,20,0.92));
  border-bottom: 1px solid var(--ve9b-line);
  backdrop-filter: blur(6px);
}

.ve9b-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 6rem;
  padding: 0 1.2rem;
}

.ve9b-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.ve9b-brand img {
  width: 3rem;
  height: 3rem;
  border-radius: 0.6rem;
}

.ve9b-brand-text {
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--ve9b-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ve9b-brand-text span { color: var(--ve9b-primary); }

.ve9b-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* ---------- Buttons ---------- */
.ve9b-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3.6rem;
  padding: 0 1.4rem;
  border: none;
  border-radius: 2rem;
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s;
  color: #0b1f22;
  background: linear-gradient(135deg, var(--ve9b-primary), #5af0f2);
  box-shadow: 0 3px 10px rgba(0, 206, 209, 0.35);
}

.ve9b-btn:hover { transform: translateY(-1px); }
.ve9b-btn:active { transform: scale(0.96); }

.ve9b-btn-ghost {
  background: transparent;
  border: 1px solid var(--ve9b-primary);
  color: var(--ve9b-primary);
  box-shadow: none;
}

.ve9b-btn-outline {
  background: transparent;
  border: 1px solid var(--ve9b-muted);
  color: var(--ve9b-text);
  box-shadow: none;
}

.ve9b-icon-btn {
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--ve9b-line);
  color: var(--ve9b-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.ve9b-icon-btn:hover { background: rgba(0,206,209,0.12); }
.ve9b-icon-btn.ve9b-btn-active { background: rgba(0,206,209,0.22); }

/* ---------- Mobile menu ---------- */
.ve9b-mobile-menu {
  position: fixed;
  top: 6rem;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--ve9b-bg-soft);
  border-bottom: 1px solid var(--ve9b-line);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.ve9b-mobile-menu.ve9b-menu-open { max-height: 70vh; overflow-y: auto; }

.ve9b-mobile-menu ul { list-style: none; }
.ve9b-mobile-menu li { border-bottom: 1px solid var(--ve9b-line); }
.ve9b-mobile-menu a {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.3rem 1.6rem;
  color: var(--ve9b-text);
  font-size: 1.4rem;
}
.ve9b-mobile-menu a:active { background: rgba(0,206,209,0.12); }
.ve9b-mobile-menu a i { color: var(--ve9b-primary); width: 2rem; text-align: center; }

/* ---------- Carousel ---------- */
.ve9b-carousel {
  position: relative;
  width: 100%;
  margin: 1.2rem 0 0.6rem;
  border-radius: 1.2rem;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--ve9b-surface);
}
.ve9b-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}
.ve9b-slide img { width: 100%; height: 100%; object-fit: cover; }
.ve9b-slide-active { opacity: 1; }
.ve9b-slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.2rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.75));
  color: var(--ve9b-text);
  font-weight: 700;
  font-size: 1.3rem;
}
.ve9b-dots {
  position: absolute;
  bottom: 0.6rem;
  right: 1rem;
  display: flex;
  gap: 0.4rem;
}
.ve9b-dot {
  width: 0.7rem; height: 0.7rem; border-radius: 50%;
  background: rgba(232,245,232,0.4);
}
.ve9b-dot-active { background: var(--ve9b-primary); }

/* ---------- Section + headings ---------- */
.ve9b-section {
  padding: 1.8rem 1.4rem 0.6rem;
}
.ve9b-section-title {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  color: var(--ve9b-text);
  display: flex; align-items: center; gap: 0.6rem;
}
.ve9b-section-title i { color: var(--ve9b-primary); }
.ve9b-section-sub {
  font-size: 1.25rem;
  color: var(--ve9b-muted);
  margin-bottom: 1rem;
}
.ve9b-h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.35;
  padding: 0.6rem 1.4rem 0.4rem;
  color: var(--ve9b-text);
}
.ve9b-h1 span { color: var(--ve9b-primary); }

h2.ve9b-h2 { font-size: 1.7rem; font-weight: 700; margin: 1rem 0 0.6rem; color: var(--ve9b-text); }
h3.ve9b-h3 { font-size: 1.45rem; font-weight: 700; margin: 0.8rem 0 0.4rem; color: var(--ve9b-primary); }

/* ---------- Category header ---------- */
.ve9b-cat-head {
  display: flex; align-items: center; gap: 0.6rem;
  margin: 1.6rem 0 0.8rem;
}
.ve9b-cat-head .ve9b-cat-tag {
  display: inline-flex; align-items: center;
  padding: 0.35rem 0.9rem;
  border-radius: 1rem;
  background: rgba(0,206,209,0.15);
  color: var(--ve9b-primary);
  font-size: 1.15rem; font-weight: 700;
}
.ve9b-cat-head h2 { font-size: 1.5rem; font-weight: 700; color: var(--ve9b-text); }

/* ---------- Game grid ---------- */
.ve9b-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.ve9b-game-card {
  background: var(--ve9b-surface);
  border-radius: 0.9rem;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.2s;
  border: 1px solid var(--ve9b-line);
}
.ve9b-game-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,206,209,0.18); }
.ve9b-game-card:active { transform: scale(0.97); }
.ve9b-game-img {
  width: 100%;
  aspect-ratio: 1/1;
  background: #0d1014;
}
.ve9b-game-name {
  padding: 0.5rem 0.55rem 0.6rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ve9b-text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

/* ---------- Cards / modules ---------- */
.ve9b-card {
  background: var(--ve9b-bg-soft);
  border: 1px solid var(--ve9b-line);
  border-radius: 1rem;
  padding: 1.2rem;
  margin-bottom: 1rem;
}
.ve9b-card-accent { border-left: 3px solid var(--ve9b-primary); }
.ve9b-card p { color: var(--ve9b-muted); margin-bottom: 0.6rem; font-size: 1.3rem; }
.ve9b-card p:last-child { margin-bottom: 0; }

.ve9b-promo-link {
  color: var(--ve9b-primary);
  font-weight: 700;
  cursor: pointer;
}
.ve9b-promo-link:hover { text-decoration: underline; }

/* ---------- Steps ---------- */
.ve9b-steps { counter-reset: step; list-style: none; }
.ve9b-steps li {
  position: relative;
  padding: 0.6rem 0 0.6rem 3.2rem;
  color: var(--ve9b-muted);
  font-size: 1.3rem;
  border-left: 2px solid var(--ve9b-line);
  margin-left: 1rem;
  padding-left: 2.2rem;
}
.ve9b-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -1rem;
  top: 0.4rem;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: var(--ve9b-primary);
  color: #0b1f22;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- RTP table ---------- */
.ve9b-rtp-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 0.6rem;
  padding: 0.8rem 0.4rem;
  border-bottom: 1px solid var(--ve9b-line);
  font-size: 1.2rem;
}
.ve9b-rtp-row span:first-child { color: var(--ve9b-text); font-weight: 600; }
.ve9b-rtp-row span.rtp-val { color: var(--ve9b-accent); font-weight: 700; text-align: right; }
.ve9b-rtp-row span.rtp-bar {
  position: relative;
  height: 0.7rem;
  background: rgba(189,195,199,0.15);
  border-radius: 0.4rem;
  overflow: hidden;
  align-self: center;
}
.ve9b-rtp-row span.rtp-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--ve9b-primary), var(--ve9b-accent));
}

/* ---------- Testimonials ---------- */
.ve9b-testi {
  display: flex; flex-direction: column; gap: 0.4rem;
  padding: 0.9rem;
  background: var(--ve9b-surface);
  border-radius: 0.8rem;
  margin-bottom: 0.7rem;
}
.ve9b-testi .ve9b-stars { color: var(--ve9b-accent); font-size: 1.1rem; }
.ve9b-testi p { font-size: 1.25rem; color: var(--ve9b-muted); }
.ve9b-testi .ve9b-author { font-size: 1.15rem; color: var(--ve9b-faint); }

/* ---------- Payment grid ---------- */
.ve9b-pay-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}
.ve9b-pay-item {
  background: var(--ve9b-surface);
  border-radius: 0.7rem;
  padding: 0.7rem 0.3rem;
  text-align: center;
  font-size: 1rem;
  color: var(--ve9b-muted);
  border: 1px solid var(--ve9b-line);
}
.ve9b-pay-item i { font-size: 1.8rem; color: var(--ve9b-primary); display: block; margin-bottom: 0.2rem; }

/* ---------- Winners ---------- */
.ve9b-winner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.55rem 0.7rem;
  background: var(--ve9b-surface);
  border-radius: 0.7rem;
  margin-bottom: 0.45rem;
  font-size: 1.2rem;
}
.ve9b-winner .ve9b-amount { color: var(--ve9b-accent); font-weight: 700; }

/* ---------- CTA banner ---------- */
.ve9b-cta {
  background: linear-gradient(135deg, var(--ve9b-deep), #11202c);
  border: 1px solid rgba(0,206,209,0.4);
  border-radius: 1.2rem;
  padding: 1.4rem;
  text-align: center;
  margin: 1rem 1.4rem;
}
.ve9b-cta h3 { color: var(--ve9b-text); margin-bottom: 0.4rem; font-size: 1.5rem; }
.ve9b-cta p { color: var(--ve9b-muted); margin-bottom: 0.9rem; font-size: 1.25rem; }

/* ---------- Tricks list ---------- */
.ve9b-tricks { list-style: none; }
.ve9b-tricks li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.8rem;
  font-size: 1.25rem;
  color: var(--ve9b-muted);
}
.ve9b-tricks li::before {
  content: "▸";
  position: absolute; left: 0.4rem;
  color: var(--ve9b-primary);
}

/* ---------- Achievements ---------- */
.ve9b-ach-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}
.ve9b-ach {
  background: var(--ve9b-surface);
  border-radius: 0.8rem;
  padding: 0.9rem;
  text-align: center;
  border: 1px solid var(--ve9b-line);
}
.ve9b-ach .ve9b-ach-num { font-size: 1.7rem; font-weight: 800; color: var(--ve9b-primary); }
.ve9b-ach .ve9b-ach-label { font-size: 1.1rem; color: var(--ve9b-muted); margin-top: 0.2rem; }

/* ---------- Footer ---------- */
.ve9b-footer {
  background: #0c0e11;
  border-top: 1px solid var(--ve9b-line);
  padding: 1.8rem 1.4rem 9rem;
  margin-top: 1.5rem;
}
.ve9b-footer-brand { color: var(--ve9b-muted); font-size: 1.25rem; margin-bottom: 1rem; line-height: 1.4; }
.ve9b-footer-promos {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem;
}
.ve9b-footer-promos button, .ve9b-footer-promos a.ve9b-footer-btn {
  flex: 1 1 calc(50% - 0.5rem);
  min-height: 3.4rem;
  text-align: center;
  font-size: 1.15rem; font-weight: 700;
  border-radius: 0.7rem;
  padding: 0.5rem;
  cursor: pointer;
  color: #0b1f22;
  background: linear-gradient(135deg, var(--ve9b-primary), #5af0f2);
  border: none;
}
.ve9b-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1rem;
  margin: 0.6rem 0 1rem;
}
.ve9b-footer-links a {
  color: var(--ve9b-muted);
  font-size: 1.15rem;
  text-decoration: underline;
}
.ve9b-footer-copy {
  font-size: 1.1rem;
  color: var(--ve9b-faint);
  border-top: 1px solid var(--ve9b-line);
  padding-top: 0.8rem;
}

/* ---------- Bottom nav ---------- */
.ve9b-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  height: 6rem;
  background: rgba(12,14,17,0.985);
  border-top: 1px solid var(--ve9b-line);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  backdrop-filter: blur(8px);
}
.ve9b-bottom-nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  background: transparent;
  border: none;
  color: var(--ve9b-faint);
  font-size: 1rem;
  cursor: pointer;
  min-width: 60px;
  min-height: 60px;
  transition: color 0.18s, transform 0.15s;
  position: relative;
}
.ve9b-bottom-nav-btn i { font-size: 2rem; }
.ve9b-bottom-nav-btn .material-icons,
.ve9b-bottom-nav-btn .ion { font-size: 2.2rem; }
.ve9b-bottom-nav-btn:active { transform: scale(0.92); }
.ve9b-bottom-nav-btn.ve9b-nav-current { color: var(--ve9b-primary); }
.ve9b-bottom-nav-btn.ve9b-nav-current::after {
  content: "";
  position: absolute;
  top: 0;
  width: 2.4rem; height: 0.25rem;
  background: var(--ve9b-primary);
  border-radius: 0 0 0.3rem 0.3rem;
}
.ve9b-nav-badge {
  position: absolute;
  top: 0.5rem; right: calc(50% - 1.6rem);
  background: var(--ve9b-danger);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 0.8rem;
  padding: 0 0.35rem;
  min-width: 1.4rem;
  text-align: center;
  line-height: 1.4rem;
}

/* ---------- Mobile bottom padding ---------- */
@media (max-width: 768px) {
  main.ve9b-main { padding-bottom: 7.5rem; }
}

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

/* ---------- Small screens tighten grid ---------- */
@media (max-width: 360px) {
  .ve9b-grid { grid-template-columns: repeat(2, 1fr); }
  .ve9b-pay-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Utility ---------- */
.ve9b-text-center { text-align: center; }
.ve9b-mt-1 { margin-top: 0.6rem; }
.ve9b-mt-2 { margin-top: 1.2rem; }
.ve9b-muted { color: var(--ve9b-muted); }
.ve9b-divider {
  height: 1px; background: var(--ve9b-line); margin: 1rem 0;
}
