/* ============================================================
 * u888 link - style-b020.css
 * Mobile-first gaming site styles. All custom classes use the
 * "g204-" prefix. Comments in English only.
 * Palette: #1B263B / #90EE90 / #F0F0F0 / #D2B48C / #9AFF9A / #3CB371
 * ============================================================ */

:root {
  --g204-bg: #1B263B;
  --g204-bg-2: #16203a;
  --g204-bg-3: #0f1830;
  --g204-text: #F0F0F0;
  --g204-text-muted: #c5d0e0;
  --g204-primary: #3CB371;
  --g204-primary-2: #90EE90;
  --g204-primary-3: #9AFF9A;
  --g204-accent: #D2B48C;
  --g204-accent-2: #e8c89a;
  --g204-danger: #ff5a5a;
  --g204-border: rgba(144, 238, 144, 0.18);
  --g204-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  --g204-radius: 14px;
  --g204-radius-sm: 10px;
}

* { box-sizing: border-box; }

html {
  font-size: 62.5%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Be Vietnam Pro", "Segoe UI", Roboto, Arial, sans-serif;
  background: linear-gradient(160deg, var(--g204-bg) 0%, var(--g204-bg-3) 100%);
  color: var(--g204-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--g204-primary-3); text-decoration: none; }
a:hover { color: var(--g204-primary-2); }

.g204-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 12px;
}

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

/* ============================================================
 * Header
 * ============================================================ */
.g204-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(90deg, var(--g204-bg-3), var(--g204-bg));
  border-bottom: 1px solid var(--g204-border);
  box-shadow: var(--g204-shadow);
}

.g204-header-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.g204-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.g204-brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
}

.g204-brand-name {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--g204-primary-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.g204-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.g204-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  font-size: 1.3rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
  min-height: 36px;
  line-height: 1;
}

.g204-btn-login {
  background: transparent;
  color: var(--g204-primary-3);
  border: 1px solid var(--g204-primary);
}

.g204-btn-register {
  background: linear-gradient(135deg, var(--g204-primary), var(--g204-primary-2));
  color: #0f2a1d;
  box-shadow: 0 4px 14px rgba(60, 179, 113, 0.35);
}

.g204-btn:hover { transform: translateY(-1px); }

.g204-icon-btn {
  background: transparent;
  border: none;
  color: var(--g204-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  min-width: 40px;
  min-height: 40px;
}

.g204-icon-btn:hover { background: rgba(144, 238, 144, 0.12); }

/* ============================================================
 * Mobile expandable menu
 * ============================================================ */
.g204-mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--g204-bg-3);
  border-top: 1px solid var(--g204-border);
}

.g204-mobile-menu.g204-menu-open {
  max-height: 480px;
}

.g204-mobile-menu-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 10px 12px 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.g204-menu-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(144, 238, 144, 0.06);
  color: var(--g204-text);
  font-size: 1.3rem;
  border: 1px solid var(--g204-border);
}

.g204-menu-link:hover {
  background: rgba(144, 238, 144, 0.16);
  color: var(--g204-primary-3);
}

.g204-menu-link i,
.g204-menu-link span.material-icons-outlined {
  font-size: 1.8rem;
  color: var(--g204-primary-2);
}

/* ============================================================
 * Layout offset (fixed header) and main content
 * ============================================================ */
.g204-main {
  padding-top: 64px;
  padding-bottom: 16px;
}

main.g204-main {
  padding-bottom: 88px;
}

.g204-section {
  margin: 18px 0;
}

.g204-section-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--g204-primary-3);
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.g204-section-title .g204-tag {
  background: linear-gradient(135deg, var(--g204-primary), var(--g204-primary-2));
  color: #0f2a1d;
  font-size: 1rem;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
}

.g204-section-sub {
  color: var(--g204-text-muted);
  font-size: 1.25rem;
  margin: 0 0 12px;
}

/* ============================================================
 * Carousel
 * ============================================================ */
.g204-carousel {
  position: relative;
  border-radius: var(--g204-radius);
  overflow: hidden;
  box-shadow: var(--g204-shadow);
  background: var(--g204-bg-2);
}

.g204-carousel-track {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.g204-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}

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

.g204-carousel-slide.g204-slide-active { opacity: 1; }

.g204-carousel-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 14px;
  background: linear-gradient(0deg, rgba(15, 24, 48, 0.92), transparent);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--g204-primary-3);
}

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

.g204-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(240, 240, 240, 0.4);
  border: none;
  cursor: pointer;
  padding: 0;
}

.g204-carousel-dot.g204-dot-active {
  background: var(--g204-primary-2);
  width: 20px;
  border-radius: 4px;
}

/* ============================================================
 * Hero / H1
 * ============================================================ */
.g204-hero {
  background: linear-gradient(135deg, rgba(60, 179, 113, 0.18), rgba(210, 180, 140, 0.12));
  border: 1px solid var(--g204-border);
  border-radius: var(--g204-radius);
  padding: 16px;
  margin: 14px 0;
}

.g204-hero h1 {
  font-size: 2rem;
  line-height: 1.35;
  margin: 0 0 8px;
  color: var(--g204-text);
}

.g204-hero p {
  margin: 0 0 12px;
  color: var(--g204-text-muted);
  font-size: 1.3rem;
}

.g204-hero-cta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.g204-btn-cta {
  background: linear-gradient(135deg, var(--g204-accent), var(--g204-accent-2));
  color: #2a1d0a;
  padding: 10px 18px;
  font-size: 1.35rem;
}

/* ============================================================
 * Game grid (compact icons)
 * ============================================================ */
.g204-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.g204-game-card {
  background: var(--g204-bg-2);
  border: 1px solid var(--g204-border);
  border-radius: var(--g204-radius-sm);
  padding: 6px;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.g204-game-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(60, 179, 113, 0.28);
  border-color: var(--g204-primary);
}

.g204-game-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 4px;
}

.g204-game-name {
  font-size: 1.1rem;
  color: var(--g204-text);
  font-weight: 600;
  line-height: 1.2;
  min-height: 2.6rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
 * Category quick filter chips
 * ============================================================ */
.g204-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 4px;
  scrollbar-width: none;
}

.g204-chips::-webkit-scrollbar { display: none; }

.g204-chip {
  flex: 0 0 auto;
  padding: 6px 14px;
  background: var(--g204-bg-2);
  border: 1px solid var(--g204-border);
  border-radius: 999px;
  color: var(--g204-text);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
}

.g204-chip:hover { background: rgba(60, 179, 113, 0.18); color: var(--g204-primary-3); }

/* ============================================================
 * Info cards / features
 * ============================================================ */
.g204-card {
  background: var(--g204-bg-2);
  border: 1px solid var(--g204-border);
  border-radius: var(--g204-radius);
  padding: 14px;
  box-shadow: var(--g204-shadow);
}

.g204-card h2,
.g204-card h3 {
  color: var(--g204-primary-3);
  margin: 0 0 8px;
}

.g204-card h2 { font-size: 1.6rem; }
.g204-card h3 { font-size: 1.4rem; }

.g204-card p {
  color: var(--g204-text-muted);
  font-size: 1.3rem;
  margin: 0 0 8px;
}

.g204-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.g204-feature-list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  background: rgba(144, 238, 144, 0.06);
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--g204-border);
}

.g204-feature-list i,
.g204-feature-list span.material-icons-outlined {
  color: var(--g204-primary-2);
  font-size: 1.8rem;
  margin-top: 2px;
}

.g204-feature-list strong { color: var(--g204-text); }

/* ============================================================
 * Inline promotional text link
 * ============================================================ */
.g204-promo-link {
  color: var(--g204-accent-2);
  font-weight: 700;
  border-bottom: 1px dashed var(--g204-accent);
}

.g204-promo-link:hover { color: var(--g204-primary-3); }

/* ============================================================
 * Testimonials / winners
 * ============================================================ */
.g204-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.g204-mini-card {
  background: var(--g204-bg-2);
  border: 1px solid var(--g204-border);
  border-radius: var(--g204-radius-sm);
  padding: 10px;
  font-size: 1.2rem;
}

.g204-mini-card .g204-win-name { font-weight: 700; color: var(--g204-primary-3); }
.g204-mini-card .g204-win-amount { color: var(--g204-accent-2); font-weight: 700; }

/* ============================================================
 * Payment / app CTA
 * ============================================================ */
.g204-pay-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.g204-pay-row .g204-pay-pill {
  background: var(--g204-bg-3);
  border: 1px solid var(--g204-border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 1.2rem;
  color: var(--g204-text-muted);
}

.g204-app-cta {
  background: linear-gradient(135deg, var(--g204-primary), var(--g204-bg));
  border-radius: var(--g204-radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--g204-border);
}

.g204-app-cta h3 { margin: 0; color: var(--g204-text); }
.g204-app-cta p { margin: 0; color: rgba(240, 240, 240, 0.85); font-size: 1.25rem; }

/* ============================================================
 * Footer
 * ============================================================ */
.g204-footer {
  background: var(--g204-bg-3);
  border-top: 1px solid var(--g204-border);
  padding: 18px 12px 24px;
  margin-top: 22px;
}

.g204-footer-inner {
  max-width: 430px;
  margin: 0 auto;
}

.g204-footer-brand { color: var(--g204-text-muted); font-size: 1.25rem; margin-bottom: 10px; }

.g204-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 10px 0;
}

.g204-footer-links a {
  color: var(--g204-text);
  font-size: 1.2rem;
  padding: 6px 8px;
  background: rgba(144, 238, 144, 0.05);
  border-radius: 8px;
  border: 1px solid var(--g204-border);
}

.g204-footer-links a:hover { color: var(--g204-primary-3); }

.g204-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

.g204-footer-promo .g204-btn {
  font-size: 1.2rem;
  padding: 6px 12px;
}

.g204-copyright {
  text-align: center;
  color: var(--g204-text-muted);
  font-size: 1.15rem;
  margin-top: 12px;
}

/* ============================================================
 * Mobile bottom navigation
 * ============================================================ */
.g204-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  height: 62px;
  background: linear-gradient(180deg, var(--g204-bg-2), var(--g204-bg-3));
  border-top: 1px solid var(--g204-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.35);
}

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

.g204-bottom-nav-btn i,
.g204-bottom-nav-btn span.material-icons-outlined,
.g204-bottom-nav-btn ion-icon {
  font-size: 22px;
}

.g204-bottom-nav-btn:hover {
  color: var(--g204-primary-3);
  transform: translateY(-2px);
}

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

.g204-bottom-nav-btn.g204-nav-active::after {
  content: "";
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 3px;
  background: var(--g204-primary-2);
  margin-top: 2px;
}

.g204-bottom-nav-btn.g204-nav-promo {
  color: var(--g204-accent);
}

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

/* ============================================================
 * Desktop / tablet
 * ============================================================ */
@media (min-width: 769px) {
  .g204-bottom-nav { display: none; }
  main.g204-main { padding-bottom: 24px; }
  .g204-container,
  .g204-wrapper,
  .g204-header-inner,
  .g204-mobile-menu-inner,
  .g204-footer-inner {
    max-width: 760px;
  }
  .g204-game-grid { grid-template-columns: repeat(6, 1fr); }
  .g204-mini-grid { grid-template-columns: repeat(4, 1fr); }
  .g204-hero h1 { font-size: 2.6rem; }
}
