/* phplay theme - w1d2d- prefix | palette #FF8A80 #0D1117 #FFB3FF */
html { font-size: 62.5%; box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; margin: 0; padding: 0; }
:root {
  --w1d2d-primary: #FF8A80;
  --w1d2d-bg: #0D1117;
  --w1d2d-accent: #FFB3FF;
  --w1d2d-text: #F5F5F7;
  --w1d2d-muted: #A8B0BC;
  --w1d2d-card: #161B22;
  --w1d2d-border: #2A3240;
  --w1d2d-success: #4ADE80;
  --w1d2d-header-h: 5.6rem;
  --w1d2d-bottom-h: 6.2rem;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5rem;
  background: var(--w1d2d-bg);
  color: var(--w1d2d-text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--w1d2d-primary); text-decoration: none; }
a:hover { color: var(--w1d2d-accent); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.w1d2d-wrapper { width: 100%; max-width: 430px; margin: 0 auto; min-height: 100vh; position: relative; background: var(--w1d2d-bg); }
.w1d2d-container { width: 100%; padding: 0 1.2rem; }
.w1d2d-main { padding-top: calc(var(--w1d2d-header-h) + 0.8rem); padding-bottom: 2rem; }

/* Header */
.w1d2d-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: var(--w1d2d-header-h);
  background: rgba(13, 17, 23, 0.96); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--w1d2d-border); z-index: 1000;
  display: flex; align-items: center; justify-content: space-between; padding: 0 1rem;
}
.w1d2d-logo { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.w1d2d-logo img { width: 2.8rem; height: 2.8rem; border-radius: 0.6rem; }
.w1d2d-logo-text { font-size: 1.6rem; font-weight: 700; color: var(--w1d2d-primary); letter-spacing: 0.02em; white-space: nowrap; }
.w1d2d-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.w1d2d-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 3.6rem; padding: 0 1.2rem; border-radius: 0.8rem;
  font-size: 1.2rem; font-weight: 700; transition: transform 0.15s, opacity 0.15s, box-shadow 0.15s;
}
.w1d2d-btn:active { transform: scale(0.96); }
.w1d2d-btn-primary {
  background: linear-gradient(135deg, var(--w1d2d-primary), #FF5252);
  color: #fff; box-shadow: 0 0.2rem 0.8rem rgba(255, 138, 128, 0.35);
}
.w1d2d-btn-outline {
  background: transparent; color: var(--w1d2d-accent);
  border: 1px solid var(--w1d2d-accent);
}
.w1d2d-btn-accent {
  background: linear-gradient(135deg, var(--w1d2d-accent), #E879F9);
  color: #1a0a1a; font-weight: 800;
}
.w1d2d-btn-sm { min-height: 3.2rem; padding: 0 1rem; font-size: 1.1rem; }
.w1d2d-btn-block { width: 100%; }
.w1d2d-menu-toggle {
  width: 4rem; height: 4rem; display: flex; align-items: center; justify-content: center;
  color: var(--w1d2d-text); font-size: 2.2rem;
}

/* Mobile menu */
.w1d2d-menu-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 9998;
  opacity: 0; visibility: hidden; transition: opacity 0.25s;
}
.w1d2d-overlay-show { opacity: 1; visibility: visible; }
.w1d2d-mobile-menu {
  position: fixed; top: 0; right: 0; width: min(82vw, 320px); height: 100%;
  background: #12171f; z-index: 9999; transform: translateX(100%);
  transition: transform 0.28s ease; overflow-y: auto; padding: 1.6rem;
  border-left: 1px solid var(--w1d2d-border);
}
.w1d2d-menu-open { transform: translateX(0); }
.w1d2d-menu-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.6rem; }
.w1d2d-menu-head h3 { font-size: 1.6rem; color: var(--w1d2d-primary); }
.w1d2d-menu-close { width: 3.6rem; height: 3.6rem; font-size: 2rem; color: var(--w1d2d-muted); }
.w1d2d-menu-list { display: flex; flex-direction: column; gap: 0.4rem; }
.w1d2d-menu-list a {
  display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1rem;
  border-radius: 0.8rem; color: var(--w1d2d-text); font-size: 1.4rem; font-weight: 600;
  background: var(--w1d2d-card); border: 1px solid transparent;
}
.w1d2d-menu-list a:hover { border-color: var(--w1d2d-primary); color: var(--w1d2d-primary); }
.w1d2d-menu-list i, .w1d2d-menu-list .material-icons, .w1d2d-menu-list ion-icon { font-size: 2rem; width: 2.4rem; text-align: center; }

/* Carousel */
.w1d2d-carousel { position: relative; width: 100%; border-radius: 1.2rem; overflow: hidden; margin-bottom: 1.6rem; aspect-ratio: 16/9; background: var(--w1d2d-card); }
.w1d2d-carousel-track { position: relative; width: 100%; height: 100%; }
.w1d2d-carousel-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.45s ease; cursor: pointer;
}
.w1d2d-slide-active { opacity: 1; z-index: 1; }
.w1d2d-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.w1d2d-carousel-ctrl {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 3.6rem; height: 3.6rem; border-radius: 50%;
  background: rgba(13,17,23,0.65); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
}
.w1d2d-carousel-prev { left: 0.8rem; }
.w1d2d-carousel-next { right: 0.8rem; }
.w1d2d-carousel-dots {
  position: absolute; bottom: 0.8rem; left: 0; right: 0; z-index: 2;
  display: flex; justify-content: center; gap: 0.6rem;
}
.w1d2d-carousel-dot {
  width: 0.8rem; height: 0.8rem; border-radius: 50%; background: rgba(255,255,255,0.4);
  transition: background 0.2s, transform 0.2s;
}
.w1d2d-dot-active { background: var(--w1d2d-primary); transform: scale(1.25); }

/* Sections */
.w1d2d-section { margin-bottom: 2rem; }
.w1d2d-section-title {
  font-size: 1.8rem; font-weight: 800; color: var(--w1d2d-text); margin-bottom: 1.2rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.w1d2d-section-title span { color: var(--w1d2d-primary); }
.w1d2d-h1 {
  font-size: 2rem; font-weight: 800; line-height: 1.35; margin-bottom: 1.2rem;
  background: linear-gradient(90deg, var(--w1d2d-primary), var(--w1d2d-accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.w1d2d-h2 { font-size: 1.7rem; font-weight: 700; color: var(--w1d2d-primary); margin: 1.6rem 0 1rem; }
.w1d2d-h3 { font-size: 1.5rem; font-weight: 700; color: var(--w1d2d-accent); margin: 1.2rem 0 0.8rem; }
.w1d2d-text { font-size: 1.35rem; line-height: 1.65; color: var(--w1d2d-muted); margin-bottom: 1rem; }
.w1d2d-text strong, .w1d2d-link-text {
  color: var(--w1d2d-primary); font-weight: 700; cursor: pointer;
}
.w1d2d-card {
  background: var(--w1d2d-card); border: 1px solid var(--w1d2d-border);
  border-radius: 1.2rem; padding: 1.4rem; margin-bottom: 1.2rem;
}
.w1d2d-promo-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.2rem 0; }
.w1d2d-promo-row .w1d2d-btn { flex: 1 1 auto; min-width: 12rem; }

/* Game grid */
.w1d2d-game-cat { margin-bottom: 1.8rem; }
.w1d2d-cat-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 1.4rem; font-weight: 700; color: var(--w1d2d-accent);
  margin-bottom: 1rem; padding: 0.4rem 1rem; border-radius: 2rem;
  background: rgba(255, 179, 255, 0.08); border: 1px solid rgba(255, 179, 255, 0.2);
}
.w1d2d-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem;
}
.w1d2d-game-item {
  display: flex; flex-direction: column; align-items: center; cursor: pointer;
  transition: transform 0.15s;
}
.w1d2d-game-item:active { transform: scale(0.94); }
.w1d2d-game-icon {
  width: 100%; aspect-ratio: 1; border-radius: 1rem; overflow: hidden;
  background: var(--w1d2d-card); border: 1px solid var(--w1d2d-border);
  box-shadow: 0 0.2rem 0.6rem rgba(0,0,0,0.3);
}
.w1d2d-game-icon img { width: 100%; height: 100%; object-fit: cover; }
.w1d2d-game-name {
  margin-top: 0.4rem; font-size: 1rem; line-height: 1.2; text-align: center;
  color: var(--w1d2d-muted); width: 100%; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; font-weight: 600;
}

/* FAQ */
.w1d2d-faq-item {
  background: var(--w1d2d-card); border: 1px solid var(--w1d2d-border);
  border-radius: 1rem; margin-bottom: 0.8rem; overflow: hidden;
}
.w1d2d-faq-q {
  width: 100%; text-align: left; padding: 1.2rem 1.4rem; font-size: 1.35rem; font-weight: 700;
  color: var(--w1d2d-text); display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.w1d2d-faq-q i { color: var(--w1d2d-primary); transition: transform 0.2s; }
.w1d2d-faq-a {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s;
  padding: 0 1.4rem; font-size: 1.3rem; line-height: 1.6; color: var(--w1d2d-muted);
}
.w1d2d-faq-open .w1d2d-faq-a { max-height: 30rem; padding: 0 1.4rem 1.2rem; }
.w1d2d-faq-open .w1d2d-faq-q i { transform: rotate(180deg); }

/* Feature / stats / testimonials */
.w1d2d-feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.w1d2d-feature-card {
  background: var(--w1d2d-card); border: 1px solid var(--w1d2d-border);
  border-radius: 1rem; padding: 1.2rem; text-align: center;
}
.w1d2d-feature-card i, .w1d2d-feature-card .material-icons, .w1d2d-feature-card ion-icon {
  font-size: 2.4rem; color: var(--w1d2d-primary); margin-bottom: 0.6rem;
}
.w1d2d-feature-card h3 { font-size: 1.3rem; color: var(--w1d2d-accent); margin-bottom: 0.4rem; }
.w1d2d-feature-card p { font-size: 1.15rem; color: var(--w1d2d-muted); line-height: 1.45; }
.w1d2d-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; margin: 1.2rem 0; }
.w1d2d-stat-box {
  background: linear-gradient(160deg, #1a2230, var(--w1d2d-card));
  border: 1px solid var(--w1d2d-border); border-radius: 1rem; padding: 1rem; text-align: center;
}
.w1d2d-stat-num { font-size: 1.8rem; font-weight: 800; color: var(--w1d2d-primary); }
.w1d2d-stat-label { font-size: 1.05rem; color: var(--w1d2d-muted); margin-top: 0.3rem; }
.w1d2d-testimonial {
  background: var(--w1d2d-card); border-left: 3px solid var(--w1d2d-primary);
  border-radius: 0 1rem 1rem 0; padding: 1.2rem; margin-bottom: 1rem;
}
.w1d2d-testimonial p { font-size: 1.3rem; color: var(--w1d2d-muted); font-style: italic; margin-bottom: 0.6rem; line-height: 1.55; }
.w1d2d-testimonial .w1d2d-author { font-size: 1.2rem; color: var(--w1d2d-accent); font-weight: 700; }
.w1d2d-pay-grid { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.w1d2d-pay-item {
  flex: 1 1 30%; min-width: 9rem; background: var(--w1d2d-card); border: 1px solid var(--w1d2d-border);
  border-radius: 0.8rem; padding: 1rem; text-align: center; font-size: 1.15rem; color: var(--w1d2d-text); font-weight: 600;
}
.w1d2d-pay-item i { display: block; font-size: 2rem; color: var(--w1d2d-primary); margin-bottom: 0.4rem; }
.w1d2d-winner-list { display: flex; flex-direction: column; gap: 0.8rem; }
.w1d2d-winner {
  display: flex; align-items: center; gap: 1rem; background: var(--w1d2d-card);
  border: 1px solid var(--w1d2d-border); border-radius: 1rem; padding: 1rem;
}
.w1d2d-winner-badge {
  width: 4rem; height: 4rem; border-radius: 50%; background: rgba(255,138,128,0.15);
  display: flex; align-items: center; justify-content: center; color: var(--w1d2d-primary); font-size: 1.8rem; flex-shrink: 0;
}
.w1d2d-winner-info { flex: 1; min-width: 0; }
.w1d2d-winner-info strong { display: block; font-size: 1.3rem; color: var(--w1d2d-text); }
.w1d2d-winner-info span { font-size: 1.15rem; color: var(--w1d2d-muted); }
.w1d2d-winner-amt { font-size: 1.4rem; font-weight: 800; color: var(--w1d2d-success); white-space: nowrap; }
.w1d2d-cta-box {
  background: linear-gradient(135deg, rgba(255,138,128,0.15), rgba(255,179,255,0.12));
  border: 1px solid rgba(255,138,128,0.35); border-radius: 1.4rem; padding: 2rem 1.4rem; text-align: center; margin: 1.6rem 0;
}
.w1d2d-cta-box h2 { font-size: 1.8rem; color: var(--w1d2d-primary); margin-bottom: 0.8rem; }
.w1d2d-cta-box p { font-size: 1.3rem; color: var(--w1d2d-muted); margin-bottom: 1.4rem; line-height: 1.55; }
.w1d2d-steps { counter-reset: step; }
.w1d2d-step {
  display: flex; gap: 1.2rem; margin-bottom: 1.2rem; align-items: flex-start;
}
.w1d2d-step-num {
  width: 3.2rem; height: 3.2rem; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--w1d2d-primary), #FF5252);
  color: #fff; font-weight: 800; font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
}
.w1d2d-step-body h3 { font-size: 1.4rem; color: var(--w1d2d-accent); margin-bottom: 0.3rem; }
.w1d2d-step-body p { font-size: 1.25rem; color: var(--w1d2d-muted); line-height: 1.5; }
.w1d2d-seo-links { display: flex; flex-wrap: wrap; gap: 0.8rem 1.2rem; margin: 1rem 0; }
.w1d2d-seo-links a {
  font-size: 1.25rem; color: var(--w1d2d-primary); font-weight: 600;
  border-bottom: 1px dashed rgba(255,138,128,0.4); padding-bottom: 0.1rem;
}

/* Footer */
.w1d2d-footer {
  background: #0a0d12; border-top: 1px solid var(--w1d2d-border);
  padding: 2rem 1.2rem 2rem; margin-top: 1rem;
}
.w1d2d-footer-brand { font-size: 1.3rem; color: var(--w1d2d-muted); line-height: 1.55; margin-bottom: 1.4rem; }
.w1d2d-footer-brand strong { color: var(--w1d2d-primary); }
.w1d2d-footer-btns { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.6rem; }
.w1d2d-footer-btns .w1d2d-btn { flex: 1 1 45%; min-width: 12rem; }
.w1d2d-footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; margin-bottom: 1.4rem; }
.w1d2d-footer-links a { font-size: 1.2rem; color: var(--w1d2d-muted); font-weight: 600; }
.w1d2d-footer-links a:hover { color: var(--w1d2d-primary); }
.w1d2d-copyright { font-size: 1.15rem; color: #6b7280; text-align: center; padding-top: 1rem; border-top: 1px solid var(--w1d2d-border); }

/* Bottom nav */
.w1d2d-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: var(--w1d2d-bottom-h);
  background: linear-gradient(180deg, #141a24 0%, #0d1117 100%);
  border-top: 1px solid rgba(255,138,128,0.25);
  box-shadow: 0 -0.4rem 1.6rem rgba(0,0,0,0.45);
  z-index: 1000; display: flex; justify-content: space-around; align-items: center;
  padding: 0 0.4rem; padding-bottom: env(safe-area-inset-bottom, 0);
}
.w1d2d-bnav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 6rem; min-height: 5.6rem; gap: 0.25rem; color: var(--w1d2d-muted);
  transition: color 0.15s, transform 0.15s; font-size: 1rem; font-weight: 600;
  border-radius: 1rem; position: relative;
}
.w1d2d-bnav-item i, .w1d2d-bnav-item .material-icons, .w1d2d-bnav-item ion-icon {
  font-size: 2.2rem; line-height: 1;
}
.w1d2d-bnav-item .material-icons { font-size: 2.4rem; }
.w1d2d-bnav-item:active { transform: scale(0.9); color: var(--w1d2d-primary); }
.w1d2d-bnav-active { color: var(--w1d2d-primary); }
.w1d2d-bnav-active::before {
  content: ''; position: absolute; top: 0.4rem; width: 2.4rem; height: 0.25rem;
  background: var(--w1d2d-primary); border-radius: 1rem;
}
.w1d2d-bnav-promo { color: var(--w1d2d-accent); }

@media (max-width: 768px) {
  .w1d2d-main { padding-bottom: 8rem; }
  .w1d2d-footer { padding-bottom: 8.5rem; }
}
@media (min-width: 769px) {
  .w1d2d-bottom-nav { display: none; }
  .w1d2d-wrapper { box-shadow: 0 0 4rem rgba(0,0,0,0.5); }
  .w1d2d-main { padding-bottom: 2rem; }
}
@media (max-width: 360px) {
  .w1d2d-game-grid { grid-template-columns: repeat(3, 1fr); }
  .w1d2d-feature-grid { grid-template-columns: 1fr; }
}
