/* 99ol layout.css - basefiles build
 * All custom classes use v5dc- prefix.
 * Mobile-first, max width 430px optimized.
 */

:root {
  --v5dc-primary: #B22222;
  --v5dc-bg: #1B263B;
  --v5dc-bg-deep: #121a2b;
  --v5dc-accent: #FF1493;
  --v5dc-warm: #FF6347;
  --v5dc-text: #BDC3C7;
  --v5dc-text-muted: #ADB5BD;
  --v5dc-light: #ffffff;
  --v5dc-gold: #f5c451;
  --v5dc-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  --v5dc-radius: 12px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: var(--v5dc-bg);
  color: var(--v5dc-text);
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--v5dc-warm);
  text-decoration: none;
}

.v5dc-wrapper {
  max-width: 430px;
  margin: 0 auto;
  background: var(--v5dc-bg-deep);
  min-height: 100vh;
  position: relative;
}

/* ===== Header ===== */
.v5dc-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.2rem;
  background: linear-gradient(135deg, var(--v5dc-primary), var(--v5dc-accent));
  box-shadow: var(--v5dc-shadow);
}

.v5dc-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--v5dc-light);
  font-weight: 700;
  font-size: 1.8rem;
}

.v5dc-brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.v5dc-brand-name span {
  color: var(--v5dc-gold);
}

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

.v5dc-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 36px;
  padding: 0 1rem;
  border: none;
  border-radius: 999px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.v5dc-btn:active {
  transform: scale(0.96);
}

.v5dc-btn-register {
  background: var(--v5dc-gold);
  color: var(--v5dc-bg-deep);
}

.v5dc-btn-login {
  background: rgba(255, 255, 255, 0.15);
  color: var(--v5dc-light);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.v5dc-menu-toggle {
  background: transparent;
  border: none;
  color: var(--v5dc-light);
  font-size: 2rem;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Mobile menu ===== */
.v5dc-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--v5dc-bg-deep);
  z-index: 9999;
  padding: 6rem 1.6rem 2rem;
  transition: right 0.28s ease;
  overflow-y: auto;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
}

.v5dc-mobile-menu.v5dc-menu-open {
  right: 0;
}

.v5dc-mobile-menu h3 {
  color: var(--v5dc-gold);
  font-size: 1.4rem;
  margin: 1.2rem 0 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.v5dc-mobile-menu a {
  display: block;
  padding: 1rem 0.6rem;
  color: var(--v5dc-text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 1.4rem;
}

.v5dc-mobile-menu a:hover,
.v5dc-mobile-menu a:focus {
  color: var(--v5dc-warm);
}

.v5dc-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--v5dc-light);
  font-size: 2.2rem;
  cursor: pointer;
}

.v5dc-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9998;
}

.v5dc-overlay.v5dc-menu-open {
  display: block;
}

/* ===== Main ===== */
.v5dc-main {
  padding-bottom: 80px;
}

.v5dc-section {
  padding: 1.8rem 1.2rem;
}

.v5dc-section-title {
  font-size: 1.8rem;
  color: var(--v5dc-light);
  margin: 0 0 1rem;
  padding-left: 0.8rem;
  border-left: 4px solid var(--v5dc-gold);
}

.v5dc-section-title small {
  display: block;
  font-size: 1.2rem;
  color: var(--v5dc-text-muted);
  font-weight: 400;
  margin-top: 0.3rem;
}

/* ===== Carousel ===== */
.v5dc-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--v5dc-radius);
  margin: 1.2rem;
  box-shadow: var(--v5dc-shadow);
}

.v5dc-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.v5dc-carousel-slide {
  min-width: 100%;
  position: relative;
}

.v5dc-carousel-slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.v5dc-carousel-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  padding: 1.6rem 1rem 1rem;
  color: var(--v5dc-light);
}

.v5dc-carousel-caption strong {
  color: var(--v5dc-gold);
  font-size: 1.6rem;
  display: block;
  margin-bottom: 0.3rem;
}

.v5dc-carousel-dots {
  position: absolute;
  bottom: 8px;
  right: 12px;
  display: flex;
  gap: 6px;
}

.v5dc-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
}

.v5dc-carousel-dot-active {
  background: var(--v5dc-gold);
  width: 18px;
  border-radius: 4px;
}

/* ===== Filter tabs ===== */
.v5dc-filter-bar {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0 1.2rem 1rem;
  scrollbar-width: none;
}

.v5dc-filter-bar::-webkit-scrollbar {
  display: none;
}

.v5dc-filter-tab {
  flex: 0 0 auto;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--v5dc-text);
  font-size: 1.3rem;
  cursor: pointer;
  border: 1px solid transparent;
}

.v5dc-filter-tab-active {
  background: var(--v5dc-primary);
  color: var(--v5dc-light);
  border-color: var(--v5dc-gold);
}

/* ===== Game grid ===== */
.v5dc-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  padding: 0 1.2rem;
}

.v5dc-game-card {
  background: linear-gradient(160deg, #1f2c44, #15203a);
  border-radius: 10px;
  padding: 0.5rem;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.v5dc-game-card:active {
  transform: scale(0.95);
}

.v5dc-game-card img {
  width: 100%;
  height: 78px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.4rem;
}

.v5dc-game-name {
  font-size: 1.1rem;
  color: var(--v5dc-text);
  line-height: 1.3rem;
  height: 2.6rem;
  overflow: hidden;
}

/* ===== Info blocks ===== */
.v5dc-info-block {
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--v5dc-radius);
  padding: 1.4rem;
  margin: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.v5dc-info-block h2 {
  color: var(--v5dc-light);
  font-size: 1.7rem;
  margin: 0 0 0.8rem;
}

.v5dc-info-block p {
  font-size: 1.3rem;
  color: var(--v5dc-text);
  margin: 0 0 0.8rem;
}

.v5dc-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.v5dc-info-list li {
  padding: 0.5rem 0 0.5rem 1.8rem;
  position: relative;
  font-size: 1.3rem;
  color: var(--v5dc-text);
}

.v5dc-info-list li::before {
  content: "▸";
  position: absolute;
  left: 0.4rem;
  color: var(--v5dc-warm);
}

.v5dc-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.v5dc-pill {
  padding: 0.4rem 0.9rem;
  background: rgba(255, 20, 147, 0.15);
  color: var(--v5dc-accent);
  border-radius: 999px;
  font-size: 1.2rem;
}

/* ===== CTA banner ===== */
.v5dc-cta {
  margin: 1.2rem;
  padding: 1.6rem;
  border-radius: var(--v5dc-radius);
  text-align: center;
  background: linear-gradient(135deg, var(--v5dc-primary), var(--v5dc-accent));
  color: var(--v5dc-light);
  box-shadow: var(--v5dc-shadow);
}

.v5dc-cta h3 {
  margin: 0 0 0.5rem;
  font-size: 1.6rem;
  color: var(--v5dc-gold);
}

.v5dc-cta p {
  font-size: 1.3rem;
  margin: 0 0 1rem;
}

.v5dc-cta .v5dc-btn {
  background: var(--v5dc-gold);
  color: var(--v5dc-bg-deep);
  font-size: 1.4rem;
  padding: 0.8rem 2rem;
}

/* ===== Testimonials ===== */
.v5dc-testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  padding: 0 1.2rem;
}

.v5dc-testimonial {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 1rem;
  border-left: 3px solid var(--v5dc-gold);
}

.v5dc-testimonial strong {
  color: var(--v5dc-light);
  display: block;
  margin-bottom: 0.3rem;
}

.v5dc-testimonial p {
  margin: 0;
  font-size: 1.25rem;
  color: var(--v5dc-text);
}

/* ===== Payment row ===== */
.v5dc-pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0 1.2rem;
}

.v5dc-pay-item {
  flex: 1 1 28%;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 0.8rem 0.4rem;
  color: var(--v5dc-text);
  font-size: 1.2rem;
}

.v5dc-pay-item i {
  font-size: 2rem;
  color: var(--v5dc-warm);
  display: block;
  margin-bottom: 0.3rem;
}

/* ===== Winners ===== */
.v5dc-winner-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 1.25rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.v5dc-winner-row:last-child {
  border-bottom: none;
}

.v5dc-winner-row span:last-child {
  color: var(--v5dc-gold);
  font-weight: 700;
}

/* ===== Footer ===== */
.v5dc-footer {
  background: #0d1422;
  padding: 1.6rem 1.2rem 2rem;
  color: var(--v5dc-text-muted);
}

.v5dc-footer-brand {
  color: var(--v5dc-light);
  font-size: 1.4rem;
  margin: 0 0 0.6rem;
}

.v5dc-footer p {
  font-size: 1.2rem;
  line-height: 1.6rem;
  margin: 0 0 1rem;
}

.v5dc-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}

.v5dc-footer-links a {
  color: var(--v5dc-text);
  font-size: 1.2rem;
}

.v5dc-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.6rem 0 1rem;
}

.v5dc-footer-promo button {
  background: var(--v5dc-primary);
  color: var(--v5dc-light);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 1.2rem;
  cursor: pointer;
}

.v5dc-footer-copy {
  font-size: 1.1rem;
  color: var(--v5dc-text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
  text-align: center;
}

/* ===== Bottom nav ===== */
.v5dc-bottomnav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  height: 62px;
  background: linear-gradient(180deg, #1a2438, #0d1422);
  border-top: 2px solid var(--v5dc-gold);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
}

.v5dc-bottomnav-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--v5dc-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  font-size: 1.05rem;
  gap: 2px;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}

.v5dc-bottomnav-btn i,
.v5dc-bottomnav-btn span.material-icons,
.v5dc-bottomnav-btn ion-icon {
  font-size: 22px;
}

.v5dc-bottomnav-btn ion-icon {
  font-size: 24px;
}

.v5dc-bottomnav-btn:active {
  transform: scale(0.92);
}

.v5dc-bottomnav-active,
.v5dc-bottomnav-btn:hover {
  color: var(--v5dc-gold);
}

.v5dc-bottomnav-active {
  background: rgba(245, 196, 81, 0.08);
}

/* ===== Desktop ===== */
@media (min-width: 769px) {
  body {
    background: #0a0f1c;
  }
  .v5dc-wrapper {
    max-width: 720px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
  }
  .v5dc-bottomnav {
    display: none;
  }
  .v5dc-main {
    padding-bottom: 20px;
  }
  .v5dc-testimonial-grid {
    grid-template-columns: 1fr 1fr;
  }
  .v5dc-game-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
