/* Table Game Online - Design Stylesheet */
/* CSS class prefix: v138- */
/* Color palette: #212F3D | #800080 | #32CD32 | #4B0082 | #006400 */

:root {
  --v138-primary: #800080;
  --v138-secondary: #4B0082;
  --v138-accent: #32CD32;
  --v138-dark: #212F3D;
  --v138-green: #006400;
  --v138-bg: #0d1117;
  --v138-bg2: #161b22;
  --v138-card: #1c2333;
  --v138-text: #e6edf3;
  --v138-text-muted: #8b949e;
  --v138-border: #30363d;
  --v138-radius: 8px;
  --v138-shadow: 0 2px 12px rgba(0,0,0,0.3);
  --v138-transition: 0.3s ease;
}

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

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

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

a { color: var(--v138-accent); text-decoration: none; transition: color var(--v138-transition); }
a:hover { color: #5ddf5d; }

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

/* ===== HEADER ===== */
.v138-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: 56px;
  background: linear-gradient(135deg, var(--v138-dark), #1a1a2e);
  border-bottom: 2px solid var(--v138-primary);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.2rem; z-index: 1000;
  transition: all var(--v138-transition);
}

.v138-header-scrolled {
  box-shadow: 0 4px 20px rgba(128, 0, 128, 0.4);
  background: linear-gradient(135deg, #1a1a2e, var(--v138-dark));
}

.v138-header-logo {
  display: flex; align-items: center; gap: 0.6rem;
}

.v138-header-logo img {
  width: 28px; height: 28px; border-radius: 4px;
}

.v138-header-logo span {
  font-size: 1.4rem; font-weight: 700; color: #fff;
  background: linear-gradient(90deg, var(--v138-accent), #5ddf5d);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.v138-header-actions {
  display: flex; align-items: center; gap: 0.6rem;
}

.v138-btn-register, .v138-btn-login {
  padding: 0.5rem 1.2rem; border-radius: 20px; font-size: 1.2rem;
  font-weight: 600; cursor: pointer; border: none;
  transition: all var(--v138-transition); white-space: nowrap;
}

.v138-btn-register {
  background: linear-gradient(135deg, var(--v138-accent), var(--v138-green));
  color: #fff; box-shadow: 0 2px 8px rgba(50, 205, 50, 0.3);
}

.v138-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(50, 205, 50, 0.5);
}

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

.v138-btn-login:hover {
  background: rgba(50, 205, 50, 0.1);
}

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

/* ===== MOBILE MENU ===== */
.v138-menu-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7); z-index: 9998;
  opacity: 0; visibility: hidden;
  transition: all var(--v138-transition);
}

.v138-overlay-active { opacity: 1; visibility: visible; }

.v138-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100%;
  background: linear-gradient(180deg, var(--v138-dark), #0d1117);
  z-index: 9999; transition: right var(--v138-transition);
  padding: 2rem; overflow-y: auto;
}

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

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

.v138-mobile-menu a:hover {
  color: var(--v138-accent); padding-left: 1.5rem;
  background: rgba(50, 205, 50, 0.05);
}

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

/* ===== MAIN CONTENT ===== */
.v138-main {
  padding-top: 56px; min-height: 100vh;
}

/* ===== SLIDER / CAROUSEL ===== */
.v138-slider {
  position: relative; width: 100%; overflow: hidden;
  aspect-ratio: 16/9; background: var(--v138-dark);
}

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

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

.v138-slide img {
  width: 100%; height: 100%; object-fit: cover; cursor: pointer;
}

.v138-slider-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 5;
}

.v138-slide-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer;
  transition: all var(--v138-transition);
}

.v138-dot-active {
  background: var(--v138-accent); width: 24px; border-radius: 4px;
}

/* ===== GAME SECTIONS ===== */
.v138-section {
  padding: 2rem 1.2rem;
}

.v138-section-title {
  font-size: 1.8rem; font-weight: 700; margin-bottom: 1.2rem;
  padding-bottom: 0.8rem; border-bottom: 2px solid var(--v138-primary);
  color: #fff;
}

.v138-section-title i {
  margin-right: 0.5rem; color: var(--v138-accent);
}

.v138-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

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

.v138-game-item:hover {
  transform: translateY(-3px);
  border-color: var(--v138-primary);
  box-shadow: 0 4px 16px rgba(128, 0, 128, 0.3);
}

.v138-game-item img {
  width: 100%; aspect-ratio: 1; border-radius: 6px;
  margin-bottom: 0.4rem;
}

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

/* ===== CONTENT CARDS ===== */
.v138-card {
  background: var(--v138-card); border-radius: var(--v138-radius);
  padding: 1.6rem; margin-bottom: 1.2rem;
  border: 1px solid var(--v138-border);
}

.v138-card h2 {
  font-size: 1.7rem; margin-bottom: 1rem; color: #fff;
}

.v138-card h3 {
  font-size: 1.5rem; margin-bottom: 0.8rem; color: var(--v138-accent);
}

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

/* ===== PROMO BUTTONS ===== */
.v138-promo-btn {
  display: inline-block; padding: 1rem 2.4rem;
  background: linear-gradient(135deg, var(--v138-primary), var(--v138-secondary));
  color: #fff; font-size: 1.4rem; font-weight: 700;
  border-radius: 25px; border: none; cursor: pointer;
  transition: all var(--v138-transition);
  box-shadow: 0 4px 15px rgba(128, 0, 128, 0.4);
}

.v138-promo-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(128, 0, 128, 0.6);
}

.v138-promo-btn-green {
  background: linear-gradient(135deg, var(--v138-accent), var(--v138-green));
  box-shadow: 0 4px 15px rgba(50, 205, 50, 0.3);
}

.v138-promo-btn-green:hover {
  box-shadow: 0 6px 20px rgba(50, 205, 50, 0.5);
}

.v138-text-link {
  color: var(--v138-accent); font-weight: 600; cursor: pointer;
  text-decoration: underline;
}

.v138-text-link:hover { color: #5ddf5d; }

/* ===== BOTTOM NAVIGATION ===== */
.v138-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: 60px;
  background: linear-gradient(180deg, #1a1a2e, var(--v138-dark));
  border-top: 2px solid var(--v138-primary);
  display: flex; align-items: center; justify-content: space-around;
  z-index: 1000; padding: 0 0.3rem;
}

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

.v138-bottom-nav-btn i, .v138-bottom-nav-btn span.material-symbols-outlined {
  font-size: 24px; margin-bottom: 2px;
}

.v138-bottom-nav-btn span.v138-nav-label {
  font-size: 1rem; font-weight: 500;
}

.v138-bottom-nav-btn:hover, .v138-nav-active {
  color: var(--v138-accent);
}

.v138-nav-active::after {
  content: ''; position: absolute; top: -2px; left: 50%;
  transform: translateX(-50%); width: 30px; height: 3px;
  background: var(--v138-accent); border-radius: 0 0 3px 3px;
}

.v138-bottom-nav-btn:active { transform: scale(0.92); }

/* ===== FOOTER ===== */
.v138-footer {
  background: var(--v138-dark); padding: 2.4rem 1.2rem 1.2rem;
  border-top: 1px solid var(--v138-border);
}

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

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

.v138-footer-links a {
  padding: 0.5rem 1rem; background: var(--v138-card);
  border-radius: 16px; font-size: 1.1rem; color: var(--v138-text);
  border: 1px solid var(--v138-border);
  transition: all var(--v138-transition);
}

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

.v138-footer-copy {
  text-align: center; font-size: 1.1rem;
  color: var(--v138-text-muted); padding-top: 1rem;
  border-top: 1px solid var(--v138-border);
}

/* ===== UTILITIES ===== */
.v138-text-center { text-align: center; }
.v138-mt-1 { margin-top: 1rem; }
.v138-mb-1 { margin-bottom: 1rem; }
.v138-mb-2 { margin-bottom: 2rem; }
.v138-py-1 { padding: 1rem 0; }

.v138-highlight {
  background: linear-gradient(135deg, rgba(128,0,128,0.15), rgba(75,0,130,0.15));
  border-left: 3px solid var(--v138-primary);
  padding: 1.2rem 1.6rem; border-radius: 0 var(--v138-radius) var(--v138-radius) 0;
  margin: 1rem 0;
}

.v138-badge {
  display: inline-block; padding: 0.3rem 0.8rem;
  background: var(--v138-primary); color: #fff;
  font-size: 1rem; border-radius: 10px; font-weight: 600;
}

.v138-divider {
  height: 1px; background: var(--v138-border);
  margin: 1.5rem 0;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 769px) {
  .v138-bottom-nav { display: none; }
  .v138-main { padding-bottom: 0; }
}

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

@media (max-width: 360px) {
  .v138-game-grid { grid-template-columns: repeat(3, 1fr); }
  .v138-header-logo span { font-size: 1.2rem; }
}

/* ===== ANIMATIONS ===== */
@keyframes v138-fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.v138-animate { animation: v138-fadeIn 0.5s ease forwards; }

/* ===== FAQ ACCORDION ===== */
.v138-faq-item {
  border: 1px solid var(--v138-border);
  border-radius: var(--v138-radius); margin-bottom: 0.8rem;
  overflow: hidden; background: var(--v138-card);
}

.v138-faq-q {
  padding: 1.2rem; font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  color: #fff; font-size: 1.3rem;
}

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

/* ===== WINNER LIST ===== */
.v138-winner-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1rem; border-bottom: 1px solid var(--v138-border);
}

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

/* ===== PAYMENT GRID ===== */
.v138-payment-grid {
  display: flex; flex-wrap: wrap; gap: 0.8rem;
  justify-content: center;
}

.v138-payment-item {
  background: var(--v138-card); border: 1px solid var(--v138-border);
  border-radius: var(--v138-radius); padding: 0.8rem 1.2rem;
  font-size: 1.2rem; color: var(--v138-text-muted);
}

/* ===== TESTIMONIAL ===== */
.v138-testimonial {
  background: var(--v138-card); border-radius: var(--v138-radius);
  padding: 1.2rem; margin-bottom: 0.8rem;
  border-left: 3px solid var(--v138-accent);
}

.v138-testimonial-text {
  font-size: 1.2rem; color: var(--v138-text-muted); line-height: 1.6rem;
  font-style: italic; margin-bottom: 0.6rem;
}

.v138-testimonial-author {
  font-size: 1.1rem; color: var(--v138-accent); font-weight: 600;
}
