/* ===========================================================
   me777 club login - style-d613.css
   All custom classes use the "g13c-" prefix.
   Palette: dark background #1C2833, light accent #FFF176
   Mobile-first, max-width 430px viewport optimized.
   =========================================================== */

:root {
  --g13c-primary: #FFF176;
  --g13c-primary-dark: #f0d54f;
  --g13c-bg: #1C2833;
  --g13c-bg-2: #22303d;
  --g13c-bg-3: #2c3a48;
  --g13c-text: #f5f7fa;
  --g13c-text-muted: #aeb7c2;
  --g13c-accent: #ffb74d;
  --g13c-danger: #ef5350;
  --g13c-success: #66bb6a;
  --g13c-border: rgba(255, 241, 118, 0.18);
  --g13c-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  --g13c-radius: 12px;
  --g13c-header-h: 56px;
  --g13c-bottom-h: 60px;
}

* { box-sizing: border-box; }

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

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

body.g13c-no-scroll { overflow: hidden; }

a { color: var(--g13c-primary); text-decoration: none; }
a:hover { color: var(--g13c-primary-dark); text-decoration: underline; }

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

/* ---------- Layout ---------- */
.g13c-wrapper {
  max-width: 430px;
  margin: 0 auto;
  padding-top: var(--g13c-header-h);
  background: var(--g13c-bg);
}

main.g13c-container {
  padding-bottom: 80px; /* mobile bottom nav clearance */
}

.g13c-section {
  padding: 18px 14px;
}

.g13c-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 6px 0 12px;
  color: var(--g13c-primary);
  border-left: 4px solid var(--g13c-primary);
  padding-left: 10px;
}

.g13c-section-title .material-icons,
.g13c-section-title i { font-size: 22px; color: var(--g13c-accent); }

/* ---------- Header ---------- */
.g13c-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--g13c-header-h);
  background: var(--g13c-bg);
  border-bottom: 1px solid var(--g13c-border);
  z-index: 1000;
  box-shadow: var(--g13c-shadow);
}

.g13c-header-inner {
  max-width: 430px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}

.g13c-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--g13c-text);
}

.g13c-brand img { width: 30px; height: 30px; border-radius: 6px; }
.g13c-brand span { color: var(--g13c-primary); }

.g13c-header-actions { display: flex; align-items: center; gap: 8px; }

.g13c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 1.25rem;
  cursor: pointer;
  border: none;
  transition: transform .12s ease, background .2s ease;
}

.g13c-btn:hover { text-decoration: none; transform: translateY(-1px); }
.g13c-btn:active { transform: scale(0.96); }

.g13c-btn-primary {
  background: linear-gradient(135deg, var(--g13c-primary), var(--g13c-primary-dark));
  color: #1C2833;
}

.g13c-btn-ghost {
  background: transparent;
  color: var(--g13c-text);
  border: 1px solid var(--g13c-border);
}

.g13c-icon-btn {
  background: transparent;
  border: none;
  color: var(--g13c-text);
  font-size: 1.6rem;
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
}

/* ---------- Mobile expandable menu ---------- */
.g13c-mobile-menu {
  position: fixed;
  top: 0; right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--g13c-bg-2);
  z-index: 9999;
  padding: 80px 18px 30px;
  transition: right .25s ease;
  overflow-y: auto;
  box-shadow: -8px 0 24px rgba(0,0,0,.4);
}

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

.g13c-mobile-menu a {
  display: block;
  padding: 12px 14px;
  border-bottom: 1px solid var(--g13c-border);
  color: var(--g13c-text);
  font-size: 1.4rem;
}

.g13c-mobile-menu a:hover { background: var(--g13c-bg-3); color: var(--g13c-primary); }

.g13c-menu-close {
  position: absolute;
  top: 14px; right: 14px;
  font-size: 1.8rem;
  background: transparent;
  border: none;
  color: var(--g13c-text);
  cursor: pointer;
}

.g13c-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 9998;
}
.g13c-overlay.g13c-menu-open { display: block; }

/* ---------- Desktop nav links ---------- */
.g13c-nav-links { display: none; gap: 16px; }
.g13c-nav-links a { color: var(--g13c-text-muted); font-size: 1.3rem; }
.g13c-nav-links a:hover { color: var(--g13c-primary); }

/* ---------- Hero / Carousel ---------- */
.g13c-carousel {
  position: relative;
  border-radius: var(--g13c-radius);
  overflow: hidden;
  margin: 12px 0;
}

.g13c-carousel-track { position: relative; }

.g13c-carousel-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}
.g13c-carousel-slide.g13c-active { display: block; }
.g13c-carousel-slide img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

.g13c-carousel-dots {
  position: absolute;
  bottom: 8px; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.g13c-carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none; cursor: pointer; padding: 0;
}
.g13c-carousel-dot.g13c-active { background: var(--g13c-primary); width: 22px; border-radius: 4px; }

/* ---------- H1 / Intro ---------- */
.g13c-h1 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 2.6rem;
  margin: 16px 0 8px;
  color: var(--g13c-primary);
}

.g13c-lead {
  color: var(--g13c-text-muted);
  font-size: 1.35rem;
  margin-bottom: 14px;
}

/* ---------- Game grid ---------- */
.g13c-game-block { margin: 16px 0; }

.g13c-game-cat {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--g13c-accent);
  margin: 14px 0 8px;
  display: flex; align-items: center; gap: 6px;
}

.g13c-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.g13c-game-card {
  background: var(--g13c-bg-2);
  border: 1px solid var(--g13c-border);
  border-radius: 10px;
  padding: 8px 6px;
  text-align: center;
  cursor: pointer;
  transition: transform .12s ease, border-color .2s ease;
}
.g13c-game-card:hover { transform: translateY(-2px); border-color: var(--g13c-primary); text-decoration: none; }
.g13c-game-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 8px; margin-bottom: 6px; }
.g13c-game-card .g13c-game-name {
  font-size: 1.15rem;
  color: var(--g13c-text);
  font-weight: 600;
  line-height: 1.3rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ---------- Cards / Info ---------- */
.g13c-card {
  background: var(--g13c-bg-2);
  border: 1px solid var(--g13c-border);
  border-radius: var(--g13c-radius);
  padding: 14px;
  margin: 10px 0;
}

.g13c-card h2 { font-size: 1.7rem; color: var(--g13c-primary); margin: 0 0 8px; }
.g13c-card h3 { font-size: 1.4rem; color: var(--g13c-accent); margin: 12px 0 6px; }
.g13c-card p { color: var(--g13c-text-muted); margin: 6px 0; }

.g13c-card-list { list-style: none; padding: 0; margin: 0; }
.g13c-card-list li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--g13c-border);
  display: flex; align-items: flex-start; gap: 8px;
  color: var(--g13c-text-muted);
}
.g13c-card-list li:last-child { border-bottom: none; }
.g13c-card-list li i { color: var(--g13c-primary); margin-top: 2px; }

/* ---------- CTA banner ---------- */
.g13c-cta {
  background: linear-gradient(135deg, #2c3a48, #1C2833);
  border: 1px solid var(--g13c-primary);
  border-radius: var(--g13c-radius);
  padding: 18px;
  text-align: center;
  margin: 14px 0;
}
.g13c-cta h3 { color: var(--g13c-primary); font-size: 1.7rem; margin: 0 0 6px; }
.g13c-cta p { color: var(--g13c-text-muted); margin: 0 0 12px; }
.g13c-cta .g13c-btn { width: 100%; max-width: 260px; }

/* ---------- Testimonials ---------- */
.g13c-testimonial {
  background: var(--g13c-bg-2);
  border-left: 3px solid var(--g13c-accent);
  border-radius: 8px;
  padding: 12px;
  margin: 10px 0;
}
.g13c-testimonial .g13c-quote { color: var(--g13c-text); font-style: italic; font-size: 1.3rem; }
.g13c-testimonial .g13c-author { color: var(--g13c-primary); font-size: 1.2rem; margin-top: 6px; font-weight: 600; }

/* ---------- Payment / winners ---------- */
.g13c-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.g13c-chip {
  background: var(--g13c-bg-3);
  border: 1px solid var(--g13c-border);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 1.2rem;
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--g13c-text);
}

.g13c-winner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px dashed var(--g13c-border);
  font-size: 1.25rem;
}
.g13c-winner:last-child { border-bottom: none; }
.g13c-winner .g13c-amount { color: var(--g13c-primary); font-weight: 700; }

/* ---------- Footer ---------- */
.g13c-footer {
  background: var(--g13c-bg-2);
  border-top: 1px solid var(--g13c-border);
  padding: 22px 16px 100px;
  margin-top: 20px;
}
.g13c-footer .g13c-footer-brand { color: var(--g13c-text-muted); font-size: 1.25rem; margin-bottom: 12px; }
.g13c-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  margin: 12px 0;
}
.g13c-footer-links a { color: var(--g13c-text-muted); font-size: 1.2rem; }
.g13c-footer-links a:hover { color: var(--g13c-primary); }
.g13c-footer-promos { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.g13c-footer .g13c-copy { color: var(--g13c-text-muted); font-size: 1.1rem; margin-top: 10px; }

/* ---------- Bottom navigation ---------- */
.g13c-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--g13c-bottom-h);
  background: var(--g13c-bg-2);
  border-top: 1px solid var(--g13c-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 16px rgba(0,0,0,.35);
}

.g13c-bottom-nav .g13c-nav-item {
  flex: 1;
  min-width: 60px; min-height: 60px;
  background: transparent; border: none;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2px;
  color: var(--g13c-text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  transition: color .15s ease, transform .12s ease;
}
.g13c-bottom-nav .g13c-nav-item i,
.g13c-bottom-nav .g13c-nav-item .material-icons {
  font-size: 22px;
}
.g13c-bottom-nav .g13c-nav-item:hover { color: var(--g13c-primary); }
.g13c-bottom-nav .g13c-nav-item:active { transform: scale(0.92); }
.g13c-bottom-nav .g13c-nav-item.g13c-active { color: var(--g13c-primary); }
.g13c-nav-item .g13c-badge {
  position: absolute; top: 4px; right: 18px;
  background: var(--g13c-danger); color: #fff;
  font-size: 0.9rem; padding: 0 5px; border-radius: 8px;
}
.g13c-bottom-nav { position: fixed; }
.g13c-bottom-nav .g13c-nav-item { position: relative; }

/* ---------- Utilities ---------- */
.g13c-text-center { text-align: center; }
.g13c-mt-8 { margin-top: 8px; }
.g13c-mt-16 { margin-top: 16px; }
.g13c-hidden { display: none !important; }
.g13c-link-strong { color: var(--g13c-primary); font-weight: 700; }

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  .g13c-bottom-nav { display: none; }
  main.g13c-container { padding-bottom: 30px; }
  .g13c-wrapper { max-width: 960px; padding-top: 64px; }
  .g13c-nav-links { display: flex; }
  .g13c-menu-btn-wrap { display: none; }
  .g13c-grid { grid-template-columns: repeat(6, 1fr); }
  .g13c-footer-links { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Small phone fine tuning ---------- */
@media (max-width: 430px) {
  .g13c-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .g13c-game-card .g13c-game-name { font-size: 1.05rem; }
  .g13c-h1 { font-size: 2rem; }
  .g13c-section-title { font-size: 1.6rem; }
}

@media (max-width: 360px) {
  .g13c-grid { grid-template-columns: repeat(2, 1fr); }
}
