/**
 * hana online game - Core Stylesheet
 * Mobile-first HTML5 casino design (max-width 430px).
 * All custom classes use the w0000- prefix for namespace isolation.
 */

:root {
  --w0000-bg: #3A3A3A;
  --w0000-bg-dark: #262626;
  --w0000-bg-deep: #1C1C1C;
  --w0000-bg-light: #4A4A4A;
  --w0000-primary: #FF8A80;
  --w0000-primary-dark: #E57368;
  --w0000-secondary: #FFCCCB;
  --w0000-text: #FFFFFF;
  --w0000-text-muted: #DCDCDC;
  --w0000-text-dim: #999999;
  --w0000-border: rgba(255, 255, 255, 0.10);
  --w0000-border-coral: rgba(255, 138, 128, 0.35);
  --w0000-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  --w0000-shadow-coral: 0 6px 22px rgba(255, 138, 128, 0.40);
  --w0000-radius: 14px;
  --w0000-radius-sm: 8px;
  --w0000-radius-lg: 22px;
  --w0000-transition: all 0.3s ease;
  --w0000-header-h: 56px;
  --w0000-bottom-nav-h: 64px;
  --w0000-max-w: 430px;
}

/* Base reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--w0000-bg);
  color: var(--w0000-text);
  font-size: 1.5rem;
  line-height: 1.5;
  overflow-x: hidden;
  max-width: var(--w0000-max-w);
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
}
img { max-width: 100%; display: block; }
a { color: var(--w0000-secondary); text-decoration: none; transition: var(--w0000-transition); }
a:hover, a:focus { color: var(--w0000-primary); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }

/* Layout helpers */
.w0000-container { width: 100%; max-width: var(--w0000-max-w); margin: 0 auto; padding: 0 1.2rem; }
.w0000-wrapper { width: 100%; position: relative; }
.w0000-main { padding-top: var(--w0000-header-h); padding-bottom: calc(var(--w0000-bottom-nav-h) + 2rem); }

/* Header */
.w0000-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--w0000-max-w); height: var(--w0000-header-h);
  background: linear-gradient(135deg, #262626 0%, #3A3A3A 100%);
  border-bottom: 1px solid var(--w0000-border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.2rem; z-index: 1000; transition: var(--w0000-transition);
}
.w0000-header-scrolled { background: linear-gradient(135deg, #1A1A1A 0%, #2C2C2C 100%); box-shadow: var(--w0000-shadow); }
.w0000-logo { display: flex; align-items: center; gap: 0.6rem; }
.w0000-logo img { width: 30px; height: 30px; border-radius: 6px; }
.w0000-logo-text {
  font-size: 1.5rem; font-weight: 700;
  background: linear-gradient(90deg, var(--w0000-primary), var(--w0000-secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.w0000-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.w0000-menu-btn {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  font-size: 2.1rem; color: var(--w0000-text); border-radius: var(--w0000-radius-sm);
}
.w0000-menu-btn:active { background: rgba(255, 138, 128, 0.15); }

/* Buttons */
.w0000-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.7rem 1.3rem; font-size: 1.3rem; font-weight: 600;
  border-radius: var(--w0000-radius-sm); transition: var(--w0000-transition);
  min-height: 38px; white-space: nowrap; line-height: 1.2;
}
.w0000-btn-primary {
  background: linear-gradient(135deg, var(--w0000-primary) 0%, var(--w0000-primary-dark) 100%);
  color: #fff; box-shadow: var(--w0000-shadow-coral);
}
.w0000-btn-primary:hover, .w0000-btn-primary:focus { color: #fff; transform: translateY(-2px); box-shadow: 0 8px 26px rgba(255, 138, 128, 0.55); }
.w0000-btn-outline { background: transparent; color: var(--w0000-secondary); border: 1.5px solid var(--w0000-secondary); }
.w0000-btn-outline:hover, .w0000-btn-outline:focus { background: var(--w0000-secondary); color: var(--w0000-bg-dark); }
.w0000-btn-ghost { background: rgba(255, 255, 255, 0.10); color: var(--w0000-text); }
.w0000-btn-ghost:hover, .w0000-btn-ghost:focus { background: rgba(255, 255, 255, 0.20); color: var(--w0000-text); }
.w0000-btn-lg { padding: 1.2rem 2.2rem; font-size: 1.6rem; min-height: 50px; width: 100%; }

/* Mobile slide menu */
.w0000-mobile-menu {
  position: fixed; top: 0; right: -100%; width: 82%; max-width: 320px; height: 100vh;
  background: linear-gradient(180deg, #2A2A2A, #1A1A1A); z-index: 9999;
  transition: right 0.3s ease; padding: 2rem 1.5rem; overflow-y: auto;
}
.w0000-mobile-menu.w0000-menu-open { right: 0; }
.w0000-menu-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); z-index: 9998;
  opacity: 0; visibility: hidden; transition: var(--w0000-transition);
}
.w0000-menu-overlay.w0000-active { opacity: 1; visibility: visible; }
.w0000-menu-close {
  position: absolute; top: 1rem; right: 1.2rem; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center; font-size: 2.2rem; color: var(--w0000-text);
}
.w0000-menu-title { font-size: 1.8rem; font-weight: 700; color: var(--w0000-primary); margin-bottom: 0.4rem; }
.w0000-menu-sub { font-size: 1.2rem; color: var(--w0000-text-dim); margin-bottom: 1.6rem; }
.w0000-menu-list { margin-top: 0.4rem; }
.w0000-menu-list li { border-bottom: 1px solid var(--w0000-border); }
.w0000-menu-list a {
  display: flex; align-items: center; gap: 0.8rem; padding: 1.3rem 0.5rem;
  font-size: 1.5rem; color: var(--w0000-text); font-weight: 500;
}
.w0000-menu-list a:hover { color: var(--w0000-primary); padding-left: 1rem; }
.w0000-menu-list a i, .w0000-menu-list a .material-icons-outlined { color: var(--w0000-primary); font-size: 1.8rem; }

/* Carousel */
.w0000-carousel {
  position: relative; width: 100%; border-radius: var(--w0000-radius); overflow: hidden;
  margin: 1rem 0; box-shadow: var(--w0000-shadow);
}
.w0000-carousel-track { position: relative; width: 100%; aspect-ratio: 16 / 7; }
.w0000-carousel-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease; cursor: pointer;
}
.w0000-carousel-slide.w0000-active { opacity: 1; }
.w0000-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.w0000-carousel-overlay {
  position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.78) 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 1.2rem;
}
.w0000-carousel-title { color: #fff; font-size: 1.7rem; font-weight: 700; text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8); }
.w0000-carousel-sub { color: var(--w0000-secondary); font-size: 1.2rem; margin-top: 0.2rem; }
.w0000-carousel-dots {
  position: absolute; bottom: 0.8rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.5rem; z-index: 2;
}
.w0000-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.55);
  transition: var(--w0000-transition); cursor: pointer; border: none;
}
.w0000-carousel-dot.w0000-active { background: var(--w0000-primary); width: 22px; border-radius: 4px; }

/* Hero */
.w0000-hero { padding: 1.4rem 1.2rem 0.4rem; text-align: center; }
.w0000-hero h1 {
  font-size: 2.1rem; line-height: 1.25; margin-bottom: 0.7rem;
  background: linear-gradient(90deg, var(--w0000-primary), var(--w0000-secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.w0000-hero p { color: var(--w0000-text-muted); font-size: 1.4rem; margin-bottom: 1.2rem; }

/* Sections */
.w0000-section { padding: 2rem 1.2rem; }
.w0000-section-title {
  font-size: 1.8rem; font-weight: 700; margin-bottom: 0.4rem;
  display: flex; align-items: center; gap: 0.6rem; color: var(--w0000-text);
}
.w0000-section-title i, .w0000-section-title .material-icons-outlined, .w0000-section-title .bi {
  color: var(--w0000-primary); font-size: 2rem;
}
.w0000-section-subtitle { color: var(--w0000-secondary); font-size: 1.3rem; margin-bottom: 1rem; }
.w0000-text { color: var(--w0000-text-muted); font-size: 1.4rem; line-height: 1.6; margin-bottom: 1rem; }
.w0000-text strong { color: var(--w0000-primary); font-weight: 600; }
.w0000-text a { color: var(--w0000-primary); font-weight: 600; text-decoration: underline; }

/* Game grid */
.w0000-game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.w0000-game-card {
  background: var(--w0000-bg-light); border-radius: var(--w0000-radius-sm); overflow: hidden;
  cursor: pointer; transition: var(--w0000-transition); border: 1px solid var(--w0000-border);
  display: block; color: var(--w0000-text); text-align: center; padding: 0.5rem;
}
.w0000-game-card:hover, .w0000-game-card:focus {
  transform: translateY(-3px); border-color: var(--w0000-primary);
  box-shadow: var(--w0000-shadow-coral); color: var(--w0000-text);
}
.w0000-game-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; margin-bottom: 0.4rem; }
.w0000-game-card-name {
  font-size: 1.1rem; font-weight: 500; color: var(--w0000-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Cards */
.w0000-card {
  background: var(--w0000-bg-light); border-radius: var(--w0000-radius);
  padding: 1.4rem; border: 1px solid var(--w0000-border); margin-bottom: 1rem;
}
.w0000-card h3 { font-size: 1.5rem; margin-bottom: 0.6rem; color: var(--w0000-secondary); }

/* Feature grid */
.w0000-feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
.w0000-feature-card {
  background: linear-gradient(135deg, var(--w0000-bg-light), #3F3F3F);
  border-radius: var(--w0000-radius-sm); padding: 1.2rem; text-align: center;
  border: 1px solid var(--w0000-border);
}
.w0000-feature-card i, .w0000-feature-card .material-icons-outlined, .w0000-feature-card .bi {
  font-size: 2.6rem; color: var(--w0000-primary); margin-bottom: 0.5rem; display: block;
}
.w0000-feature-card h3 { font-size: 1.3rem; margin-bottom: 0.3rem; color: var(--w0000-text); }
.w0000-feature-card p { font-size: 1.2rem; color: var(--w0000-text-muted); line-height: 1.4; }

/* RTP grid */
.w0000-rtp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
.w0000-rtp-item {
  background: var(--w0000-bg-light); border-radius: var(--w0000-radius-sm); padding: 0.8rem 1rem;
  display: flex; justify-content: space-between; align-items: center;
  border-left: 3px solid var(--w0000-primary); font-size: 1.2rem;
}
.w0000-rtp-value { color: var(--w0000-primary); font-weight: 700; }

/* Testimonial */
.w0000-testimonial {
  background: var(--w0000-bg-light); border-radius: var(--w0000-radius); padding: 1.2rem;
  margin-bottom: 0.8rem; border-left: 3px solid var(--w0000-secondary);
}
.w0000-testimonial-text { font-size: 1.3rem; color: var(--w0000-text-muted); font-style: italic; margin-bottom: 0.6rem; }
.w0000-testimonial-author { font-size: 1.2rem; color: var(--w0000-secondary); font-weight: 600; }
.w0000-stars { color: #FFD54F; font-size: 1.3rem; margin-bottom: 0.3rem; }

/* Payment grid */
.w0000-payment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.w0000-payment-item {
  background: var(--w0000-bg-light); border-radius: var(--w0000-radius-sm); padding: 0.9rem;
  text-align: center; font-size: 1.1rem; color: var(--w0000-text); border: 1px solid var(--w0000-border);
}
.w0000-payment-item i, .w0000-payment-item .bi, .w0000-payment-item .material-icons-outlined {
  font-size: 2rem; color: var(--w0000-primary); display: block; margin-bottom: 0.3rem;
}

/* Winners list */
.w0000-winner-item {
  background: var(--w0000-bg-light); border-radius: var(--w0000-radius-sm); padding: 0.8rem 1rem;
  display: flex; justify-content: space-between; align-items: center; font-size: 1.2rem;
  border-left: 3px solid var(--w0000-primary); margin-bottom: 0.5rem;
}
.w0000-winner-name { color: var(--w0000-secondary); font-weight: 600; }
.w0000-winner-amount { color: var(--w0000-primary); font-weight: 700; }

/* Steps */
.w0000-steps { counter-reset: step; }
.w0000-step {
  position: relative; padding: 0.8rem 0.8rem 0.8rem 3.2rem; margin-bottom: 0.7rem;
  background: var(--w0000-bg-light); border-radius: var(--w0000-radius-sm); font-size: 1.3rem; color: var(--w0000-text-muted);
  border-left: 3px solid var(--w0000-secondary);
}
.w0000-step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0.7rem; top: 50%; transform: translateY(-50%);
  width: 2rem; height: 2rem; line-height: 2rem; text-align: center;
  background: var(--w0000-primary); color: #fff; border-radius: 50%; font-size: 1.2rem; font-weight: 700;
}

/* FAQ */
.w0000-faq-item {
  background: var(--w0000-bg-light); border-radius: var(--w0000-radius-sm);
  margin-bottom: 0.6rem; border: 1px solid var(--w0000-border); overflow: hidden;
}
.w0000-faq-q {
  width: 100%; text-align: left; padding: 1.1rem 1.2rem; font-size: 1.4rem; font-weight: 600;
  color: var(--w0000-text); display: flex; justify-content: space-between; align-items: center; gap: 0.6rem;
}
.w0000-faq-q .w0000-faq-icon { color: var(--w0000-primary); font-size: 1.6rem; transition: var(--w0000-transition); }
.w0000-faq-item.w0000-faq-open .w0000-faq-icon { transform: rotate(45deg); }
.w0000-faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; padding: 0 1.2rem; color: var(--w0000-text-muted); }
.w0000-faq-item.w0000-faq-open .w0000-faq-a { max-height: 320px; padding-bottom: 1.1rem; }

/* CTA */
.w0000-cta {
  background: linear-gradient(135deg, var(--w0000-primary), var(--w0000-primary-dark));
  border-radius: var(--w0000-radius); padding: 2rem 1.5rem; text-align: center; margin: 1rem 0; color: #fff;
}
.w0000-cta h3 { font-size: 1.8rem; margin-bottom: 0.5rem; color: #fff; }
.w0000-cta p { font-size: 1.3rem; margin-bottom: 1rem; color: rgba(255, 255, 255, 0.95); }
.w0000-cta .w0000-btn-primary { background: #fff; color: var(--w0000-primary-dark); }

/* Footer */
.w0000-footer { background: var(--w0000-bg-dark); padding: 2.4rem 1.2rem 1rem; border-top: 1px solid var(--w0000-border); }
.w0000-footer-brand {
  font-size: 1.6rem; font-weight: 700;
  background: linear-gradient(90deg, var(--w0000-primary), var(--w0000-secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 0.5rem;
}
.w0000-footer-desc { font-size: 1.2rem; color: var(--w0000-text-muted); margin-bottom: 1.2rem; line-height: 1.5; }
.w0000-footer-promo { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.2rem; }
.w0000-footer-promo .w0000-btn { flex: 1 1 auto; font-size: 1.2rem; padding: 0.6rem 0.8rem; min-height: 34px; }
.w0000-footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.2rem; }
.w0000-footer-links a {
  font-size: 1.2rem; color: var(--w0000-secondary); padding: 0.4rem 0.8rem;
  background: rgba(255, 138, 128, 0.10); border-radius: var(--w0000-radius-sm);
  border: 1px solid rgba(255, 138, 128, 0.20);
}
.w0000-footer-links a:hover { background: var(--w0000-primary); color: #fff; }
.w0000-footer-copyright { text-align: center; padding-top: 1.2rem; border-top: 1px solid var(--w0000-border); font-size: 1.1rem; color: var(--w0000-text-dim); }

/* Bottom navigation */
.w0000-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--w0000-max-w); height: var(--w0000-bottom-nav-h);
  background: linear-gradient(180deg, #2D2D2D, #181818); border-top: 1px solid var(--w0000-border);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000; box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.45);
}
.w0000-bottom-nav-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding: 0.4rem; min-height: var(--w0000-bottom-nav-h);
  color: var(--w0000-text-muted); font-size: 1rem; transition: var(--w0000-transition); position: relative;
}
.w0000-bottom-nav-btn i, .w0000-bottom-nav-btn .material-icons-outlined, .w0000-bottom-nav-btn .bi, .w0000-bottom-nav-btn ion-icon {
  font-size: 2.2rem; transition: var(--w0000-transition);
}
.w0000-bottom-nav-btn ion-icon { width: 2.2rem; height: 2.2rem; }
.w0000-bottom-nav-btn:hover, .w0000-bottom-nav-btn:focus, .w0000-bottom-nav-btn.w0000-nav-active { color: var(--w0000-primary); }
.w0000-bottom-nav-btn.w0000-nav-active::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 30px; height: 3px; background: var(--w0000-primary); border-radius: 0 0 4px 4px;
}
.w0000-bottom-nav-btn:active i, .w0000-bottom-nav-btn:active .material-icons-outlined, .w0000-bottom-nav-btn:active .bi { transform: scale(1.15); }

/* Helpers */
.w0000-no-scroll { overflow: hidden; }
.w0000-reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.w0000-reveal.w0000-revealed { opacity: 1; transform: translateY(0); }
.w0000-highlight-link { color: var(--w0000-primary); font-weight: 700; text-decoration: underline; }
.w0000-tag {
  display: inline-block; padding: 0.2rem 0.7rem; font-size: 1rem; border-radius: 4px;
  background: rgba(255, 138, 128, 0.20); color: var(--w0000-primary); margin-right: 0.4rem; font-weight: 600;
}
.w0000-divider { height: 1px; background: var(--w0000-border); margin: 1.4rem 0; }

/* Responsive */
@media (min-width: 769px) {
  .w0000-bottom-nav { display: none; }
  .w0000-main { padding-bottom: 2rem; }
  body { max-width: var(--w0000-max-w); }
}
@media (max-width: 360px) {
  .w0000-game-grid { grid-template-columns: repeat(2, 1fr); }
  .w0000-hero h1 { font-size: 1.8rem; }
}
