/*!
 * tu95.click - layout.css
 * Prefix: g322-
 * Mobile-first responsive design for tu95 casino (Vietnamese market).
 * Color palette: #87CEFA | #808080 | #B22222 | #E0FFFF | #2E4057
 * Comments in English.
 */

:root {
  --g322-primary: #87CEFA;      /* Light sky blue - accent */
  --g322-secondary: #B22222;    /* Firebrick - CTA */
  --g322-bg: #2E4057;           /* Deep blue-green - background */
  --g322-bg-alt: #1f2e3e;       /* Darker panel */
  --g322-text: #E0FFFF;         /* Light cyan - text */
  --g322-muted: #808080;        /* Neutral gray */
  --g322-gold: #ffd479;         /* Highlight gold */
  --g322-radius: 1.2rem;
  --g322-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.35);
}

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

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

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: var(--g322-bg);
  color: var(--g322-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}

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

a { color: var(--g322-primary); text-decoration: none; }

/* ===== Layout helpers ===== */
.g322-container {
  width: 100%;
  padding: 0 1.2rem;
}

.g322-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}

.g322-grid {
  display: grid;
  gap: 1rem;
}

/* ===== Header ===== */
.g322-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #1f2e3e 0%, #2E4057 100%);
  border-bottom: 0.2rem solid var(--g322-primary);
  box-shadow: var(--g322-shadow);
  max-width: 430px;
  margin: 0 auto;
}

.g322-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  gap: 0.6rem;
}

.g322-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--g322-text);
}

.g322-logo img {
  width: 3rem;
  height: 3rem;
  border-radius: 0.6rem;
}

.g322-logo span { color: var(--g322-primary); }

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

.g322-menu-btn {
  background: transparent;
  border: 0.1rem solid var(--g322-primary);
  color: var(--g322-text);
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 0.6rem;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ===== Buttons ===== */
.g322-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: 1rem;
  font-size: 1.3rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  min-height: 4rem;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

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

.g322-btn-register {
  background: linear-gradient(135deg, #B22222, #d44040);
  color: #fff;
  box-shadow: 0 0.3rem 0.8rem rgba(178, 34, 34, 0.4);
}

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

.g322-btn-cta {
  background: linear-gradient(135deg, #ffd479, #ffa520);
  color: #1f2e3e;
  font-weight: 800;
  width: 100%;
  padding: 1.1rem;
  font-size: 1.5rem;
  box-shadow: 0 0.4rem 1rem rgba(255, 212, 121, 0.35);
}

/* ===== Mobile menu ===== */
.g322-mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--g322-bg-alt);
  border-top: 0.1rem solid rgba(135, 206, 250, 0.2);
}

.g322-mobile-menu.g322-menu-open {
  max-height: 60rem;
}

.g322-mobile-menu ul {
  list-style: none;
  padding: 0.5rem 1rem;
}

.g322-mobile-menu li {
  border-bottom: 0.1rem solid rgba(135, 206, 250, 0.12);
}

.g322-mobile-menu a {
  display: block;
  padding: 1.1rem 0.8rem;
  color: var(--g322-text);
  font-size: 1.4rem;
  font-weight: 500;
}

.g322-mobile-menu a:active { color: var(--g322-primary); }

/* ===== Main content ===== */
.g322-main {
  padding-top: 6rem;
  padding-bottom: 1rem;
}

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

/* ===== Hero carousel ===== */
.g322-carousel {
  position: relative;
  margin: 1rem 0;
  border-radius: var(--g322-radius);
  overflow: hidden;
  box-shadow: var(--g322-shadow);
}

.g322-slide {
  display: none;
  position: relative;
}

.g322-slide.g322-slide-active { display: block; }

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

.g322-slide-caption {
  position: absolute;
  left: 1rem; right: 1rem; bottom: 1rem;
  background: rgba(31, 46, 62, 0.82);
  padding: 0.8rem 1rem;
  border-radius: 0.8rem;
  border-left: 0.3rem solid var(--g322-secondary);
}

.g322-slide-caption strong {
  display: block;
  color: var(--g322-primary);
  font-size: 1.4rem;
  margin-bottom: 0.2rem;
}

.g322-slide-caption span { color: var(--g322-text); font-size: 1.2rem; }

.g322-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 0;
}

.g322-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: rgba(224, 255, 255, 0.3);
  cursor: pointer;
}

.g322-dot.g322-dot-active { background: var(--g322-primary); }

/* ===== Section ===== */
.g322-section {
  margin: 1.6rem 0;
  padding: 0 1.2rem;
}

.g322-section-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
  padding-left: 0.8rem;
  border-left: 0.4rem solid var(--g322-secondary);
  color: var(--g322-text);
}

.g322-section-subtitle {
  font-size: 1.3rem;
  color: var(--g322-primary);
  margin: 0.6rem 0 0.4rem;
  font-weight: 600;
}

.g322-text-muted { color: var(--g322-muted); }

.g322-text-bold { color: var(--g322-primary); font-weight: 700; }

.g322-text-promo {
  color: var(--g322-secondary);
  font-weight: 800;
}

/* ===== Filter buttons ===== */
.g322-filter-bar {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.5rem 0;
  margin-bottom: 0.6rem;
}

.g322-filter-btn {
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  background: rgba(135, 206, 250, 0.12);
  color: var(--g322-text);
  border: 0.1rem solid transparent;
  font-size: 1.2rem;
  cursor: pointer;
}

.g322-filter-btn.g322-filter-active {
  background: var(--g322-primary);
  color: #1f2e3e;
  font-weight: 700;
}

/* ===== Game grid ===== */
.g322-game-group { margin: 1.2rem 0; }

.g322-game-group h3 {
  font-size: 1.5rem;
  color: var(--g322-gold);
  margin-bottom: 0.6rem;
  font-weight: 700;
}

.g322-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.g322-game-card {
  background: var(--g322-bg-alt);
  border-radius: 0.8rem;
  padding: 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 0.1rem solid rgba(135, 206, 250, 0.15);
}

.g322-game-card:active {
  transform: scale(0.96);
  box-shadow: 0 0 0.8rem rgba(135, 206, 250, 0.4);
}

.g322-game-card img {
  width: 100%;
  height: 7rem;
  object-fit: cover;
  border-radius: 0.5rem;
}

.g322-game-card span {
  display: block;
  font-size: 1.1rem;
  color: var(--g322-text);
  margin-top: 0.4rem;
  line-height: 1.3rem;
  min-height: 2.6rem;
  overflow: hidden;
}

/* ===== Cards / features ===== */
.g322-card {
  background: var(--g322-bg-alt);
  border-radius: var(--g322-radius);
  padding: 1.2rem;
  margin: 0.6rem 0;
  border: 0.1rem solid rgba(135, 206, 250, 0.15);
}

.g322-card-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0;
}

.g322-card-row .g322-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: rgba(135, 206, 250, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--g322-primary);
  flex-shrink: 0;
  font-size: 1.6rem;
}

.g322-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin: 0.6rem 0;
}

.g322-stat {
  background: rgba(135, 206, 250, 0.08);
  border-radius: 0.8rem;
  padding: 0.8rem;
  text-align: center;
  border: 0.1rem solid rgba(135, 206, 250, 0.15);
}

.g322-stat b {
  display: block;
  font-size: 1.6rem;
  color: var(--g322-gold);
}

.g322-stat span { font-size: 1.1rem; color: var(--g322-muted); }

/* ===== Testimonials ===== */
.g322-testimonial {
  background: var(--g322-bg-alt);
  border-radius: var(--g322-radius);
  padding: 1rem;
  margin: 0.5rem 0;
  border-left: 0.3rem solid var(--g322-primary);
}

.g322-testimonial p { font-size: 1.25rem; margin-bottom: 0.4rem; }

.g322-testimonial cite { color: var(--g322-muted); font-size: 1.1rem; font-style: normal; }

/* ===== Payment methods ===== */
.g322-pay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.g322-pay-item {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 0.6rem;
  padding: 0.7rem 0.4rem;
  text-align: center;
  font-size: 1.05rem;
  color: var(--g322-text);
  border: 0.1rem solid rgba(135, 206, 250, 0.12);
}

/* ===== Winners list ===== */
.g322-winner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.8rem;
  border-bottom: 0.1rem dashed rgba(135, 206, 250, 0.15);
  font-size: 1.25rem;
}

.g322-winner b { color: var(--g322-gold); }

/* ===== FAQ ===== */
.g322-faq-item {
  background: var(--g322-bg-alt);
  border-radius: 0.8rem;
  padding: 0.8rem 1rem;
  margin: 0.5rem 0;
}

.g322-faq-item h3 {
  font-size: 1.3rem;
  color: var(--g322-primary);
  margin-bottom: 0.3rem;
}

.g322-faq-item p { font-size: 1.25rem; }

/* ===== Footer ===== */
.g322-footer {
  background: var(--g322-bg-alt);
  padding: 1.6rem 1.2rem 2rem;
  margin-top: 1.6rem;
  border-top: 0.2rem solid var(--g322-primary);
}

.g322-footer p { font-size: 1.2rem; color: var(--g322-muted); margin-bottom: 0.6rem; }

.g322-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  margin: 0.6rem 0;
}

.g322-footer-links a {
  color: var(--g322-text);
  font-size: 1.15rem;
  text-decoration: underline;
}

.g322-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.8rem 0;
}

.g322-footer-promo .g322-btn {
  padding: 0.5rem 0.9rem;
  font-size: 1.1rem;
  min-height: 0;
}

.g322-copyright {
  text-align: center;
  font-size: 1.1rem;
  color: var(--g322-muted);
  margin-top: 1rem;
  border-top: 0.1rem solid rgba(135, 206, 250, 0.12);
  padding-top: 0.8rem;
}

/* ===== Bottom navigation ===== */
.g322-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #2E4057 0%, #1f2e3e 100%);
  border-top: 0.2rem solid var(--g322-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 6rem;
  max-width: 430px;
  margin: 0 auto;
  box-shadow: 0 -0.3rem 1rem rgba(0, 0, 0, 0.4);
}

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

.g322-bottom-nav-btn .g322-nav-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.g322-bottom-nav-btn .g322-nav-icon.material-icons {
  font-size: 2.4rem;
}

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

.g322-bottom-nav-btn.g322-nav-active {
  color: var(--g322-primary);
}

.g322-bottom-nav-btn.g322-nav-active .g322-nav-icon {
  color: var(--g322-gold);
}

.g322-nav-badge {
  position: relative;
}

.g322-nav-badge::after {
  content: "2";
  position: absolute;
  top: 0.2rem; right: 1.2rem;
  background: var(--g322-secondary);
  color: #fff;
  font-size: 0.9rem;
  width: 1.4rem; height: 1.4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
  .g322-bottom-nav { display: none; }
  body { max-width: 430px; }
}

/* Desktop top nav menu style */
@media (min-width: 769px) {
  .g322-desktop-nav { display: flex; gap: 1rem; }
  .g322-desktop-nav a { color: var(--g322-text); font-size: 1.2rem; }
}
.g322-desktop-nav { display: none; }

/* ===== Utility ===== */
.g322-center { text-align: center; }
.g322-mt-1 { margin-top: 0.6rem; }
.g322-mt-2 { margin-top: 1.2rem; }
.g322-hidden { display: none !important; }

/* Material icons size override */
.material-icons.g322-mi { font-size: 2.4rem; vertical-align: middle; }
