/* Table Game PH - Main Stylesheet */
/* All classes use s460- prefix for namespace isolation */
/* Color palette: #3A3A3A | #006400 | #228B22 | #90EE90 | #F4A460 */

/* CSS Variables */
:root {
  --s460-primary: #006400;
  --s460-primary-light: #228B22;
  --s460-accent: #F4A460;
  --s460-accent-glow: #FFD28A;
  --s460-bg-dark: #3A3A3A;
  --s460-bg-darker: #2A2A2A;
  --s460-bg-card: #4A4A4A;
  --s460-text-light: #E8E8E8;
  --s460-text-bright: #FFFFFF;
  --s460-green-soft: #90EE90;
  --s460-border: #555555;
  --s460-radius: 8px;
  --s460-radius-lg: 12px;
  --s460-shadow: 0 2px 8px rgba(0,0,0,0.3);
  --s460-shadow-lg: 0 4px 16px rgba(0,0,0,0.4);
  font-size: 62.5%;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--s460-bg-dark);
  color: var(--s460-text-light);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ===== HEADER ===== */
.s460-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 56px;
  background: linear-gradient(135deg, var(--s460-bg-darker), var(--s460-bg-dark));
  border-bottom: 2px solid var(--s460-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 1000;
  box-shadow: var(--s460-shadow);
}

.s460-header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

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

.s460-header-logo span {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--s460-accent);
  letter-spacing: 0.5px;
}

.s460-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.s460-btn-register, .s460-btn-login {
  padding: 6px 14px;
  border: none;
  border-radius: var(--s460-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.s460-btn-register {
  background: linear-gradient(135deg, var(--s460-primary), var(--s460-primary-light));
  color: var(--s460-text-bright);
}

.s460-btn-register:hover {
  background: linear-gradient(135deg, var(--s460-primary-light), var(--s460-green-soft));
  color: var(--s460-bg-dark);
}

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

.s460-btn-login:hover {
  background: var(--s460-accent);
  color: var(--s460-bg-dark);
}

.s460-menu-toggle {
  background: none;
  border: none;
  color: var(--s460-text-light);
  font-size: 2rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

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

.s460-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100%;
  background: var(--s460-bg-darker);
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0.3s ease;
  z-index: 9999;
  overflow-y: auto;
  padding: 20px 0;
}

.s460-mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 16px;
  border-bottom: 1px solid var(--s460-border);
}

.s460-mobile-menu-close {
  background: none;
  border: none;
  color: var(--s460-text-light);
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
}

.s460-mobile-menu-nav {
  list-style: none;
  padding: 12px 0;
}

.s460-mobile-menu-nav li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: var(--s460-text-light);
  text-decoration: none;
  font-size: 1.4rem;
  transition: background 0.2s;
}

.s460-mobile-menu-nav li a:hover {
  background: var(--s460-bg-card);
  color: var(--s460-accent);
}

.s460-mobile-menu-nav li a i,
.s460-mobile-menu-nav li a span.material-symbols-outlined {
  font-size: 2rem;
  width: 24px;
  text-align: center;
}

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

.s460-carousel-track {
  display: flex;
  width: 100%;
}

.s460-carousel-slide {
  min-width: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  position: absolute;
  top: 0;
  left: 0;
}

.s460-carousel-slide.s460-slide-active {
  opacity: 1;
  position: relative;
}

.s460-carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}

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

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

.s460-carousel-dot.s460-dot-active {
  background: var(--s460-accent);
  transform: scale(1.2);
}

/* ===== MAIN CONTENT ===== */
.s460-main {
  padding-top: 56px;
  padding-bottom: 20px;
}

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

.s460-section {
  padding: 16px 12px;
}

.s460-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--s460-accent);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--s460-primary);
}

.s460-section-title i {
  margin-right: 6px;
}

.s460-section-desc {
  font-size: 1.3rem;
  color: var(--s460-text-light);
  line-height: 1.6;
  margin-bottom: 12px;
}

/* ===== GAME GRID ===== */
.s460-category-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--s460-green-soft);
  margin: 16px 0 8px;
  padding-left: 4px;
  border-left: 3px solid var(--s460-accent);
  padding-left: 10px;
}

.s460-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.s460-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
  border-radius: var(--s460-radius);
  padding: 6px;
  background: var(--s460-bg-card);
}

.s460-game-item:hover {
  transform: scale(1.05);
  background: var(--s460-bg-darker);
}

.s460-game-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--s460-radius);
  margin-bottom: 4px;
}

.s460-game-item span {
  display: block;
  font-size: 1.1rem;
  color: var(--s460-text-light);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== CONTENT CARDS ===== */
.s460-card {
  background: var(--s460-bg-card);
  border-radius: var(--s460-radius-lg);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--s460-shadow);
  border-left: 3px solid var(--s460-primary);
}

.s460-card h2 {
  font-size: 1.6rem;
  color: var(--s460-accent);
  margin-bottom: 8px;
}

.s460-card h3 {
  font-size: 1.4rem;
  color: var(--s460-green-soft);
  margin: 10px 0 6px;
}

.s460-card p {
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--s460-text-light);
  margin-bottom: 8px;
}

.s460-card ul {
  padding-left: 18px;
  margin-bottom: 8px;
}

.s460-card li {
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--s460-text-light);
  margin-bottom: 4px;
}

/* ===== PROMO BUTTON ===== */
.s460-promo-btn {
  display: inline-block;
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--s460-primary), var(--s460-primary-light));
  color: var(--s460-text-bright);
  border-radius: 24px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.2s;
  text-align: center;
}

.s460-promo-btn:hover {
  background: linear-gradient(135deg, var(--s460-primary-light), var(--s460-green-soft));
  color: var(--s460-bg-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,100,0,0.4);
}

.s460-promo-btn-accent {
  background: linear-gradient(135deg, var(--s460-accent), var(--s460-accent-glow));
  color: var(--s460-bg-dark);
}

.s460-promo-btn-accent:hover {
  background: linear-gradient(135deg, var(--s460-accent-glow), #FFE4A0);
  color: var(--s460-bg-dark);
}

/* ===== PROMO TEXT LINK ===== */
.s460-promo-link {
  color: var(--s460-accent);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border-bottom: 1px dashed var(--s460-accent);
  transition: color 0.2s;
}

.s460-promo-link:hover {
  color: var(--s460-green-soft);
  border-bottom-color: var(--s460-green-soft);
}

/* ===== INTERNAL LINK ===== */
.s460-internal-link {
  color: var(--s460-green-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.s460-internal-link:hover {
  border-bottom-color: var(--s460-green-soft);
}

/* ===== FEATURES GRID ===== */
.s460-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.s460-feature-item {
  background: var(--s460-bg-darker);
  padding: 12px;
  border-radius: var(--s460-radius);
  text-align: center;
  border: 1px solid var(--s460-border);
}

.s460-feature-item i,
.s460-feature-item .material-symbols-outlined {
  font-size: 2.4rem;
  color: var(--s460-accent);
  margin-bottom: 6px;
  display: block;
}

.s460-feature-item span {
  font-size: 1.2rem;
  color: var(--s460-text-light);
}

/* ===== TESTIMONIAL ===== */
.s460-testimonial {
  background: var(--s460-bg-darker);
  border-radius: var(--s460-radius-lg);
  padding: 14px;
  margin-bottom: 10px;
  border-left: 3px solid var(--s460-accent);
}

.s460-testimonial-text {
  font-size: 1.3rem;
  color: var(--s460-text-light);
  font-style: italic;
  margin-bottom: 6px;
}

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

/* ===== PAYMENT METHODS ===== */
.s460-payment-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 10px 0;
}

.s460-payment-item {
  background: var(--s460-bg-darker);
  border: 1px solid var(--s460-border);
  border-radius: var(--s460-radius);
  padding: 8px 14px;
  font-size: 1.2rem;
  color: var(--s460-text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ===== WINNER SHOWCASE ===== */
.s460-winner-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--s460-border);
}

.s460-winner-name {
  font-weight: 600;
  color: var(--s460-accent);
  font-size: 1.3rem;
}

.s460-winner-game {
  font-size: 1.2rem;
  color: var(--s460-text-light);
}

.s460-winner-amount {
  font-weight: 700;
  color: var(--s460-green-soft);
  font-size: 1.4rem;
}

/* ===== FOOTER ===== */
.s460-footer {
  background: var(--s460-bg-darker);
  padding: 20px 12px;
  text-align: center;
  border-top: 2px solid var(--s460-primary);
}

.s460-footer-brand {
  font-size: 1.3rem;
  color: var(--s460-text-light);
  line-height: 1.6;
  margin-bottom: 14px;
}

.s460-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 14px;
}

.s460-footer-links a {
  padding: 6px 12px;
  background: var(--s460-bg-card);
  color: var(--s460-text-light);
  border-radius: var(--s460-radius);
  font-size: 1.2rem;
  text-decoration: none;
  transition: all 0.2s;
}

.s460-footer-links a:hover {
  background: var(--s460-primary);
  color: var(--s460-text-bright);
}

.s460-footer-site-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 14px;
}

.s460-footer-site-links a {
  font-size: 1.1rem;
  color: var(--s460-green-soft);
  text-decoration: none;
  transition: color 0.2s;
}

.s460-footer-site-links a:hover {
  color: var(--s460-accent);
}

.s460-footer-copy {
  font-size: 1.1rem;
  color: var(--s460-border);
  margin-top: 10px;
}

/* ===== BOTTOM NAV ===== */
.s460-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: linear-gradient(180deg, var(--s460-bg-darker), #1A1A1A);
  border-top: 2px solid var(--s460-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.4);
}

.s460-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(--s460-text-light);
  cursor: pointer;
  transition: all 0.2s;
  padding: 4px;
  border-radius: var(--s460-radius);
}

.s460-bottom-nav-btn:hover,
.s460-bottom-nav-btn:active {
  color: var(--s460-accent);
  background: rgba(244,164,96,0.1);
}

.s460-bottom-nav-btn i,
.s460-bottom-nav-btn .material-symbols-outlined,
.s460-bottom-nav-btn ion-icon {
  font-size: 22px;
  margin-bottom: 2px;
}

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

.s460-bottom-nav-btn.s460-nav-active {
  color: var(--s460-accent);
}

.s460-bottom-nav-btn.s460-nav-active::after {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--s460-accent);
  border-radius: 1px;
  margin-top: 2px;
}

@media (min-width: 769px) {
  .s460-bottom-nav { display: none; }
  .s460-menu-toggle { display: none; }
}

/* ===== H1 STYLING ===== */
.s460-h1-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--s460-accent);
  text-align: center;
  padding: 12px 8px;
  line-height: 1.3;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* ===== CTA SECTION ===== */
.s460-cta-section {
  background: linear-gradient(135deg, var(--s460-primary), var(--s460-primary-light));
  padding: 20px 12px;
  text-align: center;
  border-radius: var(--s460-radius-lg);
  margin: 12px;
}

.s460-cta-section h2 {
  font-size: 1.8rem;
  color: var(--s460-text-bright);
  margin-bottom: 8px;
}

.s460-cta-section p {
  font-size: 1.3rem;
  color: var(--s460-green-soft);
  margin-bottom: 14px;
}

/* ===== RTP TABLE ===== */
.s460-rtp-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
}

.s460-rtp-table th {
  background: var(--s460-primary);
  color: var(--s460-text-bright);
  padding: 8px 6px;
  font-size: 1.2rem;
  text-align: left;
}

.s460-rtp-table td {
  padding: 6px;
  font-size: 1.2rem;
  border-bottom: 1px solid var(--s460-border);
  color: var(--s460-text-light);
}

.s460-rtp-table tr:hover td {
  background: var(--s460-bg-darker);
}

/* ===== APP DOWNLOAD CTA ===== */
.s460-app-cta {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border-radius: var(--s460-radius-lg);
  padding: 16px;
  text-align: center;
  margin: 12px 0;
  border: 1px solid var(--s460-primary);
}

.s460-app-cta h3 {
  color: var(--s460-accent);
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.s460-app-cta p {
  font-size: 1.2rem;
  color: var(--s460-text-light);
  margin-bottom: 12px;
}

/* ===== FAQ STYLES ===== */
.s460-faq-item {
  background: var(--s460-bg-card);
  border-radius: var(--s460-radius);
  margin-bottom: 8px;
  overflow: hidden;
}

.s460-faq-question {
  padding: 12px 14px;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--s460-accent);
  cursor: default;
}

.s460-faq-answer {
  padding: 0 14px 12px;
  font-size: 1.2rem;
  color: var(--s460-text-light);
  line-height: 1.6;
}

/* ===== UTILITY ===== */
.s460-text-center { text-align: center; }
.s460-mb-8 { margin-bottom: 8px; }
.s460-mb-12 { margin-bottom: 12px; }
.s460-mt-12 { margin-top: 12px; }
.s460-hidden { display: none; }

/* ===== HELP PAGE CONTENT ===== */
.s460-help-content {
  padding: 16px 12px;
}

.s460-help-content h1 {
  font-size: 1.8rem;
  color: var(--s460-accent);
  margin-bottom: 14px;
  text-align: center;
}

.s460-help-content h2 {
  font-size: 1.5rem;
  color: var(--s460-green-soft);
  margin: 14px 0 8px;
  border-bottom: 1px solid var(--s460-border);
  padding-bottom: 4px;
}

.s460-help-content p {
  font-size: 1.3rem;
  line-height: 1.6;
  margin-bottom: 10px;
}

.s460-help-content ul, .s460-help-content ol {
  padding-left: 18px;
  margin-bottom: 10px;
}

.s460-help-content li {
  font-size: 1.3rem;
  line-height: 1.6;
  margin-bottom: 4px;
}

.s460-step-box {
  background: var(--s460-bg-card);
  border-radius: var(--s460-radius);
  padding: 12px 14px;
  margin-bottom: 10px;
  border-left: 3px solid var(--s460-primary);
}

.s460-step-box strong {
  color: var(--s460-accent);
}

/* ===== CATEGORY HIGHLIGHTS ===== */
.s460-cat-highlight {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--s460-bg-card);
  border-radius: var(--s460-radius-lg);
  padding: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: transform 0.2s;
}

.s460-cat-highlight:hover {
  transform: scale(1.02);
}

.s460-cat-highlight img {
  width: 48px;
  height: 48px;
  border-radius: var(--s460-radius);
  object-fit: cover;
}

.s460-cat-highlight-text h3 {
  font-size: 1.3rem;
  color: var(--s460-accent);
  margin-bottom: 2px;
}

.s460-cat-highlight-text p {
  font-size: 1.1rem;
  color: var(--s460-text-light);
}
