/* ============================================================
 * c 54 - Core Layout Stylesheet
 * Class prefix: wc74a-
 * Palette: #FFEBCD | #141414 | #FF9800 | #D4AF37 | #CD853F | #D3D3D3
 * Mobile-first, max-width 430px
 * ============================================================ */

:root {
  --wc74a-cream: #FFEBCD;
  --wc74a-bg: #141414;
  --wc74a-primary: #FF9800;
  --wc74a-gold: #D4AF37;
  --wc74a-peru: #CD853F;
  --wc74a-light: #D3D3D3;
  --wc74a-dark2: #1f1f1f;
  --wc74a-dark3: #2a2a2a;
  --wc74a-text: #FFEBCD;
  --wc74a-muted: #b9b9b9;
  --wc74a-radius: 10px;
  --wc74a-header-h: 56px;
  --wc74a-bnav-h: 60px;
}

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

html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }

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

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

.wc74a-container { width: 100%; padding: 0 14px; }
.wc74a-wrapper { max-width: 430px; margin: 0 auto; }

/* ---------- Header ---------- */
.wc74a-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: var(--wc74a-header-h);
  background: linear-gradient(90deg, #141414 0%, #2a2a2a 60%, #141414 100%);
  border-bottom: 2px solid var(--wc74a-gold);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.wc74a-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--wc74a-gold);
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: 0.5px;
}
.wc74a-logo .wc74a-logo-icon {
  width: 30px; height: 30px;
  background: radial-gradient(circle, var(--wc74a-primary), var(--wc74a-peru));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #141414; font-weight: 900; font-size: 1.3rem;
}

.wc74a-header-actions { display: flex; align-items: center; gap: 8px; }

.wc74a-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 14px;
  border: none;
  border-radius: 20px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  color: #141414;
}
.wc74a-btn:active { transform: scale(0.94); }
.wc74a-btn-register {
  background: linear-gradient(135deg, var(--wc74a-primary), var(--wc74a-gold));
  box-shadow: 0 2px 8px rgba(255,152,0,0.45);
}
.wc74a-btn-login {
  background: transparent;
  border: 1.5px solid var(--wc74a-gold);
  color: var(--wc74a-gold);
}

.wc74a-menu-toggle {
  background: transparent;
  border: none;
  color: var(--wc74a-cream);
  font-size: 2.2rem;
  cursor: pointer;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Nav menu (expandable) ---------- */
.wc74a-nav {
  position: fixed;
  top: var(--wc74a-header-h);
  left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: var(--wc74a-dark2);
  border-bottom: 2px solid var(--wc74a-peru);
  max-height: 0;
  overflow: hidden;
  transition: max-height .28s ease;
  z-index: 9999;
}
.wc74a-nav-open { max-height: 480px; }
.wc74a-nav-list {
  list-style: none;
  padding: 8px 14px 14px;
}
.wc74a-nav-list li { border-bottom: 1px solid #333; }
.wc74a-nav-list li:last-child { border-bottom: none; }
.wc74a-nav-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 6px;
  color: var(--wc74a-cream);
  font-size: 1.4rem;
  font-weight: 600;
}
.wc74a-nav-list a i { color: var(--wc74a-primary); font-size: 1.8rem; }

/* ---------- Main ---------- */
.wc74a-main {
  padding-top: calc(var(--wc74a-header-h) + 6px);
  padding-bottom: 80px;
}

/* ---------- Carousel ---------- */
.wc74a-carousel {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: var(--wc74a-radius);
  margin: 10px 0 16px;
}
.wc74a-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
  cursor: pointer;
}
.wc74a-slide-active { opacity: 1; }
.wc74a-slide img { width: 100%; height: 100%; object-fit: cover; }
.wc74a-slide-overlay {
  position: absolute;
  left: 12px; bottom: 14px;
  background: rgba(20,20,20,0.55);
  padding: 6px 12px;
  border-radius: 6px;
  color: var(--wc74a-cream);
  font-weight: 700;
  font-size: 1.3rem;
}
.wc74a-dots {
  position: absolute;
  bottom: 8px; right: 10px;
  display: flex; gap: 6px;
}
.wc74a-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,235,205,0.4);
  cursor: pointer;
  border: none;
}
.wc74a-dot-active { background: var(--wc74a-primary); }

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

/* H1 */
.wc74a-h1 {
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--wc74a-cream);
  text-align: center;
  margin: 14px 0 6px;
  line-height: 2.6rem;
}
.wc74a-h1 span { color: var(--wc74a-primary); }

/* ---------- Game grid ---------- */
.wc74a-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.wc74a-card {
  background: var(--wc74a-dark2);
  border: 1px solid #333;
  border-radius: var(--wc74a-radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease;
}
.wc74a-card:active { transform: scale(0.95); border-color: var(--wc74a-primary); }
.wc74a-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #000;
}
.wc74a-card-name {
  padding: 6px 6px 8px;
  font-size: 1.15rem;
  color: var(--wc74a-cream);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

/* ---------- Content / promo boxes ---------- */
.wc74a-box {
  background: var(--wc74a-dark2);
  border: 1px solid #333;
  border-radius: var(--wc74a-radius);
  padding: 14px;
  margin: 12px 0;
}
.wc74a-box h2 {
  color: var(--wc74a-gold);
  font-size: 1.6rem;
  margin-bottom: 8px;
}
.wc74a-box h3 {
  color: var(--wc74a-primary);
  font-size: 1.4rem;
  margin: 10px 0 6px;
}
.wc74a-box p {
  color: var(--wc74a-light);
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.wc74a-promo-link {
  color: var(--wc74a-primary);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

/* ---------- CTA button large ---------- */
.wc74a-cta {
  display: flex;
  justify-content: center;
  margin: 16px 0;
}
.wc74a-cta-btn {
  background: linear-gradient(135deg, var(--wc74a-primary), var(--wc74a-gold));
  color: #141414;
  font-weight: 800;
  font-size: 1.6rem;
  padding: 12px 28px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255,152,0,0.5);
  transition: transform .15s ease;
}
.wc74a-cta-btn:active { transform: scale(0.94); }

/* ---------- Testimonial / winner ---------- */
.wc74a-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wc74a-list li {
  background: var(--wc74a-dark2);
  border-left: 3px solid var(--wc74a-gold);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 1.25rem;
  color: var(--wc74a-light);
}
.wc74a-list li b { color: var(--wc74a-primary); }

/* ---------- Payment methods ---------- */
.wc74a-pay {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.wc74a-pay span {
  background: var(--wc74a-dark2);
  border: 1px solid #444;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 1.2rem;
  color: var(--wc74a-cream);
}

/* ---------- Footer ---------- */
.wc74a-footer {
  background: var(--wc74a-dark2);
  border-top: 2px solid var(--wc74a-gold);
  padding: 18px 14px 24px;
  margin-top: 18px;
}
.wc74a-footer-brand {
  color: var(--wc74a-cream);
  font-size: 1.3rem;
  margin-bottom: 12px;
}
.wc74a-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 12px;
}
.wc74a-footer-links a {
  color: var(--wc74a-light);
  font-size: 1.2rem;
  text-decoration: underline;
}
.wc74a-footer-links a:hover { color: var(--wc74a-primary); }
.wc74a-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.wc74a-footer-promo button {
  flex: 1 1 auto;
  min-height: 38px;
  background: linear-gradient(135deg, var(--wc74a-peru), var(--wc74a-primary));
  color: #141414;
  border: none;
  border-radius: 20px;
  font-weight: 700;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0 10px;
}
.wc74a-footer-copy {
  color: var(--wc74a-muted);
  font-size: 1.1rem;
  text-align: center;
  margin-top: 10px;
}

/* ---------- Mobile bottom nav ---------- */
.wc74a-bnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: var(--wc74a-bnav-h);
  background: linear-gradient(180deg, #2a2a2a, #141414);
  border-top: 2px solid var(--wc74a-gold);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.6);
}
.wc74a-bnav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--wc74a-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  font-size: 1.05rem;
  transition: color .15s ease, transform .15s ease;
}
.wc74a-bnav-btn i, .wc74a-bnav-btn .material-icons-outlined,
.wc74a-bnav-btn .ion-icon { font-size: 22px; }
.wc74a-bnav-btn:active { transform: scale(0.9); color: var(--wc74a-primary); }
.wc74a-bnav-active { color: var(--wc74a-primary) !important; }
.wc74a-bnav-active i, .wc74a-bnav-active .material-icons-outlined { color: var(--wc74a-primary); }

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  .wc74a-bnav { display: none; }
  body { max-width: 900px; }
  .wc74a-header, .wc74a-nav, .wc74a-bnav { max-width: 900px; }
  .wc74a-grid { grid-template-columns: repeat(6, 1fr); }
  .wc74a-carousel { height: 280px; }
  .wc74a-main { padding-bottom: 30px; }
}

@media (min-width: 431px) and (max-width: 768px) {
  .wc74a-grid { grid-template-columns: repeat(4, 1fr); }
  .wc74a-carousel { height: 220px; }
}
