/* ============================================================
   TH7 design system (prefix: vabc-)
   Mobile-first gaming website styles for the th7.click canvas.
   Palette: #FF8C00 / #808080 / #FFA500 / #1B263B / #2C3E50
   ============================================================ */

:root {
  --vabc-orange: #FF8C00;
  --vabc-orange-soft: #FFA500;
  --vabc-gray: #808080;
  --vabc-ink: #1B263B;
  --vabc-ink-deep: #2C3E50;
  --vabc-bg: #141d2e;
  --vabc-bg-2: #1B263B;
  --vabc-bg-3: #243349;
  --vabc-bg-4: #2C3E50;
  --vabc-text: #f4f6fb;
  --vabc-text-soft: #c4ccd9;
  --vabc-text-mute: #8b94a6;
  --vabc-line: rgba(255, 255, 255, 0.08);
  --vabc-line-strong: rgba(255, 140, 0, 0.35);
  --vabc-glow: 0 0 14px rgba(255, 165, 0, 0.45);
  --vabc-radius: 14px;
  --vabc-radius-sm: 10px;
  --vabc-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  --vabc-header-h: 56px;
  --vabc-bottomnav-h: 64px;
  --vabc-container: 430px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--vabc-bg);
  color: var(--vabc-text);
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.55;
  background:
    radial-gradient(1100px 540px at 50% -120px, rgba(255, 165, 0, 0.18), transparent 70%),
    linear-gradient(180deg, #141d2e 0%, #101727 100%);
  overflow-x: hidden;
}

a { color: var(--vabc-orange-soft); text-decoration: none; }
a:focus-visible { outline: 2px solid var(--vabc-orange); outline-offset: 2px; border-radius: 6px; }

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

h1, h2, h3, h4 { margin: 0 0 8px; line-height: 1.3; font-weight: 700; letter-spacing: 0.2px; }

.vabc-wrap {
  max-width: var(--vabc-container);
  margin: 0 auto;
  padding: 0 14px;
}

main { padding-bottom: calc(var(--vabc-bottomnav-h) + 32px); }

/* ============================================================
   Header / Compact brand bar
   ============================================================ */
.vabc-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, rgba(27, 38, 59, 0.98), rgba(20, 29, 46, 0.96));
  border-bottom: 1px solid var(--vabc-line);
  backdrop-filter: blur(8px);
}

.vabc-header-inner {
  max-width: var(--vabc-container);
  margin: 0 auto;
  min-height: var(--vabc-header-h);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
}

.vabc-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1;
  min-width: 0;
}

.vabc-brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--vabc-bg-3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--vabc-line);
}

.vabc-brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}
.vabc-brand-name strong {
  font-size: 16px;
  color: var(--vabc-text);
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.vabc-brand-name span {
  font-size: 11px;
  color: var(--vabc-text-mute);
  white-space: nowrap;
}

.vabc-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vabc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.vabc-btn:active { transform: translateY(1px); }

.vabc-btn-primary {
  background: linear-gradient(135deg, var(--vabc-orange), var(--vabc-orange-soft));
  color: #1B263B;
  box-shadow: var(--vabc-glow);
}
.vabc-btn-primary:hover { box-shadow: 0 0 18px rgba(255, 165, 0, 0.6); }

.vabc-btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--vabc-text);
  border-color: var(--vabc-line);
}
.vabc-btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }

.vabc-menu-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--vabc-line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--vabc-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.vabc-menu-btn svg { width: 20px; height: 20px; }

/* ============================================================
   Layered dropdown menu
   ============================================================ */
.vabc-menu {
  position: absolute;
  top: calc(var(--vabc-header-h) + 4px);
  right: 12px;
  left: 12px;
  background: var(--vabc-bg-2);
  border: 1px solid var(--vabc-line);
  border-radius: var(--vabc-radius);
  box-shadow: var(--vabc-shadow);
  padding: 8px;
  display: none;
  z-index: 70;
  max-height: 75vh;
  overflow-y: auto;
}
.vabc-menu-open { display: block; }

.vabc-menu-group { margin-bottom: 4px; }
.vabc-menu-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--vabc-text-soft);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 8px;
}
.vabc-menu-group-title:hover { background: rgba(255, 255, 255, 0.04); }
.vabc-menu-group-title .vabc-caret {
  font-size: 10px;
  color: var(--vabc-orange-soft);
  transition: transform 0.2s ease;
}

.vabc-menu-group-links {
  display: none;
  padding: 4px 6px 8px;
  border-top: 1px solid var(--vabc-line);
  margin-top: 2px;
}
.vabc-group-open { display: block; }
.vabc-group-open .vabc-caret { transform: rotate(90deg); }

.vabc-menu-group-links a {
  display: block;
  padding: 9px 10px;
  color: var(--vabc-text-soft);
  font-size: 13.5px;
  border-radius: 8px;
}
.vabc-menu-group-links a:hover {
  background: rgba(255, 165, 0, 0.1);
  color: var(--vabc-text);
}

/* ============================================================
   Hero carousel
   ============================================================ */
.vabc-hero {
  position: relative;
  margin: 12px 0 18px;
  border-radius: var(--vabc-radius);
  overflow: hidden;
  box-shadow: var(--vabc-shadow);
}
.vabc-hero-track { position: relative; height: 188px; }
.vabc-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  display: flex;
}
.vabc-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vabc-slide-active { opacity: 1; }
.vabc-hero-caption {
  position: absolute;
  left: 14px;
  right: 90px;
  top: auto;
  bottom: 14px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}
.vabc-hero-caption span {
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: 0.6px;
  padding: 3px 8px;
  background: rgba(255, 140, 0, 0.85);
  color: #1B263B;
  border-radius: 6px;
  margin-bottom: 6px;
  font-weight: 700;
}
.vabc-hero-caption strong {
  display: block;
  font-size: 16px;
  line-height: 1.25;
}
.vabc-hero-dots {
  position: absolute;
  bottom: 10px;
  right: 12px;
  display: flex;
  gap: 5px;
}
.vabc-hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}
.vabc-dot-active { background: var(--vabc-orange); box-shadow: var(--vabc-glow); }

/* ============================================================
   Quick category chips
   ============================================================ */
.vabc-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 10px;
  scrollbar-width: none;
}
.vabc-chips::-webkit-scrollbar { display: none; }
.vabc-chip {
  flex: 0 0 auto;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--vabc-line);
  color: var(--vabc-text-soft);
  cursor: pointer;
  white-space: nowrap;
}
.vabc-chip:hover, .vabc-chip[data-active="1"] {
  background: rgba(255, 165, 0, 0.14);
  color: var(--vabc-text);
  border-color: var(--vabc-line-strong);
}

/* ============================================================
   Section heads
   ============================================================ */
.vabc-section { margin: 22px 0 6px; }
.vabc-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 8px;
}
.vabc-section-head h2 {
  font-size: 16px;
  color: var(--vabc-text);
  position: relative;
  padding-left: 12px;
}
.vabc-section-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--vabc-orange), var(--vabc-orange-soft));
}
.vabc-section-head a {
  font-size: 12px;
  color: var(--vabc-orange-soft);
  font-weight: 600;
}
.vabc-section-sub {
  font-size: 12.5px;
  color: var(--vabc-text-mute);
  margin: -2px 0 10px;
}

/* ============================================================
   Game grid
   ============================================================ */
.vabc-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}
@media (min-width: 360px) {
  .vabc-game-grid { gap: 10px; }
}
@media (min-width: 400px) {
  .vabc-game-grid { grid-template-columns: repeat(5, 1fr); gap: 11px; }
}
.vabc-game-card {
  display: block;
  background: var(--vabc-bg-3);
  border-radius: var(--vabc-radius-sm);
  padding: 5px;
  text-align: center;
  cursor: pointer;
  border: 1px solid var(--vabc-line);
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}
.vabc-game-card:hover {
  transform: translateY(-2px);
  border-color: var(--vabc-line-strong);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}
.vabc-game-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  background: #0e1524;
  object-fit: cover;
}
.vabc-game-name {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--vabc-text);
  margin-top: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.25;
  min-height: 28px;
}

/* ============================================================
   Info / promo tiles
   ============================================================ */
.vabc-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.vabc-tile {
  background: linear-gradient(135deg, var(--vabc-bg-3), var(--vabc-bg-4));
  border: 1px solid var(--vabc-line);
  border-radius: var(--vabc-radius-sm);
  padding: 12px;
}
.vabc-tile-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--vabc-orange-soft);
  margin-bottom: 6px;
}
.vabc-tile-text {
  font-size: 12.5px;
  color: var(--vabc-text-soft);
  line-height: 1.45;
}

/* ============================================================
   Testimonials
   ============================================================ */
.vabc-reviews {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.vabc-review {
  background: var(--vabc-bg-3);
  border: 1px solid var(--vabc-line);
  border-radius: var(--vabc-radius-sm);
  padding: 12px;
}
.vabc-review-stars { color: var(--vabc-orange-soft); font-size: 12px; margin-bottom: 6px; letter-spacing: 2px; }
.vabc-review-text { font-size: 12.5px; color: var(--vabc-text-soft); font-style: italic; line-height: 1.45; }
.vabc-review-author { font-size: 11.5px; color: var(--vabc-text-mute); margin-top: 6px; }

/* ============================================================
   How-to steps
   ============================================================ */
.vabc-steps { counter-reset: vabcstep; list-style: none; padding: 0; margin: 0; }
.vabc-steps li {
  position: relative;
  padding: 10px 12px 10px 44px;
  margin-bottom: 8px;
  background: var(--vabc-bg-3);
  border-radius: var(--vabc-radius-sm);
  border: 1px solid var(--vabc-line);
  font-size: 13px;
  color: var(--vabc-text-soft);
  counter-increment: vabcstep;
}
.vabc-steps li::before {
  content: counter(vabcstep);
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--vabc-orange), var(--vabc-orange-soft));
  color: #1B263B;
  font-weight: 800;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   FAQ accordion
   ============================================================ */
.vabc-faq { border: 1px solid var(--vabc-line); border-radius: var(--vabc-radius); overflow: hidden; background: var(--vabc-bg-2); }
.vabc-faq-item { border-bottom: 1px solid var(--vabc-line); }
.vabc-faq-item:last-child { border-bottom: none; }
.vabc-faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--vabc-text);
  cursor: pointer;
}
.vabc-faq-q .vabc-toggle { color: var(--vabc-orange-soft); font-size: 16px; transition: transform 0.2s; }
.vabc-faq-a {
  max-height: 0;
  overflow: hidden;
  padding: 0 14px;
  color: var(--vabc-text-soft);
  font-size: 12.5px;
  transition: max-height 0.25s ease, padding 0.25s ease;
}
.vabc-faq-open .vabc-faq-q .vabc-toggle { transform: rotate(45deg); }
.vabc-faq-open .vabc-faq-a {
  max-height: 360px;
  padding-bottom: 14px;
}

/* ============================================================
   SEO prose
   ============================================================ */
.vabc-prose {
  background: var(--vabc-bg-2);
  border: 1px solid var(--vabc-line);
  border-radius: var(--vabc-radius);
  padding: 16px;
  margin: 18px 0;
}
.vabc-prose h2 { font-size: 15.5px; color: var(--vabc-text); margin-bottom: 8px; }
.vabc-prose h3 { font-size: 13.5px; color: var(--vabc-orange-soft); margin: 12px 0 6px; }
.vabc-prose p { font-size: 13px; color: var(--vabc-text-soft); margin: 0 0 10px; line-height: 1.6; }
.vabc-prose p a { color: var(--vabc-orange-soft); font-weight: 600; }
.vabc-prose ul { padding-left: 18px; margin: 0 0 10px; color: var(--vabc-text-soft); }
.vabc-prose ul li { font-size: 13px; margin-bottom: 4px; line-height: 1.55; }

/* ============================================================
   Footer + extended footer
   ============================================================ */
.vabc-extended {
  margin: 24px 0 16px;
  background: var(--vabc-bg-2);
  border: 1px solid var(--vabc-line);
  border-radius: var(--vabc-radius);
  padding: 16px;
}
.vabc-ext-brand { font-size: 12.5px; color: var(--vabc-text-soft); margin-bottom: 12px; line-height: 1.55; }
.vabc-ext-brand strong { color: var(--vabc-orange-soft); }

.vabc-ext-promos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.vabc-ext-promo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 11px;
  border-radius: var(--vabc-radius-sm);
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.16), rgba(255, 165, 0, 0.06));
  border: 1px solid var(--vabc-line-strong);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--vabc-text);
  cursor: pointer;
}
.vabc-ext-promo:active { transform: scale(0.99); }
.vabc-ext-promo .vabc-pico {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(255, 140, 0, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.vabc-ext-promo .vabc-pico svg { width: 16px; height: 16px; color: var(--vabc-orange-soft); }

.vabc-ext-dir { margin-bottom: 12px; }
.vabc-ext-dir-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--vabc-text-mute);
  margin-bottom: 8px;
  font-weight: 700;
}
.vabc-ext-dir-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.vabc-ext-dir-links a {
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  color: var(--vabc-text-soft);
  border: 1px solid var(--vabc-line);
}
.vabc-ext-dir-links a:hover { background: rgba(255, 165, 0, 0.1); color: var(--vabc-text); }

.vabc-ext-disclaimer {
  font-size: 11.5px;
  color: var(--vabc-text-mute);
  line-height: 1.5;
  padding-top: 10px;
  border-top: 1px solid var(--vabc-line);
}

/* ============================================================
   Bottom navigation (layered bottom bar)
   ============================================================ */
.vabc-bottomnav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: var(--vabc-container);
  height: var(--vabc-bottomnav-h);
  background: linear-gradient(180deg, rgba(27, 38, 59, 0.98), rgba(20, 29, 46, 0.99));
  border-top: 1px solid var(--vabc-line);
  backdrop-filter: blur(10px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 80;
}
.vabc-bottomnav a,
.vabc-bottomnav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: transparent;
  border: none;
  color: var(--vabc-text-mute);
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 4px;
  position: relative;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}
.vabc-bottomnav a:hover,
.vabc-bottomnav button:hover { color: var(--vabc-text-soft); }
.vabc-bottomnav a .vabc-ico,
.vabc-bottomnav button .vabc-ico {
  width: 38px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.vabc-bottomnav a .vabc-ico svg,
.vabc-bottomnav button .vabc-ico svg { width: 18px; height: 18px; }
.vabc-bottomnav .vabc-current { color: var(--vabc-orange-soft); }
.vabc-bottomnav .vabc-current .vabc-ico {
  transform: translateY(-3px);
  background: rgba(255, 140, 0, 0.18);
  box-shadow: 0 0 12px rgba(255, 165, 0, 0.35);
}

/* ============================================================
   Help and page-introduction treatments
   ============================================================ */
.vabc-page-intro {
  padding: 18px 4px 8px;
}
.vabc-page-intro h1 { font-size: 22px; color: var(--vabc-text); }
.vabc-page-intro p { margin: 0; color: var(--vabc-text-soft); font-size: 13.5px; }
.vabc-help-hero {
  margin: 16px 0;
  padding: 18px;
  border-left: 3px solid var(--vabc-orange);
  background: linear-gradient(135deg, rgba(255,140,0,.16), var(--vabc-bg-2));
  border-radius: var(--vabc-radius-sm);
}
.vabc-help-hero h1 { font-size: 22px; }
.vabc-help-hero p { margin: 8px 0 0; color: var(--vabc-text-soft); font-size: 13.5px; }
.vabc-answer { padding: 13px 14px; margin: 12px 0; border: 1px solid var(--vabc-line-strong); border-radius: 10px; color: var(--vabc-text); background: rgba(255,165,0,.07); }
.vabc-answer strong { color: var(--vabc-orange-soft); }
.vabc-help-block { margin: 18px 0; }
.vabc-help-block h2 { font-size: 16px; color: var(--vabc-text); }
.vabc-help-block p, .vabc-help-block li { font-size: 13px; color: var(--vabc-text-soft); }
.vabc-help-block ul, .vabc-help-block ol { padding-left: 20px; }
.vabc-help-block li { margin: 7px 0; }
.vabc-callout { padding: 12px; margin: 10px 0; border-radius: 9px; background: var(--vabc-bg-3); border: 1px solid var(--vabc-line); }
.vabc-callout a, .vabc-help-block a { font-weight: 700; }
.vabc-choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.vabc-choice { padding: 11px; border-top: 2px solid var(--vabc-orange); background: var(--vabc-bg-3); border-radius: 8px; }
.vabc-choice strong { display: block; color: var(--vabc-orange-soft); margin-bottom: 4px; font-size: 13px; }
.vabc-choice span { color: var(--vabc-text-soft); font-size: 12px; }
.vabc-help-cta { display: inline-flex; min-height: 44px; align-items: center; padding: 9px 14px; margin: 5px 5px 5px 0; border-radius: 9px; background: linear-gradient(135deg, var(--vabc-orange), var(--vabc-orange-soft)); color: var(--vabc-ink); font-weight: 800; font-size: 12px; }

/* ============================================================
   Utility
   ============================================================ */
.vabc-hidden { display: none !important; }
.vabc-visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
