/* ============================================================
   wjpeso casino - Core Stylesheet (basefiles)
   All custom classes use the v962- prefix.
   Palette: #FF8C00 / #F5F5F5 / #0F0F23 / #008B8B
   ============================================================ */

:root {
  --v962-primary: #FF8C00;
  --v962-primary-dark: #cc7000;
  --v962-bg: #0F0F23;
  --v962-bg-soft: #161634;
  --v962-bg-card: #1d1d40;
  --v962-teal: #008B8B;
  --v962-teal-light: #16a5a5;
  --v962-text: #F5F5F5;
  --v962-text-muted: #b5b5cc;
  --v962-border: rgba(255, 255, 255, 0.08);
  --v962-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  --v962-radius: 14px;
  --v962-radius-sm: 10px;
  --v962-header-h: 58px;
  --v962-bottom-h: 60px;
}

/* ------------------------- Reset ------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, system-ui, sans-serif;
  background: var(--v962-bg);
  color: var(--v962-text);
  line-height: 1.5;
  font-size: 1.5rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--v962-primary); text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ------------------------- Layout ------------------------ */
.v962-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.v962-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
main.v962-main { flex: 1; padding-top: var(--v962-header-h); }
.v962-section { padding: 2.4rem 0; }
.v962-section-alt { background: var(--v962-bg-soft); }

.v962-section-title {
  font-size: 2rem; font-weight: 700; margin-bottom: 1.2rem;
  display: flex; align-items: center; gap: 0.8rem;
  color: var(--v962-text);
}
.v962-section-title .v962-title-bar {
  width: 5px; height: 22px; border-radius: 3px; background: var(--v962-primary);
}
.v962-section-subtitle { font-size: 1.4rem; color: var(--v962-text-muted); margin-bottom: 1.6rem; }

/* ------------------------- Header ------------------------ */
.v962-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--v962-header-h);
  background: linear-gradient(135deg, #0a0a1f 0%, #14143a 100%);
  border-bottom: 1px solid var(--v962-border);
  display: flex; align-items: center;
}
.v962-header-inner {
  width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 0.8rem;
}
.v962-brand { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.v962-brand img { width: 30px; height: 30px; border-radius: 8px; }
.v962-brand-name { font-size: 1.6rem; font-weight: 800; color: var(--v962-primary); white-space: nowrap; }
.v962-brand-name span { color: var(--v962-text); }

.v962-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.v962-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  font-size: 1.3rem; font-weight: 700; border-radius: 22px;
  padding: 0.7rem 1.2rem; min-height: 36px; transition: transform .15s ease, filter .15s ease;
}
.v962-btn:active { transform: scale(0.95); }
.v962-btn-register { background: var(--v962-primary); color: #1a0f00; }
.v962-btn-register:hover { filter: brightness(1.08); }
.v962-btn-login { background: transparent; color: var(--v962-text); border: 1px solid var(--v962-primary); }

#v962-menu-toggle {
  width: 38px; height: 38px; border-radius: 10px; color: var(--v962-text);
  background: rgba(255, 255, 255, 0.06); font-size: 1.8rem;
  display: inline-flex; align-items: center; justify-content: center;
}

/* --------------------- Mobile Menu ----------------------- */
#v962-mobile-menu {
  position: fixed; top: var(--v962-header-h); left: 0; right: 0; z-index: 9999;
  background: var(--v962-bg-soft); border-bottom: 1px solid var(--v962-border);
  max-height: 0; overflow: hidden; transition: max-height .28s ease;
  box-shadow: var(--v962-shadow);
}
#v962-mobile-menu.v962-menu-open { max-height: 80vh; overflow-y: auto; }
.v962-menu-list { padding: 0.8rem 1.2rem 1.4rem; }
.v962-menu-list a {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 0.8rem; font-size: 1.5rem; color: var(--v962-text);
  border-bottom: 1px solid var(--v962-border);
}
.v962-menu-list a:last-child { border-bottom: none; }
.v962-menu-list a i, .v962-menu-list a span.material-icons-outlined { color: var(--v962-primary); font-size: 2rem; width: 24px; text-align: center; }
.v962-menu-list a:hover { background: rgba(255, 140, 0, 0.08); }

/* ----------------------- Carousel ------------------------ */
.v962-carousel {
  position: relative; border-radius: var(--v962-radius); overflow: hidden;
  box-shadow: var(--v962-shadow); margin-bottom: 0.8rem;
}
.v962-carousel-slide {
  display: none; position: relative; cursor: pointer;
}
.v962-carousel-slide.v962-slide-active { display: block; }
.v962-carousel-slide img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.v962-carousel-overlay {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem 1.2rem 1rem;
  background: linear-gradient(to top, rgba(15,15,35,0.92), transparent);
  color: var(--v962-text);
}
.v962-carousel-overlay h2 { font-size: 1.9rem; font-weight: 800; margin-bottom: 0.3rem; color: var(--v962-primary); }
.v962-carousel-overlay p { font-size: 1.3rem; color: var(--v962-text-muted); }
.v962-carousel-dots {
  position: absolute; bottom: 0.8rem; right: 1rem; display: flex; gap: 0.5rem; z-index: 2;
}
.v962-carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.45); transition: background .2s; }
.v962-carousel-dot.v962-dot-active { background: var(--v962-primary); }

/* ----------------------- Game Grid ----------------------- */
.v962-cat-tabs { display: flex; gap: 0.6rem; overflow-x: auto; padding-bottom: 0.8rem; margin-bottom: 1rem; scrollbar-width: none; }
.v962-cat-tabs::-webkit-scrollbar { display: none; }
.v962-cat-tab {
  flex: 0 0 auto; padding: 0.7rem 1.3rem; border-radius: 20px;
  background: var(--v962-bg-card); color: var(--v962-text-muted); font-size: 1.3rem; font-weight: 600;
  white-space: nowrap;
}

.v962-game-section { margin-bottom: 1rem; }
.v962-game-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.v962-game-section-head h3 {
  font-size: 1.7rem; font-weight: 800; color: var(--v962-text);
  display: flex; align-items: center; gap: 0.6rem;
}
.v962-game-section-head h3 .material-icons-outlined { color: var(--v962-primary); font-size: 2.2rem; }
.v962-game-section-head a { font-size: 1.3rem; color: var(--v962-teal-light); font-weight: 600; }

.v962-game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem;
}
.v962-game-card {
  background: var(--v962-bg-card); border-radius: var(--v962-radius-sm);
  overflow: hidden; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
  border: 1px solid var(--v962-border); display: block;
}
.v962-game-card:hover, .v962-game-card:active { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0,0,0,0.35); border-color: var(--v962-primary); }
.v962-game-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #0a0a1e; }
.v962-game-card .v962-game-name {
  font-size: 1.15rem; text-align: center; padding: 0.5rem 0.3rem; color: var(--v962-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600;
}

/* --------------------- Info cards ------------------------ */
.v962-card {
  background: var(--v962-bg-card); border-radius: var(--v962-radius);
  padding: 1.6rem; box-shadow: var(--v962-shadow); border: 1px solid var(--v962-border);
}
.v962-card h3 { font-size: 1.7rem; font-weight: 700; margin-bottom: 0.8rem; color: var(--v962-primary); }
.v962-card p { font-size: 1.4rem; color: var(--v962-text-muted); margin-bottom: 0.8rem; }
.v962-card a.v962-text-link { color: var(--v962-primary); font-weight: 700; }
.v962-card a.v962-text-link:hover { text-decoration: underline; }

.v962-feature-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.v962-feature-item {
  display: flex; gap: 1rem; align-items: flex-start; padding: 1.2rem;
  background: var(--v962-bg-card); border-radius: var(--v962-radius-sm); border-left: 3px solid var(--v962-primary);
}
.v962-feature-item .material-icons-outlined, .v962-feature-item i { color: var(--v962-teal-light); font-size: 2.4rem; }
.v962-feature-item h4 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.3rem; }
.v962-feature-item p { font-size: 1.3rem; color: var(--v962-text-muted); }

/* ----------------------- FAQ ----------------------------- */
.v962-faq-item { border-bottom: 1px solid var(--v962-border); padding: 1rem 0; }
.v962-faq-item h4 { font-size: 1.5rem; font-weight: 700; color: var(--v962-text); margin-bottom: 0.4rem; }
.v962-faq-item p { font-size: 1.35rem; color: var(--v962-text-muted); }

/* --------------------- Promo banner ---------------------- */
.v962-promo-banner {
  background: linear-gradient(135deg, var(--v962-primary) 0%, #ff6a00 100%);
  color: #1a0f00; border-radius: var(--v962-radius); padding: 1.8rem 1.6rem; text-align: center;
  box-shadow: var(--v962-shadow); margin-bottom: 1rem;
}
.v962-promo-banner h3 { font-size: 2rem; font-weight: 800; margin-bottom: 0.4rem; }
.v962-promo-banner p { font-size: 1.35rem; margin-bottom: 1rem; }
.v962-promo-banner .v962-btn-promo {
  display: inline-block; background: #0F0F23; color: var(--v962-primary);
  padding: 1rem 2.4rem; border-radius: 24px; font-size: 1.5rem; font-weight: 800;
}

/* ----------------------- Footer -------------------------- */
.v962-footer { background: #08081a; padding: 2.4rem 0 1rem; border-top: 1px solid var(--v962-border); margin-top: 2rem; }
.v962-footer-brand { font-size: 1.4rem; color: var(--v962-text-muted); margin-bottom: 1.2rem; line-height: 1.6; }
.v962-footer-links { display: flex; flex-wrap: wrap; gap: 0.8rem 1.2rem; margin-bottom: 1.2rem; }
.v962-footer-links a { font-size: 1.25rem; color: var(--v962-text-muted); }
.v962-footer-links a:hover { color: var(--v962-primary); }
.v962-footer-promos { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.2rem; }
.v962-footer-promos .v962-btn-promo {
  background: var(--v962-primary); color: #1a0f00; font-size: 1.2rem; font-weight: 700;
  padding: 0.5rem 1rem; border-radius: 18px;
}
.v962-footer-copy { font-size: 1.2rem; color: #6a6a85; border-top: 1px solid var(--v962-border); padding-top: 1rem; text-align: center; }

/* ---------------------- Bottom nav ----------------------- */
.v962-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: var(--v962-bottom-h); background: linear-gradient(180deg, #14143a 0%, #08081a 100%);
  border-top: 1px solid var(--v962-border);
  display: flex; justify-content: space-around; align-items: center;
  box-shadow: 0 -2px 14px rgba(0, 0, 0, 0.5);
}
.v962-bottom-nav-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 60px; gap: 0.2rem; color: var(--v962-text-muted);
  background: none; border: none; transition: color .15s ease, transform .15s ease;
}
.v962-bottom-nav-btn:active { transform: scale(0.9); }
.v962-bottom-nav-btn .material-icons-outlined,
.v962-bottom-nav-btn i { font-size: 2.3rem; }
.v962-bottom-nav-btn span.v962-nav-label { font-size: 1.05rem; font-weight: 600; }
.v962-bottom-nav-btn:hover { color: var(--v962-text); }
.v962-bottom-nav-btn.v962-nav-active { color: var(--v962-primary); }
.v962-bottom-nav-btn.v962-nav-promo { color: var(--v962-teal-light); }

/* ----------------------- Utilities ----------------------- */
.v962-text-center { text-align: center; }
.v962-mt-1 { margin-top: 0.6rem; }
.v962-mt-2 { margin-top: 1.2rem; }
.v962-hidden { display: none !important; }
.v962-kw { color: var(--v962-primary); font-weight: 700; }

/* ----------------------- Responsive ---------------------- */
@media (min-width: 769px) {
  .v962-bottom-nav { display: none; }
  .v962-container { max-width: 760px; }
}
@media (max-width: 768px) {
  main.v962-main { padding-bottom: 80px; }
}
@media (max-width: 360px) {
  .v962-game-grid { grid-template-columns: repeat(2, 1fr); }
  .v962-brand-name { font-size: 1.4rem; }
}
