/* 365 login - design.css
   All custom classes use the w1740- prefix to avoid collisions.
   Mobile-first layout, max-width 430px, expands gracefully on desktop.
   Color palette: #FF4500 | #FFE135 | #212F3D | #FFA500 | #FFCC33 */

:root {
  --w1740-primary: #FF4500;
  --w1740-accent: #FFA500;
  --w1740-yellow: #FFE135;
  --w1740-gold: #FFCC33;
  --w1740-bg: #212F3D;
  --w1740-bg-deep: #18222d;
  --w1740-card: #2a3a4c;
  --w1740-text: #f5f7fa;
  --w1740-muted: #aab7c5;
  --w1740-white: #ffffff;
  --w1740-radius: 12px;
  --w1740-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  --w1740-header-h: 56px;
  --w1740-bottomnav-h: 62px;
}

/* Root font sizing: 62.5% makes 1rem = 10px */
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--w1740-bg);
  color: var(--w1740-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--w1740-yellow); text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* ---------- Layout containers ---------- */
.w1740-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 12px;
}
.w1740-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}

/* ---------- Header ---------- */
.w1740-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--w1740-header-h);
  background: linear-gradient(90deg, var(--w1740-bg-deep), var(--w1740-bg));
  border-bottom: 2px solid var(--w1740-primary);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
.w1740-header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  max-width: 430px;
  margin: 0 auto;
}
.w1740-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--w1740-white);
}
.w1740-logo img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}
.w1740-logo .w1740-logo-accent { color: var(--w1740-yellow); }
.w1740-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.w1740-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border: none;
  border-radius: 20px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.w1740-btn:active { transform: scale(0.95); }
.w1740-btn-login {
  background: transparent;
  color: var(--w1740-white);
  border: 1.5px solid var(--w1740-yellow);
}
.w1740-btn-register {
  background: linear-gradient(90deg, var(--w1740-primary), var(--w1740-accent));
  color: var(--w1740-white);
  box-shadow: 0 3px 8px rgba(255, 69, 0, 0.4);
}
.w1740-menu-toggle {
  background: transparent;
  border: none;
  color: var(--w1740-white);
  font-size: 2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Mobile expandable menu ---------- */
.w1740-mobile-menu {
  position: fixed;
  top: var(--w1740-header-h);
  left: 0; right: 0;
  background: var(--w1740-bg-deep);
  border-bottom: 1px solid var(--w1740-card);
  padding: 8px 0;
  transform: translateY(-150%);
  transition: transform 0.3s ease;
  z-index: 9999;
  max-height: calc(100vh - var(--w1740-header-h));
  overflow-y: auto;
}
.w1740-mobile-menu.w1740-menu-open { transform: translateY(0); }
.w1740-mobile-menu a {
  display: block;
  padding: 12px 18px;
  color: var(--w1740-text);
  font-size: 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.w1740-mobile-menu a:hover { background: var(--w1740-card); color: var(--w1740-yellow); }

/* ---------- Main / spacing ---------- */
.w1740-main {
  padding-top: calc(var(--w1740-header-h) + 8px);
  padding-bottom: calc(var(--w1740-bottomnav-h) + 20px);
  max-width: 430px;
  margin: 0 auto;
}

/* ---------- Hero carousel ---------- */
.w1740-carousel {
  position: relative;
  width: 100%;
  margin: 10px 0 16px;
  border-radius: var(--w1740-radius);
  overflow: hidden;
  box-shadow: var(--w1740-shadow);
  cursor: pointer;
}
.w1740-slide {
  display: none;
  width: 100%;
}
.w1740-slide.w1740-slide-active { display: block; }
.w1740-slide img { width: 100%; height: 170px; object-fit: cover; }
.w1740-slide-overlay {
  position: absolute;
  left: 12px; bottom: 12px;
  background: rgba(24, 34, 45, 0.78);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 1.3rem;
  color: var(--w1740-yellow);
  font-weight: 700;
}
.w1740-dots {
  position: absolute;
  bottom: 6px; right: 10px;
  display: flex;
  gap: 5px;
}
.w1740-dot {
  width: 7px; height: 7px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
}

/* ---------- Section ---------- */
.w1740-section { padding: 14px 0; }
.w1740-section-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--w1740-white);
  margin-bottom: 10px;
  padding-left: 8px;
  border-left: 4px solid var(--w1740-primary);
}
.w1740-section-sub {
  color: var(--w1740-muted);
  font-size: 1.3rem;
  margin-bottom: 10px;
  padding-left: 12px;
}

/* ---------- Game grid ---------- */
.w1740-cat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 8px;
  color: var(--w1740-yellow);
  font-size: 1.5rem;
  font-weight: 700;
}
.w1740-cat-head i { color: var(--w1740-primary); }
.w1740-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.w1740-game-tile {
  background: var(--w1740-card);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
}
.w1740-game-tile:active { transform: scale(0.96); }
.w1740-game-tile img {
  width: 100%;
  height: 84px;
  object-fit: cover;
  background: #0f161e;
}
.w1740-game-name {
  display: block;
  font-size: 1.1rem;
  color: var(--w1740-text);
  padding: 5px 4px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Cards / features ---------- */
.w1740-card {
  background: var(--w1740-card);
  border-radius: var(--w1740-radius);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--w1740-shadow);
}
.w1740-card h3 {
  font-size: 1.5rem;
  color: var(--w1740-yellow);
  margin-bottom: 8px;
}
.w1740-card p { color: var(--w1740-muted); font-size: 1.3rem; line-height: 1.6rem; }
.w1740-card a { font-weight: 700; }

.w1740-feature-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.w1740-feature {
  background: var(--w1740-bg-deep);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
}
.w1740-feature i { font-size: 2.2rem; color: var(--w1740-primary); }
.w1740-feature span { display: block; margin-top: 4px; font-size: 1.2rem; color: var(--w1740-text); }

/* ---------- CTA block ---------- */
.w1740-cta {
  background: linear-gradient(90deg, var(--w1740-primary), var(--w1740-accent));
  border-radius: var(--w1740-radius);
  padding: 18px;
  text-align: center;
  margin: 14px 0;
  color: var(--w1740-white);
}
.w1740-cta h3 { color: var(--w1740-white); font-size: 1.7rem; margin-bottom: 6px; }
.w1740-cta p { color: #fff7e6; font-size: 1.3rem; margin-bottom: 12px; }
.w1740-cta .w1740-btn {
  background: var(--w1740-yellow);
  color: var(--w1740-bg-deep);
  font-weight: 800;
  padding: 0 22px;
}

/* ---------- Testimonial ---------- */
.w1740-quote {
  border-left: 3px solid var(--w1740-gold);
  background: var(--w1740-bg-deep);
  padding: 10px 12px;
  border-radius: 6px;
  margin-bottom: 8px;
  font-size: 1.25rem;
  color: var(--w1740-text);
}
.w1740-quote b { color: var(--w1740-yellow); display: block; margin-top: 4px; }

/* ---------- Winners list ---------- */
.w1740-winner {
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
  background: var(--w1740-bg-deep);
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 1.25rem;
}
.w1740-winner b { color: var(--w1740-gold); }

/* ---------- Payment chips ---------- */
.w1740-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.w1740-chip {
  background: var(--w1740-bg-deep);
  border: 1px solid var(--w1740-card);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 1.2rem;
  color: var(--w1740-text);
}
.w1740-chip i { color: var(--w1740-yellow); margin-right: 4px; }

/* ---------- RTP table ---------- */
.w1740-rtp-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  font-size: 1.25rem;
}
.w1740-rtp-row:last-child { border-bottom: none; }
.w1740-rtp-row b { color: var(--w1740-gold); }

/* ---------- FAQ accordion ---------- */
.w1740-faq-item {
  background: var(--w1740-card);
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
}
.w1740-faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--w1740-white);
  font-weight: 700;
  font-size: 1.3rem;
  padding: 12px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.w1740-faq-q .w1740-icon { color: var(--w1740-yellow); transition: transform 0.2s; }
.w1740-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 12px;
  color: var(--w1740-muted);
  font-size: 1.25rem;
}
.w1740-faq-open .w1740-faq-a { max-height: 320px; padding-bottom: 12px; }
.w1740-faq-open .w1740-faq-q .w1740-icon { transform: rotate(45deg); }

/* ---------- Footer ---------- */
.w1740-footer {
  background: var(--w1740-bg-deep);
  border-top: 2px solid var(--w1740-primary);
  padding: 18px 12px 24px;
  color: var(--w1740-muted);
  font-size: 1.2rem;
}
.w1740-footer-inner { max-width: 430px; margin: 0 auto; }
.w1740-footer h4 {
  color: var(--w1740-yellow);
  font-size: 1.35rem;
  margin: 10px 0 6px;
}
.w1740-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}
.w1740-footer-links a {
  color: var(--w1740-muted);
  font-size: 1.2rem;
}
.w1740-footer-links a:hover { color: var(--w1740-yellow); }
.w1740-footer-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}
.w1740-footer-promos .w1740-btn {
  background: var(--w1740-card);
  color: var(--w1740-yellow);
  font-size: 1.15rem;
  padding: 6px 12px;
  min-height: 32px;
}
.w1740-footer-copy {
  margin-top: 10px;
  font-size: 1.1rem;
  color: #6f7d8a;
  text-align: center;
}

/* ---------- Bottom nav (mobile only) ---------- */
.w1740-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--w1740-bottomnav-h);
  background: linear-gradient(180deg, var(--w1740-bg), var(--w1740-bg-deep));
  border-top: 2px solid var(--w1740-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.4);
}
.w1740-bottomnav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--w1740-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  font-size: 1rem;
  transition: color 0.15s ease, transform 0.15s ease;
}
.w1740-bottomnav-btn i,
.w1740-bottomnav-btn .material-icons,
.w1740-bottomnav-btn ion-icon {
  font-size: 24px;
}
.w1740-bottomnav-btn:hover { color: var(--w1740-yellow); }
.w1740-bottomnav-btn:active { transform: scale(0.92); }
.w1740-bottomnav-active { color: var(--w1740-primary); }
.w1740-bottomnav-btn .w1740-badge {
  position: absolute;
  margin-left: 18px;
  margin-top: -22px;
  background: var(--w1740-primary);
  color: #fff;
  font-size: 0.9rem;
  border-radius: 8px;
  padding: 0 4px;
}

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  .w1740-bottomnav { display: none; }
  .w1740-wrapper, .w1740-header-inner, .w1740-main, .w1740-footer-inner {
    max-width: 720px;
  }
  .w1740-grid { grid-template-columns: repeat(5, 1fr); }
  .w1740-feature-row { grid-template-columns: repeat(4, 1fr); }
}

/* Larger phones / small tablets keep 3-col grid but slightly bigger tiles */
@media (min-width: 431px) and (max-width: 768px) {
  .w1740-wrapper, .w1740-header-inner, .w1740-main {
    max-width: 480px;
  }
}
