/* qn88 base CSS - all classes use v1ad- prefix */
/* Palette: #BBBBBB | #262626 | #FFB74D | #FFCCCB */

:root {
  --v1ad-bg: #262626;
  --v1ad-bg-soft: #303030;
  --v1ad-bg-card: #353535;
  --v1ad-text: #BBBBBB;
  --v1ad-text-light: #F5F5F5;
  --v1ad-primary: #FFB74D;
  --v1ad-secondary: #FFCCCB;
  --v1ad-border: #3d3d3d;
  --v1ad-shadow: 0 4px 14px rgba(0,0,0,0.45);
}

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

html { font-size: 62.5%; scroll-behavior: smooth; }

body {
  background: var(--v1ad-bg);
  color: var(--v1ad-text);
  font-family: "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--v1ad-primary); text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { color: var(--v1ad-text-light); line-height: 1.3; }

.v1ad-container { width: 100%; padding: 0 1.2rem; }

/* ===== Header ===== */
.v1ad-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  max-width: 430px; margin: 0 auto;
  background: linear-gradient(135deg, #1f1f1f, #2f2f2f);
  border-bottom: 2px solid var(--v1ad-primary);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 1rem; min-height: 5.6rem;
  transition: min-height .25s ease;
}
.v1ad-header-compact { min-height: 4.6rem; box-shadow: var(--v1ad-shadow); }

.v1ad-brand { display: flex; align-items: center; gap: 0.6rem; }
.v1ad-brand img { width: 3rem; height: 3rem; border-radius: 50%; }
.v1ad-brand b { color: var(--v1ad-primary); font-size: 1.7rem; letter-spacing: 0.5px; }

.v1ad-head-actions { display: flex; align-items: center; gap: 0.5rem; }
.v1ad-btn {
  border: none; border-radius: 999px; cursor: pointer;
  padding: 0.7rem 1.2rem; font-size: 1.3rem; font-weight: 700;
  transition: transform .15s ease, opacity .2s ease;
}
.v1ad-btn:active { transform: scale(0.94); }
.v1ad-btn-primary { background: linear-gradient(135deg, #FFB74D, #ffa820); color: #1a1a1a; }
.v1ad-btn-ghost { background: transparent; color: var(--v1ad-text-light); border: 1px solid var(--v1ad-text); }
.v1ad-menu-btn {
  background: transparent; border: none; color: var(--v1ad-text-light);
  font-size: 2rem; cursor: pointer; padding: 0.4rem 0.6rem; line-height: 1;
}

/* ===== Mobile slide-down menu ===== */
#v1ad-menu-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  z-index: 9998; display: none;
}
.v1ad-menu-open#v1ad-menu-overlay { display: block; }
#v1ad-mobile-menu {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  max-width: 430px; margin: 0 auto;
  background: #1f1f1f; padding: 5.6rem 1.2rem 1.5rem;
  transform: translateY(-110%); transition: transform .28s ease;
  border-bottom: 2px solid var(--v1ad-primary); border-radius: 0 0 14px 14px;
}
#v1ad-mobile-menu.v1ad-menu-open { transform: translateY(0); }
.v1ad-menu-close {
  position: absolute; top: 1rem; right: 1rem;
  background: transparent; border: none; color: #fff; font-size: 2rem; cursor: pointer;
}
.v1ad-menu-title { color: var(--v1ad-primary); font-size: 1.3rem; margin: 0.5rem 0 0.3rem; text-transform: uppercase; letter-spacing: 1px; }
.v1ad-mobile-menu ul { list-style: none; }
.v1ad-mobile-menu li a {
  display: block; padding: 1rem 0.4rem; color: var(--v1ad-text-light);
  border-bottom: 1px solid var(--v1ad-border); font-size: 1.4rem; font-weight: 600;
}
.v1ad-mobile-menu li a:active { color: var(--v1ad-primary); }

/* ===== Main ===== */
main { padding-top: 6rem; padding-bottom: 90px; }
.v1ad-section { padding: 2rem 0; }
.v1ad-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.v1ad-section-head h2 { font-size: 1.8rem; }
.v1ad-section-head h2 em { color: var(--v1ad-primary); font-style: normal; }
.v1ad-link { color: var(--v1ad-primary); font-size: 1.25rem; font-weight: 600; }

/* ===== Hero / Carousel ===== */
.v1ad-carousel { position: relative; border-radius: 14px; overflow: hidden; box-shadow: var(--v1ad-shadow); margin-bottom: 1.5rem; }
.v1ad-slide { display: none; position: relative; }
.v1ad-slide img { width: 100%; height: 180px; object-fit: cover; }
.v1ad-slide-active { display: block; }
.v1ad-slide-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  padding: 2rem 1rem 1rem; color: #fff;
}
.v1ad-slide-cap h3 { color: var(--v1ad-primary); font-size: 1.6rem; margin-bottom: 0.3rem; }
.v1ad-slide-cap p { font-size: 1.2rem; }
.v1ad-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; z-index: 4; }
.v1ad-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.45); cursor: pointer; border: none; padding: 0; }
.v1ad-dot-active { background: var(--v1ad-primary); width: 18px; border-radius: 6px; }

/* ===== Hero CTA band ===== */
.v1ad-hero-cta {
  background: linear-gradient(135deg, rgba(255,183,77,0.15), rgba(255,204,203,0.12));
  border: 1px solid var(--v1ad-border); border-radius: 14px;
  padding: 1.4rem; text-align: center; margin-bottom: 1.5rem;
}
.v1ad-hero-cta h2 { font-size: 1.7rem; margin-bottom: 0.5rem; }
.v1ad-hero-cta h2 em { color: var(--v1ad-primary); font-style: normal; }
.v1ad-hero-cta p { font-size: 1.25rem; margin-bottom: 1rem; }

/* ===== Game grid ===== */
.v1ad-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.v1ad-card {
  background: var(--v1ad-bg-card); border-radius: 10px; overflow: hidden;
  border: 1px solid var(--v1ad-border); transition: transform .15s ease, border-color .15s ease;
  display: flex; flex-direction: column;
}
.v1ad-card:active { transform: scale(0.96); border-color: var(--v1ad-primary); }
.v1ad-card img { width: 100%; height: 84px; object-fit: cover; }
.v1ad-card-name {
  font-size: 1.1rem; color: var(--v1ad-text-light); text-align: center;
  padding: 0.4rem 0.2rem 0.5rem; font-weight: 600; line-height: 1.2;
  min-height: 3rem;
}
.v1ad-card-tag {
  position: absolute; top: 4px; left: 4px;
  background: var(--v1ad-primary); color: #1a1a1a;
  font-size: 1rem; font-weight: 700; padding: 0.1rem 0.4rem; border-radius: 4px;
}
.v1ad-card-wrap { position: relative; }

/* ===== Info / FAQ / text blocks ===== */
.v1ad-block { background: var(--v1ad-bg-soft); border: 1px solid var(--v1ad-border); border-radius: 12px; padding: 1.2rem; margin-bottom: 1.2rem; }
.v1ad-block h2 { font-size: 1.6rem; margin-bottom: 0.6rem; }
.v1ad-block h3 { font-size: 1.35rem; margin: 0.8rem 0 0.4rem; color: var(--v1ad-secondary); }
.v1ad-block p { margin-bottom: 0.7rem; font-size: 1.3rem; }
.v1ad-block ul { padding-left: 1.6rem; }
.v1ad-block li { margin-bottom: 0.4rem; font-size: 1.3rem; }
.v1ad-block strong { color: var(--v1ad-primary); }

/* RTP compact table */
.v1ad-rtp { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 0.5rem; }
.v1ad-rtp .v1ad-rtp-h { background: var(--v1ad-primary); color: #1a1a1a; font-weight: 700; padding: 0.5rem; font-size: 1.2rem; border-radius: 6px; }
.v1ad-rtp .v1ad-rtp-c { background: var(--v1ad-bg-card); padding: 0.5rem; font-size: 1.2rem; border-radius: 6px; color: var(--v1ad-text-light); }

/* Testimonials */
.v1ad-quote { background: var(--v1ad-bg-card); border-left: 3px solid var(--v1ad-primary); padding: 0.8rem 1rem; border-radius: 8px; margin-bottom: 0.8rem; }
.v1ad-quote p { font-size: 1.25rem; font-style: italic; margin-bottom: 0.4rem; }
.v1ad-quote cite { color: var(--v1ad-secondary); font-size: 1.1rem; }

/* Payment pills */
.v1ad-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.v1ad-pill { background: var(--v1ad-bg-card); border: 1px solid var(--v1ad-border); color: var(--v1ad-text-light); padding: 0.5rem 0.9rem; border-radius: 999px; font-size: 1.15rem; font-weight: 600; }

/* Winners list */
.v1ad-winners li { display: flex; justify-content: space-between; padding: 0.4rem 0; border-bottom: 1px dashed var(--v1ad-border); font-size: 1.2rem; }
.v1ad-winners .v1ad-amount { color: var(--v1ad-primary); font-weight: 700; }

/* Achievements */
.v1ad-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.v1ad-badge { background: linear-gradient(135deg, var(--v1ad-primary), #ff9c2a); color: #1a1a1a; padding: 0.4rem 0.8rem; border-radius: 8px; font-size: 1.1rem; font-weight: 700; }

/* ===== Footer ===== */
.v1ad-footer { background: #1c1c1c; border-top: 2px solid var(--v1ad-primary); padding: 1.6rem 1.2rem; }
.v1ad-footer p { font-size: 1.2rem; margin-bottom: 0.8rem; color: var(--v1ad-text); }
.v1ad-footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 0.8rem; margin-bottom: 1rem; }
.v1ad-footer-links a { color: var(--v1ad-secondary); font-size: 1.15rem; text-decoration: underline; }
.v1ad-footer-promo { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.v1ad-copy { font-size: 1.1rem; color: #777; border-top: 1px solid var(--v1ad-border); padding-top: 0.8rem; }

/* ===== Mobile bottom nav ===== */
.v1ad-bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  max-width: 430px; margin: 0 auto;
  height: 6rem;
  background: linear-gradient(180deg, #2a2a2a, #1a1a1a);
  border-top: 2px solid var(--v1ad-primary);
  display: flex; justify-content: space-around; align-items: stretch;
  padding: 0.3rem 0;
}
.v1ad-bottomnav a {
  flex: 1; min-width: 60px; min-height: 56px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--v1ad-text); font-size: 1rem; font-weight: 600;
  gap: 0.2rem; transition: color .15s ease, transform .15s ease;
}
.v1ad-bottomnav a .v1ad-ic { font-size: 2.2rem; line-height: 1; }
.v1ad-bottomnav a:active { transform: scale(0.92); color: var(--v1ad-primary); }
.v1ad-bottomnav a.v1ad-active { color: var(--v1ad-primary); }
.v1ad-bottomnav a .v1ad-badge-num {
  position: absolute; top: 4px; right: 50%; transform: translateX(1.4rem);
  background: var(--v1ad-secondary); color: #1a1a1a; font-size: 0.9rem;
  border-radius: 999px; padding: 0 0.3rem; font-weight: 700;
}

/* Desktop: hide bottom nav */
@media (min-width: 769px) {
  .v1ad-bottomnav { display: none; }
  body { max-width: 768px; }
}
@media (min-width: 431px) and (max-width: 768px) {
  main { padding-bottom: 90px; }
}

/* Utility */
.v1ad-text-lead { font-size: 1.4rem; color: var(--v1ad-text-light); margin-bottom: 1rem; }
.v1ad-center { text-align: center; }
.v1ad-mt { margin-top: 1rem; }
