/* ace367 Layout CSS - v55f- prefix */
/* Root variables */
:root {
  --v55f-primary: #BA55D3;
  --v55f-secondary: #8A2BE2;
  --v55f-bg: #0D1117;
  --v55f-bg-light: #161B22;
  --v55f-bg-card: #1C2333;
  --v55f-text: #E6EDF3;
  --v55f-text-muted: #8B949E;
  --v55f-border: #30363D;
  --v55f-accent: #DA70D6;
  --v55f-gradient: linear-gradient(135deg, #BA55D3 0%, #8A2BE2 100%);
  --v55f-shadow: 0 4px 12px rgba(138, 43, 226, 0.3);
  --v55f-radius: 12px;
  --v55f-radius-sm: 8px;
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--v55f-bg);
  color: var(--v55f-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--v55f-primary); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* Header */
.v55f-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: 56px;
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--v55f-border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px; z-index: 1000;
}
.v55f-logo { display: flex; align-items: center; gap: 8px; }
.v55f-logo img { width: 32px; height: 32px; border-radius: 6px; }
.v55f-logo-text { font-size: 1.8rem; font-weight: 700; background: var(--v55f-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.v55f-header-btns { display: flex; gap: 8px; }
.v55f-btn-register, .v55f-btn-login {
  border: none; border-radius: 20px; padding: 6px 14px;
  font-size: 1.2rem; font-weight: 600; cursor: pointer; transition: all 0.3s;
}
.v55f-btn-register {
  background: var(--v55f-gradient); color: #fff;
}
.v55f-btn-register:hover { transform: scale(1.05); box-shadow: var(--v55f-shadow); }
.v55f-btn-login {
  background: transparent; color: var(--v55f-primary); border: 1px solid var(--v55f-primary);
}
.v55f-btn-login:hover { background: rgba(186, 85, 211, 0.1); }
.v55f-menu-toggle {
  background: none; border: none; color: var(--v55f-text); font-size: 2rem; cursor: pointer;
  padding: 4px; display: flex; align-items: center;
}

/* Mobile Menu */
.v55f-menu-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6); z-index: 9998; opacity: 0;
  pointer-events: none; transition: opacity 0.3s;
}
.v55f-overlay-active { opacity: 1; pointer-events: auto; }
.v55f-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100%;
  background: var(--v55f-bg-light); z-index: 9999;
  transition: right 0.3s ease; padding: 20px; overflow-y: auto;
}
.v55f-menu-active { right: 0; }
.v55f-menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--v55f-border); }
.v55f-menu-close { background: none; border: none; color: var(--v55f-text); font-size: 2.2rem; cursor: pointer; }
.v55f-menu-nav { list-style: none; }
.v55f-menu-nav li { border-bottom: 1px solid var(--v55f-border); }
.v55f-menu-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 8px; color: var(--v55f-text); font-size: 1.4rem;
  transition: all 0.2s;
}
.v55f-menu-nav a:hover, .v55f-menu-nav a:focus { color: var(--v55f-primary); padding-left: 14px; }
.v55f-menu-nav .material-icons-outlined { font-size: 2rem; color: var(--v55f-primary); }

/* Main Content */
.v55f-main { padding-top: 56px; padding-bottom: 72px; }
.v55f-container { padding: 0 12px; }

/* Carousel */
.v55f-carousel { position: relative; overflow: hidden; border-radius: 0 0 var(--v55f-radius) var(--v55f-radius); }
.v55f-carousel-slide {
  display: none; width: 100%; cursor: pointer; position: relative;
}
.v55f-slide-active { display: block; animation: v55f-fade 0.6s ease; }
@keyframes v55f-fade { from { opacity: 0; } to { opacity: 1; } }
.v55f-carousel-slide img { width: 100%; height: 180px; object-fit: cover; }
.v55f-carousel-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px;
}
.v55f-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4); border: none; cursor: pointer; transition: all 0.3s;
}
.v55f-dot-active { background: var(--v55f-primary); width: 24px; border-radius: 4px; }

/* Section Titles */
.v55f-section { margin: 16px 0; }
.v55f-section-title {
  font-size: 1.8rem; font-weight: 700; margin-bottom: 12px;
  padding-bottom: 8px; border-bottom: 2px solid var(--v55f-secondary);
  display: flex; align-items: center; gap: 8px;
}
.v55f-section-title .material-icons-outlined { font-size: 2.2rem; color: var(--v55f-primary); }

/* Game Grid */
.v55f-game-category { margin-bottom: 20px; }
.v55f-cat-label {
  font-size: 1.5rem; font-weight: 600; margin-bottom: 10px;
  padding: 6px 12px; background: var(--v55f-bg-card); border-radius: var(--v55f-radius-sm);
  border-left: 3px solid var(--v55f-primary); display: inline-block;
}
.v55f-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.v55f-game-item {
  display: flex; flex-direction: column; align-items: center;
  padding: 8px 4px; border-radius: var(--v55f-radius-sm);
  background: var(--v55f-bg-card); cursor: pointer; transition: all 0.3s;
  text-align: center;
}
.v55f-game-item:hover { transform: translateY(-2px); box-shadow: var(--v55f-shadow); background: var(--v55f-bg-light); }
.v55f-game-item img {
  width: 52px; height: 52px; border-radius: 10px;
  margin-bottom: 4px; object-fit: cover;
}
.v55f-game-name {
  font-size: 1rem; color: var(--v55f-text-muted); line-height: 1.2rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 72px;
}

/* Content Cards */
.v55f-card {
  background: var(--v55f-bg-card); border-radius: var(--v55f-radius);
  padding: 16px; margin-bottom: 12px; border: 1px solid var(--v55f-border);
}
.v55f-card-title {
  font-size: 1.6rem; font-weight: 600; margin-bottom: 8px;
  color: var(--v55f-primary);
}
.v55f-card p { color: var(--v55f-text-muted); line-height: 2.1rem; margin-bottom: 8px; font-size: 1.3rem; }

/* Promo Button */
.v55f-promo-btn {
  display: inline-block; padding: 10px 24px; border-radius: 24px;
  background: var(--v55f-gradient); color: #fff; font-weight: 700;
  font-size: 1.4rem; cursor: pointer; border: none;
  transition: all 0.3s; text-align: center;
}
.v55f-promo-btn:hover { transform: scale(1.05); box-shadow: var(--v55f-shadow); }
.v55f-promo-link {
  color: var(--v55f-accent); font-weight: 600; cursor: pointer;
  text-decoration: underline; transition: color 0.2s;
}
.v55f-promo-link:hover { color: var(--v55f-primary); }

/* Info Grid */
.v55f-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.v55f-info-item {
  background: var(--v55f-bg-light); border-radius: var(--v55f-radius-sm);
  padding: 12px; text-align: center; border: 1px solid var(--v55f-border);
}
.v55f-info-label { font-size: 1.1rem; color: var(--v55f-text-muted); }
.v55f-info-value { font-size: 1.6rem; font-weight: 700; color: var(--v55f-primary); }

/* Feature List */
.v55f-feature-list { list-style: none; }
.v55f-feature-list li {
  padding: 8px 0; border-bottom: 1px solid var(--v55f-border);
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 1.3rem; color: var(--v55f-text-muted);
}
.v55f-feature-list li:last-child { border: none; }
.v55f-feature-list .material-icons-outlined { color: var(--v55f-primary); font-size: 1.8rem; flex-shrink: 0; margin-top: 2px; }

/* Winner Ticker */
.v55f-winner-ticker {
  background: var(--v55f-bg-card); border-radius: var(--v55f-radius);
  padding: 10px 14px; margin-bottom: 12px; border: 1px solid var(--v55f-border);
}
.v55f-winner-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0; border-bottom: 1px solid rgba(48,54,61,0.5);
  font-size: 1.2rem;
}
.v55f-winner-row:last-child { border: none; }
.v55f-winner-name { color: var(--v55f-primary); font-weight: 600; }
.v55f-winner-amount { color: #F0B429; font-weight: 700; }
.v55f-winner-game { color: var(--v55f-text-muted); }

/* Testimonial */
.v55f-testimonial {
  background: var(--v55f-bg-card); border-radius: var(--v55f-radius);
  padding: 14px; margin-bottom: 10px; border-left: 3px solid var(--v55f-primary);
}
.v55f-testimonial-text { font-size: 1.3rem; color: var(--v55f-text-muted); font-style: italic; margin-bottom: 6px; }
.v55f-testimonial-author { font-size: 1.1rem; color: var(--v55f-primary); font-weight: 600; }

/* Payment Methods */
.v55f-payment-grid { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.v55f-payment-item {
  background: var(--v55f-bg-light); border-radius: var(--v55f-radius-sm);
  padding: 8px 14px; font-size: 1.2rem; border: 1px solid var(--v55f-border);
  color: var(--v55f-text-muted);
}

/* Bottom Nav */
.v55f-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: 60px;
  background: rgba(13, 17, 23, 0.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--v55f-border);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000; padding: 0 4px;
}
.v55f-bottom-btn {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-width: 60px; min-height: 52px;
  background: none; border: none; cursor: pointer; transition: all 0.3s;
  color: var(--v55f-text-muted); position: relative;
}
.v55f-bottom-btn:hover, .v55f-bottom-btn:focus { color: var(--v55f-primary); transform: scale(1.08); }
.v55f-bottom-btn.v55f-active { color: var(--v55f-primary); }
.v55f-bottom-btn.v55f-active::after {
  content: ''; position: absolute; top: -2px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 3px; background: var(--v55f-primary); border-radius: 2px;
}
.v55f-bottom-btn .material-icons-outlined, .v55f-bottom-btn ion-icon, .v55f-bottom-btn i, .v55f-bottom-btn .bi { font-size: 22px; }
.v55f-bottom-btn span:last-child { font-size: 1rem; margin-top: 2px; }

/* Footer */
.v55f-footer {
  background: var(--v55f-bg-light); padding: 20px 14px;
  border-top: 1px solid var(--v55f-border);
}
.v55f-footer-brand { font-size: 1.3rem; color: var(--v55f-text-muted); margin-bottom: 14px; line-height: 2rem; }
.v55f-footer-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.v55f-footer-link {
  padding: 6px 12px; background: var(--v55f-bg-card); border-radius: 16px;
  font-size: 1.1rem; color: var(--v55f-text-muted); border: 1px solid var(--v55f-border);
  transition: all 0.2s;
}
.v55f-footer-link:hover { color: var(--v55f-primary); border-color: var(--v55f-primary); }
.v55f-footer-promo { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.v55f-footer-promo .v55f-promo-btn { padding: 6px 14px; font-size: 1.2rem; }
.v55f-footer-copy { font-size: 1.1rem; color: var(--v55f-text-muted); text-align: center; padding-top: 10px; border-top: 1px solid var(--v55f-border); }

/* FAQ Accordion */
.v55f-faq-item { margin-bottom: 8px; }
.v55f-faq-q {
  background: var(--v55f-bg-card); padding: 12px 14px; border-radius: var(--v55f-radius-sm);
  font-weight: 600; font-size: 1.3rem; cursor: pointer; display: flex;
  justify-content: space-between; align-items: center;
  border: 1px solid var(--v55f-border); transition: all 0.2s;
}
.v55f-faq-q:hover { border-color: var(--v55f-primary); }
.v55f-faq-q .material-icons-outlined { color: var(--v55f-primary); transition: transform 0.3s; }
.v55f-faq-a {
  padding: 10px 14px; font-size: 1.3rem; color: var(--v55f-text-muted);
  line-height: 2rem; display: none;
}
.v55f-faq-a.v55f-faq-open { display: block; animation: v55f-slideDown 0.3s ease; }
@keyframes v55f-slideDown { from { opacity: 0; max-height: 0; } to { opacity: 1; max-height: 500px; } }

/* Responsive - Desktop */
@media (min-width: 769px) {
  body { max-width: 480px; }
  .v55f-bottom-nav { display: none; }
  .v55f-main { padding-bottom: 20px; }
}
@media (max-width: 768px) {
  .v55f-main { padding-bottom: 72px; }
}

/* Utility */
.v55f-text-center { text-align: center; }
.v55f-mt-8 { margin-top: 8px; }
.v55f-mt-16 { margin-top: 16px; }
.v55f-mb-8 { margin-bottom: 8px; }
.v55f-mb-16 { margin-bottom: 16px; }
.v55f-hidden { display: none; }
