/* ============================================================
 * CrazyWingo - Shared stylesheet (basefiles)
 * All custom classes use the dynamic prefix: se7d-
 * Palette: #DAA520 | #273746 | #E8F5E8 | #D4AF37 | #FAFAD2
 * Mobile-first. Desktop hides bottom nav.
 * ============================================================ */

:root {
  --se7d-primary: #DAA520;       /* Brand gold */
  --se7d-accent: #D4AF37;        /* Metallic gold accent */
  --se7d-bg: #273746;            /* Dark slate background */
  --se7d-bg-deep: #1c2832;       /* Deeper section background */
  --se7d-text: #E8F5E8;          /* Light text */
  --se7d-text-soft: #FAFAD2;     /* Soft highlight text */
  --se7d-line: rgba(218, 165, 32, 0.25);
  --se7d-radius: 1.2rem;
  --se7d-shadow: 0 0.4rem 1.5rem rgba(0, 0, 0, 0.35);
  --se7d-header-h: 5.6rem;
  --se7d-bottom-h: 6.2rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(160deg, #273746 0%, #1c2832 60%, #16202a 100%);
  color: var(--se7d-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--se7d-accent); text-decoration: none; }
a:hover { color: var(--se7d-primary); }

h1, h2, h3, h4 { line-height: 1.6rem; color: var(--se7d-text-soft); margin: 0 0 0.8rem; }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.6rem; }

p { margin: 0 0 1rem; }

/* ============= Layout containers ============= */
.se7d-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  background: rgba(28, 40, 50, 0.55);
  min-height: 100vh;
}

.se7d-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

main.se7d-main {
  padding-top: calc(var(--se7d-header-h) + 1rem);
  padding-bottom: calc(var(--se7d-bottom-h) + 2rem);
}

/* ============= Top header ============= */
.se7d-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  height: var(--se7d-header-h);
  background: linear-gradient(180deg, rgba(28, 40, 50, 0.98) 0%, rgba(39, 55, 70, 0.95) 100%);
  border-bottom: 0.2rem solid var(--se7d-primary);
  box-shadow: 0 0.3rem 1rem rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  z-index: 1000;
}

.se7d-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  min-width: 0;
}
.se7d-logo img { width: 3rem; height: 3rem; border-radius: 0.6rem; }
.se7d-logo span {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--se7d-primary);
  letter-spacing: 0.05rem;
  white-space: nowrap;
}
.se7d-logo small {
  display: block;
  font-size: 1rem;
  color: var(--se7d-text);
  opacity: 0.7;
  font-weight: 400;
}

.se7d-header-actions { display: flex; align-items: center; gap: 0.5rem; }

.se7d-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3.6rem;
  padding: 0 1.2rem;
  border-radius: 2rem;
  border: none;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  text-decoration: none;
  line-height: 1;
}
.se7d-btn:hover { transform: translateY(-0.1rem); }
.se7d-btn-primary {
  background: linear-gradient(135deg, #DAA520 0%, #D4AF37 100%);
  color: #1c2832;
  box-shadow: 0 0.3rem 0.8rem rgba(218, 165, 32, 0.45);
}
.se7d-btn-outline {
  background: transparent;
  color: var(--se7d-text-soft);
  border: 0.15rem solid var(--se7d-primary);
}
.se7d-btn-block { width: 100%; padding: 1.1rem; font-size: 1.5rem; }

/* Menu toggle button */
.se7d-menu-toggle {
  background: transparent;
  border: none;
  color: var(--se7d-text-soft);
  font-size: 2rem;
  padding: 0.6rem;
  cursor: pointer;
  line-height: 1;
}
.se7d-menu-toggle.se7d-active { color: var(--se7d-primary); }

/* Expandable mobile menu */
.se7d-mobile-menu {
  position: fixed;
  top: var(--se7d-header-h);
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: #1c2832;
  border-bottom: 0.2rem solid var(--se7d-primary);
  box-shadow: var(--se7d-shadow);
  padding: 1rem 1.2rem;
  transform: translateY(-130%);
  transition: transform 0.3s ease;
  z-index: 9999;
  max-height: 70vh;
  overflow-y: auto;
}
.se7d-mobile-menu.se7d-menu-open { transform: translateY(0); }
.se7d-mobile-menu a {
  display: block;
  padding: 1rem 0.6rem;
  color: var(--se7d-text);
  border-bottom: 0.1rem solid rgba(255, 255, 255, 0.06);
  font-size: 1.4rem;
}
.se7d-mobile-menu a:hover { color: var(--se7d-primary); padding-left: 1.2rem; }

/* ============= Carousel ============= */
.se7d-carousel {
  position: relative;
  border-radius: var(--se7d-radius);
  overflow: hidden;
  box-shadow: var(--se7d-shadow);
  margin-bottom: 1.5rem;
}
.se7d-carousel-track { position: relative; width: 100%; }
.se7d-carousel-slide {
  display: none;
  width: 100%;
  cursor: pointer;
  position: relative;
}
.se7d-carousel-slide.se7d-active { display: block; }
.se7d-carousel-slide img {
  width: 100%;
  height: 18rem;
  object-fit: cover;
}
.se7d-carousel-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1rem 1.2rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0) 100%);
  color: var(--se7d-text-soft);
  font-weight: 700;
  font-size: 1.4rem;
}
.se7d-carousel-dots {
  position: absolute;
  bottom: 0.8rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
}
.se7d-carousel-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
}
.se7d-carousel-dot.se7d-active { background: var(--se7d-primary); }

/* ============= Hero / H1 ============= */
.se7d-hero {
  text-align: center;
  padding: 1rem 0 1.5rem;
}
.se7d-hero h1 { color: var(--se7d-text-soft); margin-bottom: 0.6rem; }
.se7d-hero .se7d-subtitle { color: var(--se7d-text); opacity: 0.85; font-size: 1.4rem; }

.se7d-cta-row {
  display: flex;
  gap: 0.8rem;
  margin: 1.2rem 0;
}
.se7d-cta-row .se7d-btn { flex: 1; }

/* ============= Section blocks ============= */
.se7d-section {
  margin-bottom: 2rem;
  background: rgba(28, 40, 50, 0.6);
  border: 0.1rem solid var(--se7d-line);
  border-radius: var(--se7d-radius);
  padding: 1.4rem 1.2rem;
}
.se7d-section-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.7rem;
  color: var(--se7d-primary);
  border-left: 0.3rem solid var(--se7d-primary);
  padding-left: 0.8rem;
  margin-bottom: 1rem;
}
.se7d-section-title i { font-size: 1.8rem; }

/* ============= Game grid ============= */
.se7d-cat-chips {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.6rem;
  margin-bottom: 0.8rem;
}
.se7d-cat-chip {
  flex: 0 0 auto;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 0.1rem solid var(--se7d-line);
  border-radius: 1.5rem;
  font-size: 1.2rem;
  color: var(--se7d-text);
  cursor: pointer;
  white-space: nowrap;
}
.se7d-cat-chip.se7d-active {
  background: var(--se7d-primary);
  color: #1c2832;
  border-color: var(--se7d-primary);
}

.se7d-game-section h3 {
  color: var(--se7d-accent);
  margin: 1rem 0 0.6rem;
  font-size: 1.5rem;
}

.se7d-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
.se7d-game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(39, 55, 70, 0.7);
  border: 0.1rem solid var(--se7d-line);
  border-radius: 0.8rem;
  padding: 0.5rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.se7d-game-card:hover {
  transform: translateY(-0.2rem);
  box-shadow: 0 0.4rem 1rem rgba(218, 165, 32, 0.3);
  border-color: var(--se7d-primary);
}
.se7d-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0.6rem;
}
.se7d-game-card .se7d-game-name {
  margin-top: 0.4rem;
  font-size: 1.1rem;
  text-align: center;
  color: var(--se7d-text);
  line-height: 1.2rem;
  height: 2.4rem;
  overflow: hidden;
  word-break: break-word;
}

.se7d-hidden { display: none !important; }

/* ============= Feature / promo / rtp cards ============= */
.se7d-card {
  background: rgba(28, 40, 50, 0.7);
  border: 0.1rem solid var(--se7d-line);
  border-radius: 1rem;
  padding: 1.2rem;
  margin-bottom: 1rem;
}
.se7d-card h4 { color: var(--se7d-accent); margin-bottom: 0.5rem; }

.se7d-rtp-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}
.se7d-rtp-item {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0.6rem;
  padding: 0.7rem;
  text-align: center;
}
.se7d-rtp-item .se7d-rtp-value {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--se7d-primary);
}
.se7d-rtp-item .se7d-rtp-label {
  font-size: 1.1rem;
  color: var(--se7d-text);
  opacity: 0.8;
}

.se7d-feature-row {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}
.se7d-feature-row i {
  color: var(--se7d-primary);
  font-size: 1.8rem;
  flex: 0 0 auto;
  width: 3rem;
  text-align: center;
  margin-top: 0.2rem;
}

/* Testimonials */
.se7d-testimonial {
  background: rgba(255, 255, 255, 0.04);
  border-left: 0.3rem solid var(--se7d-primary);
  border-radius: 0.6rem;
  padding: 0.8rem 1rem;
  margin-bottom: 0.8rem;
}
.se7d-testimonial .se7d-stars { color: var(--se7d-primary); }
.se7d-testimonial .se7d-author { font-size: 1.2rem; color: var(--se7d-text-soft); margin-top: 0.3rem; }

/* Payment methods */
.se7d-payment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  text-align: center;
}
.se7d-payment-item {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0.6rem;
  padding: 0.8rem 0.4rem;
  font-size: 1.1rem;
  color: var(--se7d-text-soft);
}
.se7d-payment-item i { display: block; font-size: 1.8rem; margin-bottom: 0.3rem; color: var(--se7d-primary); }

/* Winners list */
.se7d-winner-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 0.1rem solid rgba(255, 255, 255, 0.05);
  font-size: 1.3rem;
}
.se7d-winner-row:last-child { border-bottom: none; }
.se7d-winner-amount { color: var(--se7d-primary); font-weight: 700; }

/* App download CTA */
.se7d-app-cta {
  text-align: center;
  background: linear-gradient(135deg, rgba(218, 165, 32, 0.15), rgba(212, 175, 55, 0.08));
  border-radius: 1rem;
  padding: 1.4rem;
}
.se7d-app-cta h3 { color: var(--se7d-primary); }

/* Inline promo text link */
.se7d-promo-link {
  color: var(--se7d-primary);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}
.se7d-promo-link:hover { color: var(--se7d-text-soft); }

/* ============= Footer ============= */
.se7d-footer {
  background: #16202a;
  border-top: 0.2rem solid var(--se7d-primary);
  padding: 1.8rem 1.2rem calc(var(--se7d-bottom-h) + 1.5rem);
  margin-top: 1.5rem;
}
.se7d-footer-brand { font-size: 1.3rem; color: var(--se7d-text-soft); margin-bottom: 0.8rem; opacity: 0.85; }
.se7d-footer-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.8rem 0;
}
.se7d-footer-promos .se7d-btn {
  flex: 1 1 calc(50% - 0.5rem);
  min-height: 3.2rem;
  padding: 0.6rem 0.8rem;
  font-size: 1.2rem;
}
.se7d-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0.8rem 0;
}
.se7d-footer-links a {
  font-size: 1.2rem;
  color: var(--se7d-text);
  opacity: 0.8;
}
.se7d-footer-links a:hover { color: var(--se7d-primary); opacity: 1; }
.se7d-copyright {
  font-size: 1.1rem;
  color: var(--se7d-text);
  opacity: 0.6;
  margin-top: 1rem;
  border-top: 0.1rem solid rgba(255, 255, 255, 0.06);
  padding-top: 1rem;
  text-align: center;
}

/* ============= Mobile bottom nav ============= */
.se7d-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: var(--se7d-bottom-h);
  background: linear-gradient(180deg, rgba(28, 40, 50, 0.98) 0%, #16202a 100%);
  border-top: 0.15rem solid var(--se7d-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -0.3rem 1rem rgba(0, 0, 0, 0.4);
}
.se7d-bottom-nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--se7d-text);
  cursor: pointer;
  font-size: 1.1rem;
  text-decoration: none;
  padding: 0.4rem 0.2rem;
  transition: transform 0.15s ease, color 0.15s ease;
}
.se7d-bottom-nav-btn i,
.se7d-bottom-nav-btn .material-icons,
.se7d-bottom-nav-btn ion-icon {
  font-size: 2.2rem;
}
.se7d-bottom-nav-btn:hover { transform: translateY(-0.15rem); color: var(--se7d-primary); }
.se7d-bottom-nav-btn.se7d-current { color: var(--se7d-primary); }
.se7d-bottom-nav-btn .se7d-nav-label { font-size: 1.1rem; line-height: 1.2rem; }

/* Highlight the central promo button */
.se7d-bottom-nav-btn.se7d-nav-promo {
  position: relative;
}
.se7d-bottom-nav-btn.se7d-nav-promo::before {
  content: '';
  position: absolute;
  top: -1.2rem;
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #DAA520, #D4AF37);
  box-shadow: 0 0.3rem 0.8rem rgba(218, 165, 32, 0.55);
  z-index: -1;
}
.se7d-bottom-nav-btn.se7d-nav-promo i,
.se7d-bottom-nav-btn.se7d-nav-promo span {
  color: #1c2832;
}

/* ============= Desktop adaptations ============= */
@media (min-width: 769px) {
  .se7d-bottom-nav { display: none; }
  main.se7d-main {
    padding-bottom: 3rem;
  }
  .se7d-footer {
    padding-bottom: 1.8rem;
  }
}

/* Tablet / narrow refinements */
@media (max-width: 768px) {
  body { font-size: 1.35rem; }
}

/* Small landscape phones */
@media (max-width: 360px) {
  .se7d-game-grid { grid-template-columns: repeat(2, 1fr); }
  .se7d-logo span { font-size: 1.5rem; }
}

/* ============= Help page components ============= */
/* FAQ item block used on crazywingo-faqs.html */
.se7d-faq-item {
  background: rgba(39, 55, 70, 0.65);
  border: 0.1rem solid var(--se7d-line);
  border-left: 0.3rem solid var(--se7d-primary);
  border-radius: 0.8rem;
  padding: 1rem 1.1rem;
  margin-bottom: 0.8rem;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.se7d-faq-item:hover {
  box-shadow: 0 0.3rem 0.9rem rgba(218, 165, 32, 0.25);
  transform: translateY(-0.1rem);
}
.se7d-faq-item h3 {
  font-size: 1.4rem;
  color: var(--se7d-text-soft);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.se7d-faq-item h3 i { color: var(--se7d-primary); margin-top: 0.2rem; font-size: 1.3rem; }
.se7d-faq-item p { margin-bottom: 0; font-size: 1.3rem; }

/* Numbered step block used on how-to-play-crazywingo.html */
.se7d-step {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: rgba(39, 55, 70, 0.65);
  border: 0.1rem solid var(--se7d-line);
  border-radius: 0.8rem;
  padding: 1rem;
  margin-bottom: 0.8rem;
}
.se7d-step-num {
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #DAA520, #D4AF37);
  color: #1c2832;
  font-weight: 800;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0.2rem 0.6rem rgba(218, 165, 32, 0.4);
}
.se7d-step h3 { font-size: 1.4rem; margin-bottom: 0.4rem; }
.se7d-step p { margin-bottom: 0; font-size: 1.3rem; }

/* Highlighted notice / responsible-play box */
.se7d-notice {
  background: linear-gradient(135deg, rgba(218, 165, 32, 0.14), rgba(212, 175, 55, 0.06));
  border: 0.1rem dashed var(--se7d-primary);
  border-radius: 0.8rem;
  padding: 1rem 1.1rem;
  font-size: 1.3rem;
  margin: 1rem 0;
}
.se7d-notice strong { color: var(--se7d-text-soft); }

/* Utility */
.se7d-text-center { text-align: center; }
.se7d-mt-1 { margin-top: 0.8rem; }
.se7d-mt-2 { margin-top: 1.5rem; }
.se7d-mb-1 { margin-bottom: 0.8rem; }
.se7d-mb-2 { margin-bottom: 1.5rem; }
.se7d-list { padding-left: 1.5rem; margin: 0 0 1rem; }
.se7d-list li { margin-bottom: 0.5rem; }
