/**
 * Backscatter - Design Stylesheet
 * All classes use g61f- prefix for namespace isolation
 * Color palette: #7B68EE | #EE82EE | #262626 | #9400D3
 * Mobile-first responsive design
 */

:root {
  --g61f-primary: #7B68EE;
  --g61f-accent: #EE82EE;
  --g61f-dark: #262626;
  --g61f-purple: #9400D3;
  --g61f-bg: #1a1a2e;
  --g61f-surface: #16213e;
  --g61f-card: #1f2940;
  --g61f-text: #e8e8f0;
  --g61f-muted: #a0a0c0;
  --g61f-gold: #ffd700;
  --g61f-radius: 8px;
  --g61f-header-h: 52px;
  --g61f-bottom-h: 60px;
}

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

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--g61f-bg);
  color: var(--g61f-text);
  font-size: 1.5rem;
  line-height: 1.5;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}

/* ========== HEADER ========== */
.g61f-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--g61f-header-h);
  background: linear-gradient(135deg, var(--g61f-dark) 0%, #1a1035 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 1000;
  border-bottom: 2px solid var(--g61f-primary);
  box-shadow: 0 2px 12px rgba(123, 104, 238, 0.3);
}

.g61f-logo-area {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

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

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

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

.g61f-btn-register {
  background: linear-gradient(135deg, var(--g61f-primary), var(--g61f-purple));
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.g61f-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(123, 104, 238, 0.6);
}

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

.g61f-btn-login:hover {
  background: rgba(238, 130, 238, 0.15);
}

.g61f-menu-btn {
  background: none;
  border: none;
  color: var(--g61f-text);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}

/* ========== MOBILE MENU ========== */
.g61f-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.g61f-overlay-active {
  opacity: 1;
  pointer-events: auto;
}

.g61f-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 260px;
  height: 100%;
  background: linear-gradient(180deg, var(--g61f-dark), #1a0f30);
  z-index: 9999;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

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

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

.g61f-menu-title {
  font-size: 1.8rem;
  color: var(--g61f-accent);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(123, 104, 238, 0.3);
}

.g61f-menu-list {
  list-style: none;
}

.g61f-menu-list li {
  margin-bottom: 0.8rem;
}

.g61f-menu-list a {
  color: var(--g61f-text);
  text-decoration: none;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  border-radius: var(--g61f-radius);
  transition: background 0.2s;
}

.g61f-menu-list a:hover,
.g61f-menu-list a:active {
  background: rgba(123, 104, 238, 0.2);
}

/* ========== CAROUSEL ========== */
.g61f-carousel {
  position: relative;
  width: 100%;
  margin-top: var(--g61f-header-h);
  overflow: hidden;
  aspect-ratio: 430/200;
}

.g61f-slide {
  display: none;
  width: 100%;
  height: 100%;
}

.g61f-slide-active {
  display: block;
}

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

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

.g61f-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
}

.g61f-dot-active {
  background: var(--g61f-accent);
}

/* ========== MAIN CONTENT ========== */
.g61f-main {
  padding: 1rem;
  padding-bottom: calc(var(--g61f-bottom-h) + 2rem);
}

.g61f-section {
  margin-bottom: 2rem;
}

.g61f-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g61f-accent);
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--g61f-primary);
  line-height: 1.3;
}

.g61f-section-title span {
  color: var(--g61f-primary);
}

.g61f-h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.2rem;
  line-height: 1.3;
  text-align: center;
}

.g61f-h1 span {
  background: linear-gradient(90deg, var(--g61f-accent), var(--g61f-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========== GAME GRID ========== */
.g61f-category-label {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--g61f-primary);
  margin: 1.5rem 0 0.8rem;
  padding: 0.5rem 1rem;
  background: rgba(123, 104, 238, 0.1);
  border-radius: var(--g61f-radius);
  border-left: 3px solid var(--g61f-purple);
}

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

.g61f-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
  background: var(--g61f-card);
  border-radius: var(--g61f-radius);
  padding: 0.5rem 0.3rem;
}

.g61f-game-item:hover {
  transform: translateY(-2px);
}

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

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

/* ========== CONTENT CARDS ========== */
.g61f-card {
  background: var(--g61f-card);
  border-radius: var(--g61f-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(123, 104, 238, 0.15);
}

.g61f-card-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--g61f-accent);
  margin-bottom: 0.8rem;
}

.g61f-card p {
  color: var(--g61f-muted);
  font-size: 1.35rem;
  line-height: 1.6;
  margin-bottom: 0.6rem;
}

.g61f-card strong {
  color: var(--g61f-primary);
}

/* ========== PROMO LINKS ========== */
.g61f-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--g61f-primary), var(--g61f-purple));
  color: #fff;
  padding: 0.8rem 1.6rem;
  border-radius: 24px;
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
  margin: 0.5rem 0;
}

.g61f-promo-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(123, 104, 238, 0.5);
}

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

.g61f-text-link:hover {
  color: var(--g61f-primary);
}

.g61f-site-link {
  color: var(--g61f-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

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

/* ========== FAQ ========== */
.g61f-faq-item {
  margin-bottom: 1rem;
  padding: 0.8rem;
  background: var(--g61f-surface);
  border-radius: var(--g61f-radius);
  border-left: 3px solid var(--g61f-purple);
}

.g61f-faq-q {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--g61f-accent);
  margin-bottom: 0.4rem;
}

.g61f-faq-a {
  font-size: 1.3rem;
  color: var(--g61f-muted);
  line-height: 1.5;
}

/* ========== RTP TABLE ========== */
.g61f-rtp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.g61f-rtp-item {
  text-align: center;
  background: var(--g61f-surface);
  padding: 0.6rem;
  border-radius: var(--g61f-radius);
}

.g61f-rtp-item .g61f-rtp-val {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--g61f-gold);
}

.g61f-rtp-item .g61f-rtp-label {
  font-size: 1.1rem;
  color: var(--g61f-muted);
}

/* ========== TESTIMONIALS ========== */
.g61f-testimonial {
  background: var(--g61f-surface);
  border-radius: var(--g61f-radius);
  padding: 1rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--g61f-accent);
}

.g61f-testimonial-name {
  font-weight: 700;
  color: var(--g61f-primary);
  font-size: 1.3rem;
}

.g61f-testimonial-text {
  color: var(--g61f-muted);
  font-size: 1.3rem;
  margin-top: 0.4rem;
  line-height: 1.5;
}

.g61f-testimonial-stars {
  color: var(--g61f-gold);
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

/* ========== WINNERS ========== */
.g61f-winners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.g61f-winner-item {
  background: var(--g61f-surface);
  border-radius: var(--g61f-radius);
  padding: 0.8rem;
  text-align: center;
}

.g61f-winner-name {
  font-size: 1.2rem;
  color: var(--g61f-text);
  font-weight: 600;
}

.g61f-winner-amount {
  font-size: 1.6rem;
  color: var(--g61f-gold);
  font-weight: 800;
}

.g61f-winner-game {
  font-size: 1.1rem;
  color: var(--g61f-muted);
}

/* ========== PAYMENT ========== */
.g61f-payment-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.8rem;
}

.g61f-payment-item {
  background: var(--g61f-surface);
  border-radius: var(--g61f-radius);
  padding: 0.6rem 1.2rem;
  font-size: 1.2rem;
  color: var(--g61f-text);
  border: 1px solid rgba(123, 104, 238, 0.2);
}

/* ========== FOOTER ========== */
.g61f-footer {
  background: var(--g61f-dark);
  padding: 2rem 1rem;
  border-top: 2px solid var(--g61f-primary);
  text-align: center;
}

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

.g61f-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.g61f-footer-links a {
  color: var(--g61f-accent);
  text-decoration: none;
  font-size: 1.2rem;
  padding: 0.4rem 0.8rem;
  background: rgba(123, 104, 238, 0.1);
  border-radius: 16px;
  transition: background 0.2s;
}

.g61f-footer-links a:hover {
  background: rgba(123, 104, 238, 0.25);
}

.g61f-site-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.g61f-site-links a {
  color: var(--g61f-muted);
  text-decoration: none;
  font-size: 1.15rem;
  transition: color 0.2s;
}

.g61f-site-links a:hover {
  color: var(--g61f-primary);
}

.g61f-copyright {
  font-size: 1.1rem;
  color: rgba(160, 160, 192, 0.6);
  margin-top: 0.8rem;
}

/* ========== BOTTOM NAV ========== */
.g61f-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--g61f-bottom-h);
  background: linear-gradient(180deg, var(--g61f-dark), #0d0d1a);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  border-top: 1.5px solid rgba(123, 104, 238, 0.4);
  box-shadow: 0 -2px 12px rgba(123, 104, 238, 0.2);
}

.g61f-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 48px;
  background: none;
  border: none;
  color: var(--g61f-muted);
  cursor: pointer;
  transition: color 0.2s, transform 0.15s;
  padding: 0.3rem;
  border-radius: 8px;
}

.g61f-bottom-btn:hover,
.g61f-bottom-btn:active {
  color: var(--g61f-accent);
  transform: scale(1.1);
}

.g61f-bottom-btn .g61f-bnav-icon {
  font-size: 22px;
  margin-bottom: 2px;
  transition: transform 0.2s;
}

.g61f-bottom-btn .g61f-bnav-text {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.g61f-bottom-active {
  color: var(--g61f-accent) !important;
}

.g61f-bottom-active .g61f-bnav-icon {
  transform: scale(1.15);
}

/* ========== DESKTOP ========== */
@media (min-width: 769px) {
  .g61f-bottom-nav {
    display: none;
  }
  body {
    max-width: 430px;
  }
}

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

/* ========== UTILITIES ========== */
.g61f-mt-1 { margin-top: 0.8rem; }
.g61f-mt-2 { margin-top: 1.6rem; }
.g61f-mb-1 { margin-bottom: 0.8rem; }
.g61f-text-center { text-align: center; }
.g61f-text-sm { font-size: 1.2rem; }
.g61f-text-muted { color: var(--g61f-muted); }
.g61f-divider {
  border: none;
  border-top: 1px solid rgba(123, 104, 238, 0.2);
  margin: 1.5rem 0;
}
