/* p8881 - core stylesheet
 * All classes use the "wd1c1-" prefix for namespace isolation
 * Color palette: #FFDFBA | #87CEFA | #FA8072 | #34495E | #FFC0CB
 * Mobile-first design (max-width: 430px baseline), rem units (root 62.5%)
 * Code comments in English
 */

:root {
  --wd1c1-primary: #FA8072;
  --wd1c1-secondary: #87CEFA;
  --wd1c1-accent: #FFC0CB;
  --wd1c1-warm: #FFDFBA;
  --wd1c1-bg: #34495E;
  --wd1c1-bg-deep: #2c3e50;
  --wd1c1-bg-light: #3d566e;
  --wd1c1-text: #FFDFBA;
  --wd1c1-text-light: #ffffff;
  --wd1c1-text-muted: #c4d6e8;
  --wd1c1-card: #3d566e;
  --wd1c1-border: rgba(255, 223, 186, 0.18);
  --wd1c1-gold: #FFDFBA;
  --wd1c1-grad: linear-gradient(135deg, #FA8072 0%, #FFC0CB 100%);
  --wd1c1-grad-blue: linear-gradient(135deg, #87CEFA 0%, #34495E 100%);
  --wd1c1-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.35);
  --wd1c1-radius: 1.2rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

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

body {
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  background: var(--wd1c1-bg-deep);
  color: var(--wd1c1-text-light);
  line-height: 1.5rem;
  font-size: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

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

a {
  color: var(--wd1c1-secondary);
  text-decoration: none;
}

/* ===== Header ===== */
.wd1c1-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 1000;
  background: linear-gradient(135deg, #2c3e50 0%, #34495E 100%);
  border-bottom: 0.2rem solid var(--wd1c1-primary);
  box-shadow: var(--wd1c1-shadow);
}

.wd1c1-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  gap: 0.6rem;
}

.wd1c1-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  min-width: 0;
}

.wd1c1-logo img {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.6rem;
  border: 0.15rem solid var(--wd1c1-warm);
}

.wd1c1-logo-text {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--wd1c1-warm);
  letter-spacing: 0.05rem;
  white-space: nowrap;
}

.wd1c1-logo-text span {
  color: var(--wd1c1-primary);
}

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

.wd1c1-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.2rem;
  border: none;
  border-radius: 0.8rem;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 4rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  font-family: inherit;
}

.wd1c1-btn:active {
  transform: scale(0.96);
}

.wd1c1-btn-register {
  background: var(--wd1c1-grad);
  color: #2c3e50;
  box-shadow: 0 0.3rem 0.8rem rgba(250, 128, 114, 0.4);
}

.wd1c1-btn-login {
  background: transparent;
  color: var(--wd1c1-warm);
  border: 0.15rem solid var(--wd1c1-warm);
}

.wd1c1-menu-btn {
  background: transparent;
  border: 0.15rem solid var(--wd1c1-secondary);
  color: var(--wd1c1-secondary);
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 0.6rem;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Mobile Menu ===== */
.wd1c1-mobile-menu {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  max-height: 100vh;
  overflow-y: auto;
  background: var(--wd1c1-bg-deep);
  z-index: 9999;
  padding: 6rem 1rem 2rem;
  border-bottom: 0.2rem solid var(--wd1c1-primary);
  transform: translateX(-50%) translateY(-100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.wd1c1-mobile-menu.wd1c1-menu-open {
  transform: translateX(-50%) translateY(0);
}

.wd1c1-mobile-menu a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.2rem 1rem;
  color: var(--wd1c1-text-light);
  border-radius: 0.8rem;
  font-size: 1.4rem;
  font-weight: 600;
  background: var(--wd1c1-card);
  border: 0.1rem solid var(--wd1c1-border);
}

.wd1c1-mobile-menu a:active {
  background: var(--wd1c1-bg-light);
}

.wd1c1-mobile-menu a i,
.wd1c1-mobile-menu a ion-icon {
  color: var(--wd1c1-primary);
  font-size: 1.8rem;
  width: 2.2rem;
  text-align: center;
}

.wd1c1-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--wd1c1-warm);
  font-size: 2rem;
  cursor: pointer;
  width: 3.6rem;
  height: 3.6rem;
}

/* ===== Main / Layout ===== */
.wd1c1-main {
  padding-top: 6.4rem;
  padding-bottom: 1.5rem;
}

.wd1c1-section {
  padding: 1.5rem 1rem;
  margin: 1rem 0;
}

.wd1c1-section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--wd1c1-warm);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 0.15rem solid var(--wd1c1-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wd1c1-section-title i {
  color: var(--wd1c1-primary);
}

.wd1c1-intro-text {
  font-size: 1.4rem;
  color: var(--wd1c1-text-muted);
  line-height: 2.2rem;
  margin-bottom: 1rem;
}

.wd1c1-intro-text strong {
  color: var(--wd1c1-warm);
}

/* ===== Carousel ===== */
.wd1c1-carousel {
  position: relative;
  width: 100%;
  height: 18rem;
  overflow: hidden;
  border-radius: var(--wd1c1-radius);
  box-shadow: var(--wd1c1-shadow);
  margin-bottom: 1rem;
}

.wd1c1-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}

.wd1c1-slide.wd1c1-slide-active {
  opacity: 1;
}

.wd1c1-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wd1c1-slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.2rem 1rem 1.4rem;
  background: linear-gradient(transparent, rgba(44, 62, 80, 0.92));
  color: var(--wd1c1-text-light);
  font-size: 1.5rem;
  font-weight: 700;
}

.wd1c1-slide-caption span {
  color: var(--wd1c1-primary);
}

.wd1c1-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(44, 62, 80, 0.6);
  color: var(--wd1c1-warm);
  border: none;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wd1c1-carousel-prev { left: 0.6rem; }
.wd1c1-carousel-next { right: 0.6rem; }

.wd1c1-dots {
  position: absolute;
  bottom: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 5;
}

.wd1c1-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: rgba(255, 223, 186, 0.5);
  border: none;
  cursor: pointer;
}

.wd1c1-dot.wd1c1-dot-active {
  background: var(--wd1c1-primary);
  width: 2rem;
  border-radius: 0.4rem;
}

/* ===== Game Grid ===== */
.wd1c1-category-tabs {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.wd1c1-cat-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: var(--wd1c1-card);
  color: var(--wd1c1-warm);
  border-radius: 0.6rem;
  font-size: 1.2rem;
  font-weight: 700;
  border: 0.1rem solid var(--wd1c1-primary);
}

.wd1c1-cat-label i {
  color: var(--wd1c1-primary);
}

.wd1c1-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.wd1c1-game-card {
  background: var(--wd1c1-card);
  border: 0.1rem solid var(--wd1c1-border);
  border-radius: 0.8rem;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
}

.wd1c1-game-card:active {
  transform: scale(0.95);
  box-shadow: 0 0 0.8rem rgba(250, 128, 114, 0.5);
}

.wd1c1-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #2c3e50;
}

.wd1c1-game-name {
  padding: 0.5rem 0.4rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--wd1c1-text-light);
  text-align: center;
  line-height: 1.3rem;
  min-height: 3.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Feature / Info Cards ===== */
.wd1c1-card {
  background: var(--wd1c1-card);
  border: 0.1rem solid var(--wd1c1-border);
  border-radius: var(--wd1c1-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  box-shadow: var(--wd1c1-shadow);
}

.wd1c1-card h3 {
  font-size: 1.5rem;
  color: var(--wd1c1-warm);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wd1c1-card h3 i {
  color: var(--wd1c1-primary);
}

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

.wd1c1-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.wd1c1-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 1.35rem;
  color: var(--wd1c1-text-muted);
  line-height: 2rem;
}

.wd1c1-feature-list li i {
  color: var(--wd1c1-primary);
  font-size: 1.6rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* ===== Promo CTA ===== */
.wd1c1-cta {
  background: var(--wd1c1-grad);
  color: #2c3e50;
  border-radius: var(--wd1c1-radius);
  padding: 1.4rem 1rem;
  text-align: center;
  margin: 1rem 0;
  box-shadow: var(--wd1c1-shadow);
}

.wd1c1-cta h3 {
  font-size: 1.7rem;
  color: #2c3e50;
  margin-bottom: 0.4rem;
}

.wd1c1-cta p {
  font-size: 1.3rem;
  color: #2c3e50;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.wd1c1-cta .wd1c1-btn {
  background: #2c3e50;
  color: var(--wd1c1-warm);
  padding: 0.9rem 2rem;
  font-size: 1.4rem;
}

/* ===== RTP / Stats compact ===== */
.wd1c1-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.wd1c1-stat-item {
  background: var(--wd1c1-bg-deep);
  border: 0.1rem solid var(--wd1c1-border);
  border-radius: 0.6rem;
  padding: 0.8rem;
  text-align: center;
}

.wd1c1-stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--wd1c1-primary);
  display: block;
}

.wd1c1-stat-label {
  font-size: 1.1rem;
  color: var(--wd1c1-text-muted);
}

/* ===== Testimonials ===== */
.wd1c1-testimonial {
  background: var(--wd1c1-card);
  border-left: 0.3rem solid var(--wd1c1-primary);
  border-radius: 0.6rem;
  padding: 1rem;
  margin-bottom: 0.8rem;
}

.wd1c1-testimonial-text {
  font-size: 1.3rem;
  color: var(--wd1c1-text-muted);
  line-height: 2rem;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.wd1c1-testimonial-author {
  font-size: 1.2rem;
  color: var(--wd1c1-warm);
  font-weight: 700;
}

/* ===== Winners showcase ===== */
.wd1c1-winner-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0.8rem;
  background: var(--wd1c1-bg-deep);
  border-radius: 0.6rem;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.wd1c1-winner-name { color: var(--wd1c1-text-light); font-weight: 600; }
.wd1c1-winner-amount { color: var(--wd1c1-warm); font-weight: 800; }

/* ===== Payment methods ===== */
.wd1c1-payment-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.wd1c1-payment-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.9rem;
  background: var(--wd1c1-bg-deep);
  border: 0.1rem solid var(--wd1c1-border);
  border-radius: 0.6rem;
  font-size: 1.2rem;
  color: var(--wd1c1-text-light);
}

.wd1c1-payment-chip i {
  color: var(--wd1c1-secondary);
}

/* ===== Achievements ===== */
.wd1c1-achievement {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem;
  background: var(--wd1c1-bg-deep);
  border-radius: 0.6rem;
  margin-bottom: 0.5rem;
}

.wd1c1-achievement-icon {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background: var(--wd1c1-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2c3e50;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.wd1c1-achievement-text { flex: 1; }
.wd1c1-achievement-text strong { color: var(--wd1c1-warm); font-size: 1.3rem; display: block; }
.wd1c1-achievement-text span { color: var(--wd1c1-text-muted); font-size: 1.2rem; }

/* ===== Tricks / Steps ===== */
.wd1c1-step {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  align-items: flex-start;
}

.wd1c1-step-num {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--wd1c1-grad);
  color: #2c3e50;
  font-weight: 800;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wd1c1-step-text {
  font-size: 1.3rem;
  color: var(--wd1c1-text-muted);
  line-height: 2rem;
}

.wd1c1-step-text strong { color: var(--wd1c1-warm); }

/* ===== App download CTA ===== */
.wd1c1-app-cta {
  background: var(--wd1c1-grad-blue);
  border-radius: var(--wd1c1-radius);
  padding: 1.2rem;
  text-align: center;
  color: var(--wd1c1-text-light);
  margin: 1rem 0;
}

.wd1c1-app-cta h3 { color: var(--wd1c1-warm); font-size: 1.6rem; margin-bottom: 0.4rem; }
.wd1c1-app-cta p { font-size: 1.3rem; margin-bottom: 0.8rem; color: var(--wd1c1-text-light); }
.wd1c1-app-cta .wd1c1-btn { background: var(--wd1c1-warm); color: #2c3e50; }

/* ===== Inline promo text link ===== */
.wd1c1-promo-link {
  color: var(--wd1c1-primary);
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
}

/* ===== Footer ===== */
.wd1c1-footer {
  background: #2c3e50;
  border-top: 0.2rem solid var(--wd1c1-primary);
  padding: 1.5rem 1rem 1rem;
  margin-top: 1.5rem;
}

.wd1c1-footer-brand {
  font-size: 1.3rem;
  color: var(--wd1c1-text-muted);
  line-height: 2rem;
  margin-bottom: 1rem;
}

.wd1c1-footer-brand strong { color: var(--wd1c1-warm); }

.wd1c1-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.wd1c1-footer-link {
  padding: 0.5rem 0.9rem;
  background: var(--wd1c1-card);
  border-radius: 0.6rem;
  font-size: 1.2rem;
  color: var(--wd1c1-text-light);
  border: 0.1rem solid var(--wd1c1-border);
  cursor: pointer;
}

.wd1c1-footer-link:active { background: var(--wd1c1-bg-light); }

.wd1c1-footer-copy {
  text-align: center;
  font-size: 1.1rem;
  color: var(--wd1c1-text-muted);
  padding-top: 0.8rem;
  border-top: 0.1rem solid var(--wd1c1-border);
}

/* ===== Mobile Bottom Nav ===== */
.wd1c1-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 6rem;
  background: linear-gradient(180deg, #34495E 0%, #2c3e50 100%);
  border-top: 0.15rem solid var(--wd1c1-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -0.4rem 1rem rgba(0, 0, 0, 0.4);
}

.wd1c1-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  background: transparent;
  border: none;
  color: var(--wd1c1-text-muted);
  min-width: 6rem;
  min-height: 6rem;
  padding: 0.4rem;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.15s ease;
  font-family: inherit;
  position: relative;
}

.wd1c1-bottom-nav-btn i {
  font-size: 2.2rem;
}

.wd1c1-bottom-nav-btn span {
  font-size: 1rem;
  font-weight: 600;
}

.wd1c1-bottom-nav-btn:active {
  transform: scale(0.9);
}

.wd1c1-bottom-nav-btn.wd1c1-nav-active {
  color: var(--wd1c1-primary);
}

.wd1c1-bottom-nav-btn.wd1c1-nav-active i {
  color: var(--wd1c1-warm);
}

.wd1c1-nav-badge {
  position: absolute;
  top: 0.4rem;
  right: 1.2rem;
  background: var(--wd1c1-primary);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  min-width: 1.6rem;
  height: 1.6rem;
  border-radius: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.3rem;
}

/* ===== Responsive ===== */
@media (min-width: 431px) and (max-width: 768px) {
  .wd1c1-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 769px) {
  .wd1c1-bottom-nav { display: none; }
  body { max-width: 430px; }
}

@media (max-width: 768px) {
  .wd1c1-main { padding-bottom: 8rem; }
}

/* Hide bottom nav on very narrow but tall screens handled by fixed layout above */
