/* xoso888 bet - core stylesheet
 * All custom classes use the w367e- prefix.
 * Palette: #F08080 (coral) primary on #2E4057 (deep navy) background.
 */
:root {
  --w367e-primary: #F08080;
  --w367e-primary-dark: #d96161;
  --w367e-bg: #2E4057;
  --w367e-bg-2: #243447;
  --w367e-bg-3: #1a2735;
  --w367e-text: #f5f7fa;
  --w367e-muted: #b8c4d2;
  --w367e-accent: #ffd166;
  --w367e-card: #34495f;
  --w367e-border: rgba(240, 128, 128, 0.25);
  --w367e-radius: 14px;
}

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

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

body {
  font-family: "Segoe UI", "Inter", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  background: var(--w367e-bg);
  color: var(--w367e-text);
  line-height: 1.5;
  font-size: 1.6rem;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
}

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

.w367e-container { width: 100%; padding: 0 1.4rem; }

/* ===== Header ===== */
.w367e-header {
  position: fixed;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  background: linear-gradient(135deg, var(--w367e-bg-3) 0%, var(--w367e-bg-2) 100%);
  border-bottom: 2px solid var(--w367e-primary);
  z-index: 1000;
  padding: 0.8rem 1.2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 0.8rem;
}
.w367e-logo { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.w367e-logo img { width: 30px; height: 30px; border-radius: 6px; }
.w367e-logo .w367e-brand { font-size: 1.5rem; font-weight: 700; color: var(--w367e-primary); white-space: nowrap; }
.w367e-logo .w367e-brand span { color: var(--w367e-text); }

.w367e-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.w367e-btn {
  border: none; border-radius: 10px; cursor: pointer;
  font-size: 1.3rem; font-weight: 700; padding: 0.7rem 1.2rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 36px;
}
.w367e-btn:hover { transform: translateY(-1px); }
.w367e-btn-primary { background: linear-gradient(135deg, var(--w367e-primary), var(--w367e-primary-dark)); color: #2a1620; box-shadow: 0 3px 10px rgba(240,128,128,0.35); }
.w367e-btn-ghost { background: transparent; color: var(--w367e-text); border: 1px solid var(--w367e-border); }
.w367e-icon-btn {
  background: transparent; border: none; color: var(--w367e-text); cursor: pointer;
  font-size: 2rem; padding: 0.4rem; min-width: 36px; min-height: 36px; border-radius: 8px;
}
.w367e-icon-btn.w367e-active { background: rgba(240,128,128,0.18); color: var(--w367e-primary); }

/* ===== Mobile dropdown menu ===== */
.w367e-mobile-menu {
  position: fixed; top: 56px; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  background: var(--w367e-bg-2); border-bottom: 2px solid var(--w367e-primary);
  padding: 1rem 1.4rem 1.4rem; z-index: 9999;
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease;
  padding-top: 0; padding-bottom: 0;
}
.w367e-mobile-menu.w367e-open { max-height: 80vh; overflow-y: auto; padding-top: 1rem; padding-bottom: 1.4rem; }
.w367e-mobile-menu a {
  display: block; color: var(--w367e-text); padding: 1rem 0.6rem;
  border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 1.5rem;
}
.w367e-mobile-menu a:active { background: rgba(240,128,128,0.12); color: var(--w367e-primary); }

/* ===== Layout sections ===== */
main { padding-top: 64px; padding-bottom: 80px; }
.w367e-section { padding: 2rem 1.4rem; }
.w367e-section-title { font-size: 2rem; font-weight: 800; margin-bottom: 1rem; color: var(--w367e-text); }
.w367e-section-title em { color: var(--w367e-primary); font-style: normal; }
.w367e-section-sub { color: var(--w367e-muted); font-size: 1.4rem; margin-bottom: 1.4rem; }

/* ===== Hero / Carousel ===== */
.w367e-carousel { position: relative; overflow: hidden; border-radius: var(--w367e-radius); margin: 1rem 0; }
.w367e-carousel-track { display: flex; transition: transform 0.5s ease; }
.w367e-slide { min-width: 100%; position: relative; }
.w367e-slide img { width: 100%; height: 200px; object-fit: cover; border-radius: var(--w367e-radius); }
.w367e-slide-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  padding: 1.2rem 1rem 1rem; color: #fff;
}
.w367e-slide-cap h2 { font-size: 1.7rem; margin-bottom: 0.3rem; color: var(--w367e-primary); }
.w367e-slide-cap p { font-size: 1.25rem; color: #fff; }
.w367e-carousel-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 0.6rem; }
.w367e-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.3); border: none; cursor: pointer; padding: 0;
}
.w367e-carousel-dot.w367e-active { background: var(--w367e-primary); width: 22px; border-radius: 4px; }

/* ===== Chips ===== */
.w367e-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.2rem; }
.w367e-chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem 1.1rem; border-radius: 999px;
  background: var(--w367e-bg-2); border: 1px solid var(--w367e-border);
  color: var(--w367e-text); font-size: 1.25rem; font-weight: 600;
}
.w367e-chip.w367e-active { background: var(--w367e-primary); color: #2a1620; }

/* ===== Game grid ===== */
.w367e-game-block { margin-bottom: 2.4rem; }
.w367e-cat-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.w367e-cat-head h2 { font-size: 1.7rem; color: var(--w367e-primary); display: flex; align-items: center; gap: 0.5rem; }
.w367e-cat-head a { font-size: 1.2rem; color: var(--w367e-accent); }
.w367e-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem;
}
.w367e-card {
  background: var(--w367e-card); border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
  cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.w367e-card:active { transform: scale(0.96); box-shadow: 0 4px 14px rgba(240,128,128,0.4); }
.w367e-card img { width: 100%; height: 92px; object-fit: cover; }
.w367e-card-name { padding: 0.5rem 0.5rem 0.6rem; font-size: 1.15rem; color: var(--w367e-text); text-align: center; line-height: 1.25; min-height: 38px; display: flex; align-items: center; justify-content: center; }

/* ===== Info / feature blocks ===== */
.w367e-card-box {
  background: var(--w367e-card); border-radius: var(--w367e-radius);
  padding: 1.4rem; margin-bottom: 1.2rem; border-left: 4px solid var(--w367e-primary);
}
.w367e-card-box h3 { font-size: 1.55rem; margin-bottom: 0.6rem; color: var(--w367e-accent); }
.w367e-card-box p { color: var(--w367e-muted); font-size: 1.35rem; }
.w367e-card-box ul { padding-left: 1.6rem; color: var(--w367e-muted); }
.w367e-card-box li { margin: 0.4rem 0; font-size: 1.3rem; }

.w367e-feature-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; margin: 1rem 0; }
.w367e-feature {
  background: var(--w367e-card); border-radius: 12px; padding: 1.2rem; text-align: center;
}
.w367e-feature .material-icons, .w367e-feature i { font-size: 28px; color: var(--w367e-primary); margin-bottom: 0.5rem; }
.w367e-feature h4 { font-size: 1.3rem; color: var(--w367e-text); margin-bottom: 0.3rem; }
.w367e-feature p { font-size: 1.15rem; color: var(--w367e-muted); }

.w367e-faq details { background: var(--w367e-card); border-radius: 10px; padding: 1rem 1.2rem; margin-bottom: 0.7rem; }
.w367e-faq summary { font-weight: 700; font-size: 1.35rem; color: var(--w367e-primary); cursor: pointer; }
.w367e-faq details[open] summary { margin-bottom: 0.6rem; }
.w367e-faq p { color: var(--w367e-muted); font-size: 1.25rem; }

/* ===== CTA banner ===== */
.w367e-cta {
  background: linear-gradient(135deg, var(--w367e-primary), var(--w367e-primary-dark));
  border-radius: var(--w367e-radius); padding: 1.6rem; text-align: center; margin: 1.4rem 0;
  color: #2a1620;
}
.w367e-cta h3 { font-size: 1.7rem; margin-bottom: 0.4rem; }
.w367e-cta p { font-size: 1.3rem; margin-bottom: 1rem; }
.w367e-cta .w367e-btn { background: #2E4057; color: #fff; padding: 0.9rem 2rem; font-size: 1.4rem; }

/* ===== Testimonials / winners ===== */
.w367e-list-row { display: flex; justify-content: space-between; align-items: center; padding: 0.8rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.w367e-list-row:last-child { border-bottom: none; }
.w367e-list-row strong { color: var(--w367e-accent); }
.w367e-list-row small { color: var(--w367e-muted); font-size: 1.15rem; }

/* ===== Back to top ===== */
.w367e-top-btn {
  position: fixed; right: 18px; bottom: 80px; width: 42px; height: 42px;
  border-radius: 50%; background: var(--w367e-primary); color: #2a1620;
  border: none; font-size: 2rem; cursor: pointer; opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease; z-index: 900;
}
.w367e-top-btn.w367e-show { opacity: 1; pointer-events: auto; }

/* ===== Footer ===== */
.w367e-footer { background: var(--w367e-bg-3); padding: 2rem 1.4rem 1.4rem; border-top: 2px solid var(--w367e-primary); }
.w367e-footer p { color: var(--w367e-muted); font-size: 1.25rem; margin-bottom: 0.8rem; }
.w367e-footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin: 0.8rem 0 1rem; }
.w367e-footer-links a { color: var(--w367e-muted); font-size: 1.2rem; text-decoration: underline; }
.w367e-footer-links a:hover { color: var(--w367e-primary); }
.w367e-footer-cta { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.8rem 0; }
.w367e-copy { color: var(--w367e-muted); font-size: 1.15rem; text-align: center; margin-top: 1rem; }

/* ===== Mobile bottom nav ===== */
.w367e-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: 62px;
  background: var(--w367e-bg-3); border-top: 2px solid var(--w367e-primary);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000; padding-bottom: env(safe-area-inset-bottom);
}
.w367e-nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--w367e-muted); text-decoration: none; font-size: 1rem; gap: 0.2rem;
  background: transparent; border: none; cursor: pointer; min-width: 60px; min-height: 60px;
  transition: color 0.15s ease, transform 0.15s ease;
}
.w367e-nav-item .material-icons, .w367e-nav-item i { font-size: 22px; }
.w367e-nav-item:active { transform: scale(0.92); }
.w367e-nav-item.w367e-current { color: var(--w367e-primary); }
.w367e-nav-promo { color: var(--w367e-accent); }

/* ===== Desktop: hide bottom nav ===== */
@media (min-width: 769px) {
  .w367e-bottom-nav { display: none; }
  main { padding-bottom: 2rem; }
}

/* ===== Desktop wide layout ===== */
@media (min-width: 768px) {
  body { max-width: 960px; }
  .w367e-grid { grid-template-columns: repeat(6, 1fr); }
  .w367e-feature-row { grid-template-columns: repeat(4, 1fr); }
  .w367e-slide img { height: 320px; }
  .w367e-header, .w367e-mobile-menu, .w367e-bottom-nav { max-width: 960px; }
}
