/* css/layout.css - Lucky Taya Layout Styles
   All custom classes use v144- prefix for namespace isolation
   Color palette: #0D1117 (bg) | #FFA500 (accent) | #C0C0C0 / #CCCCCC (text) */

:root {
  --v144-bg: #0D1117;
  --v144-bg-alt: #161B22;
  --v144-bg-card: #1C2330;
  --v144-primary: #FFA500;
  --v144-primary-dark: #CC8400;
  --v144-text: #CCCCCC;
  --v144-text-light: #C0C0C0;
  --v144-text-bright: #FFFFFF;
  --v144-border: #30363D;
  --v144-success: #3FB950;
  --v144-gradient: linear-gradient(135deg, #FFA500 0%, #FF6B00 100%);
  --v144-header-h: 6rem;
  --v144-bottomnav-h: 6.4rem;
  --v144-radius: 0.8rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--v144-bg);
  color: var(--v144-text);
  line-height: 1.5;
  font-size: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--v144-primary); text-decoration: none; }
ul { list-style: none; }

.v144-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.v144-wrapper { padding: 2rem 0; }
.v144-text-center { text-align: center; }
.v144-text-primary { color: var(--v144-primary); font-weight: 700; }
.v144-promo-link { color: var(--v144-primary); font-weight: 700; }
.v144-mt-1 { margin-top: 0.8rem; }
.v144-mt-2 { margin-top: 1.6rem; }
.v144-mb-1 { margin-bottom: 0.8rem; }
.v144-mb-2 { margin-bottom: 1.6rem; }

/* Header */
.v144-header {
  position: fixed;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  background: rgba(13, 17, 23, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--v144-border);
  z-index: 1000;
  padding: 0.8rem 1.2rem;
}
.v144-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.v144-logo { display: flex; align-items: center; gap: 0.6rem; }
.v144-logo img { width: 2.8rem; height: 2.8rem; border-radius: 0.4rem; }
.v144-logo-text { font-size: 1.6rem; font-weight: 800; color: var(--v144-text-bright); letter-spacing: 0.3px; }
.v144-logo-text span { color: var(--v144-primary); }
.v144-header-actions { display: flex; align-items: center; gap: 0.6rem; }

.v144-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--v144-radius);
  font-size: 1.3rem; font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
  border: none;
  min-height: 3.6rem;
}
.v144-btn:active { transform: scale(0.96); }
.v144-btn-primary { background: var(--v144-gradient); color: #0D1117; }
.v144-btn-outline { background: transparent; border: 1px solid var(--v144-primary); color: var(--v144-primary); }
.v144-btn-block { width: 100%; }
.v144-btn-lg { padding: 1rem 2rem; font-size: 1.5rem; min-height: 4.4rem; }

.v144-menu-btn { background: transparent; border: none; color: var(--v144-text); font-size: 2rem; cursor: pointer; padding: 0.5rem; min-width: 4.4rem; min-height: 4.4rem; }

/* Mobile menu */
.v144-mobile-menu {
  position: fixed; top: 0; right: -100%;
  width: 80%; max-width: 320px; height: 100vh;
  background: var(--v144-bg-alt);
  padding: 6rem 1.5rem 2rem;
  transition: right 0.3s ease;
  z-index: 9999;
  overflow-y: auto;
  border-left: 1px solid var(--v144-border);
}
.v144-mobile-menu.v144-active { right: 0; }
.v144-mobile-menu h3 { color: var(--v144-primary); font-size: 1.4rem; margin: 1.5rem 0 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; }
.v144-mobile-menu a { display: block; padding: 1rem 0.8rem; color: var(--v144-text); border-bottom: 1px solid rgba(48, 54, 61, 0.5); font-size: 1.4rem; }
.v144-mobile-menu a:hover, .v144-mobile-menu a:active { color: var(--v144-primary); }
.v144-menu-close { position: absolute; top: 1.2rem; right: 1.2rem; background: transparent; border: none; color: var(--v144-text); font-size: 2rem; cursor: pointer; min-width: 4.4rem; min-height: 4.4rem; }
.v144-menu-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); opacity: 0; pointer-events: none; transition: opacity 0.3s ease; z-index: 9998; }
.v144-menu-overlay.v144-active { opacity: 1; pointer-events: auto; }

/* Main */
.v144-main { padding-top: var(--v144-header-h); padding-bottom: calc(var(--v144-bottomnav-h) + 1rem); }

/* Carousel */
.v144-carousel { position: relative; width: 100%; height: 18rem; border-radius: var(--v144-radius); overflow: hidden; margin-bottom: 1.5rem; }
.v144-carousel-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease; cursor: pointer; }
.v144-carousel-slide.v144-active { opacity: 1; }
.v144-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.v144-carousel-dots { position: absolute; bottom: 1rem; left: 0; right: 0; display: flex; justify-content: center; gap: 0.5rem; }
.v144-carousel-dot { width: 0.8rem; height: 0.8rem; border-radius: 50%; background: rgba(255,255,255,0.4); border: none; cursor: pointer; padding: 0; }
.v144-carousel-dot.v144-active { background: var(--v144-primary); width: 2rem; border-radius: 0.4rem; }

/* Section */
.v144-section { margin-bottom: 2.5rem; }
.v144-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.v144-section-title { font-size: 1.8rem; font-weight: 800; color: var(--v144-text-bright); border-left: 3px solid var(--v144-primary); padding-left: 0.8rem; }
.v144-section-more { color: var(--v144-primary); font-size: 1.2rem; }

/* H1 */
.v144-h1-title { font-size: 2.2rem; font-weight: 800; color: var(--v144-text-bright); text-align: center; margin: 1.5rem 0 0.5rem; padding: 0 1rem; }
.v144-h1-title span { color: var(--v144-primary); }
.v144-h1-sub { text-align: center; color: var(--v144-text); font-size: 1.3rem; margin-bottom: 1.5rem; padding: 0 1rem; }

/* Game grid */
.v144-game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.v144-game-card { background: var(--v144-bg-card); border-radius: var(--v144-radius); overflow: hidden; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease; position: relative; }
.v144-game-card:active { transform: scale(0.95); }
.v144-game-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.v144-game-card-name { padding: 0.5rem; font-size: 1.1rem; color: var(--v144-text-light); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v144-game-card-hot { position: absolute; top: 0.3rem; right: 0.3rem; background: var(--v144-primary); color: #0D1117; font-size: 0.9rem; font-weight: 700; padding: 0.15rem 0.4rem; border-radius: 0.3rem; }

/* Info card */
.v144-info-card { background: var(--v144-bg-card); border-radius: var(--v144-radius); padding: 1.5rem; margin-bottom: 1.2rem; border: 1px solid var(--v144-border); }
.v144-info-card h2 { color: var(--v144-text-bright); font-size: 1.7rem; margin-bottom: 0.8rem; }
.v144-info-card h3 { color: var(--v144-primary); font-size: 1.4rem; margin: 1rem 0 0.5rem; }
.v144-info-card p { color: var(--v144-text); font-size: 1.3rem; line-height: 1.6; margin-bottom: 0.6rem; }

/* Promo banner */
.v144-promo-banner { background: var(--v144-gradient); border-radius: var(--v144-radius); padding: 1.2rem; text-align: center; margin: 1.2rem 0; cursor: pointer; }
.v144-promo-banner h3 { color: #0D1117; font-size: 1.6rem; font-weight: 800; margin-bottom: 0.3rem; }
.v144-promo-banner p { color: #0D1117; font-size: 1.2rem; }
.v144-promo-banner:active { transform: scale(0.98); }

/* List */
.v144-list li { padding: 0.8rem 0; border-bottom: 1px solid rgba(48, 54, 61, 0.5); font-size: 1.3rem; color: var(--v144-text); }
.v144-list li i { color: var(--v144-primary); margin-right: 0.6rem; }
.v144-steps { counter-reset: step; }
.v144-steps li { padding: 0.8rem 0 0.8rem 3rem; position: relative; font-size: 1.3rem; color: var(--v144-text); border-bottom: 1px solid rgba(48, 54, 61, 0.3); }
.v144-steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0.6rem; width: 2.2rem; height: 2.2rem; background: var(--v144-gradient); color: #0D1117; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; }

/* FAQ */
.v144-faq-item { background: var(--v144-bg-card); border-radius: var(--v144-radius); margin-bottom: 0.6rem; overflow: hidden; border: 1px solid var(--v144-border); }
.v144-faq-q { padding: 1rem; cursor: pointer; font-weight: 600; color: var(--v144-text-bright); display: flex; justify-content: space-between; align-items: center; font-size: 1.3rem; }
.v144-faq-q .v144-faq-icon { color: var(--v144-primary); transition: transform 0.3s ease; }
.v144-faq-item.v144-open .v144-faq-icon { transform: rotate(45deg); }
.v144-faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; padding: 0 1rem; color: var(--v144-text); font-size: 1.2rem; line-height: 1.6; }
.v144-faq-item.v144-open .v144-faq-a { max-height: 40rem; padding: 0 1rem 1rem; }

/* Winner showcase */
.v144-winner { display: flex; align-items: center; gap: 0.8rem; padding: 0.8rem; background: var(--v144-bg-card); border-radius: var(--v144-radius); margin-bottom: 0.5rem; }
.v144-winner-avatar { width: 3rem; height: 3rem; border-radius: 50%; background: var(--v144-gradient); display: flex; align-items: center; justify-content: center; font-weight: 800; color: #0D1117; font-size: 1.2rem; flex-shrink: 0; }
.v144-winner-info { flex: 1; min-width: 0; }
.v144-winner-name { color: var(--v144-text-bright); font-weight: 700; font-size: 1.3rem; }
.v144-winner-amount { color: var(--v144-primary); font-weight: 800; font-size: 1.3rem; }
.v144-winner-game { color: var(--v144-text); font-size: 1.1rem; }

/* Payment grid */
.v144-payment-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.v144-payment-item { background: var(--v144-bg-card); border-radius: 0.5rem; padding: 0.8rem 0.4rem; text-align: center; font-size: 1rem; color: var(--v144-text-light); }
.v144-payment-item i { font-size: 1.6rem; color: var(--v144-primary); display: block; margin-bottom: 0.3rem; }

/* Testimonials */
.v144-testimonial { background: var(--v144-bg-card); border-radius: var(--v144-radius); padding: 1.2rem; margin-bottom: 0.8rem; border-left: 3px solid var(--v144-primary); }
.v144-testimonial-text { color: var(--v144-text); font-style: italic; font-size: 1.3rem; margin-bottom: 0.6rem; line-height: 1.6; }
.v144-testimonial-name { color: var(--v144-primary); font-weight: 700; font-size: 1.2rem; }
.v144-testimonial-stars { color: #FFD700; font-size: 1.1rem; margin-bottom: 0.3rem; }

/* RTP */
.v144-rtp-row { margin-bottom: 0.8rem; }
.v144-rtp-label { display: flex; justify-content: space-between; font-size: 1.2rem; color: var(--v144-text-light); margin-bottom: 0.3rem; }
.v144-rtp-bar { height: 0.9rem; background: var(--v144-bg-card); border-radius: 0.4rem; overflow: hidden; border: 1px solid var(--v144-border); }
.v144-rtp-fill { height: 100%; background: var(--v144-gradient); border-radius: 0.4rem; }

/* Feature grid */
.v144-feature-grid { display: grid; grid-template-columns: 1fr; gap: 0.8rem; }
.v144-feature-item { background: var(--v144-bg-card); border-radius: var(--v144-radius); padding: 1.2rem; display: flex; gap: 1rem; align-items: flex-start; border: 1px solid var(--v144-border); }
.v144-feature-icon { width: 3.4rem; height: 3.4rem; border-radius: 0.6rem; background: rgba(255,165,0,0.12); display: flex; align-items: center; justify-content: center; color: var(--v144-primary); font-size: 1.8rem; flex-shrink: 0; }
.v144-feature-text h4 { color: var(--v144-text-bright); font-size: 1.4rem; margin-bottom: 0.3rem; }
.v144-feature-text p { color: var(--v144-text); font-size: 1.2rem; line-height: 1.5; }

/* Footer */
.v144-footer { background: var(--v144-bg-alt); border-top: 1px solid var(--v144-border); padding: 2rem 1.2rem; margin-top: 2rem; }
.v144-footer-brand { font-size: 1.3rem; color: var(--v144-text); margin-bottom: 1rem; line-height: 1.6; }
.v144-footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-bottom: 1.2rem; }
.v144-footer-links a { font-size: 1.2rem; color: var(--v144-text-light); padding: 0.3rem 0; }
.v144-footer-links a:hover { color: var(--v144-primary); }
.v144-footer-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.v144-footer-buttons button { flex: 1 1 auto; min-height: 3.6rem; padding: 0.6rem 1rem; background: var(--v144-gradient); color: #0D1117; border: none; border-radius: var(--v144-radius); font-weight: 700; font-size: 1.2rem; cursor: pointer; }
.v144-footer-buttons button:active { transform: scale(0.97); }
.v144-footer-copy { text-align: center; font-size: 1.1rem; color: var(--v144-text); opacity: 0.7; border-top: 1px solid var(--v144-border); padding-top: 1rem; margin-top: 1rem; }

/* Bottom nav */
.v144-bottom-nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 430px; height: var(--v144-bottomnav-h); background: var(--v144-bg-alt); border-top: 1px solid var(--v144-border); display: flex; justify-content: space-around; align-items: center; z-index: 1000; padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -4px 12px rgba(0,0,0,0.3); }
.v144-bottom-nav-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem; min-width: 6rem; min-height: 5.6rem; background: transparent; border: none; color: var(--v144-text); cursor: pointer; font-size: 1rem; flex: 1; transition: color 0.15s ease, transform 0.15s ease; padding: 0.4rem; font-family: inherit; }
.v144-bottom-nav-btn .material-icons, .v144-bottom-nav-btn i { font-size: 2.2rem; }
.v144-bottom-nav-btn:hover, .v144-bottom-nav-btn.v144-current { color: var(--v144-primary); }
.v144-bottom-nav-btn.v144-current::before { content: ''; position: absolute; top: 0; width: 2.4rem; height: 0.3rem; background: var(--v144-primary); border-radius: 0 0 0.3rem 0.3rem; }
.v144-bottom-nav-btn:active { transform: scale(0.92); }
.v144-bottom-nav-btn { position: relative; }
.v144-bottom-nav-badge { position: absolute; top: 0.5rem; right: 1.2rem; background: #FF3B30; 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; }

/* Download CTA */
.v144-download-cta { background: linear-gradient(135deg, #1C2330 0%, #0D1117 100%); border: 1px solid var(--v144-primary); border-radius: var(--v144-radius); padding: 1.5rem; text-align: center; margin: 1.2rem 0; }
.v144-download-cta h3 { color: var(--v144-primary); font-size: 1.6rem; margin-bottom: 0.5rem; }
.v144-download-cta p { color: var(--v144-text); font-size: 1.2rem; margin-bottom: 1rem; }
.v144-download-buttons { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }

/* Achievements */
.v144-achievement { display: flex; align-items: center; gap: 0.8rem; padding: 0.8rem; background: var(--v144-bg-card); border-radius: 0.6rem; margin-bottom: 0.5rem; }
.v144-achievement-icon { font-size: 1.8rem; color: var(--v144-primary); }
.v144-achievement-title { color: var(--v144-text-bright); font-weight: 700; font-size: 1.3rem; }
.v144-achievement-desc { color: var(--v144-text); font-size: 1.1rem; }

/* Tricks */
.v144-trick { background: var(--v144-bg-card); border-left: 3px solid var(--v144-primary); padding: 1rem 1.2rem; border-radius: 0.4rem; margin-bottom: 0.6rem; }
.v144-trick h4 { color: var(--v144-text-bright); font-size: 1.3rem; margin-bottom: 0.3rem; }
.v144-trick p { color: var(--v144-text); font-size: 1.2rem; line-height: 1.5; }

/* Category highlights */
.v144-cat-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.v144-cat-card { background: var(--v144-bg-card); border-radius: var(--v144-radius); padding: 1rem; text-align: center; cursor: pointer; border: 1px solid var(--v144-border); transition: transform 0.15s ease; }
.v144-cat-card:active { transform: scale(0.96); }
.v144-cat-card i { font-size: 2.2rem; color: var(--v144-primary); margin-bottom: 0.4rem; }
.v144-cat-card h4 { color: var(--v144-text-bright); font-size: 1.3rem; margin-bottom: 0.2rem; }
.v144-cat-card p { color: var(--v144-text); font-size: 1.1rem; }

/* Responsive */
@media (min-width: 769px) {
  .v144-bottom-nav { display: none; }
  body { max-width: 430px; box-shadow: 0 0 20px rgba(0,0,0,0.5); }
}
@media (max-width: 360px) {
  html { font-size: 55%; }
  .v144-game-grid { gap: 0.4rem; }
  .v144-footer-links { grid-template-columns: 1fr; }
}
