/* hanaonlinegame - Core Stylesheet */
/* All classes use wd1b1- prefix for namespace isolation */
/* Mobile-first design, max-width 430px */

/* CSS Variables */
:root {
  --wd1b1-primary: #273746;
  --wd1b1-accent: #FFC0CB;
  --wd1b1-accent2: #C9C9FF;
  --wd1b1-bg: #0d1b2a;
  --wd1b1-bg2: #1b2d45;
  --wd1b1-bg3: #152238;
  --wd1b1-text: #f0f0f0;
  --wd1b1-text-muted: #a0b4c8;
  --wd1b1-border: #2a4060;
  --wd1b1-gold: #ffd700;
  --wd1b1-success: #00e676;
  --wd1b1-danger: #ff5252;
  --wd1b1-radius: 8px;
  --wd1b1-radius-lg: 12px;
  --wd1b1-shadow: 0 2px 12px rgba(0,0,0,0.3);
  --wd1b1-transition: all 0.3s ease;
  font-size: 62.5%;
}

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--wd1b1-bg);
  color: var(--wd1b1-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
a { text-decoration: none; color: var(--wd1b1-accent); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* Container */
.wd1b1-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
  position: relative;
}
.wd1b1-wrapper {
  width: 100%;
  min-height: 100vh;
  padding-top: 56px;
}

/* Header */
.wd1b1-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--wd1b1-primary);
  border-bottom: 1px solid var(--wd1b1-border);
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  max-width: 430px;
  margin: 0 auto;
}
.wd1b1-header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.wd1b1-header-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}
.wd1b1-header-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--wd1b1-accent);
  letter-spacing: 0.5px;
}
.wd1b1-header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.wd1b1-btn-register {
  background: linear-gradient(135deg, #FFC0CB, #ff9aad);
  color: var(--wd1b1-primary);
  font-weight: 700;
  font-size: 1.2rem;
  padding: 0.5rem 1.2rem;
  border: none;
  border-radius: var(--wd1b1-radius);
  cursor: pointer;
  transition: var(--wd1b1-transition);
}
.wd1b1-btn-register:hover { transform: scale(1.05); box-shadow: 0 0 10px rgba(255,192,203,0.4); }
.wd1b1-btn-login {
  background: transparent;
  color: var(--wd1b1-accent2);
  font-weight: 600;
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--wd1b1-accent2);
  border-radius: var(--wd1b1-radius);
  cursor: pointer;
  transition: var(--wd1b1-transition);
}
.wd1b1-btn-login:hover { background: rgba(201,201,255,0.15); }
.wd1b1-menu-toggle {
  background: none;
  border: none;
  color: var(--wd1b1-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}

/* Mobile Menu Overlay */
.wd1b1-menu-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
}
.wd1b1-overlay-active { display: block; }

/* Mobile Slide Menu */
.wd1b1-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: var(--wd1b1-bg2);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 2rem 1.5rem;
}
.wd1b1-menu-active { right: 0; }
.wd1b1-menu-close {
  background: none;
  border: none;
  color: var(--wd1b1-text);
  font-size: 2.4rem;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1rem;
}
.wd1b1-menu-title {
  font-size: 1.8rem;
  color: var(--wd1b1-accent);
  margin-bottom: 2rem;
  font-weight: 700;
}
.wd1b1-menu-list { display: flex; flex-direction: column; gap: 0; }
.wd1b1-menu-item {
  display: block;
  padding: 1.2rem 0;
  color: var(--wd1b1-text);
  font-size: 1.4rem;
  border-bottom: 1px solid var(--wd1b1-border);
  transition: var(--wd1b1-transition);
  cursor: pointer;
}
.wd1b1-menu-item:hover { color: var(--wd1b1-accent); padding-left: 0.5rem; }
.wd1b1-menu-promo {
  margin-top: 2rem;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(255,192,203,0.15), rgba(201,201,255,0.15));
  border-radius: var(--wd1b1-radius);
  text-align: center;
}
.wd1b1-menu-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, #FFC0CB, #ff9aad);
  color: var(--wd1b1-primary);
  font-weight: 700;
  padding: 0.8rem 2rem;
  border-radius: var(--wd1b1-radius);
  margin-top: 0.5rem;
}

/* Bottom Navigation */
.wd1b1-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--wd1b1-primary);
  border-top: 1px solid var(--wd1b1-border);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  max-width: 430px;
  margin: 0 auto;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.3);
}
.wd1b1-bnav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 56px;
  background: none;
  border: none;
  color: var(--wd1b1-text-muted);
  cursor: pointer;
  transition: var(--wd1b1-transition);
  padding: 0.3rem;
  border-radius: var(--wd1b1-radius);
  position: relative;
}
.wd1b1-bnav-btn:hover,
.wd1b1-bnav-active {
  color: var(--wd1b1-accent);
  transform: scale(1.08);
}
.wd1b1-bnav-active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--wd1b1-accent);
  border-radius: 2px;
}
.wd1b1-bnav-icon { font-size: 2.2rem; line-height: 1; }
.wd1b1-bnav-label { font-size: 1rem; margin-top: 0.2rem; }

/* Carousel */
.wd1b1-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: var(--wd1b1-radius-lg);
  margin: 1rem 0;
}
.wd1b1-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}
.wd1b1-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wd1b1-slide-active { opacity: 1; }
.wd1b1-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}
.wd1b1-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: var(--wd1b1-transition);
}
.wd1b1-dot-active { background: var(--wd1b1-accent); width: 20px; border-radius: 4px; }
.wd1b1-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}
.wd1b1-carousel-prev { left: 6px; }
.wd1b1-carousel-next { right: 6px; }

/* Section Titles */
.wd1b1-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--wd1b1-accent);
  margin: 2rem 0 1rem;
  padding-left: 0.8rem;
  border-left: 4px solid var(--wd1b1-accent);
}
.wd1b1-section-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--wd1b1-accent2);
  margin: 1.5rem 0 0.8rem;
}

/* Game Grid */
.wd1b1-game-section { margin: 1.5rem 0; }
.wd1b1-game-cat-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--wd1b1-accent2);
  margin: 1.2rem 0 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.wd1b1-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}
.wd1b1-game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: var(--wd1b1-transition);
  border-radius: var(--wd1b1-radius);
  padding: 0.4rem;
  background: var(--wd1b1-bg2);
}
.wd1b1-game-card:hover { transform: translateY(-3px); box-shadow: var(--wd1b1-shadow); }
.wd1b1-game-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
}
.wd1b1-game-card-name {
  font-size: 1rem;
  color: var(--wd1b1-text-muted);
  text-align: center;
  margin-top: 0.3rem;
  line-height: 1.2;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Content Modules */
.wd1b1-module {
  background: var(--wd1b1-bg2);
  border-radius: var(--wd1b1-radius-lg);
  padding: 1.5rem;
  margin: 1.2rem 0;
  border: 1px solid var(--wd1b1-border);
}
.wd1b1-module-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--wd1b1-accent);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.wd1b1-module p {
  color: var(--wd1b1-text-muted);
  line-height: 1.8rem;
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

/* Promo Link Styling */
.wd1b1-promo-text {
  color: var(--wd1b1-accent);
  font-weight: 600;
  cursor: pointer;
  transition: var(--wd1b1-transition);
  border-bottom: 1px dashed var(--wd1b1-accent);
}
.wd1b1-promo-text:hover { color: var(--wd1b1-gold); border-color: var(--wd1b1-gold); }
.wd1b1-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, #FFC0CB, #ff9aad);
  color: var(--wd1b1-primary);
  font-weight: 700;
  font-size: 1.3rem;
  padding: 0.8rem 1.8rem;
  border-radius: var(--wd1b1-radius);
  border: none;
  cursor: pointer;
  transition: var(--wd1b1-transition);
  text-align: center;
}
.wd1b1-promo-btn:hover { transform: scale(1.05); box-shadow: 0 0 15px rgba(255,192,203,0.5); }
.wd1b1-promo-btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--wd1b1-accent);
  font-weight: 600;
  font-size: 1.2rem;
  padding: 0.6rem 1.5rem;
  border-radius: var(--wd1b1-radius);
  border: 2px solid var(--wd1b1-accent);
  cursor: pointer;
  transition: var(--wd1b1-transition);
}
.wd1b1-promo-btn-outline:hover { background: rgba(255,192,203,0.15); }
.wd1b1-cta-banner {
  background: linear-gradient(135deg, rgba(255,192,203,0.2), rgba(201,201,255,0.2));
  border-radius: var(--wd1b1-radius-lg);
  padding: 1.5rem;
  text-align: center;
  margin: 1.5rem 0;
  border: 1px solid rgba(255,192,203,0.3);
}

/* H1 Styling */
.wd1b1-h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--wd1b1-text);
  margin: 1.5rem 0 0.8rem;
  line-height: 1.3;
}
.wd1b1-h1 span { color: var(--wd1b1-accent); }

/* Footer */
.wd1b1-footer {
  background: var(--wd1b1-primary);
  padding: 2rem 1.2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--wd1b1-border);
}
.wd1b1-footer-brand {
  color: var(--wd1b1-text-muted);
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.wd1b1-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.wd1b1-footer-link {
  display: inline-block;
  background: var(--wd1b1-bg2);
  color: var(--wd1b1-accent2);
  padding: 0.4rem 1rem;
  border-radius: var(--wd1b1-radius);
  font-size: 1.1rem;
  transition: var(--wd1b1-transition);
  cursor: pointer;
}
.wd1b1-footer-link:hover { background: var(--wd1b1-accent); color: var(--wd1b1-primary); }
.wd1b1-footer-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin: 1rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--wd1b1-border);
  border-bottom: 1px solid var(--wd1b1-border);
}
.wd1b1-footer-partners img {
  height: 24px;
  opacity: 0.6;
  transition: var(--wd1b1-transition);
}
.wd1b1-footer-partners img:hover { opacity: 1; }
.wd1b1-footer-copy {
  text-align: center;
  color: var(--wd1b1-text-muted);
  font-size: 1.1rem;
  margin-top: 1rem;
}

/* FAQ Accordion */
.wd1b1-faq-item {
  background: var(--wd1b1-bg3);
  border-radius: var(--wd1b1-radius);
  margin-bottom: 0.6rem;
  overflow: hidden;
}
.wd1b1-faq-q {
  padding: 1rem 1.2rem;
  font-weight: 600;
  color: var(--wd1b1-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.3rem;
}
.wd1b1-faq-a {
  padding: 0 1.2rem 1rem;
  color: var(--wd1b1-text-muted);
  font-size: 1.2rem;
  line-height: 1.6;
}

/* Testimonials */
.wd1b1-testimonial {
  background: var(--wd1b1-bg3);
  border-radius: var(--wd1b1-radius);
  padding: 1rem 1.2rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--wd1b1-accent);
}
.wd1b1-testimonial-name {
  color: var(--wd1b1-accent);
  font-weight: 600;
  font-size: 1.2rem;
}
.wd1b1-testimonial-text {
  color: var(--wd1b1-text-muted);
  font-size: 1.2rem;
  margin-top: 0.4rem;
  line-height: 1.5;
}

/* Winners */
.wd1b1-winner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--wd1b1-border);
}
.wd1b1-winner:last-child { border-bottom: none; }
.wd1b1-winner-name { color: var(--wd1b1-accent2); font-size: 1.2rem; font-weight: 600; }
.wd1b1-winner-game { color: var(--wd1b1-text-muted); font-size: 1.1rem; }
.wd1b1-winner-amount { color: var(--wd1b1-gold); font-weight: 700; font-size: 1.3rem; }

/* Payment Icons */
.wd1b1-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin: 1rem 0;
}
.wd1b1-payment-item {
  background: var(--wd1b1-bg3);
  border-radius: var(--wd1b1-radius);
  padding: 0.6rem 1.2rem;
  color: var(--wd1b1-text-muted);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Stats Row */
.wd1b1-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin: 1rem 0;
}
.wd1b1-stat-item {
  background: var(--wd1b1-bg3);
  border-radius: var(--wd1b1-radius);
  padding: 0.8rem;
  text-align: center;
}
.wd1b1-stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--wd1b1-accent);
}
.wd1b1-stat-label {
  font-size: 1rem;
  color: var(--wd1b1-text-muted);
  margin-top: 0.2rem;
}

/* Achievement badges */
.wd1b1-achievement {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--wd1b1-border);
}
.wd1b1-achievement:last-child { border-bottom: none; }
.wd1b1-achievement-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wd1b1-accent), var(--wd1b1-accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.wd1b1-achievement-info { flex: 1; }
.wd1b1-achievement-title { color: var(--wd1b1-text); font-weight: 600; font-size: 1.2rem; }
.wd1b1-achievement-desc { color: var(--wd1b1-text-muted); font-size: 1rem; }

/* RTP Table */
.wd1b1-rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.2rem;
}
.wd1b1-rtp-table th {
  background: var(--wd1b1-primary);
  color: var(--wd1b1-accent);
  padding: 0.6rem;
  text-align: left;
  font-weight: 600;
}
.wd1b1-rtp-table td {
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--wd1b1-border);
  color: var(--wd1b1-text-muted);
}
.wd1b1-rtp-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--wd1b1-bg);
  overflow: hidden;
}
.wd1b1-rtp-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--wd1b1-accent), var(--wd1b1-accent2));
}

/* Tricks list */
.wd1b1-trick {
  display: flex;
  gap: 0.8rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--wd1b1-border);
}
.wd1b1-trick:last-child { border-bottom: none; }
.wd1b1-trick-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--wd1b1-accent);
  color: var(--wd1b1-primary);
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wd1b1-trick-text {
  color: var(--wd1b1-text-muted);
  font-size: 1.2rem;
  line-height: 1.5;
}

/* Internal Link Styling */
.wd1b1-internal-link {
  color: var(--wd1b1-accent2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Responsive Desktop */
@media (min-width: 769px) {
  .wd1b1-bottom-nav { display: none; }
  .wd1b1-wrapper { padding-bottom: 0; }
}
@media (max-width: 768px) {
  .wd1b1-wrapper { padding-bottom: 80px; }
}
