/* cd44 marker - Core Stylesheet */
/* All classes use g5d8- prefix */

:root {
  --g5d8-primary: #B8860B;
  --g5d8-secondary: #CD853F;
  --g5d8-accent: #FFB347;
  --g5d8-bg: #1E1E1E;
  --g5d8-highlight: #FF9500;
  --g5d8-text: #FFFFFF;
  --g5d8-text-muted: #CCCCCC;
  --g5d8-card-bg: #2A2A2A;
  --g5d8-card-border: #3A3A3A;
  --g5d8-success: #4CAF50;
  --g5d8-danger: #FF4444;
}

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

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--g5d8-bg);
  color: var(--g5d8-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  min-height: 100vh;
  max-width: 430px;
  margin: 0 auto;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--g5d8-accent); text-decoration: none; }
a:hover { color: var(--g5d8-highlight); }
img { max-width: 100%; height: auto; display: block; }

/* ====== Header ====== */
.g5d8-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border-bottom: 2px solid var(--g5d8-primary);
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.g5d8-header-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.g5d8-logo {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  object-fit: contain;
}

.g5d8-site-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--g5d8-accent);
  white-space: nowrap;
}

.g5d8-header-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.g5d8-btn-register {
  background: var(--g5d8-highlight);
  color: #1E1E1E;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 0.4rem;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.g5d8-btn-register:hover { background: #FFa830; transform: scale(1.05); }

.g5d8-btn-login {
  background: transparent;
  color: var(--g5d8-accent);
  border: 1.5px solid var(--g5d8-accent);
  padding: 0.6rem 1.2rem;
  border-radius: 0.4rem;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.g5d8-btn-login:hover { background: var(--g5d8-accent); color: #1E1E1E; }

.g5d8-menu-toggle {
  background: none;
  border: none;
  color: var(--g5d8-accent);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}

/* ====== Mobile Menu ====== */
.g5d8-menu-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  display: none;
}

.g5d8-overlay-active { display: block; }

.g5d8-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: #222;
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

.g5d8-menu-active { right: 0; }

.g5d8-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--g5d8-text);
  font-size: 2.4rem;
  cursor: pointer;
}

.g5d8-menu-title {
  font-size: 1.6rem;
  color: var(--g5d8-accent);
  margin-bottom: 1.5rem;
  font-weight: 700;
  padding-right: 3rem;
}

.g5d8-menu-links {
  list-style: none;
}

.g5d8-menu-links li {
  border-bottom: 1px solid #333;
}

.g5d8-menu-links a {
  display: block;
  padding: 1.2rem 0;
  color: var(--g5d8-text-muted);
  font-size: 1.3rem;
  transition: color 0.2s;
}

.g5d8-menu-links a:hover { color: var(--g5d8-accent); }

/* ====== Main Content ====== */
.g5d8-main {
  padding-top: 5rem;
  min-height: 100vh;
}

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

/* ====== Carousel ====== */
.g5d8-carousel {
  position: relative;
  width: 100%;
  height: 18rem;
  overflow: hidden;
  cursor: pointer;
}

.g5d8-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.g5d8-slide-active { opacity: 1; }

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

/* ====== Section Titles ====== */
.g5d8-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g5d8-accent);
  padding: 1.5rem 1rem 0.8rem;
  border-bottom: 2px solid var(--g5d8-primary);
  margin: 0 1rem 1rem;
}

.g5d8-section-title .material-icons {
  vertical-align: middle;
  font-size: 2rem;
  margin-right: 0.5rem;
}

/* ====== Game Grid ====== */
.g5d8-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  padding: 0 1rem;
  margin-bottom: 1.5rem;
}

.g5d8-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
  background: var(--g5d8-card-bg);
  border-radius: 0.6rem;
  padding: 0.5rem;
  border: 1px solid var(--g5d8-card-border);
}

.g5d8-game-item:hover { transform: scale(1.05); }

.g5d8-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 0.4rem;
  object-fit: cover;
  margin-bottom: 0.3rem;
}

.g5d8-game-item span {
  font-size: 1rem;
  color: var(--g5d8-text-muted);
  display: block;
  line-height: 1.2rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ====== Cards ====== */
.g5d8-card {
  background: var(--g5d8-card-bg);
  border: 1px solid var(--g5d8-card-border);
  border-radius: 0.8rem;
  padding: 1.5rem;
  margin: 1rem;
}

.g5d8-card h2 {
  font-size: 1.6rem;
  color: var(--g5d8-accent);
  margin-bottom: 1rem;
}

.g5d8-card h3 {
  font-size: 1.4rem;
  color: var(--g5d8-highlight);
  margin-bottom: 0.8rem;
}

.g5d8-card p {
  font-size: 1.3rem;
  color: var(--g5d8-text-muted);
  line-height: 1.8rem;
  margin-bottom: 0.8rem;
}

.g5d8-card ul {
  list-style: none;
  padding: 0;
}

.g5d8-card ul li {
  padding: 0.6rem 0;
  font-size: 1.3rem;
  color: var(--g5d8-text-muted);
  border-bottom: 1px solid #333;
  padding-left: 1.5rem;
  position: relative;
}

.g5d8-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0.5rem;
  height: 0.5rem;
  background: var(--g5d8-highlight);
  border-radius: 50%;
}

/* ====== Promo Button ====== */
.g5d8-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--g5d8-highlight), var(--g5d8-primary));
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 0.6rem;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(255,149,0,0.3);
}

.g5d8-promo-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(255,149,0,0.4); }

.g5d8-promo-text {
  color: var(--g5d8-highlight);
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s;
}

.g5d8-promo-text:hover { color: var(--g5d8-accent); text-decoration: underline; }

/* ====== Footer ====== */
.g5d8-footer {
  background: #151515;
  padding: 2rem 1rem 8rem;
  border-top: 2px solid var(--g5d8-primary);
}

.g5d8-footer-brand {
  font-size: 1.3rem;
  color: var(--g5d8-text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6rem;
}

.g5d8-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.g5d8-footer-links a {
  background: var(--g5d8-card-bg);
  color: var(--g5d8-accent);
  padding: 0.5rem 1rem;
  border-radius: 0.4rem;
  font-size: 1.1rem;
  border: 1px solid var(--g5d8-card-border);
  transition: all 0.2s;
}

.g5d8-footer-links a:hover { background: var(--g5d8-primary); color: #fff; }

.g5d8-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.g5d8-footer-promo-btn {
  background: var(--g5d8-highlight);
  color: #1E1E1E;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 0.4rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.g5d8-footer-promo-btn:hover { background: #FFa830; }

.g5d8-footer-copy {
  font-size: 1.1rem;
  color: #666;
  text-align: center;
  margin-top: 1rem;
}

/* ====== Bottom Navigation ====== */
.g5d8-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
  border-top: 2px solid var(--g5d8-primary);
  height: 60px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 430px;
  margin: 0 auto;
}

.g5d8-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 56px;
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0.3rem;
}

.g5d8-bottom-nav-btn:hover { color: var(--g5d8-highlight); }

.g5d8-bottom-nav-btn.g5d8-nav-active {
  color: var(--g5d8-highlight);
}

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

.g5d8-bottom-nav-btn .g5d8-nav-label {
  font-size: 1rem;
  line-height: 1;
}

.g5d8-nav-active .g5d8-nav-icon { transform: scale(1.1); }

@media (min-width: 769px) {
  .g5d8-bottom-nav { display: none; }
  .g5d8-footer { padding-bottom: 2rem; }
}

/* ====== Content Helpers ====== */
.g5d8-container { padding: 0 1rem; }
.g5d8-wrapper { max-width: 430px; margin: 0 auto; }

.g5d8-text-center { text-align: center; }
.g5d8-text-accent { color: var(--g5d8-accent); }
.g5d8-text-highlight { color: var(--g5d8-highlight); }

.g5d8-mt-1 { margin-top: 0.5rem; }
.g5d8-mt-2 { margin-top: 1rem; }
.g5d8-mb-1 { margin-bottom: 0.5rem; }
.g5d8-mb-2 { margin-bottom: 1rem; }

.g5d8-p-1 { padding: 0.5rem; }
.g5d8-p-2 { padding: 1rem; }

/* ====== Testimonials ====== */
.g5d8-testimonial {
  background: var(--g5d8-card-bg);
  border-left: 3px solid var(--g5d8-highlight);
  padding: 1rem 1.2rem;
  margin: 0.8rem 0;
  border-radius: 0 0.6rem 0.6rem 0;
}

.g5d8-testimonial p {
  font-size: 1.2rem;
  color: var(--g5d8-text-muted);
  font-style: italic;
  margin-bottom: 0.4rem;
}

.g5d8-testimonial strong {
  color: var(--g5d8-accent);
  font-size: 1.1rem;
}

/* ====== Winner Badge ====== */
.g5d8-winner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px solid #333;
}

.g5d8-winner-name { color: var(--g5d8-accent); font-size: 1.2rem; font-weight: 600; }
.g5d8-winner-game { color: var(--g5d8-text-muted); font-size: 1.1rem; }
.g5d8-winner-amount { color: var(--g5d8-highlight); font-size: 1.3rem; font-weight: 700; }

/* ====== Payment Icons ====== */
.g5d8-payment-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1rem 0;
}

.g5d8-payment-item {
  background: #333;
  padding: 0.6rem 1.2rem;
  border-radius: 0.4rem;
  font-size: 1.2rem;
  color: var(--g5d8-text);
  border: 1px solid #444;
}

/* ====== FAQ ====== */
.g5d8-faq-item {
  margin-bottom: 1rem;
}

.g5d8-faq-q {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--g5d8-accent);
  margin-bottom: 0.3rem;
}

.g5d8-faq-a {
  font-size: 1.2rem;
  color: var(--g5d8-text-muted);
  line-height: 1.6rem;
  padding-left: 1rem;
}

/* ====== RTP Table ====== */
.g5d8-rtp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.g5d8-rtp-item {
  background: var(--g5d8-card-bg);
  padding: 0.8rem;
  border-radius: 0.5rem;
  border: 1px solid var(--g5d8-card-border);
  text-align: center;
}

.g5d8-rtp-item .g5d8-rtp-name {
  font-size: 1.1rem;
  color: var(--g5d8-accent);
  margin-bottom: 0.3rem;
}

.g5d8-rtp-item .g5d8-rtp-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--g5d8-highlight);
}

/* ====== Desktop nav ====== */
.g5d8-desktop-nav {
  display: none;
  background: #222;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #333;
}

@media (min-width: 769px) {
  .g5d8-desktop-nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .g5d8-desktop-nav a {
    color: var(--g5d8-text-muted);
    font-size: 1.2rem;
    padding: 0.4rem 0.8rem;
  }
  .g5d8-desktop-nav a:hover { color: var(--g5d8-accent); }
}

/* ====== App Download ====== */
.g5d8-app-banner {
  background: linear-gradient(135deg, var(--g5d8-primary), var(--g5d8-highlight));
  border-radius: 0.8rem;
  padding: 1.5rem;
  margin: 1rem;
  text-align: center;
}

.g5d8-app-banner h3 {
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 0.8rem;
}

.g5d8-app-banner p {
  font-size: 1.2rem;
  color: #f0e0c0;
  margin-bottom: 1rem;
}
