/* =========================================================
   hit clup - shared stylesheet (prefixed with vace-)
   Mobile-first (max-width: 430px), 1rem = 10px via 62.5%
   Palette: #2C3E50 | #FF0000 | #F5DEB3 | #DEB887 | #A0522D
   ========================================================= */

:root {
  --vace-primary: #2C3E50;
  --vace-accent: #FF0000;
  --vace-soft: #F5DEB3;
  --vace-tan: #DEB887;
  --vace-brown: #A0522D;
  --vace-bg: #1d2733;
  --vace-bg-2: #243444;
  --vace-text: #F5DEB3;
  --vace-text-dim: #DEB887;
  --vace-card: #2a3b4d;
  --vace-border: #3a4d63;
  --vace-radius: 1.2rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(180deg, #1d2733 0%, #243444 100%);
  color: var(--vace-text);
  line-height: 1.5rem;
  min-height: 100vh;
}

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

/* ---------- Layout helpers ---------- */
.vace-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}
.vace-wrapper { padding: 1.2rem 0; }
.vace-section { padding: 1.6rem 0; border-bottom: 1px solid var(--vace-border); }
.vace-hidden { display: none !important; }

/* ---------- Buttons ---------- */
.vace-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.4rem;
  font-size: 1.4rem;
  font-weight: 700;
  border-radius: 2.4rem;
  border: 0;
  cursor: pointer;
  min-height: 44px;
  touch-action: manipulation;
}
.vace-btn-primary {
  background: var(--vace-accent);
  color: #fff;
  box-shadow: 0 0.3rem 0.6rem rgba(255, 0, 0, 0.35);
}
.vace-btn-primary:active { transform: scale(0.96); }
.vace-btn-outline {
  background: transparent;
  color: var(--vace-text);
  border: 1px solid var(--vace-text-dim);
}
.vace-btn-block { width: 100%; }
.vace-link {
  color: var(--vace-accent);
  font-weight: 700;
  text-decoration: underline;
}

/* ---------- Header ---------- */
.vace-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(44, 62, 80, 0.98);
  border-bottom: 1px solid var(--vace-border);
}
.vace-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1.2rem;
}
.vace-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--vace-soft);
  flex-shrink: 0;
}
.vace-logo img { width: 28px; height: 28px; border-radius: 6px; }
.vace-header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.vace-btn-header {
  padding: 0.5rem 1.1rem;
  font-size: 1.3rem;
  min-height: 36px;
}
.vace-menu-btn {
  background: transparent;
  border: 0;
  color: var(--vace-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  min-width: 44px;
  min-height: 44px;
}

/* ---------- Mobile menu drawer ---------- */
.vace-mobile-menu {
  position: fixed;
  top: 0; left: -100%;
  width: 78%;
  max-width: 320px;
  height: 100vh;
  background: var(--vace-bg-2);
  border-right: 1px solid var(--vace-border);
  z-index: 9999;
  padding: 1.6rem 1.4rem;
  transition: left 0.25s ease;
  overflow-y: auto;
}
.vace-mobile-menu.vace-menu-open { left: 0; }
.vace-mobile-menu h3 {
  font-size: 1.5rem;
  color: var(--vace-soft);
  margin: 0 0 1rem 0;
}
.vace-mobile-menu a {
  display: block;
  padding: 0.9rem 0.4rem;
  color: var(--vace-text-dim);
  font-size: 1.35rem;
  border-bottom: 1px dashed var(--vace-border);
}
.vace-mobile-menu a:active { color: var(--vace-accent); }
.vace-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.vace-overlay.vace-menu-open { opacity: 1; pointer-events: auto; }

/* ---------- Hero carousel ---------- */
.vace-hero {
  margin-top: 56px;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 1.6rem 1.6rem;
}
.vace-carousel { position: relative; }
.vace-slide {
  display: none;
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--vace-card);
  position: relative;
  cursor: pointer;
}
.vace-slide-active { display: block; }
.vace-slide img { width: 100%; height: 100%; object-fit: cover; }
.vace-slide-cap {
  position: absolute;
  left: 1.2rem; bottom: 1.2rem;
  background: rgba(0, 0, 0, 0.55);
  padding: 0.6rem 1rem;
  border-radius: 1.2rem;
  font-size: 1.3rem;
  color: #fff;
}
.vace-dots {
  position: absolute;
  left: 0; right: 0; bottom: 0.6rem;
  display: flex; justify-content: center; gap: 0.5rem;
}
.vace-dot {
  width: 8px; height: 8px;
  background: rgba(245, 222, 179, 0.5);
  border-radius: 50%;
  border: 0; padding: 0; cursor: pointer;
}
.vace-dot-active { background: var(--vace-accent); }

/* ---------- Sections & typography ---------- */
.vace-h1 {
  font-size: 2rem;
  line-height: 1.25;
  color: var(--vace-soft);
  margin: 1.6rem 0 0.8rem;
}
.vace-h2 {
  font-size: 1.7rem;
  color: var(--vace-soft);
  margin: 1.6rem 0 0.6rem;
  padding-left: 0.8rem;
  border-left: 4px solid var(--vace-accent);
}
.vace-h3 {
  font-size: 1.4rem;
  color: var(--vace-tan);
  margin: 1.2rem 0 0.4rem;
}
.vace-p { font-size: 1.35rem; margin: 0.4rem 0; color: var(--vace-text); }
.vace-muted { color: var(--vace-text-dim); }

/* ---------- Game grid ---------- */
.vace-game-section h2 { margin-top: 0; }
.vace-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.vace-card {
  background: var(--vace-card);
  border-radius: var(--vace-radius);
  border: 1px solid var(--vace-border);
  overflow: hidden;
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s ease;
}
.vace-card:active { transform: scale(0.96); }
.vace-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  background: #10202c;
}
.vace-card-name {
  font-size: 1.15rem;
  padding: 0.5rem 0.4rem;
  color: var(--vace-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vace-cat-pill {
  display: inline-block;
  background: var(--vace-brown);
  color: #fff;
  font-size: 1.15rem;
  padding: 0.2rem 0.8rem;
  border-radius: 1rem;
  margin-bottom: 0.6rem;
}

/* ---------- Info / features / FAQ ---------- */
.vace-feature {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem 0;
  border-bottom: 1px dashed var(--vace-border);
}
.vace-feature .vace-ico {
  font-size: 2.2rem;
  color: var(--vace-accent);
  text-align: center;
}
.vace-feature p { margin: 0.3rem 0; }

.vace-faq { border-top: 1px solid var(--vace-border); }
.vace-faq details {
  border-bottom: 1px solid var(--vace-border);
  padding: 0.8rem 0;
}
.vace-faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--vace-soft);
  font-size: 1.35rem;
}
.vace-faq p { margin: 0.6rem 0 0; color: var(--vace-text); }

/* ---------- RTP table ---------- */
.vace-rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.25rem;
  margin: 0.8rem 0;
}
.vace-rtp-table th,
.vace-rtp-table td {
  border: 1px solid var(--vace-border);
  padding: 0.6rem 0.8rem;
  text-align: left;
}
.vace-rtp-table th {
  background: var(--vace-brown);
  color: #fff;
  font-weight: 700;
}

/* ---------- Testimonials ---------- */
.vace-testi {
  background: var(--vace-card);
  border-radius: var(--vace-radius);
  padding: 1rem;
  margin: 0.6rem 0;
  border: 1px solid var(--vace-border);
}
.vace-testi .vace-stars { color: #FFD700; font-size: 1.3rem; }
.vace-testi p { margin: 0.4rem 0; }

/* ---------- Payment / winners ---------- */
.vace-pay { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.vace-pay span {
  background: var(--vace-card);
  border: 1px solid var(--vace-border);
  color: var(--vace-soft);
  border-radius: 1rem;
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
}
.vace-winner {
  display: flex; justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--vace-border);
  font-size: 1.25rem;
}
.vace-winner b { color: var(--vace-accent); }

/* ---------- App CTA ---------- */
.vace-app-cta {
  background: linear-gradient(135deg, #2C3E50, #A0522D);
  border-radius: var(--vace-radius);
  padding: 1.4rem;
  text-align: center;
  border: 1px solid var(--vace-border);
}
.vace-app-cta p { color: var(--vace-soft); margin: 0.6rem 0; }

/* ---------- Footer ---------- */
.vace-footer {
  background: #16202b;
  border-top: 1px solid var(--vace-border);
  padding: 1.6rem 1.2rem 2.4rem;
  margin-top: 1.6rem;
}
.vace-footer-inner { max-width: 430px; margin: 0 auto; }
.vace-footer h3 { color: var(--vace-soft); font-size: 1.4rem; margin: 1rem 0 0.6rem; }
.vace-footer p { color: var(--vace-text-dim); font-size: 1.25rem; }
.vace-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin: 0.8rem 0;
}
.vace-footer-links a {
  font-size: 1.2rem;
  color: var(--vace-tan);
  padding: 0.4rem 0.6rem;
  border: 1px dashed var(--vace-border);
  border-radius: 0.8rem;
  text-align: center;
}
.vace-footer-buttons {
  display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.8rem 0;
}
.vace-footer-buttons .vace-btn { font-size: 1.2rem; padding: 0.5rem 1rem; min-height: 38px; }
.vace-copy { text-align: center; color: var(--vace-text-dim); font-size: 1.15rem; margin-top: 1rem; }

/* ---------- Mobile bottom nav ---------- */
.vace-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: rgba(44, 62, 80, 0.99);
  border-top: 1px solid var(--vace-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
}
.vace-bottomnav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  color: var(--vace-text-dim);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.15s ease;
  gap: 2px;
}
.vace-bottomnav a:active { transform: scale(0.92); color: var(--vace-accent); }
.vace-bottomnav .vace-ico { font-size: 22px; }
.vace-bottomnav .material-icons { font-size: 24px; }
.vace-bottomnav span.label { font-size: 11px; }
.vace-bottomnav-active { color: var(--vace-accent) !important; }
.vace-badge {
  position: absolute;
  top: 6px; right: 12px;
  background: var(--vace-accent);
  color: #fff;
  font-size: 9px;
  min-width: 14px; height: 14px;
  border-radius: 50%;
  text-align: center;
  line-height: 14px;
  padding: 0 3px;
}

/* ---------- Desktop: hide bottom nav, expand layout ---------- */
@media (min-width: 769px) {
  body { background: #1d2733; }
  .vace-container { max-width: 960px; }
  .vace-header-inner { max-width: 960px; }
  .vace-grid { grid-template-columns: repeat(6, 1fr); }
  .vace-bottomnav { display: none; }
  .vace-footer-inner { max-width: 960px; }
}

/* ---------- Mobile clearance for fixed bottom nav ---------- */
@media (max-width: 768px) {
  main.vace-main { padding-bottom: 80px; }
  .vace-footer { padding-bottom: 80px; }
}

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