/* 37jl-sbs Theme Stylesheet
   All classes use g252- prefix
   Colors: Gold #DEB887 | Gray #999999 | Dark #1A1A1A
   Mobile-first, max-width 430px */

:root {
  --g252-primary: #DEB887;
  --g252-bg: #1A1A1A;
  --g252-text: #EEEEEE;
  --g252-gray: #999999;
  --g252-dark: #111111;
  --g252-card: #222222;
  --g252-border: #333333;
  --g252-accent: #D4A857;
  --g252-success: #4CAF50;
  --g252-header-h: 5.6rem;
  --g252-bottom-h: 6.0rem;
}

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

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--g252-bg);
  color: var(--g252-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(--g252-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ===== Header ===== */
.g252-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--g252-dark);
  border-bottom: 1px solid var(--g252-border);
  height: var(--g252-header-h);
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.0rem;
}

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

.g252-logo-area img {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.4rem;
}

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

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

.g252-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  min-height: 3.6rem;
  min-width: 4.4rem;
  transition: all 0.2s ease;
}

.g252-btn-register {
  background: var(--g252-primary);
  color: var(--g252-dark);
}

.g252-btn-register:hover {
  background: var(--g252-accent);
}

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

.g252-btn-login:hover {
  background: rgba(222, 184, 135, 0.1);
}

.g252-menu-toggle {
  background: none;
  border: none;
  color: var(--g252-primary);
  font-size: 2.0rem;
  cursor: pointer;
  padding: 0.4rem;
  min-width: 3.6rem;
  min-height: 3.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.g252-mobile-menu {
  position: fixed;
  top: 0; right: -260px;
  width: 260px;
  height: 100%;
  background: var(--g252-dark);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2.0rem 1.5rem;
  overflow-y: auto;
}

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

.g252-mobile-menu .g252-menu-close {
  background: none;
  border: none;
  color: var(--g252-primary);
  font-size: 2.0rem;
  cursor: pointer;
  position: absolute;
  top: 1.0rem;
  right: 1.0rem;
  min-width: 3.6rem;
  min-height: 3.6rem;
}

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

.g252-mobile-menu nav a:hover {
  color: var(--g252-primary);
  text-decoration: none;
}

/* ===== Main Content ===== */
main {
  padding-top: var(--g252-header-h);
  padding-bottom: 2.0rem;
}

/* ===== Carousel ===== */
.g252-carousel {
  position: relative;
  width: 100%;
  height: 18rem;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

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

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

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

.g252-carousel-dots {
  position: absolute;
  bottom: 0.8rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.g252-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
}

.g252-dot-active {
  background: var(--g252-primary);
}

/* ===== Sections ===== */
.g252-section {
  padding: 1.5rem 1.0rem;
  margin-bottom: 1.0rem;
}

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

.g252-section-title i {
  margin-right: 0.5rem;
}

.g252-subtitle {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--g252-primary);
  margin: 1.0rem 0 0.5rem;
}

/* ===== Game Grid ===== */
.g252-category-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--g252-accent);
  margin: 1.5rem 0 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.g252-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-bottom: 1.0rem;
}

.g252-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

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

.g252-game-item img {
  width: 7.2rem;
  height: 7.2rem;
  border-radius: 0.8rem;
  border: 1px solid var(--g252-border);
  margin-bottom: 0.3rem;
}

.g252-game-item span {
  font-size: 1.0rem;
  color: var(--g252-gray);
  text-align: center;
  line-height: 1.2rem;
  max-width: 7.2rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.g252-card-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--g252-primary);
  margin-bottom: 0.6rem;
}

/* ===== Promo Link Styles ===== */
.g252-promo-link {
  color: var(--g252-primary);
  font-weight: 700;
  cursor: pointer;
  display: inline-block;
  padding: 0.2rem 0;
}

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

.g252-promo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--g252-primary), var(--g252-accent));
  color: var(--g252-dark);
  font-weight: 700;
  font-size: 1.4rem;
  padding: 1.0rem 2.4rem;
  border-radius: 0.6rem;
  border: none;
  cursor: pointer;
  min-height: 4.4rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.g252-promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(222, 184, 135, 0.3);
}

/* ===== FAQ Section ===== */
.g252-faq-item {
  background: var(--g252-card);
  border: 1px solid var(--g252-border);
  border-radius: 0.6rem;
  padding: 1.0rem 1.2rem;
  margin-bottom: 0.8rem;
}

.g252-faq-q {
  font-weight: 600;
  color: var(--g252-primary);
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.g252-faq-a {
  color: var(--g252-gray);
  font-size: 1.2rem;
  line-height: 1.6rem;
}

/* ===== Winners Table ===== */
.g252-winners-table {
  width: 100%;
  border-collapse: collapse;
}

.g252-winners-table th {
  background: var(--g252-card);
  color: var(--g252-primary);
  font-size: 1.1rem;
  padding: 0.6rem;
  text-align: left;
}

.g252-winners-table td {
  padding: 0.5rem 0.6rem;
  font-size: 1.1rem;
  border-bottom: 1px solid var(--g252-border);
  color: var(--g252-gray);
}

/* ===== Footer ===== */
.g252-footer {
  background: var(--g252-dark);
  border-top: 1px solid var(--g252-border);
  padding: 2.0rem 1.0rem 3.0rem;
}

.g252-footer-brand {
  font-size: 1.2rem;
  color: var(--g252-gray);
  line-height: 1.8rem;
  margin-bottom: 1.5rem;
}

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

.g252-footer-promos .g252-btn {
  font-size: 1.1rem;
  padding: 0.5rem 1.0rem;
  min-height: 3.4rem;
}

.g252-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.0rem;
  margin-bottom: 1.5rem;
}

.g252-footer-links a {
  color: var(--g252-gray);
  font-size: 1.1rem;
}

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

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

/* ===== Bottom Navigation ===== */
.g252-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--g252-dark);
  border-top: 1px solid var(--g252-border);
  height: var(--g252-bottom-h);
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 430px;
  margin: 0 auto;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}

.g252-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--g252-gray);
  cursor: pointer;
  min-width: 6.0rem;
  min-height: 5.4rem;
  transition: color 0.2s ease, transform 0.15s ease;
  padding: 0.3rem;
}

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

.g252-bottom-btn i,
.g252-bottom-btn .material-icons-outlined,
.g252-bottom-btn ion-icon {
  font-size: 2.2rem;
  margin-bottom: 0.2rem;
}

.g252-bottom-btn span {
  font-size: 1.0rem;
  font-weight: 500;
}

.g252-bottom-active {
  color: var(--g252-primary);
}

/* ===== Desktop ===== */
@media (min-width: 769px) {
  .g252-bottom-nav { display: none; }
  .g252-menu-toggle { display: none; }
}

@media (max-width: 768px) {
  main { padding-bottom: calc(var(--g252-bottom-h) + 2.0rem); }
  .g252-footer { padding-bottom: calc(var(--g252-bottom-h) + 2.0rem); }
}

/* ===== Utility ===== */
.g252-text-center { text-align: center; }
.g252-mb-1 { margin-bottom: 1.0rem; }
.g252-mb-2 { margin-bottom: 2.0rem; }
.g252-mt-1 { margin-top: 1.0rem; }
.g252-hidden { display: none; }

/* ===== Content Paragraphs ===== */
.g252-content p {
  color: var(--g252-gray);
  line-height: 1.8rem;
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

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

.g252-content h3 {
  font-size: 1.4rem;
  color: var(--g252-accent);
  margin: 1.2rem 0 0.6rem;
}

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

.g252-content ul li {
  color: var(--g252-gray);
  font-size: 1.3rem;
  line-height: 1.8rem;
  margin-bottom: 0.4rem;
}

/* ===== RTP Table ===== */
.g252-rtp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
}

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

.g252-rtp-item .g252-rtp-name {
  font-size: 1.0rem;
  color: var(--g252-gray);
  margin-bottom: 0.2rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.g252-rtp-item .g252-rtp-val {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--g252-success);
}
