/* ============================================================
   inplay hn620 - layout.css
   CSS class prefix: v191-  (per prompt_*.dat)
   CSS variables:   --v191-*
   Palette: #20B2AA | #34495E | #8B008B | #DDA0DD | #8A2BE2
   Mobile-first. Root font-size 62.5% (1rem = 10px).
   ============================================================ */

:root {
  --v191-primary:   #8A2BE2;   /* BlueViolet - brand */
  --v191-magenta:   #8B008B;   /* DarkMagenta - depth */
  --v191-plum:      #DDA0DD;   /* Plum - soft accent */
  --v191-teal:      #20B2AA;   /* LightSeaGreen - action */
  --v191-slate:     #34495E;   /* deep slate - base */
  --v191-bg:        #1f2a36;   /* dark background */
  --v191-bg-2:      #243140;   /* card background */
  --v191-bg-3:      #2d3a4a;   /* hover surface */
  --v191-text:      #f3e9f7;   /* primary text */
  --v191-muted:     #b9a7c9;   /* secondary text */
  --v191-line:      rgba(221,160,221,0.18);
  --v191-radius:    14px;
  --v191-shadow:    0 6px 20px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(180deg, #1b2433 0%, #1f2a36 60%, #2a1f3a 100%);
  color: var(--v191-text);
  font-size: 1.5rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--v191-plum); text-decoration: none; }
a:hover { color: #fff; }

/* ---------- Layout helpers ---------- */
.v191-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 12px; }
.v191-wrapper { padding: 14px 12px 24px; }
.v191-section { margin: 22px 0; }
.v191-grid { display: grid; gap: 10px; }

/* ---------- Header / Top nav ---------- */
.v191-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(90deg, #2c1a40 0%, #34495E 55%, #1c2c3f 100%);
  border-bottom: 1px solid var(--v191-line);
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
}
.v191-header-inner {
  max-width: 430px; margin: 0 auto;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
}
.v191-logo { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.v191-logo img { width: 28px; height: 28px; border-radius: 6px; }
.v191-logo span {
  font-weight: 800; font-size: 1.55rem; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  letter-spacing: 0.2px;
}
.v191-logo span em { color: var(--v191-teal); font-style: normal; }

.v191-btn {
  border: 0; border-radius: 20px; padding: 8px 14px;
  font-size: 1.3rem; font-weight: 700; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s;
}
.v191-btn:active { transform: scale(0.94); }
.v191-btn-register {
  background: linear-gradient(135deg, #8A2BE2, #8B008B);
  color: #fff; box-shadow: 0 3px 10px rgba(138,43,226,0.5);
}
.v191-btn-login {
  background: linear-gradient(135deg, #20B2AA, #1f8b85);
  color: #fff; box-shadow: 0 3px 10px rgba(32,178,170,0.45);
}
.v191-menu-btn {
  background: transparent; color: #fff; border: 1px solid var(--v191-line);
  width: 34px; height: 34px; border-radius: 8px; display: flex;
  align-items: center; justify-content: center; cursor: pointer;
}
.v191-menu-btn i { font-size: 18px; }

/* ---------- Nav drawer ---------- */
.v191-nav-drawer {
  position: fixed; top: 0; right: -100%; width: 80%; max-width: 320px;
  height: 100vh; z-index: 9999;
  background: #26183a; padding: 70px 18px 24px;
  transition: right .25s ease;
  box-shadow: -6px 0 24px rgba(0,0,0,0.5);
  overflow-y: auto;
}
.v191-nav-open { right: 0; }
.v191-nav-drawer h4 {
  font-size: 1.3rem; color: var(--v191-plum);
  text-transform: uppercase; letter-spacing: 1px; margin: 16px 0 6px;
}
.v191-nav-drawer a {
  display: block; padding: 10px 8px; color: var(--v191-text);
  border-bottom: 1px dashed var(--v191-line); font-size: 1.4rem;
}
.v191-nav-drawer a:hover { color: var(--v191-teal); }
.v191-nav-backdrop {
  display: none; position: fixed; inset: 0; z-index: 9998;
  background: rgba(0,0,0,0.6);
}
.v191-nav-backdrop.v191-show { display: block; }

/* ---------- Main content ---------- */
main { padding-top: 60px; padding-bottom: 84px; }
@media (max-width: 768px) { main { padding-bottom: 88px; } }

/* ---------- Carousel ---------- */
.v191-carousel {
  position: relative; overflow: hidden; border-radius: var(--v191-radius);
  box-shadow: var(--v191-shadow); margin: 6px 0 4px;
}
.v191-carousel-track { display: flex; transition: transform .45s ease; }
.v191-carousel-slide { min-width: 100%; position: relative; }
.v191-carousel-slide img { width: 100%; height: 180px; object-fit: cover; }
.v191-carousel-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 8px 12px;
  background: linear-gradient(0deg, rgba(0,0,0,0.75), rgba(0,0,0,0));
  font-size: 1.3rem; color: #fff;
}
.v191-carousel-cap b { color: var(--v191-teal); }
.v191-carousel-dots {
  position: absolute; bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.v191-carousel-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.45); cursor: pointer;
}
.v191-dot-active { background: var(--v191-teal); }

/* ---------- Headings ---------- */
.v191-h1 {
  font-size: 2.1rem; line-height: 1.3; margin: 16px 4px 8px;
  color: #fff; font-weight: 800;
}
.v191-h1 span { color: var(--v191-teal); }
.v191-h2 {
  font-size: 1.75rem; margin: 22px 6px 10px;
  padding-left: 10px; border-left: 4px solid var(--v191-primary);
  color: #fff; font-weight: 700;
}
.v191-h3 {
  font-size: 1.45rem; margin: 14px 6px 8px; color: var(--v191-plum);
  font-weight: 700;
}
.v191-lead { color: var(--v191-muted); font-size: 1.4rem; padding: 0 6px; }

/* ---------- Filter tabs ---------- */
.v191-filter-bar {
  display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 10px;
  -webkit-overflow-scrolling: touch;
}
.v191-filter-tab {
  flex: 0 0 auto; padding: 6px 12px; border-radius: 16px;
  background: var(--v191-bg-2); color: var(--v191-muted);
  font-size: 1.25rem; font-weight: 600; cursor: pointer;
  border: 1px solid var(--v191-line); white-space: nowrap;
}
.v191-filter-active {
  background: linear-gradient(135deg, #8A2BE2, #8B008B);
  color: #fff; border-color: transparent;
}

/* ---------- Game grid ---------- */
.v191-game-group { margin: 10px 0 18px; }
.v191-game-group-title {
  font-size: 1.5rem; margin: 6px 2px 10px;
  color: var(--v191-teal); font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.v191-game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
@media (min-width: 400px) { .v191-game-grid { gap: 10px; } }
.v191-game-card {
  background: var(--v191-bg-2); border-radius: 10px; overflow: hidden;
  border: 1px solid var(--v191-line); cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  display: block; color: var(--v191-text);
}
.v191-game-card:active { transform: scale(0.96); }
.v191-game-card:hover { box-shadow: 0 6px 14px rgba(138,43,226,0.35); border-color: var(--v191-primary); }
.v191-game-card img {
  width: 100%; height: 92px; object-fit: cover;
  background: #0e1622;
}
.v191-game-card-name {
  padding: 6px 6px 8px; font-size: 1.15rem; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff;
}

/* ---------- Promo CTA block ---------- */
.v191-cta {
  background: linear-gradient(135deg, #8A2BE2 0%, #8B008B 60%, #34495E 100%);
  border-radius: var(--v191-radius); padding: 16px; color: #fff;
  box-shadow: var(--v191-shadow); margin: 12px 0;
}
.v191-cta h3 { color: #fff; margin: 0 0 6px; font-size: 1.55rem; }
.v191-cta p { margin: 0 0 10px; color: #f3e9f7; font-size: 1.35rem; }
.v191-cta .v191-btn {
  background: var(--v191-teal); color: #fff; padding: 10px 18px;
}
.v191-cta-link {
  display: inline-block; margin-top: 6px; color: #fff; font-weight: 700;
  border-bottom: 1px dashed #fff;
}

/* ---------- Feature cards ---------- */
.v191-cards { display: grid; gap: 10px; }
.v191-card {
  background: var(--v191-bg-2); border-radius: var(--v191-radius);
  padding: 12px 14px; border: 1px solid var(--v191-line);
}
.v191-card h3 { margin: 0 0 6px; color: var(--v191-plum); }
.v191-card p { margin: 0; color: var(--v191-muted); font-size: 1.35rem; }

/* ---------- Testimonial / list rows ---------- */
.v191-list {
  background: var(--v191-bg-2); border-radius: var(--v191-radius);
  padding: 10px 14px; border: 1px solid var(--v191-line);
  display: flex; align-items: center; gap: 10px;
}
.v191-list .v191-ic {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, #8A2BE2, #20B2AA);
  display: flex; align-items: center; justify-content: center; color: #fff;
  font-size: 18px; flex: 0 0 auto;
}
.v191-list .v191-text { color: var(--v191-text); font-size: 1.35rem; }
.v191-list .v191-text small { color: var(--v191-muted); display: block; }

/* ---------- Article / FAQ text ---------- */
.v191-prose p { margin: 0 0 10px; color: var(--v191-text); font-size: 1.4rem; }
.v191-prose strong { color: var(--v191-teal); }
.v191-faq-item {
  background: var(--v191-bg-2); border-radius: 10px;
  padding: 10px 12px; margin-bottom: 8px; border: 1px solid var(--v191-line);
}
.v191-faq-item h4 { margin: 0 0 4px; color: var(--v191-plum); font-size: 1.35rem; }
.v191-faq-item p { margin: 0; color: var(--v191-muted); font-size: 1.3rem; }

/* ---------- Payment methods strip ---------- */
.v191-pay-strip {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.v191-pay-chip {
  background: var(--v191-bg-2); border: 1px solid var(--v191-line);
  padding: 6px 10px; border-radius: 16px; font-size: 1.2rem; color: #fff;
}

/* ---------- Footer ---------- */
.v191-footer {
  background: #181f2b; border-top: 1px solid var(--v191-line);
  padding: 18px 12px 22px; margin-top: 20px;
}
.v191-footer h4 { color: var(--v191-teal); margin: 10px 0 6px; font-size: 1.3rem; text-transform: uppercase; letter-spacing: 0.5px; }
.v191-footer p { color: var(--v191-muted); font-size: 1.3rem; }
.v191-footer-links {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; margin: 8px 0;
}
.v191-footer-links a { color: var(--v191-text); font-size: 1.25rem; }
.v191-footer-links a:hover { color: var(--v191-teal); }
.v191-footer-buttons {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0;
}
.v191-footer-buttons .v191-btn { flex: 1 1 40%; min-width: 120px; text-align: center; }
.v191-copy { color: var(--v191-muted); font-size: 1.15rem; text-align: center; margin-top: 8px; }

/* ---------- Mobile bottom navigation ---------- */
.v191-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: 62px;
  background: linear-gradient(90deg, #1c1130 0%, #2c1a40 50%, #11202c 100%);
  border-top: 1px solid var(--v191-line);
  display: flex; justify-content: space-around; align-items: stretch;
  box-shadow: 0 -3px 14px rgba(0,0,0,0.4);
}
.v191-bottom-btn {
  flex: 1; min-width: 60px; min-height: 60px;
  background: transparent; border: 0; color: var(--v191-muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; cursor: pointer; padding: 4px 2px;
  transition: color .15s ease, transform .15s ease;
}
.v191-bottom-btn:active { transform: scale(0.9); }
.v191-bottom-btn .v191-bic { font-size: 22px; line-height: 1; }
.v191-bottom-btn .v191-blbl { font-size: 1rem; font-weight: 600; }
.v191-bottom-btn.v191-bottom-active,
.v191-bottom-btn:hover { color: var(--v191-teal); }
.v191-bottom-btn.v191-bottom-active .v191-bic { color: var(--v191-plum); }

/* Desktop: hide bottom nav, expand container */
@media (min-width: 769px) {
  .v191-bottom-nav { display: none; }
  .v191-container { max-width: 960px; }
  .v191-game-grid { grid-template-columns: repeat(6, 1fr); }
  main { padding-bottom: 30px; }
}

/* Back-to-top FAB */
.v191-totop {
  position: fixed; right: 12px; bottom: 74px; z-index: 999;
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #8A2BE2, #20B2AA); color: #fff;
  border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--v191-shadow);
}
@media (min-width: 769px) { .v191-totop { bottom: 16px; } }
