/* ============================================================
   PH SPIN - Theme CSS (theme-7946.css)
   All classes use prefix: w7946-
   Palette: #8B7355 | #CD853F | #AFEEEE | #0C0C0C | #48D1CC | #A9A9A9
   ============================================================ */

:root {
  --w7946-primary: #CD853F;
  --w7946-secondary: #48D1CC;
  --w7946-accent: #AFEEEE;
  --w7946-brown: #8B7355;
  --w7946-bg: #0C0C0C;
  --w7946-bg2: #15120f;
  --w7946-card: #1c1814;
  --w7946-text: #f5f0e6;
  --w7946-muted: #A9A9A9;
  --w7946-border: rgba(205, 133, 63, 0.25);
  --w7946-gold: #e6b35a;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--w7946-bg);
  color: var(--w7946-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  -webkit-font-smoothing: antialiased;
  max-width: 430px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

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

/* ---------- Layout ---------- */
.w7946-wrapper { width: 100%; max-width: 430px; margin: 0 auto; }
.w7946-container { padding: 0 1.4rem; width: 100%; }
.w7946-main { padding-bottom: 80px; }

/* ---------- Header ---------- */
.w7946-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #1a140e 0%, #0C0C0C 100%);
  border-bottom: 1px solid var(--w7946-border);
  max-width: 430px;
  margin: 0 auto;
}
.w7946-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.2rem;
  gap: 0.8rem;
}
.w7946-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--w7946-text);
  font-weight: 700;
  font-size: 1.7rem;
}
.w7946-brand img { width: 28px; height: 28px; border-radius: 6px; }
.w7946-brand span b { color: var(--w7946-primary); }
.w7946-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.w7946-menu-btn {
  background: transparent;
  border: 1px solid var(--w7946-border);
  color: var(--w7946-text);
  width: 36px; height: 36px;
  border-radius: 8px;
  font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.w7946-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.3rem;
  border: none;
  cursor: pointer;
  min-height: 40px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.w7946-btn:active { transform: scale(0.96); }
.w7946-btn-primary {
  background: linear-gradient(135deg, var(--w7946-primary), var(--w7946-gold));
  color: #1a140e;
  box-shadow: 0 4px 14px rgba(205, 133, 63, 0.35);
}
.w7946-btn-ghost {
  background: transparent;
  color: var(--w7946-text);
  border: 1px solid var(--w7946-secondary);
}
.w7946-btn-block { width: 100%; }
.w7946-btn-link {
  color: var(--w7946-secondary);
  font-weight: 700;
  text-decoration: underline;
}

/* ---------- Mobile menu ---------- */
.w7946-mobile-menu {
  position: fixed;
  top: 56px; left: 0; right: 0;
  z-index: 9999;
  background: #15120f;
  border-bottom: 1px solid var(--w7946-border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  max-width: 430px;
  margin: 0 auto;
}
.w7946-menu-open { max-height: 480px; }
.w7946-mobile-menu a {
  display: block;
  padding: 1.1rem 1.4rem;
  color: var(--w7946-text);
  border-bottom: 1px solid rgba(205, 133, 63, 0.12);
  font-size: 1.4rem;
}
.w7946-mobile-menu a:active { background: rgba(72, 209, 204, 0.1); }

/* ---------- Hero / Carousel ---------- */
.w7946-hero {
  margin-top: 56px;
  padding: 1rem 0 0.4rem;
}
.w7946-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 0.8rem;
  padding: 0 1rem 0.6rem;
}
.w7946-carousel::-webkit-scrollbar { display: none; }
.w7946-slide {
  flex: 0 0 90%;
  scroll-snap-align: center;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.w7946-slide img { width: 100%; height: 160px; object-fit: cover; }

/* ---------- Sections ---------- */
.w7946-section { padding: 1.6rem 0; }
.w7946-section-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0 0 1rem;
  color: var(--w7946-text);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.w7946-section-title i { color: var(--w7946-primary); }
.w7946-lead {
  color: var(--w7946-muted);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.w7946-h1 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 0.6rem;
}
.w7946-h2 {
  font-size: 1.7rem;
  font-weight: 700;
  margin: 1.6rem 0 0.8rem;
  color: var(--w7946-accent);
}
.w7946-h3 {
  font-size: 1.45rem;
  font-weight: 700;
  margin: 1.2rem 0 0.6rem;
  color: var(--w7946-secondary);
}
.w7946-p { color: var(--w7946-text); margin: 0 0 1rem; }
.w7946-muted { color: var(--w7946-muted); }

/* ---------- Game grid ---------- */
.w7946-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
.w7946-game-card {
  background: var(--w7946-card);
  border: 1px solid var(--w7946-border);
  border-radius: 10px;
  padding: 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.w7946-game-card:active {
  transform: scale(0.95);
  border-color: var(--w7946-secondary);
}
.w7946-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}
.w7946-game-name {
  font-size: 1.1rem;
  color: var(--w7946-text);
  margin-top: 0.4rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Card ---------- */
.w7946-card {
  background: var(--w7946-card);
  border: 1px solid var(--w7946-border);
  border-radius: 12px;
  padding: 1.2rem;
  margin-bottom: 1rem;
}

/* ---------- Data row ---------- */
.w7946-stat-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px dashed rgba(169, 169, 169, 0.25);
  font-size: 1.3rem;
}
.w7946-stat-row span:first-child { color: var(--w7946-muted); }
.w7946-stat-row span:last-child { color: var(--w7946-secondary); font-weight: 700; }

/* ---------- Badges ---------- */
.w7946-badge {
  display: inline-block;
  background: rgba(72, 209, 204, 0.15);
  color: var(--w7946-secondary);
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  font-size: 1.1rem;
  font-weight: 700;
}
.w7946-badge-gold {
  background: rgba(205, 133, 63, 0.2);
  color: var(--w7946-gold);
}

/* ---------- Footer ---------- */
.w7946-footer {
  background: #0a0907;
  border-top: 1px solid var(--w7946-border);
  padding: 1.6rem 1.4rem 2rem;
  margin-top: 1.6rem;
}
.w7946-footer p { color: var(--w7946-muted); font-size: 1.3rem; }
.w7946-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0;
}
.w7946-footer-links a {
  background: var(--w7946-card);
  border: 1px solid var(--w7946-border);
  color: var(--w7946-text);
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-size: 1.2rem;
}
.w7946-footer-copy { color: var(--w7946-muted); font-size: 1.2rem; margin-top: 1rem; }

/* ---------- Bottom nav ---------- */
.w7946-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  z-index: 1000;
  background: #15120f;
  border-top: 1px solid var(--w7946-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  max-width: 430px;
  margin: 0 auto;
}
.w7946-bottomnav-item {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  background: transparent;
  border: none;
  color: var(--w7946-muted);
  font-size: 1.05rem;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}
.w7946-bottomnav-item i,
.w7946-bottomnav-item span.material-icons,
.w7946-bottomnav-item ion-icon { font-size: 22px; }
.w7946-bottomnav-item:active { transform: scale(0.92); }
.w7946-bottomnav-active { color: var(--w7946-primary); }
.w7946-bottomnav-promo { color: var(--w7946-secondary); }

/* ---------- Testimonials ---------- */
.w7946-quote {
  background: var(--w7946-card);
  border-left: 3px solid var(--w7946-primary);
  padding: 0.9rem 1rem;
  border-radius: 8px;
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}
.w7946-quote b { color: var(--w7946-gold); }

/* ---------- Winners strip ---------- */
.w7946-winner {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 1.25rem;
  border-bottom: 1px dotted rgba(169, 169, 169, 0.2);
}

/* ---------- Responsive ---------- */
@media (max-width: 430px) {
  body { font-size: 1.45rem; }
  .w7946-grid { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .w7946-h1 { font-size: 2rem; }
  .w7946-section-title { font-size: 1.6rem; }
  .w7946-main { padding-bottom: 80px; }
}

@media (min-width: 769px) {
  .w7946-bottomnav { display: none; }
  .w7946-main { padding-bottom: 1.6rem; }
}
