/**
 * 333ok bit - Main Stylesheet
 * Prefix: w1d56-
 * CSS variables use --w1d56- prefix
 * Colors: #212F3D | #F0F0F0 | #FFF176 | #2E8B57 | #008000 | #00FA9A
 */

:root {
  --w1d56-bg: #212F3D;
  --w1d56-bg-dark: #1a252f;
  --w1d56-bg-card: #2a3d4e;
  --w1d56-bg-card-hover: #334d63;
  --w1d56-text: #F0F0F0;
  --w1d56-text-muted: #a0b0c0;
  --w1d56-primary: #008000;
  --w1d56-primary-light: #2E8B57;
  --w1d56-accent: #FFF176;
  --w1d56-accent-green: #00FA9A;
  --w1d56-border: #3a5060;
  --w1d56-radius: 1rem;
  --w1d56-radius-sm: 0.6rem;
  --w1d56-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  --w1d56-transition: all 0.3s ease;
  --w1d56-font-size: 62.5%;
}

html {
  font-size: var(--w1d56-font-size);
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--w1d56-bg);
  color: var(--w1d56-text);
  line-height: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ========== HEADER ========== */
.w1d56-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: var(--w1d56-bg-dark);
  border-bottom: 2px solid var(--w1d56-primary);
  z-index: 1000;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.w1d56-header-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.w1d56-header-logo img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.w1d56-header-logo span {
  color: var(--w1d56-accent);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.w1d56-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.w1d56-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.2rem;
  border: none;
  border-radius: var(--w1d56-radius-sm);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--w1d56-transition);
  text-decoration: none;
  min-height: 34px;
}

.w1d56-btn-register {
  background: var(--w1d56-accent);
  color: var(--w1d56-bg-dark);
}

.w1d56-btn-register:hover {
  background: #ffe94e;
  transform: scale(1.05);
}

.w1d56-btn-login {
  background: var(--w1d56-primary);
  color: var(--w1d56-text);
}

.w1d56-btn-login:hover {
  background: var(--w1d56-primary-light);
  transform: scale(1.05);
}

.w1d56-menu-toggle {
  background: none;
  border: none;
  color: var(--w1d56-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========== MOBILE MENU ========== */
.w1d56-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: var(--w1d56-bg-dark);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

.w1d56-menu-active {
  right: 0 !important;
}

.w1d56-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.w1d56-overlay-active {
  opacity: 1 !important;
  pointer-events: all !important;
}

.w1d56-menu-close {
  background: none;
  border: none;
  color: var(--w1d56-text);
  font-size: 2.2rem;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.w1d56-menu-list {
  list-style: none;
  margin-top: 2rem;
}

.w1d56-menu-list li {
  border-bottom: 1px solid var(--w1d56-border);
}

.w1d56-menu-list a {
  display: block;
  padding: 1rem 0;
  color: var(--w1d56-text);
  text-decoration: none;
  font-size: 1.4rem;
  transition: var(--w1d56-transition);
}

.w1d56-menu-list a:hover {
  color: var(--w1d56-accent);
  padding-left: 0.5rem;
}

/* ========== MAIN CONTENT ========== */
.w1d56-main {
  margin-top: 52px;
  padding: 1rem;
  padding-bottom: 1rem;
}

/* ========== CAROUSEL ========== */
.w1d56-carousel {
  position: relative;
  width: 100%;
  border-radius: var(--w1d56-radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: var(--w1d56-shadow);
}

.w1d56-carousel-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}

.w1d56-slide-active {
  display: block !important;
}

.w1d56-carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.w1d56-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.w1d56-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--w1d56-transition);
  border: none;
}

.w1d56-dot-active {
  background: var(--w1d56-accent) !important;
  transform: scale(1.3);
}

/* ========== SECTION TITLES ========== */
.w1d56-section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--w1d56-accent);
  margin: 1.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--w1d56-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.w1d56-section-title i,
.w1d56-section-title .material-icons {
  font-size: 2rem;
  color: var(--w1d56-accent-green);
}

/* ========== GAME GRID ========== */
.w1d56-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.w1d56-game-item {
  text-align: center;
  cursor: pointer;
  transition: var(--w1d56-transition);
  border-radius: var(--w1d56-radius-sm);
  padding: 0.4rem;
}

.w1d56-game-item:hover {
  background: var(--w1d56-bg-card);
  transform: translateY(-2px);
}

.w1d56-game-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--w1d56-radius-sm);
  border: 2px solid var(--w1d56-border);
  transition: var(--w1d56-transition);
}

.w1d56-game-item:hover img {
  border-color: var(--w1d56-accent);
}

.w1d56-game-item p {
  font-size: 1rem;
  color: var(--w1d56-text);
  margin-top: 0.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ========== CARDS ========== */
.w1d56-card {
  background: var(--w1d56-bg-card);
  border-radius: var(--w1d56-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  border: 1px solid var(--w1d56-border);
}

.w1d56-card h3 {
  color: var(--w1d56-accent);
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

.w1d56-card p {
  color: var(--w1d56-text-muted);
  font-size: 1.2rem;
  line-height: 1.6;
}

/* ========== PROMO LINKS ========== */
.w1d56-promo-link {
  color: var(--w1d56-accent);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: var(--w1d56-transition);
  border-bottom: 1px dashed var(--w1d56-accent);
}

.w1d56-promo-link:hover {
  color: var(--w1d56-accent-green);
  border-bottom-color: var(--w1d56-accent-green);
}

.w1d56-btn-promo {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, var(--w1d56-primary), var(--w1d56-primary-light));
  color: var(--w1d56-text);
  text-align: center;
  padding: 1rem;
  border-radius: var(--w1d56-radius-sm);
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  margin: 1rem 0;
  transition: var(--w1d56-transition);
  text-decoration: none;
  border: none;
}

.w1d56-btn-promo:hover {
  background: linear-gradient(135deg, var(--w1d56-primary-light), var(--w1d56-accent-green));
  transform: scale(1.02);
}

/* ========== WINNER TABLE ========== */
.w1d56-winner-table {
  width: 100%;
  border-collapse: collapse;
}

.w1d56-winner-table th {
  background: var(--w1d56-primary);
  color: var(--w1d56-text);
  font-size: 1.1rem;
  padding: 0.6rem;
  text-align: left;
}

.w1d56-winner-table td {
  padding: 0.5rem 0.6rem;
  font-size: 1.1rem;
  border-bottom: 1px solid var(--w1d56-border);
}

.w1d56-winner-table tr:hover td {
  background: var(--w1d56-bg-card-hover);
}

/* ========== FOOTER ========== */
.w1d56-footer {
  background: var(--w1d56-bg-dark);
  padding: 1.5rem 1rem 2rem;
  border-top: 2px solid var(--w1d56-primary);
  margin-top: 2rem;
}

.w1d56-footer-brand {
  color: var(--w1d56-text-muted);
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.w1d56-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.w1d56-footer-links a {
  color: var(--w1d56-accent);
  font-size: 1.1rem;
  text-decoration: none;
  padding: 0.3rem 0.6rem;
  background: var(--w1d56-bg-card);
  border-radius: 0.4rem;
  transition: var(--w1d56-transition);
}

.w1d56-footer-links a:hover {
  background: var(--w1d56-primary);
  color: var(--w1d56-text);
}

.w1d56-footer-copy {
  color: var(--w1d56-text-muted);
  font-size: 1rem;
  text-align: center;
  border-top: 1px solid var(--w1d56-border);
  padding-top: 1rem;
}

/* ========== BOTTOM NAV ========== */
.w1d56-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: var(--w1d56-bg-dark);
  border-top: 2px solid var(--w1d56-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 0.3rem;
}

.w1d56-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 56px;
  background: none;
  border: none;
  color: var(--w1d56-text-muted);
  cursor: pointer;
  transition: var(--w1d56-transition);
  padding: 0.3rem;
  border-radius: 0.5rem;
}

.w1d56-bottom-nav-btn i,
.w1d56-bottom-nav-btn .material-icons,
.w1d56-bottom-nav-btn ion-icon {
  font-size: 22px;
}

.w1d56-bottom-nav-btn span {
  font-size: 1rem;
  margin-top: 2px;
}

.w1d56-bottom-nav-btn:hover,
.w1d56-nav-active {
  color: var(--w1d56-accent) !important;
  background: rgba(255, 241, 118, 0.1);
}

.w1d56-nav-active {
  border-top: 2px solid var(--w1d56-accent);
}

/* ========== CONTENT HELPERS ========== */
.w1d56-text-center { text-align: center; }
.w1d56-text-accent { color: var(--w1d56-accent); }
.w1d56-text-green { color: var(--w1d56-accent-green); }
.w1d56-mt-1 { margin-top: 1rem; }
.w1d56-mb-1 { margin-bottom: 1rem; }
.w1d56-mb-2 { margin-bottom: 2rem; }

.w1d56-divider {
  border: none;
  border-top: 1px solid var(--w1d56-border);
  margin: 1.5rem 0;
}

.w1d56-list {
  list-style: none;
  padding: 0;
}

.w1d56-list li {
  padding: 0.5rem 0;
  font-size: 1.2rem;
  color: var(--w1d56-text-muted);
  border-bottom: 1px solid var(--w1d56-border);
  padding-left: 1.5rem;
  position: relative;
}

.w1d56-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--w1d56-accent-green);
}

.w1d56-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 1rem;
  font-size: 1rem;
  font-weight: 600;
}

.w1d56-badge-hot {
  background: #e74c3c;
  color: #fff;
}

.w1d56-badge-new {
  background: var(--w1d56-primary);
  color: var(--w1d56-text);
}

.w1d56-badge-vip {
  background: var(--w1d56-accent);
  color: var(--w1d56-bg-dark);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .w1d56-main {
    padding-bottom: 80px;
  }
}

@media (min-width: 769px) {
  .w1d56-bottom-nav {
    display: none;
  }
  body {
    max-width: 430px;
  }
}

/* ========== ANIMATIONS ========== */
@keyframes w1d56fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.w1d56-fade-in {
  animation: w1d56fadeIn 0.5s ease forwards;
}

@keyframes w1d56pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.w1d56-pulse {
  animation: w1d56pulse 2s ease infinite;
}

/* ========== FAQ ========== */
.w1d56-faq-item {
  border: 1px solid var(--w1d56-border);
  border-radius: var(--w1d56-radius-sm);
  margin-bottom: 0.8rem;
  overflow: hidden;
}

.w1d56-faq-q {
  padding: 0.8rem 1rem;
  background: var(--w1d56-bg-card);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--w1d56-accent);
}

.w1d56-faq-a {
  padding: 0.8rem 1rem;
  font-size: 1.2rem;
  color: var(--w1d56-text-muted);
  line-height: 1.6;
}

/* ========== INTERNAL LINKS ========== */
.w1d56-internal-link {
  color: var(--w1d56-accent-green);
  text-decoration: underline;
  cursor: pointer;
  transition: var(--w1d56-transition);
}

.w1d56-internal-link:hover {
  color: var(--w1d56-accent);
}

/* ========== PAYMENT ICONS ========== */
.w1d56-payment-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin: 1rem 0;
}

.w1d56-payment-item {
  background: var(--w1d56-bg-card);
  border: 1px solid var(--w1d56-border);
  border-radius: var(--w1d56-radius-sm);
  padding: 0.5rem 1rem;
  font-size: 1.1rem;
  color: var(--w1d56-text-muted);
}
