/**
 * layout-9618.css - Core Stylesheet for kg9999.cfd
 * All classes use w9618- prefix for namespace isolation
 * Color palette: #1A1A1A (bg-dark), #FAF0E6 (light), #F5DEB3 (accent), #C8A97E (gold)
 */

:root {
  --w9618-bg: #1A1A1A;
  --w9618-bg-light: #252525;
  --w9618-bg-card: #1E1E1E;
  --w9618-text: #FAF0E6;
  --w9618-text-muted: #B8A898;
  --w9618-accent: #F5DEB3;
  --w9618-gold: #C8A97E;
  --w9618-gold-bright: #E8C56D;
  --w9618-highlight: #D4A84B;
  --w9618-border: #3A3530;
  --w9618-shadow: rgba(0,0,0,0.4);
  --w9618-success: #4CAF50;
  --w9618-danger: #E74C3C;
  --w9618-radius: 1.2rem;
  --w9618-radius-sm: 0.8rem;
  --w9618-transition: all 0.3s ease;
}

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

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

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: var(--w9618-bg);
  color: var(--w9618-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--w9618-accent); text-decoration: none; }
a:hover { color: var(--w9618-gold-bright); }

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

/* Container */
.w9618-container {
  max-width: 43rem;
  margin: 0 auto;
  padding: 0 1.2rem;
  width: 100%;
}

/* Header */
.w9618-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #1A1A1A 0%, #2A2218 100%);
  border-bottom: 1px solid var(--w9618-border);
  padding: 0 1rem;
  height: 5.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(10px);
}

.w9618-header-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.w9618-logo {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 0.6rem;
}

.w9618-site-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--w9618-gold-bright);
  letter-spacing: 0.5px;
}

.w9618-header-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.w9618-btn-register {
  background: linear-gradient(135deg, var(--w9618-gold-bright), var(--w9618-highlight));
  color: var(--w9618-bg);
  border: none;
  padding: 0.7rem 1.4rem;
  border-radius: var(--w9618-radius-sm);
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--w9618-transition);
  min-height: 3.6rem;
  min-width: 7rem;
  text-align: center;
}

.w9618-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(232,197,109,0.3);
}

.w9618-btn-login {
  background: transparent;
  color: var(--w9618-accent);
  border: 1.5px solid var(--w9618-gold);
  padding: 0.6rem 1.2rem;
  border-radius: var(--w9618-radius-sm);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--w9618-transition);
  min-height: 3.6rem;
  min-width: 6rem;
  text-align: center;
}

.w9618-btn-login:hover {
  background: rgba(245,222,179,0.1);
  border-color: var(--w9618-gold-bright);
}

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

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

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

.w9618-mobile-menu {
  position: fixed;
  top: 0;
  right: -28rem;
  width: 28rem;
  height: 100%;
  background: linear-gradient(180deg, #1A1A1A, #222);
  z-index: 9999;
  transition: right 0.35s ease;
  padding: 2rem;
  overflow-y: auto;
}

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

.w9618-menu-close {
  background: none;
  border: none;
  color: var(--w9618-text);
  font-size: 2.4rem;
  cursor: pointer;
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  min-width: 4rem;
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.w9618-menu-title {
  font-size: 1.6rem;
  color: var(--w9618-gold-bright);
  font-weight: 700;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--w9618-border);
}

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

.w9618-menu-link:hover {
  color: var(--w9618-gold-bright);
  background: rgba(245,222,179,0.05);
  padding-left: 1.6rem;
}

.w9618-menu-promo {
  display: block;
  margin-top: 1.5rem;
  padding: 1.2rem;
  background: linear-gradient(135deg, var(--w9618-gold-bright), var(--w9618-highlight));
  color: var(--w9618-bg);
  text-align: center;
  border-radius: var(--w9618-radius-sm);
  font-weight: 700;
  font-size: 1.4rem;
}

/* Main content spacing */
.w9618-main {
  padding-top: 5.8rem;
}

/* Carousel */
.w9618-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--w9618-radius);
  margin-bottom: 1.5rem;
}

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

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

.w9618-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 0;
}

.w9618-carousel-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--w9618-border);
  cursor: pointer;
  transition: var(--w9618-transition);
  border: none;
}

.w9618-dot-active {
  background: var(--w9618-gold-bright);
  transform: scale(1.3);
}

/* Section titles */
.w9618-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--w9618-gold-bright);
  margin: 2rem 0 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--w9618-gold);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

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

/* Game grid */
.w9618-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.w9618-game-item {
  text-align: center;
  cursor: pointer;
  transition: var(--w9618-transition);
  border-radius: var(--w9618-radius-sm);
  padding: 0.4rem;
}

.w9618-game-item:hover {
  transform: translateY(-3px);
  background: rgba(245,222,179,0.05);
}

.w9618-game-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--w9618-radius-sm);
  border: 1.5px solid var(--w9618-border);
  margin-bottom: 0.3rem;
}

.w9618-game-name {
  font-size: 1.1rem;
  color: var(--w9618-text-muted);
  line-height: 1.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Content cards */
.w9618-card {
  background: var(--w9618-bg-card);
  border: 1px solid var(--w9618-border);
  border-radius: var(--w9618-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.w9618-card-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--w9618-gold-bright);
  margin-bottom: 1rem;
}

.w9618-card-text {
  font-size: 1.3rem;
  color: var(--w9618-text-muted);
  line-height: 1.8rem;
}

.w9618-card-text p {
  margin-bottom: 0.8rem;
}

/* Promo buttons */
.w9618-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--w9618-gold-bright), var(--w9618-highlight));
  color: var(--w9618-bg);
  padding: 1rem 2rem;
  border-radius: var(--w9618-radius-sm);
  font-weight: 700;
  font-size: 1.4rem;
  cursor: pointer;
  border: none;
  transition: var(--w9618-transition);
  text-align: center;
  min-height: 4.4rem;
}

.w9618-promo-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(232,197,109,0.3);
}

.w9618-promo-text {
  color: var(--w9618-gold-bright);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

/* Features list */
.w9618-feature-list {
  list-style: none;
  padding: 0;
}

.w9618-feature-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--w9618-border);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.w9618-feature-icon {
  font-size: 2rem;
  color: var(--w9618-gold);
  flex-shrink: 0;
}

.w9618-feature-text {
  font-size: 1.3rem;
  color: var(--w9618-text-muted);
  line-height: 1.6rem;
}

.w9618-feature-text strong {
  color: var(--w9618-accent);
}

/* RTP table */
.w9618-rtp-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.w9618-rtp-table th,
.w9618-rtp-table td {
  padding: 0.8rem 0.6rem;
  text-align: left;
  font-size: 1.2rem;
  border-bottom: 1px solid var(--w9618-border);
}

.w9618-rtp-table th {
  color: var(--w9618-gold-bright);
  font-weight: 600;
}

.w9618-rtp-table td {
  color: var(--w9618-text-muted);
}

.w9618-rtp-bar {
  height: 0.6rem;
  background: var(--w9618-bg);
  border-radius: 0.3rem;
  overflow: hidden;
}

.w9618-rtp-fill {
  height: 100%;
  border-radius: 0.3rem;
  background: linear-gradient(90deg, var(--w9618-gold), var(--w9618-success));
}

/* Testimonial */
.w9618-testimonial {
  background: var(--w9618-bg-light);
  border-radius: var(--w9618-radius-sm);
  padding: 1.2rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--w9618-gold);
}

.w9618-testimonial-text {
  font-size: 1.3rem;
  color: var(--w9618-text-muted);
  font-style: italic;
  margin-bottom: 0.6rem;
}

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

/* Payment icons */
.w9618-payment-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin: 1rem 0;
}

.w9618-payment-item {
  background: var(--w9618-bg-light);
  padding: 0.6rem 1.2rem;
  border-radius: var(--w9618-radius-sm);
  font-size: 1.2rem;
  color: var(--w9618-accent);
  border: 1px solid var(--w9618-border);
}

/* Winners list */
.w9618-winner-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--w9618-border);
}

.w9618-winner-name {
  font-size: 1.2rem;
  color: var(--w9618-accent);
}

.w9618-winner-amount {
  font-size: 1.3rem;
  color: var(--w9618-gold-bright);
  font-weight: 700;
}

/* Footer */
.w9618-footer {
  background: linear-gradient(180deg, var(--w9618-bg) 0%, #111 100%);
  border-top: 1px solid var(--w9618-border);
  padding: 2rem 1.2rem 3rem;
  margin-top: 2rem;
}

.w9618-footer-desc {
  font-size: 1.2rem;
  color: var(--w9618-text-muted);
  line-height: 1.6rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.w9618-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.w9618-footer-link {
  background: var(--w9618-bg-light);
  color: var(--w9618-accent);
  padding: 0.6rem 1.2rem;
  border-radius: var(--w9618-radius-sm);
  font-size: 1.2rem;
  border: 1px solid var(--w9618-border);
  transition: var(--w9618-transition);
}

.w9618-footer-link:hover {
  border-color: var(--w9618-gold);
  color: var(--w9618-gold-bright);
}

.w9618-footer-copy {
  text-align: center;
  font-size: 1.1rem;
  color: var(--w9618-text-muted);
  margin-top: 1rem;
}

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

.w9618-footer-site-link {
  color: var(--w9618-text-muted);
  font-size: 1.1rem;
  transition: var(--w9618-transition);
}

.w9618-footer-site-link:hover {
  color: var(--w9618-gold-bright);
}

/* Bottom Nav */
.w9618-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #1E1E1E, #141414);
  border-top: 1px solid var(--w9618-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 6rem;
  padding: 0 0.4rem;
  box-shadow: 0 -4px 12px var(--w9618-shadow);
}

.w9618-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 6rem;
  min-height: 5rem;
  background: none;
  border: none;
  color: var(--w9618-text-muted);
  cursor: pointer;
  transition: var(--w9618-transition);
  padding: 0.3rem;
  position: relative;
}

.w9618-bottom-nav-btn i,
.w9618-bottom-nav-btn .material-icons {
  font-size: 2.2rem;
  margin-bottom: 0.2rem;
  transition: var(--w9618-transition);
}

.w9618-bottom-nav-btn span {
  font-size: 1rem;
  letter-spacing: 0.3px;
}

.w9618-bottom-nav-btn:hover,
.w9618-btn-active {
  color: var(--w9618-gold-bright);
}

.w9618-btn-active::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--w9618-gold-bright);
  border-radius: 1px;
}

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

/* Help page styles */
.w9618-help-section {
  margin-bottom: 1.5rem;
}

.w9618-help-section h2 {
  font-size: 1.6rem;
  color: var(--w9618-gold-bright);
  margin-bottom: 0.8rem;
}

.w9618-help-section p {
  font-size: 1.3rem;
  color: var(--w9618-text-muted);
  line-height: 1.8rem;
  margin-bottom: 0.8rem;
}

.w9618-step-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
}

.w9618-step-item {
  counter-increment: step-counter;
  padding: 1rem 0 1rem 3.5rem;
  position: relative;
  border-bottom: 1px solid var(--w9618-border);
  font-size: 1.3rem;
  color: var(--w9618-text-muted);
  line-height: 1.6rem;
}

.w9618-step-item::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 1rem;
  width: 2.4rem;
  height: 2.4rem;
  background: var(--w9618-gold);
  color: var(--w9618-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

/* FAQ styles */
.w9618-faq-item {
  background: var(--w9618-bg-card);
  border: 1px solid var(--w9618-border);
  border-radius: var(--w9618-radius-sm);
  margin-bottom: 0.8rem;
  overflow: hidden;
}

.w9618-faq-q {
  padding: 1.2rem;
  font-weight: 600;
  color: var(--w9618-accent);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

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

/* CTA Section */
.w9618-cta-section {
  text-align: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, rgba(200,169,126,0.1), rgba(232,197,109,0.05));
  border-radius: var(--w9618-radius);
  margin: 1.5rem 0;
  border: 1px solid var(--w9618-border);
}

.w9618-cta-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--w9618-gold-bright);
  margin-bottom: 0.8rem;
}

.w9618-cta-text {
  font-size: 1.3rem;
  color: var(--w9618-text-muted);
  margin-bottom: 1.5rem;
}

/* Responsive */
@media (min-width: 769px) {
  .w9618-bottom-nav { display: none; }
  .w9618-container { max-width: 60rem; }
}

@media (max-width: 768px) {
  .w9618-main { padding-bottom: 7rem; }
  .w9618-game-grid { grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
  .w9618-game-name { font-size: 1rem; }
}

@media (max-width: 360px) {
  .w9618-game-grid { grid-template-columns: repeat(3, 1fr); }
}
