/* tablegameapp.css - Core Stylesheet
   Prefix: v8c1-
   Colors: #00CED1 | #4169E1 | #00BFFF | #273746 */

:root {
  --v8c1-primary: #00CED1;
  --v8c1-secondary: #4169E1;
  --v8c1-accent: #00BFFF;
  --v8c1-bg: #273746;
  --v8c1-bg-dark: #1a2530;
  --v8c1-bg-card: #2c3e50;
  --v8c1-text: #f0f8ff;
  --v8c1-text-muted: #a8c0d6;
  --v8c1-border: #3d566e;
  --v8c1-gold: #ffd700;
  --v8c1-radius: 8px;
  font-size: 62.5%;
}

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

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--v8c1-bg-dark);
  color: var(--v8c1-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--v8c1-primary); text-decoration: none; }
a:hover { color: var(--v8c1-accent); }

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

/* ===== Header ===== */
.v8c1-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--v8c1-bg) 0%, var(--v8c1-bg-dark) 100%);
  border-bottom: 2px solid var(--v8c1-primary);
  padding: 0 1rem;
  max-width: 430px;
  margin: 0 auto;
}

.v8c1-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.v8c1-logo-area {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.v8c1-logo-area img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.v8c1-logo-area span {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--v8c1-primary);
  letter-spacing: 0.5px;
}

.v8c1-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.v8c1-btn-register, .v8c1-btn-login {
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.v8c1-btn-register {
  background: linear-gradient(135deg, var(--v8c1-primary), var(--v8c1-accent));
  color: var(--v8c1-bg-dark);
}

.v8c1-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 12px rgba(0, 206, 209, 0.4);
}

.v8c1-btn-login {
  background: transparent;
  color: var(--v8c1-primary);
  border: 1.5px solid var(--v8c1-primary);
}

.v8c1-btn-login:hover {
  background: rgba(0, 206, 209, 0.15);
}

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

/* ===== Mobile Menu ===== */
.v8c1-mobile-menu {
  display: none;
  position: fixed;
  top: 52px;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--v8c1-bg-dark);
  border-bottom: 2px solid var(--v8c1-primary);
  max-width: 430px;
  margin: 0 auto;
  padding: 1rem;
}

.v8c1-mobile-menu.v8c1-menu-active {
  display: block;
  animation: v8c1-slideDown 0.3s ease;
}

@keyframes v8c1-slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.v8c1-mobile-menu a {
  display: block;
  padding: 1rem 1.2rem;
  color: var(--v8c1-text);
  font-size: 1.4rem;
  border-bottom: 1px solid var(--v8c1-border);
  transition: all 0.2s;
}

.v8c1-mobile-menu a:hover {
  background: rgba(0, 206, 209, 0.1);
  color: var(--v8c1-primary);
  padding-left: 1.8rem;
}

/* ===== Main Content ===== */
.v8c1-main {
  padding-top: 60px;
  padding-bottom: 1rem;
}

/* ===== Carousel ===== */
.v8c1-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 var(--v8c1-radius) var(--v8c1-radius);
}

.v8c1-carousel-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}

.v8c1-carousel-slide.v8c1-slide-active {
  display: block;
}

.v8c1-carousel-slide img {
  width: 100%;
  height: auto;
  min-height: 180px;
  object-fit: cover;
}

.v8c1-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.v8c1-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.v8c1-carousel-dot.v8c1-dot-active {
  background: var(--v8c1-primary);
  transform: scale(1.3);
}

/* ===== Section Styling ===== */
.v8c1-section {
  padding: 1.5rem 1rem;
}

.v8c1-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--v8c1-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--v8c1-secondary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.v8c1-section-title .material-icons {
  font-size: 2rem;
  color: var(--v8c1-accent);
}

/* ===== Game Grid ===== */
.v8c1-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.v8c1-game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s;
  text-align: center;
}

.v8c1-game-card:hover {
  transform: translateY(-3px);
}

.v8c1-game-card img {
  width: 72px;
  height: 72px;
  border-radius: var(--v8c1-radius);
  border: 1.5px solid var(--v8c1-border);
  object-fit: cover;
  margin-bottom: 0.3rem;
}

.v8c1-game-card span {
  font-size: 1rem;
  color: var(--v8c1-text-muted);
  line-height: 1.2rem;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== Category Header ===== */
.v8c1-cat-header {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--v8c1-accent);
  margin: 1.5rem 0 0.8rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--v8c1-primary);
}

/* ===== Promo CTA ===== */
.v8c1-cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--v8c1-primary), var(--v8c1-secondary));
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 25px;
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
  text-align: center;
}

.v8c1-cta-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(0, 206, 209, 0.5);
}

.v8c1-text-link {
  color: var(--v8c1-primary);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

.v8c1-text-link:hover {
  color: var(--v8c1-accent);
}

/* ===== Info Cards ===== */
.v8c1-card {
  background: var(--v8c1-bg-card);
  border-radius: var(--v8c1-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  border: 1px solid var(--v8c1-border);
}

.v8c1-card h3 {
  color: var(--v8c1-primary);
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}

.v8c1-card p {
  color: var(--v8c1-text-muted);
  font-size: 1.2rem;
  line-height: 1.6rem;
}

/* ===== Winners Table ===== */
.v8c1-winners-list {
  list-style: none;
}

.v8c1-winners-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--v8c1-border);
  font-size: 1.2rem;
}

.v8c1-winners-list .v8c1-winner-name {
  color: var(--v8c1-accent);
}

.v8c1-winners-list .v8c1-winner-amount {
  color: var(--v8c1-gold);
  font-weight: 700;
}

/* ===== Testimonials ===== */
.v8c1-testimonial {
  background: var(--v8c1-bg-card);
  border-radius: var(--v8c1-radius);
  padding: 1rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--v8c1-primary);
}

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

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

/* ===== Footer ===== */
.v8c1-footer {
  background: var(--v8c1-bg);
  padding: 2rem 1rem 6rem;
  border-top: 2px solid var(--v8c1-primary);
}

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

.v8c1-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.v8c1-footer-links a {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--v8c1-bg-card);
  border: 1px solid var(--v8c1-border);
  border-radius: 15px;
  color: var(--v8c1-text-muted);
  font-size: 1.1rem;
  transition: all 0.2s;
}

.v8c1-footer-links a:hover {
  color: var(--v8c1-primary);
  border-color: var(--v8c1-primary);
}

.v8c1-footer-copy {
  color: var(--v8c1-text-muted);
  font-size: 1rem;
  text-align: center;
  opacity: 0.7;
}

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

.v8c1-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 54px;
  background: none;
  border: none;
  color: var(--v8c1-text-muted);
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 8px;
  padding: 0.2rem;
}

.v8c1-bottom-nav-btn:hover,
.v8c1-bottom-nav-btn.v8c1-nav-active {
  color: var(--v8c1-primary);
  transform: scale(1.08);
}

.v8c1-bottom-nav-btn i,
.v8c1-bottom-nav-btn .material-icons,
.v8c1-bottom-nav-btn ion-icon,
.v8c1-bottom-nav-btn bi {
  font-size: 22px;
  margin-bottom: 2px;
}

.v8c1-bottom-nav-btn span {
  font-size: 1rem;
  line-height: 1.1rem;
}

/* ===== Responsive ===== */
@media (min-width: 769px) {
  .v8c1-bottom-nav { display: none; }
  .v8c1-header { max-width: 100%; }
  .v8c1-mobile-menu { max-width: 100%; }
  body { max-width: 100%; }
}

@media (max-width: 768px) {
  .v8c1-main { padding-bottom: 70px; }
}

/* ===== Utility ===== */
.v8c1-text-center { text-align: center; }
.v8c1-mt-1 { margin-top: 1rem; }
.v8c1-mb-1 { margin-bottom: 1rem; }
.v8c1-mb-2 { margin-bottom: 2rem; }
.v8c1-p-1 { padding: 1rem; }

/* ===== Content Typography ===== */
.v8c1-content p {
  color: var(--v8c1-text-muted);
  font-size: 1.3rem;
  line-height: 1.7rem;
  margin-bottom: 0.8rem;
}

.v8c1-content h2 {
  color: var(--v8c1-primary);
  font-size: 1.7rem;
  margin: 1.5rem 0 0.8rem;
}

.v8c1-content h3 {
  color: var(--v8c1-accent);
  font-size: 1.4rem;
  margin: 1rem 0 0.5rem;
}

.v8c1-content ul {
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
}

.v8c1-content ul li {
  color: var(--v8c1-text-muted);
  font-size: 1.3rem;
  line-height: 1.6rem;
  margin-bottom: 0.3rem;
}

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

.v8c1-payment-icon {
  background: var(--v8c1-bg-card);
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  border: 1px solid var(--v8c1-border);
  font-size: 1.2rem;
  color: var(--v8c1-text-muted);
}

/* ===== RTP Bar ===== */
.v8c1-rtp-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.v8c1-rtp-bar-label {
  font-size: 1.1rem;
  color: var(--v8c1-text-muted);
  min-width: 100px;
}

.v8c1-rtp-bar-track {
  flex: 1;
  height: 8px;
  background: var(--v8c1-bg);
  border-radius: 4px;
  overflow: hidden;
}

.v8c1-rtp-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--v8c1-primary), var(--v8c1-secondary));
}

.v8c1-rtp-bar-value {
  font-size: 1.1rem;
  color: var(--v8c1-gold);
  font-weight: 600;
  min-width: 36px;
  text-align: right;
}

/* ===== FAQ Section ===== */
.v8c1-faq-item {
  margin-bottom: 0.8rem;
}

.v8c1-faq-item h3 {
  color: var(--v8c1-primary);
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.v8c1-faq-item p {
  color: var(--v8c1-text-muted);
  font-size: 1.2rem;
  line-height: 1.5rem;
}
