/* bd111 cure - Core Stylesheet */
/* All classes use w27f5- prefix for namespace isolation */
/* Color palette: #36454F | #141414 | #A9A9A9 | #F4A460 | #0097A7 | #BC8F8F */

:root {
  --w27f5-primary: #F4A460;
  --w27f5-bg: #141414;
  --w27f5-bg-light: #1e1e1e;
  --w27f5-bg-card: #252525;
  --w27f5-text: #e8e8e8;
  --w27f5-text-muted: #A9A9A9;
  --w27f5-accent: #0097A7;
  --w27f5-warm: #BC8F8F;
  --w27f5-dark: #36454F;
  --w27f5-border: #333333;
  --w27f5-radius: 8px;
  --w27f5-header-h: 52px;
}

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

html { font-size: 62.5%; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--w27f5-bg);
  color: var(--w27f5-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

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

/* ===== Header ===== */
.w27f5-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--w27f5-bg);
  border-bottom: 1px solid var(--w27f5-border);
  height: var(--w27f5-header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.2rem;
  max-width: 430px; margin: 0 auto;
}
.w27f5-logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 1.6rem; font-weight: 700; color: var(--w27f5-primary);
}
.w27f5-logo img { width: 28px; height: 28px; border-radius: 4px; }
.w27f5-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.w27f5-btn-register, .w27f5-btn-login {
  padding: 0.5rem 1.2rem; border-radius: var(--w27f5-radius); font-size: 1.2rem;
  font-weight: 600; cursor: pointer; border: none; transition: opacity 0.2s;
}
.w27f5-btn-register {
  background: var(--w27f5-primary); color: #141414;
}
.w27f5-btn-login {
  background: transparent; color: var(--w27f5-primary);
  border: 1px solid var(--w27f5-primary);
}
.w27f5-btn-register:hover, .w27f5-btn-login:hover { opacity: 0.85; }
.w27f5-menu-toggle {
  background: none; border: none; color: var(--w27f5-text); font-size: 2rem;
  cursor: pointer; padding: 0.4rem; line-height: 1;
}

/* ===== Mobile Menu ===== */
.w27f5-overlay {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); z-index: 9998;
}
.w27f5-mobile-menu {
  position: fixed; top: 0; left: 0; bottom: 0; width: 260px;
  background: #1a1a1a; z-index: 9999;
  transform: translateX(-100%); transition: transform 0.3s ease;
  padding: 1.6rem; overflow-y: auto;
}
.w27f5-mobile-menu-title {
  font-size: 1.6rem; font-weight: 700; color: var(--w27f5-primary);
  margin-bottom: 1.6rem; padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--w27f5-border);
}
.w27f5-mobile-menu a {
  display: block; padding: 0.9rem 0; color: var(--w27f5-text);
  font-size: 1.4rem; border-bottom: 1px solid #2a2a2a;
  transition: color 0.2s;
}
.w27f5-mobile-menu a:hover { color: var(--w27f5-primary); }

/* ===== Carousel ===== */
.w27f5-carousel { position: relative; overflow: hidden; border-radius: var(--w27f5-radius); margin-top: calc(var(--w27f5-header-h) + 0.8rem); }
.w27f5-slide-track { display: flex; transition: transform 0.5s ease; }
.w27f5-slide { min-width: 100%; cursor: pointer; }
.w27f5-slide img { width: 100%; height: 180px; object-fit: cover; }
.w27f5-dots { display: flex; justify-content: center; gap: 0.5rem; padding: 0.6rem 0; }
.w27f5-slide-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--w27f5-dark); cursor: pointer; border: none;
}
.w27f5-slide-dot.w27f5-active { background: var(--w27f5-primary); }

/* ===== Container & Sections ===== */
.w27f5-container { padding: 0 1.2rem; }
.w27f5-section { margin: 2rem 0; }
.w27f5-section-title {
  font-size: 1.6rem; font-weight: 700; color: var(--w27f5-primary);
  margin-bottom: 1rem; padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--w27f5-accent);
}

/* ===== Game Grid ===== */
.w27f5-category-label {
  font-size: 1.3rem; font-weight: 600; color: var(--w27f5-accent);
  margin: 1.2rem 0 0.6rem; text-transform: uppercase;
}
.w27f5-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.w27f5-game-item {
  text-align: center; cursor: pointer; transition: transform 0.2s;
}
.w27f5-game-item:hover { transform: scale(1.05); }
.w27f5-game-item img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--w27f5-radius); border: 1px solid var(--w27f5-border);
}
.w27f5-game-name {
  font-size: 1.1rem; color: var(--w27f5-text-muted);
  margin-top: 0.3rem; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== Content Cards ===== */
.w27f5-card {
  background: var(--w27f5-bg-card); border-radius: var(--w27f5-radius);
  padding: 1.4rem; margin-bottom: 1.2rem; border: 1px solid var(--w27f5-border);
}
.w27f5-card h3 { font-size: 1.4rem; color: var(--w27f5-primary); margin-bottom: 0.6rem; }
.w27f5-card p { color: var(--w27f5-text-muted); font-size: 1.3rem; line-height: 1.6; }

/* ===== Buttons ===== */
.w27f5-btn-promo {
  display: inline-block; padding: 0.8rem 2rem;
  background: var(--w27f5-primary); color: #141414;
  font-weight: 700; font-size: 1.3rem; border-radius: var(--w27f5-radius);
  cursor: pointer; border: none; transition: opacity 0.2s;
  text-align: center;
}
.w27f5-btn-promo:hover { opacity: 0.85; }
.w27f5-btn-accent {
  display: inline-block; padding: 0.8rem 2rem;
  background: var(--w27f5-accent); color: #fff;
  font-weight: 700; font-size: 1.3rem; border-radius: var(--w27f5-radius);
  cursor: pointer; border: none; transition: opacity 0.2s;
}

/* ===== Footer ===== */
.w27f5-footer {
  background: #0e0e0e; padding: 2rem 1.2rem; margin-top: 2rem;
  border-top: 1px solid var(--w27f5-border);
}
.w27f5-footer-brand { font-size: 1.2rem; color: var(--w27f5-text-muted); line-height: 1.6; margin-bottom: 1rem; }
.w27f5-footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.2rem; }
.w27f5-footer-links a {
  padding: 0.4rem 0.8rem; background: var(--w27f5-bg-card);
  border-radius: 4px; font-size: 1.1rem; color: var(--w27f5-text-muted);
  border: 1px solid var(--w27f5-border); transition: color 0.2s;
}
.w27f5-footer-links a:hover { color: var(--w27f5-primary); }
.w27f5-partners {
  display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center;
  margin-bottom: 1rem; padding: 0.8rem 0;
  border-top: 1px solid var(--w27f5-border); border-bottom: 1px solid var(--w27f5-border);
}
.w27f5-partners span {
  font-size: 1rem; color: var(--w27f5-text-muted);
  background: var(--w27f5-bg-card); padding: 0.3rem 0.6rem;
  border-radius: 3px;
}
.w27f5-copyright { text-align: center; font-size: 1.1rem; color: #666; margin-top: 0.8rem; }

/* ===== Bottom Navigation ===== */
.w27f5-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: #111; border-top: 1px solid var(--w27f5-border);
  display: flex; justify-content: space-around; align-items: center;
  height: 58px; max-width: 430px; margin: 0 auto;
}
.w27f5-bottom-nav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 54px; background: none; border: none;
  color: var(--w27f5-text-muted); cursor: pointer; transition: all 0.2s;
  gap: 0.2rem;
}
.w27f5-bottom-nav-btn:hover, .w27f5-bottom-nav-btn.w27f5-active {
  color: var(--w27f5-primary);
}
.w27f5-bottom-nav-btn span { font-size: 1rem; }
.w27f5-bottom-nav-btn:hover { transform: scale(1.1); }
.w27f5-bottom-nav-btn .w27f5-nav-icon { font-size: 22px; }

/* ===== Utility Classes ===== */
.w27f5-text-center { text-align: center; }
.w27f5-text-primary { color: var(--w27f5-primary); }
.w27f5-text-accent { color: var(--w27f5-accent); }
.w27f5-text-warm { color: var(--w27f5-warm); }
.w27f5-mt-1 { margin-top: 0.8rem; }
.w27f5-mt-2 { margin-top: 1.6rem; }
.w27f5-mb-1 { margin-bottom: 0.8rem; }
.w27f5-mb-2 { margin-bottom: 1.6rem; }
.w27f5-p-1 { padding: 0.8rem; }
.w27f5-p-2 { padding: 1.6rem; }
.w27f5-fw-bold { font-weight: 700; }
.w27f5-d-flex { display: flex; }
.w27f5-gap-1 { gap: 0.8rem; }
.w27f5-flex-wrap { flex-wrap: wrap; }
.w27f5-align-center { align-items: center; }
.w27f5-justify-center { justify-content: center; }

/* ===== Promo Text Link ===== */
.w27f5-link-promo {
  color: var(--w27f5-primary); font-weight: 600; cursor: pointer;
  text-decoration: underline; transition: color 0.2s;
}
.w27f5-link-promo:hover { color: var(--w27f5-accent); }

/* ===== Winner List ===== */
.w27f5-winner-list { display: flex; flex-direction: column; gap: 0.6rem; }
.w27f5-winner-item {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--w27f5-bg-card); padding: 0.6rem 1rem;
  border-radius: var(--w27f5-radius); font-size: 1.2rem;
}
.w27f5-winner-name { color: var(--w27f5-accent); font-weight: 600; }
.w27f5-winner-amount { color: var(--w27f5-primary); font-weight: 700; }

/* ===== Payment Icons ===== */
.w27f5-payment-grid {
  display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center;
}
.w27f5-payment-item {
  background: var(--w27f5-bg-card); padding: 0.6rem 1rem;
  border-radius: var(--w27f5-radius); font-size: 1.2rem;
  color: var(--w27f5-text-muted); border: 1px solid var(--w27f5-border);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .w27f5-main-content { padding-bottom: 72px; }
}
@media (min-width: 769px) {
  .w27f5-bottom-nav { display: none !important; }
  .w27f5-menu-toggle { display: none; }
}
