/**
 * bb22 winner - Layout Stylesheet
 * Prefix: v228-
 * Colors: #1C2833 (bg) | #800080 (primary) | #BA55D3 (accent)
 * Mobile-first design, max-width 430px
 */

:root {
  --v228-primary: #800080;
  --v228-accent: #BA55D3;
  --v228-bg: #1C2833;
  --v228-bg-light: #2C3E50;
  --v228-bg-card: #1a2332;
  --v228-text: #E8DAEF;
  --v228-text-bright: #FFFFFF;
  --v228-text-muted: #AEB6BF;
  --v228-border: #34495E;
  --v228-gold: #F4D03F;
  --v228-radius: 8px;
  --v228-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

/* Base Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--v228-bg);
  color: var(--v228-text);
  line-height: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--v228-accent); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* === HEADER === */
.v228-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, var(--v228-bg) 0%, #0d1520 100%);
  border-bottom: 1px solid var(--v228-primary);
  max-width: 430px; margin: 0 auto;
  padding: 0.8rem 1rem;
  display: flex; align-items: center; justify-content: space-between;
}
.v228-logo-area {
  display: flex; align-items: center; gap: 0.6rem;
}
.v228-logo-area img { width: 28px; height: 28px; border-radius: 4px; }
.v228-logo-area span {
  font-size: 1.5rem; font-weight: 700; color: var(--v228-accent);
  letter-spacing: 0.5px;
}
.v228-header-actions {
  display: flex; align-items: center; gap: 0.6rem;
}
.v228-btn-register, .v228-btn-login {
  padding: 0.5rem 1.2rem; border-radius: 20px; font-size: 1.2rem;
  font-weight: 600; cursor: pointer; border: none; transition: all 0.3s;
}
.v228-btn-register {
  background: linear-gradient(135deg, var(--v228-accent), var(--v228-primary));
  color: #fff;
}
.v228-btn-register:hover { transform: scale(1.05); box-shadow: 0 0 12px rgba(186,85,211,0.5); }
.v228-btn-login {
  background: transparent; border: 1.5px solid var(--v228-accent);
  color: var(--v228-accent);
}
.v228-btn-login:hover { background: rgba(186,85,211,0.15); }
.v228-menu-toggle {
  background: none; border: none; color: var(--v228-accent);
  font-size: 2rem; cursor: pointer; padding: 0.2rem;
}

/* === MOBILE MENU === */
.v228-menu-overlay {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); z-index: 9998;
}
.v228-overlay-active { display: block; }
.v228-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 260px; height: 100vh;
  background: var(--v228-bg); z-index: 9999;
  transition: right 0.35s ease; padding: 2rem 1.5rem;
  border-left: 1px solid var(--v228-primary);
}
.v228-menu-active { right: 0; }
.v228-menu-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none; color: var(--v228-text);
  font-size: 2rem; cursor: pointer;
}
.v228-mobile-menu nav { margin-top: 3rem; }
.v228-mobile-menu nav a {
  display: block; padding: 1rem 0; font-size: 1.4rem;
  color: var(--v228-text); border-bottom: 1px solid var(--v228-border);
  transition: color 0.2s;
}
.v228-mobile-menu nav a:hover { color: var(--v228-accent); }

/* === CAROUSEL === */
.v228-carousel {
  position: relative; width: 100%; overflow: hidden;
  margin-top: 5.2rem; border-radius: 0 0 var(--v228-radius) var(--v228-radius);
}
.v228-carousel-slide {
  display: none; width: 100%; cursor: pointer;
}
.v228-carousel-slide img {
  width: 100%; height: auto; min-height: 160px; object-fit: cover;
}
.v228-carousel-dots {
  position: absolute; bottom: 8px; left: 50%;
  transform: translateX(-50%); display: flex; gap: 6px;
}
.v228-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer;
  transition: background 0.3s;
}
.v228-dot-active { background: var(--v228-accent); }

/* === MAIN CONTENT === */
.v228-main {
  padding: 1rem; padding-bottom: 7rem;
}
.v228-section {
  margin-bottom: 2rem;
}
.v228-section-title {
  font-size: 1.8rem; font-weight: 700; color: var(--v228-accent);
  margin-bottom: 1rem; padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--v228-primary);
  display: flex; align-items: center; gap: 0.5rem;
}
.v228-section-title i { font-size: 2rem; }

/* === GAME GRID === */
.v228-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.v228-game-card {
  text-align: center; cursor: pointer; transition: transform 0.2s;
  background: var(--v228-bg-card); border-radius: var(--v228-radius);
  padding: 0.5rem; border: 1px solid var(--v228-border);
}
.v228-game-card:hover { transform: scale(1.05); border-color: var(--v228-accent); }
.v228-game-card img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 6px; margin-bottom: 0.3rem;
}
.v228-game-card span {
  font-size: 1rem; color: var(--v228-text); display: block;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* === CONTENT CARD === */
.v228-content-card {
  background: var(--v228-bg-card); border-radius: var(--v228-radius);
  padding: 1.5rem; margin-bottom: 1.5rem;
  border: 1px solid var(--v228-border);
}
.v228-content-card h2 {
  font-size: 1.6rem; color: var(--v228-accent); margin-bottom: 0.8rem;
}
.v228-content-card h3 {
  font-size: 1.4rem; color: var(--v228-accent); margin-bottom: 0.6rem;
}
.v228-content-card p {
  font-size: 1.3rem; color: var(--v228-text); margin-bottom: 0.8rem;
  line-height: 1.8rem;
}
.v228-content-card ul { padding-left: 1.5rem; margin-bottom: 0.8rem; }
.v228-content-card li {
  font-size: 1.3rem; color: var(--v228-text); margin-bottom: 0.4rem;
  list-style: disc; line-height: 1.7rem;
}

/* === PROMO BUTTON === */
.v228-promo-btn {
  display: inline-block; padding: 0.8rem 2rem;
  background: linear-gradient(135deg, var(--v228-primary), var(--v228-accent));
  color: #fff; font-size: 1.3rem; font-weight: 700;
  border-radius: 25px; cursor: pointer; border: none;
  transition: all 0.3s; text-align: center;
  box-shadow: 0 3px 10px rgba(128,0,128,0.4);
}
.v228-promo-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 20px rgba(186,85,211,0.6); }
.v228-promo-link {
  color: var(--v228-accent); font-weight: 600; cursor: pointer;
  text-decoration: underline; transition: color 0.2s;
}
.v228-promo-link:hover { color: var(--v228-gold); }

/* === PAYMENT & FEATURES === */
.v228-features-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
}
.v228-feature-item {
  background: var(--v228-bg-card); border-radius: var(--v228-radius);
  padding: 1rem; text-align: center; border: 1px solid var(--v228-border);
}
.v228-feature-item i { font-size: 2.4rem; color: var(--v228-accent); margin-bottom: 0.5rem; display: block; }
.v228-feature-item span { font-size: 1.2rem; color: var(--v228-text); }
.v228-payment-icons {
  display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap;
  padding: 1rem 0;
}
.v228-payment-item {
  background: var(--v228-bg-card); border-radius: var(--v228-radius);
  padding: 0.6rem 1.2rem; font-size: 1.2rem; color: var(--v228-text);
  border: 1px solid var(--v228-border);
}

/* === WINNER TABLE === */
.v228-winner-table {
  width: 100%; border-collapse: collapse; font-size: 1.2rem;
}
.v228-winner-table th {
  background: var(--v228-primary); color: #fff; padding: 0.6rem;
  text-align: left; font-size: 1.1rem;
}
.v228-winner-table td {
  padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--v228-border);
  color: var(--v228-text);
}
.v228-winner-table tr:nth-child(even) { background: rgba(128,0,128,0.08); }

/* === FOOTER === */
.v228-footer {
  background: linear-gradient(180deg, var(--v228-bg), #0a0f18);
  padding: 2rem 1rem 8rem; text-align: center;
  border-top: 1px solid var(--v228-primary);
}
.v228-footer-brand {
  font-size: 1.3rem; color: var(--v228-text-muted); margin-bottom: 1.5rem;
  line-height: 1.8rem;
}
.v228-footer-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem;
  margin-bottom: 1.5rem;
}
.v228-footer-links a {
  font-size: 1.2rem; color: var(--v228-accent); padding: 0.3rem 0.6rem;
  transition: color 0.2s;
}
.v228-footer-links a:hover { color: var(--v228-gold); }
.v228-footer-copy {
  font-size: 1.1rem; color: var(--v228-text-muted); margin-top: 1rem;
}

/* === BOTTOM NAV === */
.v228-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, rgba(28,40,51,0.98), rgba(10,15,24,0.99));
  border-top: 1px solid var(--v228-primary);
  max-width: 430px; margin: 0 auto;
  display: flex; justify-content: space-around; align-items: center;
  height: 60px; padding: 0 0.3rem;
  backdrop-filter: blur(10px);
}
.v228-bottom-nav-btn {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; background: none; border: none;
  color: var(--v228-text-muted); cursor: pointer;
  min-width: 60px; min-height: 48px; transition: all 0.25s;
  position: relative; border-radius: 8px;
}
.v228-bottom-nav-btn:hover, .v228-bottom-nav-btn:focus {
  color: var(--v228-accent); transform: scale(1.1);
}
.v228-bottom-nav-btn .material-icons,
.v228-bottom-nav-btn i {
  font-size: 22px; margin-bottom: 2px;
}
.v228-bottom-nav-btn span {
  font-size: 1rem; font-weight: 500;
}
.v228-nav-active {
  color: var(--v228-accent) !important;
  background: rgba(186,85,211,0.12);
}
.v228-nav-active::after {
  content: ''; position: absolute; top: -1px; left: 25%; right: 25%;
  height: 2px; background: var(--v228-accent); border-radius: 2px;
}

/* === HELP PAGE === */
.v228-help-content { padding: 1rem; padding-bottom: 7rem; }
.v228-help-content h1 {
  font-size: 1.8rem; color: var(--v228-accent); margin-bottom: 1rem;
  padding-bottom: 0.5rem; border-bottom: 2px solid var(--v228-primary);
}
.v228-help-content h2 {
  font-size: 1.5rem; color: var(--v228-accent); margin: 1.2rem 0 0.6rem;
}
.v228-help-content p {
  font-size: 1.3rem; color: var(--v228-text); margin-bottom: 0.8rem;
  line-height: 1.8rem;
}
.v228-faq-item {
  background: var(--v228-bg-card); border-radius: var(--v228-radius);
  padding: 1rem 1.2rem; margin-bottom: 0.8rem;
  border: 1px solid var(--v228-border);
}
.v228-faq-item strong {
  display: block; font-size: 1.3rem; color: var(--v228-accent);
  margin-bottom: 0.4rem;
}
.v228-faq-item p {
  font-size: 1.2rem; color: var(--v228-text); line-height: 1.7rem;
}

/* === RESPONSIVE === */
@media (min-width: 769px) {
  .v228-bottom-nav { display: none; }
  .v228-header { max-width: 430px; }
}
@media (max-width: 768px) {
  .v228-main { padding-bottom: 7rem; }
  .v228-game-grid { grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
}
@media (max-width: 360px) {
  .v228-game-grid { grid-template-columns: repeat(3, 1fr); }
  .v228-btn-register, .v228-btn-login { padding: 0.4rem 0.8rem; font-size: 1.1rem; }
}
