/*!
 * ph22 login registration - theme.css
 * Mobile-first responsive stylesheet. All custom classes use the w1d07- prefix.
 * Palette: #8A2BE2 | #FA8072 | #333333 | #FFB3FF | #CED4DA | #CC99FF
 * Root font 62.5% => 1rem = 10px. Comments in English per project convention.
 */

:root {
  --w1d07-primary: #8A2BE2;
  --w1d07-accent: #FA8072;
  --w1d07-dark: #333333;
  --w1d07-pink: #FFB3FF;
  --w1d07-mute: #CED4DA;
  --w1d07-lavender: #CC99FF;
  --w1d07-bg: #1c1230;
  --w1d07-bg-2: #2a1d49;
  --w1d07-card: #261a45;
  --w1d07-text: #f4ecff;
  --w1d07-text-dim: #c8b8e0;
  --w1d07-gold: #ffcf5c;
  --w1d07-shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
  --w1d07-radius: 14px;
  --w1d07-max: 430px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: radial-gradient(circle at 30% 0%, var(--w1d07-bg-2) 0%, var(--w1d07-bg) 55%);
  color: var(--w1d07-text);
  line-height: 1.5rem; font-size: 1.5rem;
  min-height: 100vh; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--w1d07-lavender); text-decoration: none; }
a:hover { color: var(--w1d07-pink); }

.w1d07-wrapper { width: 100%; max-width: var(--w1d07-max); margin: 0 auto; position: relative; }

/* ============ Header ============ */
.w1d07-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, rgba(42, 29, 73, 0.96), rgba(28, 18, 48, 0.96));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(204, 153, 255, 0.18);
}
.w1d07-header-inner {
  max-width: var(--w1d07-max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 1.2rem; gap: 0.8rem;
}
.w1d07-brand { display: flex; align-items: center; gap: 0.7rem; min-width: 0; flex: 1; }
.w1d07-logo { width: 3rem; height: 3rem; border-radius: 9px; box-shadow: 0 0 14px rgba(138, 43, 226, 0.6); }
.w1d07-brand-text { font-size: 1.4rem; font-weight: 800; color: var(--w1d07-text); line-height: 1.2rem; letter-spacing: 0.3px; }
.w1d07-brand-text small { display: block; font-size: 1rem; color: var(--w1d07-lavender); font-weight: 600; margin-top: 2px; }
.w1d07-header-actions { display: flex; align-items: center; gap: 0.6rem; }

.w1d07-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 3.6rem; padding: 0 1.2rem; border-radius: 999px;
  font-weight: 800; font-size: 1.35rem; border: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.w1d07-btn:active { transform: scale(0.96); }
.w1d07-btn-register {
  background: linear-gradient(135deg, var(--w1d07-accent), #ff5f7a); color: #fff;
  box-shadow: 0 6px 16px rgba(250, 128, 114, 0.45);
}
.w1d07-btn-login {
  background: linear-gradient(135deg, var(--w1d07-primary), #5a189a); color: #fff;
  box-shadow: 0 6px 16px rgba(138, 43, 226, 0.45);
}

.w1d07-menu-toggle {
  background: rgba(204, 153, 255, 0.18); color: var(--w1d07-text); border: none;
  width: 3.6rem; height: 3.6rem; border-radius: 10px; font-size: 2rem; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ============ Mobile Menu ============ */
.w1d07-mobile-menu {
  max-height: 0; overflow: hidden; transition: max-height 0.35s ease;
  background: rgba(28, 18, 48, 0.98); border-top: 1px solid rgba(204, 153, 255, 0.12);
}
.w1d07-mobile-menu.w1d07-menu-open { max-height: 460px; }
.w1d07-mobile-menu-inner {
  max-width: var(--w1d07-max); margin: 0 auto; padding: 0.6rem 1.2rem 1.2rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem;
}
.w1d07-mobile-menu-inner a {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 1rem; border-radius: 10px;
  background: rgba(138, 43, 226, 0.15); color: var(--w1d07-text);
  font-size: 1.3rem; font-weight: 600;
  border: 1px solid rgba(204, 153, 255, 0.18);
}
.w1d07-mobile-menu-inner a:hover { background: rgba(138, 43, 226, 0.32); color: var(--w1d07-pink); }

/* ============ Layout ============ */
main { padding-bottom: 90px; padding-top: 6.4rem; }
.w1d07-section { padding: 2.4rem 1.2rem; }
.w1d07-section-alt { background: rgba(255, 255, 255, 0.03); border-top: 1px solid rgba(204, 153, 255, 0.08); border-bottom: 1px solid rgba(204, 153, 255, 0.08); }

.w1d07-section-title {
  font-size: 2.1rem; font-weight: 800; color: var(--w1d07-text);
  margin-bottom: 0.6rem; display: flex; align-items: center; gap: 0.6rem;
}
.w1d07-section-title i { color: var(--w1d07-accent); }
.w1d07-section-sub { color: var(--w1d07-text-dim); font-size: 1.35rem; margin-bottom: 1.6rem; }

/* ============ Hero / Carousel ============ */
.w1d07-carousel { position: relative; border-radius: 18px; overflow: hidden; box-shadow: var(--w1d07-shadow); background: #000; }
.w1d07-slides { position: relative; }
.w1d07-slide { display: none; position: relative; cursor: pointer; }
.w1d07-slide img { width: 100%; height: 200px; object-fit: cover; }
.w1d07-slide-active { display: block; animation: w1d07fade 0.6s ease; }
@keyframes w1d07fade { from { opacity: 0.2; } to { opacity: 1; } }
.w1d07-slide-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem 1.2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), transparent); color: #fff;
}
.w1d07-slide-caption strong { display: block; font-size: 1.7rem; color: var(--w1d07-pink); }
.w1d07-slide-caption span { font-size: 1.2rem; color: var(--w1d07-mute); }

.w1d07-dots { display: flex; justify-content: center; gap: 0.5rem; padding: 0.8rem 0; }
.w1d07-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.35); cursor: pointer; }
.w1d07-dot-active { background: var(--w1d07-accent); width: 22px; border-radius: 5px; }

/* ============ Hero CTA ============ */
.w1d07-hero-cta { display: flex; gap: 0.8rem; margin-top: 1.2rem; flex-wrap: wrap; }
.w1d07-hero-cta .w1d07-btn { flex: 1; min-width: 140px; }
.w1d07-cta-primary { background: linear-gradient(135deg, var(--w1d07-accent), #ff5f7a); color: #fff; }
.w1d07-cta-ghost { background: transparent; border: 2px solid var(--w1d07-lavender); color: var(--w1d07-lavender); }

/* ============ Promo text links ============ */
.w1d07-text-link { color: var(--w1d07-pink); font-weight: 800; cursor: pointer; border-bottom: 1px dashed var(--w1d07-pink); }
.w1d07-text-link:hover { color: var(--w1d07-accent); border-bottom-color: var(--w1d07-accent); }

/* ============ Game grid ============ */
.w1d07-category { margin-bottom: 2.4rem; }
.w1d07-category-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.w1d07-category-title { display: flex; align-items: center; gap: 0.5rem; font-size: 1.65rem; font-weight: 800; color: var(--w1d07-text); }
.w1d07-category-title i { color: var(--w1d07-gold); }
.w1d07-category-more { color: var(--w1d07-lavender); font-size: 1.2rem; font-weight: 700; cursor: pointer; }

.w1d07-game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.w1d07-game-card {
  background: var(--w1d07-card); border-radius: var(--w1d07-radius);
  overflow: hidden; border: 1px solid rgba(204, 153, 255, 0.12);
  cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: block; text-align: center;
}
.w1d07-game-card:hover, .w1d07-game-card:active {
  transform: translateY(-3px); box-shadow: 0 8px 20px rgba(138, 43, 226, 0.35); border-color: var(--w1d07-pink);
}
.w1d07-game-thumb { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: rgba(0, 0, 0, 0.35); }
.w1d07-game-name {
  font-size: 1.15rem; color: var(--w1d07-text);
  padding: 0.5rem 0.4rem 0.7rem; font-weight: 600; line-height: 1.3rem;
  min-height: 2.8rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ============ Info / feature cards ============ */
.w1d07-card-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.w1d07-info-card {
  background: linear-gradient(160deg, var(--w1d07-card), #1c1230);
  border-radius: var(--w1d07-radius); padding: 1.4rem;
  border: 1px solid rgba(204, 153, 255, 0.14); box-shadow: var(--w1d07-shadow);
}
.w1d07-info-card h3 { font-size: 1.55rem; margin-bottom: 0.6rem; color: var(--w1d07-pink); display: flex; align-items: center; gap: 0.5rem; }
.w1d07-info-card p { color: var(--w1d07-text-dim); font-size: 1.3rem; line-height: 1.55rem; }
.w1d07-info-card ul { margin: 0.6rem 0 0 1.4rem; color: var(--w1d07-text-dim); font-size: 1.3rem; }
.w1d07-info-card li { margin-bottom: 0.3rem; }

.w1d07-feature-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
.w1d07-feature-tile {
  background: rgba(138, 43, 226, 0.14); border-radius: 12px; padding: 1.2rem 1rem;
  text-align: center; border: 1px solid rgba(204, 153, 255, 0.18);
}
.w1d07-feature-tile i, .w1d07-feature-tile .material-icons, .w1d07-feature-tile .material-symbols-outlined, .w1d07-feature-tile .bi {
  font-size: 2.4rem; color: var(--w1d07-gold); margin-bottom: 0.4rem; display: inline-block;
}
.w1d07-feature-tile strong { display: block; color: var(--w1d07-text); font-size: 1.3rem; }
.w1d07-feature-tile span { display: block; color: var(--w1d07-text-dim); font-size: 1.15rem; margin-top: 0.2rem; }

/* ============ RTP table ============ */
.w1d07-rtp-table {
  width: 100%; border-collapse: collapse; background: var(--w1d07-card);
  border-radius: var(--w1d07-radius); overflow: hidden; font-size: 1.25rem;
}
.w1d07-rtp-table th, .w1d07-rtp-table td { padding: 0.9rem 0.7rem; text-align: left; border-bottom: 1px solid rgba(204, 153, 255, 0.1); }
.w1d07-rtp-table th { background: rgba(138, 43, 226, 0.35); color: var(--w1d07-pink); font-weight: 800; }
.w1d07-rtp-table td:last-child { color: var(--w1d07-gold); font-weight: 700; }

/* ============ Testimonial ============ */
.w1d07-testimonials { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.w1d07-testimonial { background: rgba(255, 179, 255, 0.08); border-left: 4px solid var(--w1d07-accent); border-radius: 10px; padding: 1rem 1.2rem; }
.w1d07-testimonial p { font-size: 1.3rem; color: var(--w1d07-text); margin-bottom: 0.4rem; }
.w1d07-testimonial cite { color: var(--w1d07-lavender); font-style: normal; font-weight: 700; font-size: 1.2rem; }

/* ============ Payment chips ============ */
.w1d07-payment-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.w1d07-payment-chip {
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(204, 153, 255, 0.2);
  color: var(--w1d07-text); border-radius: 999px; padding: 0.6rem 1rem;
  font-size: 1.2rem; display: inline-flex; align-items: center; gap: 0.4rem;
}

/* ============ FAQ ============ */
.w1d07-faq-item { background: var(--w1d07-card); border-radius: 10px; margin-bottom: 0.7rem; border: 1px solid rgba(204, 153, 255, 0.12); overflow: hidden; }
.w1d07-faq-q { padding: 1rem 1.2rem; cursor: pointer; font-weight: 700; color: var(--w1d07-text); display: flex; justify-content: space-between; align-items: center; font-size: 1.35rem; }
.w1d07-faq-q i { color: var(--w1d07-accent); transition: transform 0.3s; }
.w1d07-faq-a { max-height: 0; overflow: hidden; padding: 0 1.2rem; color: var(--w1d07-text-dim); font-size: 1.25rem; transition: max-height 0.3s ease, padding 0.3s ease; }
.w1d07-faq-open .w1d07-faq-a { max-height: 320px; padding-bottom: 1rem; }
.w1d07-faq-open .w1d07-faq-q i { transform: rotate(45deg); }

/* ============ Winners strip ============ */
.w1d07-winner-strip { display: flex; gap: 0.6rem; overflow-x: auto; padding-bottom: 0.4rem; }
.w1d07-winner-strip::-webkit-scrollbar { display: none; }
.w1d07-winner { background: rgba(255, 207, 92, 0.1); border: 1px solid rgba(255, 207, 92, 0.3); border-radius: 10px; padding: 0.6rem 0.9rem; min-width: 160px; font-size: 1.15rem; color: var(--w1d07-text); }
.w1d07-winner strong { color: var(--w1d07-gold); display: block; font-size: 1.3rem; }

/* ============ App download banner ============ */
.w1d07-app-banner {
  background: linear-gradient(135deg, var(--w1d07-primary), #5a189a);
  border-radius: var(--w1d07-radius); padding: 1.4rem;
  display: flex; align-items: center; gap: 1rem; color: #fff; box-shadow: var(--w1d07-shadow);
}
.w1d07-app-banner .w1d07-app-icon { font-size: 3.4rem; color: var(--w1d07-gold); }
.w1d07-app-banner h3 { font-size: 1.6rem; margin-bottom: 0.2rem; }
.w1d07-app-banner p { font-size: 1.2rem; color: var(--w1d07-pink); margin-bottom: 0.6rem; }

/* ============ Footer ============ */
.w1d07-footer { background: #160c28; border-top: 1px solid rgba(204, 153, 255, 0.16); padding: 2.4rem 1.2rem 2rem; color: var(--w1d07-text-dim); }
.w1d07-footer-brand { font-size: 1.4rem; color: var(--w1d07-text); margin-bottom: 0.8rem; }
.w1d07-footer-brand strong { color: var(--w1d07-pink); }
.w1d07-footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin: 1.2rem 0; }
.w1d07-footer-links a { color: var(--w1d07-text-dim); font-size: 1.2rem; padding: 0.3rem 0; border-bottom: 1px dashed rgba(204, 153, 255, 0.1); }
.w1d07-footer-links a:hover { color: var(--w1d07-pink); }
.w1d07-footer-promos { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0 1.2rem; }
.w1d07-footer-promos .w1d07-btn { flex: 1; min-width: 120px; padding: 0.8rem 1rem; font-size: 1.2rem; }
.w1d07-footer-copy { font-size: 1.1rem; text-align: center; color: rgba(200, 184, 224, 0.7); border-top: 1px solid rgba(204, 153, 255, 0.1); padding-top: 1rem; }

/* ============ Mobile bottom nav ============ */
.w1d07-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: 6rem;
  background: linear-gradient(180deg, rgba(42, 29, 73, 0.98), rgba(22, 12, 40, 1));
  border-top: 1px solid rgba(204, 153, 255, 0.22);
  display: flex; justify-content: space-around; align-items: stretch;
  box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.4);
}
.w1d07-bottom-nav-btn {
  flex: 1; background: transparent; border: none; color: var(--w1d07-text-dim);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem;
  cursor: pointer; min-width: 60px; min-height: 60px; padding: 0.4rem 0.2rem;
  transition: color 0.2s ease, transform 0.2s ease; position: relative;
}
.w1d07-bottom-nav-btn .material-icons,
.w1d07-bottom-nav-btn .material-symbols-outlined,
.w1d07-bottom-nav-btn i { font-size: 2.4rem; }
.w1d07-bottom-nav-btn span { font-size: 1rem; font-weight: 600; letter-spacing: 0.2px; }
.w1d07-bottom-nav-btn:active { transform: scale(0.92); }
.w1d07-bottom-nav-active { color: var(--w1d07-pink); }
.w1d07-bottom-nav-active::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 32px; height: 3px; border-radius: 0 0 4px 4px; background: var(--w1d07-pink);
}
.w1d07-bottom-nav-promo, .w1d07-bottom-nav-promo span { color: var(--w1d07-gold); }

/* ============ Reveal animation ============ */
.w1d07-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.w1d07-revealed { opacity: 1; transform: translateY(0); }

/* ============ Desktop behavior ============ */
@media (min-width: 769px) {
  .w1d07-bottom-nav { display: none; }
  main { padding-bottom: 30px; }
}
