/* ============================================================
   taya365 original apk - layout stylesheet
   Every custom class uses the v52a- prefix to avoid collisions
   with third-party CSS shipped by icon CDNs.
   ============================================================ */

:root {
  --v52a-primary: #FFCC02;
  --v52a-accent: #FF4500;
  --v52a-warm: #FF5722;
  --v52a-cream: #FFFACD;
  --v52a-bg: #1A1A2E;
  --v52a-bg-deep: #14142b;
  --v52a-text: #FFFACD;
  --v52a-muted: #b8b8d1;
  --v52a-line: rgba(255, 250, 205, 0.12);
  --v52a-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html { font-size: 62.5%; }

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

img { max-width: 100%; display: block; }
a { color: var(--v52a-primary); text-decoration: none; }

.v52a-wrapper {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background: linear-gradient(180deg, #14142b 0%, #1A1A2E 40%, #14142b 100%);
}

/* ---------- Header ---------- */
.v52a-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #1A1A2E 0%, #2a1f3d 100%);
  border-bottom: 2px solid var(--v52a-primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.v52a-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  gap: 0.6rem;
}
.v52a-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}
.v52a-brand img { width: 28px; height: 28px; border-radius: 6px; }
.v52a-brand-text {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--v52a-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v52a-brand-text small {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--v52a-cream);
}
.v52a-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.v52a-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.3rem;
  cursor: pointer;
  border: none;
  min-height: 36px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.v52a-btn:hover { transform: translateY(-1px); }
.v52a-btn-register {
  background: linear-gradient(135deg, #FFCC02, #FF4500);
  color: #1A1A2E;
  box-shadow: 0 3px 10px rgba(255, 69, 0, 0.4);
}
.v52a-btn-login {
  background: transparent;
  color: var(--v52a-primary);
  border: 2px solid var(--v52a-primary);
}
.v52a-menu-toggle {
  background: transparent;
  border: none;
  color: var(--v52a-primary);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  min-width: 44px;
  min-height: 44px;
}

/* ---------- Mobile slide-down menu ---------- */
.v52a-mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--v52a-bg-deep);
  border-top: 1px solid var(--v52a-line);
  padding: 0.5rem 0;
  animation: v52a-fade 0.2s ease;
}
.v52a-mobile-menu.v52a-menu-open { display: flex; }
.v52a-mobile-menu a {
  color: var(--v52a-cream);
  padding: 0.9rem 1.4rem;
  border-bottom: 1px solid var(--v52a-line);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.35rem;
}
.v52a-mobile-menu a:hover { background: rgba(255, 204, 2, 0.08); color: var(--v52a-primary); }
@keyframes v52a-fade { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Main content ---------- */
main.v52a-main {
  padding: 1rem;
  padding-bottom: 90px;
}

.v52a-hero {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.2rem;
  box-shadow: var(--v52a-shadow);
  cursor: pointer;
}
.v52a-slide {
  display: none;
  position: relative;
}
.v52a-slide.v52a-slide-active { display: block; }
.v52a-slide img { width: 100%; height: 180px; object-fit: cover; }
.v52a-slide-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.8rem 1rem;
  background: linear-gradient(0deg, rgba(20,20,43,0.92), rgba(20,20,43,0));
  color: var(--v52a-primary);
  font-weight: 700;
  font-size: 1.4rem;
}
.v52a-dots {
  position: absolute;
  bottom: 8px;
  right: 12px;
  display: flex;
  gap: 6px;
}
.v52a-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255, 250, 205, 0.5);
  cursor: pointer;
}
.v52a-dot.v52a-dot-active { background: var(--v52a-primary); }

/* ---------- Section titles ---------- */
.v52a-section { margin: 1.8rem 0; }
.v52a-section-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--v52a-primary);
  margin: 0 0 0.8rem 0;
  padding-left: 0.8rem;
  border-left: 4px solid var(--v52a-accent);
}
.v52a-section-title .material-icons {
  vertical-align: middle;
  font-size: 1.9rem;
  margin-right: 0.3rem;
}

/* ---------- Game grid ---------- */
.v52a-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
.v52a-game-card {
  background: var(--v52a-bg-deep);
  border: 1px solid var(--v52a-line);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
  text-align: center;
}
.v52a-game-card:hover {
  transform: translateY(-2px);
  border-color: var(--v52a-primary);
}
.v52a-game-card img {
  width: 100%;
  height: 86px;
  object-fit: cover;
  background: #0c0c1d;
}
.v52a-game-card .v52a-game-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--v52a-cream);
  padding: 0.4rem 0.3rem 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Info / promo blocks ---------- */
.v52a-card {
  background: var(--v52a-bg-deep);
  border: 1px solid var(--v52a-line);
  border-radius: 12px;
  padding: 1.1rem;
  margin-bottom: 1rem;
}
.v52a-card h2, .v52a-card h3 {
  color: var(--v52a-primary);
  margin: 0 0 0.6rem 0;
  font-size: 1.5rem;
}
.v52a-card p { color: var(--v52a-cream); margin: 0 0 0.6rem 0; font-size: 1.3rem; }

.v52a-link-text {
  color: var(--v52a-accent);
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
}
.v52a-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #FFCC02, #FF4500);
  color: #1A1A2E;
  font-weight: 800;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 69, 0, 0.4);
}

/* ---------- Lists ---------- */
.v52a-list { padding-left: 1.2rem; margin: 0.4rem 0; color: var(--v52a-cream); }
.v52a-list li { margin-bottom: 0.4rem; font-size: 1.3rem; }

.v52a-faq-item {
  border-bottom: 1px solid var(--v52a-line);
  padding: 0.7rem 0;
}
.v52a-faq-item h3 { color: var(--v52a-primary); font-size: 1.35rem; margin: 0 0 0.3rem; }
.v52a-faq-item p { margin: 0; color: var(--v52a-cream); font-size: 1.25rem; }

/* ---------- Feature / winner rows ---------- */
.v52a-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.v52a-pill {
  background: rgba(255, 204, 2, 0.12);
  border: 1px solid var(--v52a-line);
  color: var(--v52a-primary);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 1.2rem;
  font-weight: 600;
}

/* ---------- Reveal animation ---------- */
.v52a-reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.v52a-reveal.v52a-revealed { opacity: 1; transform: none; }

/* ---------- Footer ---------- */
.v52a-footer {
  background: var(--v52a-bg-deep);
  border-top: 2px solid var(--v52a-primary);
  padding: 1.2rem;
  color: var(--v52a-cream);
  font-size: 1.25rem;
}
.v52a-footer h3 { color: var(--v52a-primary); font-size: 1.4rem; margin: 0.4rem 0 0.5rem; }
.v52a-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.8rem 0;
}
.v52a-footer-links a {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background: rgba(255, 204, 2, 0.1);
  border: 1px solid var(--v52a-line);
  border-radius: 8px;
  color: var(--v52a-cream);
  font-size: 1.15rem;
}
.v52a-footer-links a:hover { color: var(--v52a-primary); border-color: var(--v52a-primary); }
.v52a-promo-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.8rem 0;
}
.v52a-promo-row button, .v52a-promo-row a.v52a-cta-mini {
  flex: 1 1 auto;
  text-align: center;
  padding: 0.6rem 0.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #FFCC02, #FF4500);
  color: #1A1A2E;
  font-weight: 700;
  font-size: 1.15rem;
  border: none;
  cursor: pointer;
  min-height: 36px;
}
.v52a-copyright {
  text-align: center;
  font-size: 1.1rem;
  color: var(--v52a-muted);
  padding-top: 0.8rem;
  border-top: 1px solid var(--v52a-line);
}

/* ---------- Mobile bottom nav ---------- */
.v52a-bottomnav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #2a1f3d, #1A1A2E);
  border-top: 2px solid var(--v52a-primary);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  height: 62px;
  box-shadow: 0 -3px 14px rgba(0, 0, 0, 0.5);
}
.v52a-bottomnav-btn {
  flex: 1 1 0;
  min-width: 60px;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: transparent;
  border: none;
  color: var(--v52a-cream);
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  transition: transform 0.15s ease, color 0.15s ease;
  text-decoration: none;
  padding: 0;
}
.v52a-bottomnav-btn .material-icons,
.v52a-bottomnav-btn i,
.v52a-bottomnav-btn ion-icon,
.v52a-bottomnav-btn bi {
  font-size: 22px;
}
.v52a-bottomnav-btn ion-icon { font-size: 24px; }
.v52a-bottomnav-btn:hover { color: var(--v52a-primary); transform: translateY(-1px) scale(1.04); }
.v52a-bottomnav-active { color: var(--v52a-primary) !important; }
.v52a-bottomnav-active::after {
  content: "";
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 3px;
  background: var(--v52a-accent);
  margin-top: 2px;
}

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  .v52a-bottomnav { display: none; }
  .v52a-wrapper { max-width: 760px; }
  main.v52a-main { padding-bottom: 2rem; }
  .v52a-grid { grid-template-columns: repeat(6, 1fr); }
}

/* Keep main content clear of the fixed bottom nav on phones. */
@media (max-width: 768px) {
  main.v52a-main { padding-bottom: 90px; }
}
