/**
 * 444k.click - Main Stylesheet
 * Color Palette: #1C2833 | #BAE1FF | #FFCCCB | #DA70D6 | #999999 | #FF1493
 * All classes use prefix "w3145-" for namespace isolation
 */

:root {
  --w3145-primary: #FF1493;
  --w3145-bg: #1C2833;
  --w3145-bg2: #0f1923;
  --w3145-text: #BAE1FF;
  --w3145-text-light: #FFCCCB;
  --w3145-accent: #DA70D6;
  --w3145-muted: #999999;
  --w3145-card-bg: #162029;
  --w3145-card-border: #2a3a4a;
  --w3145-gradient: linear-gradient(135deg, #FF1493, #DA70D6);
  --w3145-radius: 1.2rem;
  --w3145-header-h: 5.6rem;
  --w3145-bottom-h: 6.4rem;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--w3145-bg);
  color: var(--w3145-text);
  font-size: 1.4rem;
  line-height: 1.5rem;
  overflow-x: hidden;
  max-width: 430px;
  margin: 0 auto;
}
a { text-decoration: none; color: var(--w3145-accent); }
img { max-width: 100%; height: auto; display: block; }

/* Header */
.w3145-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--w3145-bg2);
  border-bottom: 1px solid var(--w3145-card-border);
  max-width: 430px; margin: 0 auto;
  height: var(--w3145-header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem;
}
.w3145-header-left { display: flex; align-items: center; gap: 0.6rem; }
.w3145-logo { width: 28px; height: 28px; border-radius: 50%; }
.w3145-site-name { font-size: 1.6rem; font-weight: 700; color: var(--w3145-primary); }
.w3145-header-right { display: flex; align-items: center; gap: 0.6rem; }
.w3145-btn-register, .w3145-btn-login {
  padding: 0.5rem 1.2rem; border-radius: 2rem; font-size: 1.2rem;
  font-weight: 600; cursor: pointer; border: none; transition: all 0.2s;
}
.w3145-btn-register {
  background: var(--w3145-gradient); color: #fff;
}
.w3145-btn-login {
  background: transparent; color: var(--w3145-text);
  border: 1px solid var(--w3145-accent);
}
.w3145-btn-register:hover { opacity: 0.9; transform: scale(1.03); }
.w3145-btn-login:hover { background: rgba(218,112,214,0.15); }
.w3145-menu-btn {
  background: none; border: none; color: var(--w3145-text);
  font-size: 2.2rem; cursor: pointer; padding: 0.4rem;
}

/* Mobile Menu */
.w3145-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 260px;
  height: 100vh; z-index: 9999;
  background: var(--w3145-bg2);
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  border-left: 1px solid var(--w3145-card-border);
}
.w3145-menu-active { right: 0 !important; }
.w3145-menu-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); z-index: 9998;
  display: none;
}
.w3145-overlay-active { display: block !important; }
.w3145-menu-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none; color: var(--w3145-text);
  font-size: 2rem; cursor: pointer;
}
.w3145-menu-links { margin-top: 3rem; list-style: none; }
.w3145-menu-links li {
  margin-bottom: 0.8rem; border-bottom: 1px solid var(--w3145-card-border);
  padding-bottom: 0.8rem;
}
.w3145-menu-links a {
  color: var(--w3145-text); font-size: 1.4rem; display: flex;
  align-items: center; gap: 0.6rem; transition: color 0.2s;
}
.w3145-menu-links a:hover { color: var(--w3145-primary); }
.w3145-menu-links .material-icons { font-size: 2rem; }

/* Bottom Navigation */
.w3145-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: var(--w3145-bg2);
  border-top: 1px solid var(--w3145-card-border);
  max-width: 430px; margin: 0 auto;
  height: var(--w3145-bottom-h);
  display: flex; justify-content: space-around; align-items: center;
}
.w3145-bottom-btn {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; background: none; border: none;
  color: var(--w3145-muted); cursor: pointer; min-width: 60px;
  min-height: 56px; transition: all 0.2s; gap: 0.2rem;
}
.w3145-bottom-btn:hover, .w3145-bottom-btn:focus {
  color: var(--w3145-primary); transform: scale(1.08);
}
.w3145-bottom-btn span { font-size: 1rem; }
.w3145-bottom-btn i, .w3145-bottom-btn .material-icons,
.w3145-bottom-btn ion-icon { font-size: 2.4rem; }
.w3145-bottom-active { color: var(--w3145-primary) !important; }

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

/* Main Content */
.w3145-main {
  padding-top: var(--w3145-header-h);
  padding-bottom: 1.5rem;
}
@media (max-width: 768px) {
  .w3145-main { padding-bottom: calc(var(--w3145-bottom-h) + 1.5rem); }
}

/* Carousel */
.w3145-carousel {
  position: relative; overflow: hidden; margin-top: 0.5rem;
  border-radius: 0 0 var(--w3145-radius) var(--w3145-radius);
}
.w3145-carousel-slide {
  display: none; cursor: pointer; width: 100%;
}
.w3145-carousel-slide img {
  width: 100%; height: auto; min-height: 160px; object-fit: cover;
}
.w3145-slide-active { display: block !important; }
.w3145-carousel-dots {
  position: absolute; bottom: 0.8rem; left: 50%;
  transform: translateX(-50%); display: flex; gap: 0.5rem;
}
.w3145-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer;
  border: none; transition: all 0.2s;
}
.w3145-dot-active { background: var(--w3145-primary); transform: scale(1.3); }

/* Sections */
.w3145-section {
  padding: 1.5rem 1rem;
}
.w3145-section-title {
  font-size: 1.8rem; font-weight: 700; color: var(--w3145-primary);
  margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem;
}
.w3145-section-title i, .w3145-section-title .material-icons {
  font-size: 2.2rem;
}

/* Game Grid */
.w3145-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.w3145-game-card {
  text-align: center; cursor: pointer; transition: transform 0.2s;
  border-radius: var(--w3145-radius); overflow: hidden;
}
.w3145-game-card:hover { transform: translateY(-2px); }
.w3145-game-card img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 0.8rem; border: 1px solid var(--w3145-card-border);
}
.w3145-game-name {
  font-size: 1.1rem; color: var(--w3145-text-light);
  margin-top: 0.3rem; line-height: 1.3rem;
  overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap;
}

/* Category Label */
.w3145-cat-label {
  font-size: 1.4rem; font-weight: 600; color: var(--w3145-accent);
  margin: 1.5rem 0 0.8rem 0; padding-left: 0.5rem;
  border-left: 3px solid var(--w3145-primary);
}

/* Content Blocks */
.w3145-content-block {
  background: var(--w3145-card-bg);
  border: 1px solid var(--w3145-card-border);
  border-radius: var(--w3145-radius);
  padding: 1.2rem; margin-bottom: 1rem;
}
.w3145-content-block h2 {
  font-size: 1.6rem; color: var(--w3145-primary); margin-bottom: 0.8rem;
}
.w3145-content-block h3 {
  font-size: 1.4rem; color: var(--w3145-accent); margin-bottom: 0.6rem;
}
.w3145-content-block p {
  font-size: 1.3rem; color: var(--w3145-text); line-height: 2rem;
  margin-bottom: 0.6rem;
}

/* Promo Link */
.w3145-promo-link {
  color: var(--w3145-primary); font-weight: 700; cursor: pointer;
  transition: color 0.2s; border-bottom: 1px dashed var(--w3145-primary);
}
.w3145-promo-link:hover { color: var(--w3145-accent); }

.w3145-cta-btn {
  display: inline-block; padding: 1rem 2rem;
  background: var(--w3145-gradient); color: #fff;
  font-size: 1.4rem; font-weight: 700; border-radius: 3rem;
  cursor: pointer; border: none; transition: all 0.2s;
  text-align: center;
}
.w3145-cta-btn:hover { transform: scale(1.05); opacity: 0.95; }

/* Footer */
.w3145-footer {
  background: var(--w3145-bg2); padding: 2rem 1rem 1rem;
  border-top: 1px solid var(--w3145-card-border);
  text-align: center;
}
.w3145-footer-desc {
  font-size: 1.2rem; color: var(--w3145-muted); line-height: 1.8rem;
  margin-bottom: 1rem;
}
.w3145-footer-links {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.5rem; margin-bottom: 1rem;
}
.w3145-footer-links a {
  padding: 0.4rem 0.8rem; background: var(--w3145-card-bg);
  border: 1px solid var(--w3145-card-border); border-radius: 1.5rem;
  font-size: 1.1rem; color: var(--w3145-text);
  transition: all 0.2s;
}
.w3145-footer-links a:hover { border-color: var(--w3145-primary); color: var(--w3145-primary); }
.w3145-copyright {
  font-size: 1.1rem; color: var(--w3145-muted); margin-top: 0.5rem;
}

/* FAQ */
.w3145-faq-item {
  background: var(--w3145-card-bg); border: 1px solid var(--w3145-card-border);
  border-radius: var(--w3145-radius); padding: 1rem; margin-bottom: 0.8rem;
}
.w3145-faq-q {
  font-size: 1.3rem; font-weight: 600; color: var(--w3145-primary);
  margin-bottom: 0.4rem;
}
.w3145-faq-a {
  font-size: 1.2rem; color: var(--w3145-text); line-height: 1.8rem;
}

/* Features Grid */
.w3145-features-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}
.w3145-feature-card {
  background: var(--w3145-card-bg); border: 1px solid var(--w3145-card-border);
  border-radius: var(--w3145-radius); padding: 1rem; text-align: center;
}
.w3145-feature-card i, .w3145-feature-card .material-icons {
  font-size: 2.4rem; color: var(--w3145-primary); margin-bottom: 0.4rem;
}
.w3145-feature-card h4 {
  font-size: 1.2rem; color: var(--w3145-text-light); margin-bottom: 0.3rem;
}
.w3145-feature-card p { font-size: 1.1rem; color: var(--w3145-muted); }

/* RTP Table */
.w3145-rtp-table {
  width: 100%; border-collapse: collapse; font-size: 1.2rem;
}
.w3145-rtp-table th {
  background: var(--w3145-primary); color: #fff;
  padding: 0.6rem; text-align: left;
}
.w3145-rtp-table td {
  padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--w3145-card-border);
  color: var(--w3145-text);
}

/* Winners Strip */
.w3145-winners-strip {
  display: flex; gap: 0.8rem; overflow-x: auto;
  padding: 0.5rem 0; scrollbar-width: none;
}
.w3145-winners-strip::-webkit-scrollbar { display: none; }
.w3145-winner-card {
  flex-shrink: 0; background: var(--w3145-card-bg);
  border: 1px solid var(--w3145-card-border);
  border-radius: var(--w3145-radius); padding: 0.8rem;
  min-width: 140px; text-align: center;
}
.w3145-winner-card .w3145-winner-name {
  font-size: 1.1rem; color: var(--w3145-text-light); font-weight: 600;
}
.w3145-winner-card .w3145-winner-amount {
  font-size: 1.3rem; color: var(--w3145-primary); font-weight: 700;
}

/* Testimonial */
.w3145-testimonial {
  background: var(--w3145-card-bg); border: 1px solid var(--w3145-card-border);
  border-radius: var(--w3145-radius); padding: 1rem; margin-bottom: 0.8rem;
}
.w3145-testimonial-text {
  font-size: 1.2rem; color: var(--w3145-text); line-height: 1.8rem;
  font-style: italic; margin-bottom: 0.5rem;
}
.w3145-testimonial-author {
  font-size: 1.1rem; color: var(--w3145-muted); text-align: right;
}

/* Payment Icons Row */
.w3145-payment-row {
  display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap;
  padding: 0.5rem 0;
}
.w3145-payment-item {
  background: var(--w3145-card-bg); border: 1px solid var(--w3145-card-border);
  border-radius: 0.8rem; padding: 0.6rem 1rem;
  font-size: 1.2rem; color: var(--w3145-text-light);
}

/* Internal Link */
.w3145-internal-link {
  color: var(--w3145-accent); text-decoration: underline;
  font-weight: 500; transition: color 0.2s;
}
.w3145-internal-link:hover { color: var(--w3145-primary); }

/* Utility */
.w3145-text-center { text-align: center; }
.w3145-mt-1 { margin-top: 1rem; }
.w3145-mb-1 { margin-bottom: 1rem; }
.w3145-hidden { display: none; }
