/**
 * G Taya - Main Stylesheet
 * Prefix: ui80-
 * Color Palette: #9932CC | #0C0C0C | #F8F8FF | #B0E0E6 | #CCCCCC | #FFFACD
 * Dark backgrounds, light text for mobile readability
 */

/* === CSS Variables === */
:root {
  --ui80-primary: #9932CC;
  --ui80-primary-dark: #7B1FA2;
  --ui80-primary-light: #BA68C8;
  --ui80-bg: #0C0C0C;
  --ui80-bg-card: #1A1A2E;
  --ui80-bg-section: #12121C;
  --ui80-text: #F8F8FF;
  --ui80-text-muted: #CCCCCC;
  --ui80-accent: #FFFACD;
  --ui80-accent-blue: #B0E0E6;
  --ui80-border: #2A2A3E;
  --ui80-success: #4CAF50;
  --ui80-gradient: linear-gradient(135deg, #9932CC, #7B1FA2);
  --ui80-radius: 8px;
  --ui80-radius-lg: 16px;
  --ui80-shadow: 0 4px 20px rgba(153, 50, 204, 0.25);
  --ui80-header-h: 56px;
  --ui80-bnav-h: 60px;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--ui80-bg);
  color: var(--ui80-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
}
a { color: var(--ui80-accent-blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--ui80-accent); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* === Header === */
.ui80-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, #0C0C0C, #1A1A2E);
  border-bottom: 1px solid var(--ui80-border);
  max-width: 430px; margin: 0 auto;
  height: var(--ui80-header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px;
}
.ui80-logo { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.ui80-logo img { width: 28px; height: 28px; border-radius: 6px; }
.ui80-logo span { font-size: 1.6rem; font-weight: 700; color: var(--ui80-primary-light); letter-spacing: 0.5px; }
.ui80-header-actions { display: flex; align-items: center; gap: 6px; }
.ui80-btn-register, .ui80-btn-login {
  border: none; border-radius: 20px; font-weight: 600; cursor: pointer;
  font-size: 1.2rem; padding: 6px 14px; transition: all 0.25s ease;
  white-space: nowrap;
}
.ui80-btn-register {
  background: var(--ui80-gradient); color: #fff;
}
.ui80-btn-register:hover { transform: scale(1.05); box-shadow: var(--ui80-shadow); }
.ui80-btn-login {
  background: transparent; color: var(--ui80-accent-blue);
  border: 1.5px solid var(--ui80-primary);
}
.ui80-btn-login:hover { background: rgba(153,50,204,0.15); }
.ui80-menu-toggle {
  background: none; border: none; color: var(--ui80-text); cursor: pointer;
  font-size: 2.2rem; padding: 4px; display: flex; align-items: center;
}

/* === Mobile Menu === */
.ui80-menu-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); z-index: 9998;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.ui80-overlay-active { opacity: 1; pointer-events: auto; }
.ui80-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100%;
  background: #0E0E1A; z-index: 9999; transition: right 0.3s ease;
  padding: 20px 16px; overflow-y: auto;
}
.ui80-menu-active { right: 0; }
.ui80-menu-close {
  background: none; border: none; color: var(--ui80-text); cursor: pointer;
  font-size: 2.4rem; float: right; margin-bottom: 16px;
}
.ui80-mobile-menu nav { clear: both; padding-top: 10px; }
.ui80-mobile-menu nav a {
  display: block; padding: 12px 14px; color: var(--ui80-text);
  font-size: 1.4rem; border-bottom: 1px solid var(--ui80-border);
  transition: all 0.2s;
}
.ui80-mobile-menu nav a:hover {
  color: var(--ui80-primary-light); padding-left: 20px;
  background: rgba(153,50,204,0.08);
}

/* === Main Content === */
.ui80-main {
  padding-top: var(--ui80-header-h);
  min-height: 60vh;
}
@media (max-width: 768px) {
  .ui80-main { padding-bottom: 80px; }
}

/* === Carousel / Slider === */
.ui80-carousel {
  position: relative; overflow: hidden;
  border-radius: 0 0 var(--ui80-radius-lg) var(--ui80-radius-lg);
  margin-bottom: 16px;
}
.ui80-slide {
  display: none; width: 100%; cursor: pointer;
}
.ui80-slide-active { display: block; }
.ui80-slide img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.ui80-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px;
}
.ui80-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(248,248,255,0.4); cursor: pointer;
  transition: all 0.3s; border: none;
}
.ui80-dot-active { background: var(--ui80-primary); transform: scale(1.3); }

/* === Section Title === */
.ui80-section-title {
  font-size: 1.8rem; font-weight: 700; color: var(--ui80-text);
  margin: 20px 12px 12px; padding-left: 10px;
  border-left: 3px solid var(--ui80-primary);
}
.ui80-section-subtitle {
  font-size: 1.3rem; color: var(--ui80-text-muted);
  margin: 0 12px 10px 22px;
}

/* === Game Grid === */
.ui80-game-section { margin-bottom: 20px; }
.ui80-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px; padding: 0 10px;
}
.ui80-game-card {
  text-align: center; cursor: pointer;
  background: var(--ui80-bg-card); border-radius: var(--ui80-radius);
  padding: 8px 4px; transition: all 0.2s;
  border: 1px solid transparent;
}
.ui80-game-card:hover {
  border-color: var(--ui80-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(153,50,204,0.2);
}
.ui80-game-card img {
  width: 56px; height: 56px; border-radius: 10px;
  margin: 0 auto 4px; object-fit: cover;
}
.ui80-game-card span {
  font-size: 1.05rem; color: var(--ui80-text-muted);
  display: block; line-height: 1.3rem;
  overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; max-width: 72px; margin: 0 auto;
}

/* === Content Cards === */
.ui80-card {
  background: var(--ui80-bg-card); border-radius: var(--ui80-radius-lg);
  padding: 16px; margin: 12px; border: 1px solid var(--ui80-border);
}
.ui80-card h2 {
  font-size: 1.7rem; color: var(--ui80-primary-light); margin-bottom: 10px;
}
.ui80-card h3 {
  font-size: 1.5rem; color: var(--ui80-accent); margin: 12px 0 6px;
}
.ui80-card p {
  color: var(--ui80-text-muted); line-height: 1.7rem; margin-bottom: 8px;
  font-size: 1.3rem;
}
.ui80-card ul { padding-left: 18px; margin-bottom: 8px; }
.ui80-card ul li {
  color: var(--ui80-text-muted); line-height: 1.7rem;
  font-size: 1.3rem; margin-bottom: 4px;
  list-style: disc;
}

/* === Promo Buttons / Links === */
.ui80-promo-btn {
  display: inline-block; padding: 10px 24px;
  background: var(--ui80-gradient); color: #fff;
  border-radius: 25px; font-weight: 600; font-size: 1.3rem;
  cursor: pointer; transition: all 0.25s;
  text-align: center; border: none;
}
.ui80-promo-btn:hover { transform: scale(1.05); box-shadow: var(--ui80-shadow); }
.ui80-promo-text {
  color: var(--ui80-primary-light); font-weight: 600;
  cursor: pointer; border-bottom: 1px dashed var(--ui80-primary);
  transition: color 0.2s;
}
.ui80-promo-text:hover { color: var(--ui80-accent); }

/* === Footer === */
.ui80-footer {
  background: var(--ui80-bg-section); padding: 24px 16px 16px;
  border-top: 1px solid var(--ui80-border); margin-top: 30px;
}
.ui80-footer-brand {
  color: var(--ui80-text-muted); font-size: 1.2rem; line-height: 1.6rem;
  margin-bottom: 14px;
}
.ui80-footer-links {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px;
}
.ui80-footer-links a {
  padding: 6px 12px; background: var(--ui80-bg-card);
  border-radius: 15px; color: var(--ui80-text); font-size: 1.1rem;
  border: 1px solid var(--ui80-border); transition: all 0.2s;
}
.ui80-footer-links a:hover { border-color: var(--ui80-primary); color: var(--ui80-primary-light); }
.ui80-footer-copy {
  text-align: center; color: #666; font-size: 1.1rem;
  border-top: 1px solid var(--ui80-border); padding-top: 12px;
}

/* === Bottom Navigation === */
.ui80-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 1000; height: var(--ui80-bnav-h);
  background: linear-gradient(180deg, #1A1A2E, #0C0C0C);
  border-top: 1px solid var(--ui80-border);
  display: flex; justify-content: space-around; align-items: center;
  max-width: 430px; margin: 0 auto;
  padding: 0 4px;
}
.ui80-bnav-btn {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-width: 60px; min-height: 56px;
  background: none; border: none; cursor: pointer;
  color: var(--ui80-text-muted); transition: all 0.25s;
  padding: 4px 2px; border-radius: 8px;
  position: relative;
}
.ui80-bnav-btn .ui80-bnav-icon { font-size: 2.2rem; margin-bottom: 2px; line-height: 1; }
.ui80-bnav-btn .ui80-bnav-label { font-size: 1rem; line-height: 1.2rem; }
.ui80-bnav-btn:hover, .ui80-bnav-active {
  color: var(--ui80-primary-light);
}
.ui80-bnav-btn:hover .ui80-bnav-icon { transform: scale(1.15); }
.ui80-bnav-active::after {
  content: ''; position: absolute; top: -1px;
  left: 20%; right: 20%; height: 2px;
  background: var(--ui80-primary); border-radius: 2px;
}
@media (min-width: 769px) {
  .ui80-bottom-nav { display: none; }
}

/* === Testimonials === */
.ui80-testimonial {
  background: var(--ui80-bg-card); border-radius: var(--ui80-radius);
  padding: 12px; margin: 8px 12px; border-left: 3px solid var(--ui80-primary);
}
.ui80-testimonial-name {
  font-weight: 600; color: var(--ui80-accent); font-size: 1.2rem;
}
.ui80-testimonial-text {
  color: var(--ui80-text-muted); font-size: 1.2rem; margin-top: 4px;
}

/* === Winners Table === */
.ui80-winners-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; padding: 0 12px;
}
.ui80-winner-item {
  background: var(--ui80-bg-card); border-radius: var(--ui80-radius);
  padding: 8px 10px; display: flex; align-items: center; gap: 8px;
}
.ui80-winner-item img { width: 32px; height: 32px; border-radius: 6px; }
.ui80-winner-info { flex: 1; }
.ui80-winner-name { font-size: 1.1rem; color: var(--ui80-text); font-weight: 600; }
.ui80-winner-amount { font-size: 1rem; color: var(--ui80-success); }

/* === Payment Icons === */
.ui80-payment-row {
  display: flex; gap: 10px; padding: 8px 12px;
  justify-content: center; flex-wrap: wrap;
}
.ui80-payment-item {
  background: var(--ui80-bg-card); border-radius: var(--ui80-radius);
  padding: 8px 14px; font-size: 1.2rem; color: var(--ui80-accent-blue);
  border: 1px solid var(--ui80-border);
}

/* === CTA Section === */
.ui80-cta {
  text-align: center; padding: 20px 16px; margin: 16px 12px;
  background: var(--ui80-gradient); border-radius: var(--ui80-radius-lg);
}
.ui80-cta h3 { color: #fff; font-size: 1.6rem; margin-bottom: 8px; }
.ui80-cta p { color: rgba(255,255,255,0.85); font-size: 1.2rem; margin-bottom: 12px; }

/* === FAQ Accordion === */
.ui80-faq-item { margin: 8px 12px; }
.ui80-faq-q {
  background: var(--ui80-bg-card); padding: 10px 14px;
  border-radius: var(--ui80-radius); cursor: pointer;
  color: var(--ui80-accent); font-weight: 600; font-size: 1.3rem;
  border: 1px solid var(--ui80-border); transition: all 0.2s;
}
.ui80-faq-q:hover { border-color: var(--ui80-primary); }
.ui80-faq-a {
  padding: 10px 14px; color: var(--ui80-text-muted);
  font-size: 1.2rem; line-height: 1.6rem;
  display: none;
}
.ui80-faq-a-open { display: block; }

/* === Help Page Styles === */
.ui80-help-section { padding: 12px; margin: 0; }
.ui80-help-section h2 {
  font-size: 1.6rem; color: var(--ui80-primary-light);
  margin: 16px 0 8px; padding-left: 8px;
  border-left: 3px solid var(--ui80-primary);
}
.ui80-help-section p {
  color: var(--ui80-text-muted); font-size: 1.3rem;
  line-height: 1.7rem; margin-bottom: 8px;
}
.ui80-help-section ul { padding-left: 16px; margin-bottom: 10px; }
.ui80-help-section ul li {
  color: var(--ui80-text-muted); font-size: 1.3rem;
  line-height: 1.7rem; margin-bottom: 4px; list-style: disc;
}

/* === RTP Table === */
.ui80-rtp-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 2px; padding: 0 12px; font-size: 1.1rem;
}
.ui80-rtp-header {
  background: var(--ui80-primary); color: #fff;
  padding: 6px 8px; font-weight: 600; text-align: center;
}
.ui80-rtp-cell {
  background: var(--ui80-bg-card); padding: 6px 8px;
  color: var(--ui80-text-muted); text-align: center;
}

/* === Utility Classes === */
.ui80-text-center { text-align: center; }
.ui80-mt-10 { margin-top: 10px; }
.ui80-mb-10 { margin-bottom: 10px; }
.ui80-p-12 { padding: 12px; }
.ui80-hidden { display: none; }

/* === Desktop adjustments === */
@media (min-width: 769px) {
  body { max-width: 430px; }
  .ui80-main { padding-bottom: 20px; }
}
