/**
 * ph799 ph - Theme Stylesheet
 * Prefix: w1cf4-
 * Color palette: #0A0A0A, #DDA0DD, #E6E6FA, #8B008B
 * Mobile-first design, max-width 430px
 */

/* Root font for rem units */
html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

:root {
  --w1cf4-bg: #0A0A0A;
  --w1cf4-primary: #DDA0DD;
  --w1cf4-text: #E6E6FA;
  --w1cf4-accent: #8B008B;
  --w1cf4-primary-rgb: 221, 160, 221;
  --w1cf4-accent-rgb: 139, 0, 139;
  --w1cf4-radius: 8px;
  --w1cf4-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--w1cf4-bg);
  color: var(--w1cf4-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(--w1cf4-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #fff;
}

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

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

/* Header */
.w1cf4-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 56px;
  background: linear-gradient(180deg, #0A0A0A 0%, rgba(10, 10, 10, 0.95) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 1000;
  border-bottom: 1px solid rgba(221, 160, 221, 0.15);
  backdrop-filter: blur(10px);
}

.w1cf4-logo-area {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.w1cf4-logo-area img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.w1cf4-site-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--w1cf4-primary);
  letter-spacing: 0.5px;
}

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

.w1cf4-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  text-decoration: none;
  min-height: 32px;
}

.w1cf4-btn-register {
  background: linear-gradient(135deg, var(--w1cf4-accent), #a020a0);
  color: #fff;
}

.w1cf4-btn-register:hover {
  background: linear-gradient(135deg, #a020a0, var(--w1cf4-accent));
  transform: scale(1.05);
}

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

.w1cf4-btn-login:hover {
  background: rgba(221, 160, 221, 0.1);
  transform: scale(1.05);
}

.w1cf4-hamburger {
  background: none;
  border: none;
  color: var(--w1cf4-primary);
  font-size: 22px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

/* Mobile Menu Overlay */
.w1cf4-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.w1cf4-overlay-active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Menu Panel */
.w1cf4-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: #111;
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

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

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

.w1cf4-menu-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--w1cf4-primary);
  margin-bottom: 2rem;
}

.w1cf4-menu-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.w1cf4-menu-links li a {
  display: block;
  padding: 1.2rem 0;
  color: var(--w1cf4-text);
  font-size: 1.5rem;
  border-bottom: 1px solid rgba(221, 160, 221, 0.1);
  transition: color 0.2s;
}

.w1cf4-menu-links li a:hover {
  color: var(--w1cf4-primary);
}

/* Carousel */
.w1cf4-carousel {
  position: relative;
  overflow: hidden;
  margin-top: 56px;
  border-radius: 0;
}

.w1cf4-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.w1cf4-carousel-slide {
  min-width: 100%;
  cursor: pointer;
}

.w1cf4-carousel-slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

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

.w1cf4-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(230, 230, 250, 0.4);
  cursor: pointer;
  transition: background 0.3s;
  border: none;
}

.w1cf4-dot-active {
  background: var(--w1cf4-primary);
  width: 20px;
  border-radius: 4px;
}

/* Main Content */
.w1cf4-main {
  padding: 1rem 0;
}

.w1cf4-section {
  margin-bottom: 2rem;
  padding: 0 1.2rem;
}

.w1cf4-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--w1cf4-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--w1cf4-accent);
  display: flex;
  align-items: center;
  gap: 8px;
}

.w1cf4-section-title i,
.w1cf4-section-title .material-icons {
  font-size: 2rem;
}

/* Hero H1 */
.w1cf4-hero {
  text-align: center;
  padding: 2rem 1.2rem;
  background: linear-gradient(135deg, rgba(139, 0, 139, 0.2), rgba(221, 160, 221, 0.1));
  margin: 0 1.2rem 2rem;
  border-radius: var(--w1cf4-radius);
  border: 1px solid rgba(221, 160, 221, 0.15);
}

.w1cf4-hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--w1cf4-primary);
  line-height: 1.3;
  margin-bottom: 0.8rem;
}

.w1cf4-hero p {
  font-size: 1.3rem;
  color: var(--w1cf4-text);
  opacity: 0.85;
}

/* Game Grid */
.w1cf4-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

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

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

.w1cf4-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(221, 160, 221, 0.15);
  margin-bottom: 4px;
}

.w1cf4-game-item span {
  font-size: 1rem;
  color: var(--w1cf4-text);
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding: 0 2px;
}

/* Promo CTA */
.w1cf4-cta {
  text-align: center;
  padding: 1.5rem 1rem;
  background: linear-gradient(135deg, var(--w1cf4-accent), rgba(221, 160, 221, 0.3));
  border-radius: var(--w1cf4-radius);
  margin: 1.5rem 1.2rem;
}

.w1cf4-cta h2 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.w1cf4-cta p {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
}

.w1cf4-btn-promo {
  background: linear-gradient(135deg, #DDA0DD, #E6E6FA);
  color: #0A0A0A;
  padding: 10px 24px;
  border-radius: 24px;
  font-size: 1.4rem;
  font-weight: 700;
  display: inline-block;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
}

.w1cf4-btn-promo:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 20px rgba(221, 160, 221, 0.4);
}

/* Info Card */
.w1cf4-card {
  background: rgba(221, 160, 221, 0.05);
  border: 1px solid rgba(221, 160, 221, 0.12);
  border-radius: var(--w1cf4-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.w1cf4-card h2 {
  font-size: 1.6rem;
  color: var(--w1cf4-primary);
  margin-bottom: 0.8rem;
}

.w1cf4-card h3 {
  font-size: 1.4rem;
  color: var(--w1cf4-primary);
  margin: 1rem 0 0.5rem;
}

.w1cf4-card p {
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--w1cf4-text);
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.w1cf4-card ul {
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.w1cf4-card ul li {
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--w1cf4-text);
  opacity: 0.9;
  margin-bottom: 0.3rem;
}

/* Testimonials */
.w1cf4-testimonial {
  background: rgba(139, 0, 139, 0.1);
  border-radius: var(--w1cf4-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--w1cf4-accent);
}

.w1cf4-testimonial p {
  font-size: 1.3rem;
  font-style: italic;
  color: var(--w1cf4-text);
}

.w1cf4-testimonial .w1cf4-author {
  font-size: 1.2rem;
  color: var(--w1cf4-primary);
  margin-top: 0.5rem;
  font-style: normal;
}

/* Winner Showcase */
.w1cf4-winner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(221, 160, 221, 0.06);
  padding: 0.8rem;
  border-radius: var(--w1cf4-radius);
  margin-bottom: 0.6rem;
}

.w1cf4-winner-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--w1cf4-accent), var(--w1cf4-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.w1cf4-winner-info {
  flex: 1;
}

.w1cf4-winner-info strong {
  color: var(--w1cf4-primary);
  font-size: 1.2rem;
}

.w1cf4-winner-info span {
  font-size: 1.1rem;
  color: var(--w1cf4-text);
  opacity: 0.8;
}

/* Payment Methods */
.w1cf4-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.w1cf4-payment-item {
  background: rgba(221, 160, 221, 0.08);
  border: 1px solid rgba(221, 160, 221, 0.15);
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 1.2rem;
  color: var(--w1cf4-text);
}

/* RTP Table */
.w1cf4-rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.2rem;
}

.w1cf4-rtp-table th {
  background: rgba(139, 0, 139, 0.2);
  color: var(--w1cf4-primary);
  padding: 8px 6px;
  text-align: left;
  font-weight: 600;
  font-size: 1.1rem;
}

.w1cf4-rtp-table td {
  padding: 6px;
  border-bottom: 1px solid rgba(221, 160, 221, 0.08);
  color: var(--w1cf4-text);
  font-size: 1.1rem;
}

.w1cf4-rtp-bar {
  height: 6px;
  background: rgba(221, 160, 221, 0.15);
  border-radius: 3px;
  overflow: hidden;
}

.w1cf4-rtp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--w1cf4-accent), var(--w1cf4-primary));
  border-radius: 3px;
}

/* Footer */
.w1cf4-footer {
  background: #050505;
  padding: 2rem 1.2rem;
  border-top: 1px solid rgba(221, 160, 221, 0.1);
}

.w1cf4-footer-brand {
  font-size: 1.3rem;
  color: var(--w1cf4-text);
  opacity: 0.8;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.w1cf4-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.w1cf4-footer-promo .w1cf4-btn-promo {
  font-size: 1.1rem;
  padding: 6px 14px;
}

.w1cf4-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-bottom: 1.5rem;
}

.w1cf4-footer-links a {
  font-size: 1.2rem;
  color: var(--w1cf4-text);
  opacity: 0.7;
  transition: all 0.2s;
}

.w1cf4-footer-links a:hover {
  color: var(--w1cf4-primary);
  opacity: 1;
}

.w1cf4-copyright {
  text-align: center;
  font-size: 1.1rem;
  color: var(--w1cf4-text);
  opacity: 0.5;
  padding-top: 1rem;
  border-top: 1px solid rgba(221, 160, 221, 0.08);
}

/* Bottom Navigation */
.w1cf4-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.95), #0A0A0A);
  border-top: 1px solid rgba(221, 160, 221, 0.2);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.w1cf4-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 50px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--w1cf4-text);
  opacity: 0.7;
  transition: all 0.25s ease;
  padding: 4px;
  -webkit-tap-highlight-color: transparent;
}

.w1cf4-bottom-nav-btn:hover,
.w1cf4-bottom-nav-btn:active {
  opacity: 1;
  color: var(--w1cf4-primary);
  transform: scale(1.1);
}

.w1cf4-bottom-nav-btn.active {
  color: var(--w1cf4-primary);
  opacity: 1;
}

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

.w1cf4-bottom-nav-btn span {
  font-size: 10px;
  line-height: 1;
}

/* Internal link text style */
.w1cf4-internal-link {
  color: var(--w1cf4-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.w1cf4-internal-link:hover {
  color: #fff;
}

/* App Download CTA */
.w1cf4-app-cta {
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(139, 0, 139, 0.25), rgba(221, 160, 221, 0.1));
  border-radius: var(--w1cf4-radius);
  border: 1px solid rgba(221, 160, 221, 0.15);
  margin: 1.5rem 1.2rem;
}

.w1cf4-app-cta h3 {
  font-size: 1.6rem;
  color: var(--w1cf4-primary);
  margin-bottom: 0.5rem;
}

.w1cf4-app-cta p {
  font-size: 1.3rem;
  color: var(--w1cf4-text);
  opacity: 0.85;
  margin-bottom: 1rem;
}

/* Mobile bottom padding */
@media (max-width: 768px) {
  .w1cf4-main {
    padding-bottom: 80px;
  }
  .w1cf4-footer {
    padding-bottom: 80px;
  }
}

/* Desktop: hide bottom nav */
@media (min-width: 769px) {
  .w1cf4-bottom-nav {
    display: none;
  }
}

/* Achievement badges */
.w1cf4-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(221, 160, 221, 0.1);
  border: 1px solid rgba(221, 160, 221, 0.2);
  border-radius: 12px;
  padding: 4px 10px;
  font-size: 1.1rem;
  color: var(--w1cf4-primary);
}

/* FAQ */
.w1cf4-faq-item {
  margin-bottom: 1rem;
}

.w1cf4-faq-item strong {
  display: block;
  color: var(--w1cf4-primary);
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.w1cf4-faq-item p {
  font-size: 1.2rem;
  color: var(--w1cf4-text);
  opacity: 0.85;
  padding-left: 1rem;
}
