/* ============================================================
   cv6.homes - Base Stylesheet
   All custom classes use v450- prefix
   Palette: #FA8072 | #F5DEB3 | #6C757D | #1A1A2E | #00E5FF | #FF7F50
   ============================================================ */

:root {
  --v450-primary: #FA8072;
  --v450-accent: #00E5FF;
  --v450-warm: #FF7F50;
  --v450-cream: #F5DEB3;
  --v450-gray: #6C757D;
  --v450-bg: #1A1A2E;
  --v450-bg-alt: #16213e;
  --v450-text: #F5DEB3;
  --v450-text-light: #ffffff;
  --v450-border: rgba(245, 222, 179, 0.15);
  --v450-radius: 1.2rem;
  --v450-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.35);
}

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

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

body {
  font-family: 'Segoe UI', 'Noto Sans Bengali', 'Hind Siliguri', system-ui, sans-serif;
  background: var(--v450-bg);
  color: var(--v450-text-light);
  line-height: 1.5rem;
  font-size: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}

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

a {
  color: var(--v450-accent);
  text-decoration: none;
}

/* ============================================================
   Header
   ============================================================ */
.v450-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 1000;
  background: linear-gradient(135deg, #1A1A2E 0%, #16213e 100%);
  border-bottom: 0.1rem solid var(--v450-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  transition: transform 0.3s ease;
}

.v450-header-hidden {
  transform: translateX(-50%) translateY(-100%);
}

.v450-header-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.v450-logo {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 0.15rem solid var(--v450-primary);
  object-fit: cover;
}

.v450-site-name {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--v450-cream);
  letter-spacing: 0.05rem;
}

.v450-site-name span {
  color: var(--v450-primary);
}

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

.v450-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 0.8rem;
  padding: 0.7rem 1.2rem;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 4rem;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.v450-btn:active {
  transform: scale(0.95);
}

.v450-btn-register {
  background: linear-gradient(135deg, var(--v450-primary), var(--v450-warm));
  color: #fff;
  box-shadow: 0 0.3rem 0.8rem rgba(250, 128, 114, 0.4);
}

.v450-btn-login {
  background: transparent;
  color: var(--v450-accent);
  border: 0.15rem solid var(--v450-accent);
}

.v450-menu-toggle {
  background: transparent;
  border: none;
  color: var(--v450-cream);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 0.4rem;
  min-width: 4rem;
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   Mobile Menu / Slide-out drawer
   ============================================================ */
.v450-mobile-menu {
  position: fixed;
  top: 0;
  right: -80%;
  width: 80%;
  max-width: 340px;
  height: 100vh;
  background: var(--v450-bg-alt);
  z-index: 9999;
  padding: 6rem 1.5rem 2rem;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.v450-menu-active {
  right: 0;
}

.v450-mobile-menu h3 {
  color: var(--v450-primary);
  font-size: 1.6rem;
  margin-bottom: 1rem;
  border-bottom: 0.1rem solid var(--v450-border);
  padding-bottom: 0.5rem;
}

.v450-mobile-menu a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--v450-cream);
  padding: 1rem;
  font-size: 1.4rem;
  border-radius: 0.6rem;
  transition: background 0.2s ease;
}

.v450-mobile-menu a:hover,
.v450-mobile-menu a:active {
  background: rgba(0, 229, 255, 0.12);
}

.v450-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.v450-overlay-active {
  opacity: 1;
  pointer-events: auto;
}

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

/* ============================================================
   Main content wrapper
   ============================================================ */
.v450-main {
  padding-top: 5.6rem;
  padding-bottom: 8rem;
  min-height: 100vh;
}

/* ============================================================
   Carousel / Hero slider
   ============================================================ */
.v450-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 1.5rem 1.5rem;
  margin-bottom: 1.5rem;
}

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

.v450-carousel-slide {
  min-width: 100%;
  position: relative;
  cursor: pointer;
}

.v450-carousel-slide img {
  width: 100%;
  height: 18rem;
  object-fit: cover;
}

.v450-carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(26, 26, 46, 0.95));
  padding: 1.5rem 1.2rem 1rem;
  color: #fff;
}

.v450-carousel-caption h2 {
  font-size: 1.8rem;
  color: var(--v450-cream);
  margin-bottom: 0.3rem;
}

.v450-carousel-caption p {
  font-size: 1.3rem;
  color: var(--v450-accent);
}

.v450-carousel-dots {
  position: absolute;
  bottom: 0.8rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
}

.v450-carousel-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: rgba(245, 222, 179, 0.4);
  border: none;
  cursor: pointer;
}

.v450-dot-active {
  background: var(--v450-primary);
  width: 2.2rem;
  border-radius: 0.4rem;
}

.v450-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(26, 26, 46, 0.7);
  color: var(--v450-cream);
  border: none;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 2;
}

.v450-carousel-arrow-prev { left: 0.8rem; }
.v450-carousel-arrow-next { right: 0.8rem; }

/* ============================================================
   Section layout
   ============================================================ */
.v450-section {
  padding: 1.5rem 1.2rem;
}

.v450-section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--v450-cream);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-left: 0.4rem solid var(--v450-primary);
  padding-left: 0.8rem;
}

.v450-section-title i {
  color: var(--v450-accent);
  font-size: 2.2rem;
}

.v450-section-subtitle {
  font-size: 1.3rem;
  color: var(--v450-gray);
  margin-bottom: 1.2rem;
}

/* ============================================================
   H1 hero
   ============================================================ */
.v450-hero {
  background: linear-gradient(135deg, rgba(250, 128, 114, 0.15), rgba(0, 229, 255, 0.08));
  padding: 1.5rem 1.2rem;
  margin-bottom: 1rem;
  border-radius: 0 0 1.5rem 1.5rem;
}

.v450-hero h1 {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--v450-cream);
  line-height: 1.3;
  margin-bottom: 0.8rem;
}

.v450-hero p {
  font-size: 1.4rem;
  color: var(--v450-text-light);
  opacity: 0.9;
}

/* ============================================================
   Filter chips
   ============================================================ */
.v450-filter-bar {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.5rem 1.2rem 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

.v450-filter-chip {
  background: rgba(245, 222, 179, 0.08);
  border: 0.1rem solid var(--v450-border);
  color: var(--v450-cream);
  padding: 0.6rem 1.2rem;
  border-radius: 2rem;
  font-size: 1.3rem;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.v450-chip-active {
  background: linear-gradient(135deg, var(--v450-primary), var(--v450-warm));
  border-color: transparent;
  color: #fff;
  font-weight: 700;
}

/* ============================================================
   Game grid
   ============================================================ */
.v450-game-section {
  margin-bottom: 2rem;
}

.v450-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  padding: 0 1.2rem;
}

.v450-game-card {
  background: var(--v450-bg-alt);
  border-radius: 0.8rem;
  overflow: hidden;
  cursor: pointer;
  border: 0.1rem solid var(--v450-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}

.v450-game-card:active {
  transform: scale(0.96);
  border-color: var(--v450-primary);
}

.v450-game-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.v450-game-card-name {
  font-size: 1.2rem;
  color: var(--v450-cream);
  padding: 0.5rem 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

/* ============================================================
   Promo banner / CTA
   ============================================================ */
.v450-promo-cta {
  background: linear-gradient(135deg, var(--v450-primary), var(--v450-warm));
  border-radius: 1.2rem;
  padding: 1.5rem 1.2rem;
  margin: 1.5rem 1.2rem;
  text-align: center;
  color: #fff;
  box-shadow: var(--v450-shadow);
}

.v450-promo-cta h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.v450-promo-cta p {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  opacity: 0.95;
}

.v450-cta-btn {
  display: inline-block;
  background: #fff;
  color: var(--v450-primary);
  font-weight: 800;
  padding: 1rem 2rem;
  border-radius: 0.8rem;
  font-size: 1.4rem;
  border: none;
  cursor: pointer;
}

/* ============================================================
   Info / content cards
   ============================================================ */
.v450-card {
  background: var(--v450-bg-alt);
  border-radius: 1rem;
  padding: 1.5rem 1.2rem;
  margin: 1rem 1.2rem;
  border: 0.1rem solid var(--v450-border);
}

.v450-card h2,
.v450-card h3 {
  color: var(--v450-cream);
  margin-bottom: 0.8rem;
}

.v450-card h2 {
  font-size: 1.8rem;
}

.v450-card h3 {
  font-size: 1.5rem;
  margin-top: 1rem;
}

.v450-card p {
  font-size: 1.35rem;
  color: var(--v450-text-light);
  opacity: 0.92;
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

.v450-card ul,
.v450-card ol {
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
}

.v450-card li {
  font-size: 1.35rem;
  color: var(--v450-text-light);
  opacity: 0.92;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.v450-card a {
  color: var(--v450-accent);
  font-weight: 600;
}

.v450-card a:hover {
  text-decoration: underline;
}

/* ============================================================
   Testimonial / winner / stats blocks
   ============================================================ */
.v450-stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  padding: 0 1.2rem;
  margin-bottom: 1.5rem;
}

.v450-stat-box {
  background: var(--v450-bg-alt);
  border-radius: 0.8rem;
  padding: 1rem;
  text-align: center;
  border: 0.1rem solid var(--v450-border);
}

.v450-stat-box .v450-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--v450-accent);
  display: block;
}

.v450-stat-box .v450-stat-label {
  font-size: 1.2rem;
  color: var(--v450-cream);
  opacity: 0.85;
}

.v450-testimonial {
  background: var(--v450-bg-alt);
  border-radius: 0.8rem;
  padding: 1rem 1.2rem;
  margin: 0.8rem 1.2rem;
  border-left: 0.3rem solid var(--v450-primary);
}

.v450-testimonial p {
  font-size: 1.3rem;
  color: var(--v450-text-light);
  font-style: italic;
  margin-bottom: 0.5rem;
}

.v450-testimonial .v450-author {
  font-size: 1.2rem;
  color: var(--v450-accent);
  font-weight: 700;
}

/* ============================================================
   Payment methods
   ============================================================ */
.v450-payment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  padding: 0 1.2rem;
}

.v450-payment-item {
  background: var(--v450-bg-alt);
  border-radius: 0.6rem;
  padding: 0.8rem 0.4rem;
  text-align: center;
  border: 0.1rem solid var(--v450-border);
}

.v450-payment-item i {
  font-size: 2rem;
  color: var(--v450-accent);
}

.v450-payment-item span {
  display: block;
  font-size: 1.1rem;
  color: var(--v450-cream);
  margin-top: 0.3rem;
}

/* ============================================================
   Footer
   ============================================================ */
.v450-footer {
  background: var(--v450-bg-alt);
  padding: 2rem 1.2rem 3rem;
  margin-top: 2rem;
  border-top: 0.1rem solid var(--v450-border);
}

.v450-footer-brand {
  font-size: 1.4rem;
  color: var(--v450-cream);
  line-height: 1.6;
  margin-bottom: 1.2rem;
  opacity: 0.9;
}

.v450-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.v450-footer-links a {
  background: rgba(245, 222, 179, 0.08);
  color: var(--v450-cream);
  padding: 0.6rem 1rem;
  border-radius: 0.6rem;
  font-size: 1.2rem;
  border: 0.1rem solid var(--v450-border);
  transition: all 0.2s ease;
}

.v450-footer-links a:hover {
  background: var(--v450-primary);
  color: #fff;
}

.v450-footer-copyright {
  font-size: 1.2rem;
  color: var(--v450-gray);
  text-align: center;
  border-top: 0.1rem solid var(--v450-border);
  padding-top: 1rem;
}

/* ============================================================
   Mobile bottom navigation
   ============================================================ */
.v450-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 6rem;
  background: linear-gradient(180deg, #16213e, #0f1525);
  border-top: 0.1rem solid var(--v450-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -0.4rem 1rem rgba(0, 0, 0, 0.3);
}

.v450-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-width: 6rem;
  min-height: 6rem;
  background: transparent;
  border: none;
  color: var(--v450-gray);
  cursor: pointer;
  font-size: 1.1rem;
  transition: color 0.2s ease, transform 0.15s ease;
  flex: 1;
  padding: 0.4rem;
}

.v450-bottom-nav-btn:active {
  transform: scale(0.92);
}

.v450-bottom-nav-btn i,
.v450-bottom-nav-btn .material-icons-outlined,
.v450-bottom-nav-btn .material-icons {
  font-size: 2.4rem;
}

.v450-bottom-nav-btn span {
  font-size: 1.1rem;
}

.v450-nav-active {
  color: var(--v450-primary);
}

.v450-nav-active i,
.v450-nav-active .material-icons-outlined {
  color: var(--v450-primary);
}

.v450-bottom-nav-btn.v450-nav-promo1 {
  color: var(--v450-warm);
}

.v450-bottom-nav-btn.v450-nav-promo2 {
  color: var(--v450-accent);
}

.v450-bottom-badge {
  position: absolute;
  top: 0.4rem;
  right: 1.5rem;
  background: var(--v450-primary);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 1rem;
  padding: 0.1rem 0.4rem;
  min-width: 1.6rem;
  text-align: center;
}

/* ============================================================
   Back to top
   ============================================================ */
.v450-back-top {
  position: fixed;
  bottom: 7rem;
  right: 1.2rem;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--v450-primary);
  color: #fff;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  z-index: 999;
  box-shadow: var(--v450-shadow);
  display: none;
}

/* ============================================================
   Desktop: hide bottom nav, expand layout
   ============================================================ */
@media (min-width: 769px) {
  .v450-bottom-nav { display: none; }
  .v450-main { padding-bottom: 2rem; }
  body { max-width: 768px; }
}

@media (max-width: 768px) {
  .v450-main { padding-bottom: 8rem; }
}

/* ============================================================
   Utility
   ============================================================ */
.v450-text-center { text-align: center; }
.v450-mt-1 { margin-top: 1rem; }
.v450-mb-1 { margin-bottom: 1rem; }
.v450-hidden { display: none; }
