/*!
 * sz777 com casino - design.css
 * Mobile-first VIP casino theme. Dark backdrop, light text, golden accents.
 * Every custom selector uses the w74ec- prefix.
 * Color reference: #2F2F2F / #141414 / #D3D3D3 + #FFD166 accent.
 */

:root {
  --w74ec-bg: #141414;
  --w74ec-bg-soft: #2F2F2F;
  --w74ec-text: #D3D3D3;
  --w74ec-text-strong: #FFFFFF;
  --w74ec-accent: #FFD166;
  --w74ec-accent-deep: #E6B34C;
  --w74ec-success: #4ECDC4;
  --w74ec-danger: #FF5E5B;
  --w74ec-muted: #8A8A8A;
  --w74ec-line: rgba(211, 211, 211, 0.12);
  --w74ec-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  --w74ec-radius: 12px;
  --w74ec-radius-lg: 18px;
  --w74ec-max-width: 430px;
}

* { box-sizing: border-box; }

html {
  font-size: 62.5%; /* 1rem = 10px */
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  background: radial-gradient(circle at 30% 0%, #1d1d1d 0%, var(--w74ec-bg) 55%);
  color: var(--w74ec-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--w74ec-accent); text-decoration: none; }

.w74ec-skip {
  position: absolute;
  left: -9999px;
  top: auto;
  background: var(--w74ec-accent);
  color: #141414;
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  z-index: 2000;
}
.w74ec-skip:focus { left: 0; top: 0; }

/* ===== Header ===== */
.w74ec-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(20,20,20,0.96) 0%, rgba(20,20,20,0.88) 100%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--w74ec-line);
}
.w74ec-header-row {
  max-width: var(--w74ec-max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  gap: 8px;
}
.w74ec-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.w74ec-brand img { width: 30px; height: 30px; border-radius: 8px; }
.w74ec-brand-text {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--w74ec-text-strong);
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.w74ec-brand-text span { color: var(--w74ec-accent); }
.w74ec-header-actions { display: flex; gap: 8px; align-items: center; }
.w74ec-menu-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--w74ec-bg-soft);
  border: 1px solid var(--w74ec-line);
  color: var(--w74ec-text-strong);
  font-size: 1.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.w74ec-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 24px;
  padding: 8px 14px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.2s ease;
  min-height: 36px;
  min-width: 44px;
  line-height: 1;
}
.w74ec-btn:active { transform: scale(0.94); }
.w74ec-btn-primary { background: linear-gradient(135deg, var(--w74ec-accent) 0%, var(--w74ec-accent-deep) 100%); color: #141414; }
.w74ec-btn-ghost { background: transparent; border: 1px solid var(--w74ec-accent); color: var(--w74ec-accent); }
.w74ec-btn-block { width: 100%; padding: 12px; font-size: 1.5rem; }

/* ===== Mobile drop-down menu ===== */
.w74ec-mobile-menu {
  position: fixed;
  top: 56px; left: 0; right: 0;
  background: #161616;
  border-bottom: 1px solid var(--w74ec-line);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  z-index: 9999;
}
.w74ec-mobile-menu.w74ec-menu-open { max-height: 420px; }
.w74ec-mobile-menu nav { display: flex; flex-direction: column; padding: 6px 14px 14px; }
.w74ec-mobile-menu a {
  color: var(--w74ec-text);
  padding: 10px 6px;
  border-bottom: 1px solid var(--w74ec-line);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.w74ec-mobile-menu a:last-child { border-bottom: none; }
.w74ec-mobile-menu a i { color: var(--w74ec-accent); width: 22px; text-align: center; }

/* ===== Layout ===== */
.w74ec-wrapper {
  max-width: var(--w74ec-max-width);
  margin: 0 auto;
  padding: 0 12px;
}
main.w74ec-main { padding-top: 64px; padding-bottom: 84px; }

.w74ec-section { padding: 20px 0; }
.w74ec-section-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--w74ec-text-strong);
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.w74ec-section-title i { color: var(--w74ec-accent); }
.w74ec-section-sub { color: var(--w74ec-muted); font-size: 1.25rem; margin: 0 0 12px; }

/* ===== Carousel ===== */
.w74ec-carousel {
  position: relative;
  border-radius: var(--w74ec-radius-lg);
  overflow: hidden;
  box-shadow: var(--w74ec-shadow);
  aspect-ratio: 16 / 7;
  background: #0c0c0c;
}
.w74ec-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}
.w74ec-slide img { width: 100%; height: 100%; object-fit: cover; }
.w74ec-slide-active { opacity: 1; }
.w74ec-slide-caption {
  position: absolute;
  left: 14px; bottom: 12px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
  font-size: 1.5rem;
}
.w74ec-dots {
  position: absolute;
  right: 12px; bottom: 10px;
  display: flex;
  gap: 5px;
}
.w74ec-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.w74ec-dot-active { background: var(--w74ec-accent); transform: scale(1.25); }

/* ===== Game grid ===== */
.w74ec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.w74ec-card {
  background: linear-gradient(180deg, #1f1f1f 0%, #161616 100%);
  border: 1px solid var(--w74ec-line);
  border-radius: var(--w74ec-radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}
.w74ec-card:hover, .w74ec-card:focus { transform: translateY(-3px); border-color: var(--w74ec-accent); }
.w74ec-card-img { aspect-ratio: 1 / 1; background: #0c0c0c; }
.w74ec-card-img img { width: 100%; height: 100%; object-fit: cover; }
.w74ec-card-name {
  font-size: 1.15rem;
  color: var(--w74ec-text);
  text-align: center;
  padding: 6px 4px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.w74ec-cat-pill {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(255,209,102,0.12);
  color: var(--w74ec-accent);
  border-radius: 20px;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 4px 0 10px;
}

/* ===== Content blocks ===== */
.w74ec-card-block {
  background: linear-gradient(180deg, #1d1d1d 0%, #161616 100%);
  border: 1px solid var(--w74ec-line);
  border-radius: var(--w74ec-radius-lg);
  padding: 16px;
  margin-bottom: 14px;
}
.w74ec-card-block h2, .w74ec-card-block h3 { color: var(--w74ec-text-strong); margin: 0 0 6px; }
.w74ec-card-block h2 { font-size: 1.7rem; display: flex; align-items: center; gap: 8px; }
.w74ec-card-block h2 i { color: var(--w74ec-accent); }
.w74ec-card-block h3 { font-size: 1.45rem; }
.w74ec-card-block p { margin: 0 0 8px; color: var(--w74ec-text); }
.w74ec-card-block ul { margin: 0; padding-left: 18px; }
.w74ec-card-block li { margin-bottom: 4px; }

.w74ec-list-inline { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 8px 0; }
.w74ec-chip {
  background: var(--w74ec-bg-soft);
  border: 1px solid var(--w74ec-line);
  color: var(--w74ec-text);
  border-radius: 18px;
  padding: 5px 10px;
  font-size: 1.15rem;
}
.w74ec-chip i { color: var(--w74ec-accent); margin-right: 4px; }

.w74ec-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.w74ec-stat {
  background: #191919;
  border: 1px solid var(--w74ec-line);
  border-radius: var(--w74ec-radius);
  padding: 10px;
  text-align: center;
}
.w74ec-stat-num { font-size: 1.8rem; color: var(--w74ec-accent); font-weight: 800; }
.w74ec-stat-label { color: var(--w74ec-muted); font-size: 1.15rem; }

.w74ec-cta {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, var(--w74ec-accent) 0%, var(--w74ec-accent-deep) 100%);
  color: #141414;
  font-weight: 800;
  padding: 14px;
  border-radius: var(--w74ec-radius-lg);
  margin: 12px 0;
  font-size: 1.55rem;
  cursor: pointer;
  border: none;
  box-shadow: 0 6px 18px rgba(255,209,102,0.25);
}
.w74ec-cta:active { transform: scale(0.97); }
.w74ec-cta-ghost {
  background: transparent;
  color: var(--w74ec-accent);
  border: 1px solid var(--w74ec-accent);
  box-shadow: none;
}

.w74ec-faq-item { border-bottom: 1px solid var(--w74ec-line); padding: 10px 0; }
.w74ec-faq-item h3 { font-size: 1.35rem; margin: 0 0 4px; color: var(--w74ec-text-strong); }
.w74ec-faq-item p { margin: 0; color: var(--w74ec-text); }

.w74ec-testimonial {
  background: #1a1a1a;
  border-left: 3px solid var(--w74ec-accent);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.w74ec-testimonial-name { color: var(--w74ec-accent); font-weight: 700; font-size: 1.2rem; }

/* ===== Footer ===== */
.w74ec-footer {
  background: #0e0e0e;
  border-top: 1px solid var(--w74ec-line);
  padding: 24px 12px 120px;
}
.w74ec-footer-brand { color: var(--w74ec-text); font-size: 1.25rem; margin-bottom: 10px; }
.w74ec-footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.w74ec-footer h4 { color: var(--w74ec-accent); font-size: 1.25rem; margin: 0 0 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.w74ec-footer ul { list-style: none; padding: 0; margin: 0; }
.w74ec-footer li { margin-bottom: 5px; }
.w74ec-footer a { color: var(--w74ec-text); font-size: 1.2rem; }
.w74ec-footer a:hover { color: var(--w74ec-accent); }
.w74ec-copyright {
  text-align: center;
  color: var(--w74ec-muted);
  font-size: 1.15rem;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--w74ec-line);
}

/* ===== Bottom nav ===== */
.w74ec-bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0;
  height: 62px; z-index: 1000;
  background: linear-gradient(180deg, #1c1c1c 0%, #0e0e0e 100%);
  border-top: 1px solid var(--w74ec-line);
  display: flex; justify-content: space-around; align-items: stretch;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.5);
}
.w74ec-bottomnav button, .w74ec-bottomnav a {
  flex: 1; background: transparent; border: none;
  color: var(--w74ec-text);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: 1.05rem; font-weight: 600; text-decoration: none;
  cursor: pointer; position: relative;
  transition: color 0.2s ease, transform 0.2s ease;
  min-width: 60px; min-height: 60px;
}
.w74ec-bottomnav button:active, .w74ec-bottomnav a:active { transform: scale(0.92); }
.w74ec-bottomnav button i, .w74ec-bottomnav a i,
.w74ec-bottomnav .material-icons, .w74ec-bottomnav ion-icon { font-size: 22px; }
.w74ec-bottomnav .w74ec-nav-current { color: var(--w74ec-accent); }
.w74ec-bottomnav .w74ec-nav-current::before {
  content: ""; position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 32px; height: 3px; border-radius: 0 0 4px 4px;
  background: var(--w74ec-accent);
}
.w74ec-bottomnav .w74ec-nav-promo i, .w74ec-bottomnav .w74ec-nav-promo ion-icon { color: var(--w74ec-accent); }

/* ===== Reveal animation & back-to-top ===== */
.w74ec-reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.w74ec-revealed { opacity: 1; transform: none; }
.w74ec-to-top {
  position: fixed; right: 14px; bottom: 78px;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--w74ec-accent); color: #141414;
  border: none;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 900; box-shadow: 0 6px 14px rgba(0,0,0,0.4);
}
.w74ec-to-top.w74ec-to-top-show { opacity: 1; pointer-events: auto; }

/* ===== Desktop: hide bottom nav, widen layout ===== */
@media (min-width: 769px) {
  .w74ec-bottomnav { display: none; }
  main.w74ec-main { padding-bottom: 32px; }
  .w74ec-wrapper { max-width: 960px; padding: 0 24px; }
  .w74ec-grid { grid-template-columns: repeat(6, 1fr); }
  .w74ec-footer { padding-bottom: 32px; }
  .w74ec-footer-grid { grid-template-columns: repeat(4, 1fr); }
}
