/*!
 * Playing card game - theme-034e.css
 * Mobile-first responsive theme for playing-card-game.click
 * All custom classes use the w034e- prefix.
 * Palette: #FF0000 (primary red) | #0F0F23 (deep ink) | #E9967A (warm sand) | #BDC3C7 (cool grey)
 */

:root {
  --w034e-primary: #FF0000;
  --w034e-primary-dark: #c40000;
  --w034e-bg: #0F0F23;
  --w034e-bg-2: #161634;
  --w034e-bg-3: #1f1f4a;
  --w034e-text: #BDC3C7;
  --w034e-text-strong: #ffffff;
  --w034e-sand: #E9967A;
  --w034e-sand-soft: rgba(233, 150, 122, 0.15);
  --w034e-border: rgba(189, 195, 199, 0.14);
  --w034e-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  --w034e-radius: 12px;
  --w034e-radius-lg: 18px;
  --w034e-maxw: 430px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  background: var(--w034e-bg);
  color: var(--w034e-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
}

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

a { color: var(--w034e-sand); text-decoration: none; }
a:hover { color: var(--w034e-primary); }

.w034e-container {
  width: 100%;
  max-width: var(--w034e-maxw);
  margin: 0 auto;
  padding: 0 14px;
}

.w034e-wrapper { padding: 18px 14px; }

/* ============ Header ============ */
.w034e-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(15,15,35,0.98), rgba(15,15,35,0.92));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--w034e-border);
}

.w034e-header-inner {
  max-width: var(--w034e-maxw);
  margin: 0 auto;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.w034e-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex: 1;
  min-width: 0;
}

.w034e-logo-img {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--w034e-primary);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px;
}

.w034e-logo-text {
  color: var(--w034e-text-strong);
  font-weight: 700;
  font-size: 1.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.w034e-logo-text span { color: var(--w034e-primary); }

.w034e-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, background .2s ease;
  min-height: 36px;
  line-height: 1;
}

.w034e-btn:hover { transform: translateY(-1px); }

.w034e-btn-register {
  background: linear-gradient(135deg, var(--w034e-primary), var(--w034e-primary-dark));
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.35);
}

.w034e-btn-login {
  background: transparent;
  color: var(--w034e-text-strong);
  border: 1px solid var(--w034e-sand);
}

.w034e-menu-btn {
  background: transparent;
  border: 1px solid var(--w034e-border);
  color: var(--w034e-text-strong);
  width: 36px; height: 36px;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ============ Mobile menu drawer ============ */
.w034e-mobile-menu {
  position: fixed;
  top: 56px; right: -100%;
  width: 80%;
  max-width: 320px;
  background: var(--w034e-bg-2);
  border-left: 1px solid var(--w034e-border);
  z-index: 9999;
  padding: 14px;
  height: calc(100vh - 56px);
  overflow-y: auto;
  transition: right .25s ease;
}

.w034e-mobile-menu.w034e-menu-open { right: 0; }

.w034e-mobile-menu a {
  display: block;
  padding: 12px 10px;
  color: var(--w034e-text);
  border-bottom: 1px solid var(--w034e-border);
  font-size: 1.35rem;
}

.w034e-mobile-menu a:hover { color: var(--w034e-primary); background: var(--w034e-bg-3); }

.w034e-menu-title {
  color: var(--w034e-sand);
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 6px 0 4px;
}

/* ============ Hero / Carousel ============ */
.w034e-main { padding-top: 60px; padding-bottom: 80px; }

.w034e-carousel {
  position: relative;
  border-radius: var(--w034e-radius-lg);
  overflow: hidden;
  margin: 12px 0;
  box-shadow: var(--w034e-shadow);
}

.w034e-slide {
  display: none;
  position: relative;
}

.w034e-slide.w034e-slide-active { display: block; }

.w034e-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.w034e-slide-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 24px 16px 14px;
  background: linear-gradient(180deg, rgba(15,15,35,0), rgba(15,15,35,0.85));
  color: var(--w034e-text-strong);
}

.w034e-slide-cap h2 {
  margin: 0 0 4px;
  font-size: 1.7rem;
  color: var(--w034e-sand);
}

.w034e-slide-cap p { margin: 0; font-size: 1.2rem; }

.w034e-dots {
  position: absolute;
  bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}

.w034e-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(189,195,199,0.4);
  border: none; cursor: pointer;
}

.w034e-dot.w034e-dot-active { background: var(--w034e-primary); }

/* ============ Section heading ============ */
.w034e-section { margin: 22px 0; }

.w034e-section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--w034e-primary);
}

.w034e-section-head h2 {
  margin: 0;
  font-size: 1.6rem;
  color: var(--w034e-text-strong);
  flex: 1;
}

.w034e-section-head .w034e-icon {
  color: var(--w034e-primary);
  font-size: 20px;
}

.w034e-section-head a {
  font-size: 1.15rem;
  color: var(--w034e-sand);
}

/* ============ Game grid ============ */
.w034e-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.w034e-card {
  background: var(--w034e-bg-2);
  border: 1px solid var(--w034e-border);
  border-radius: var(--w034e-radius);
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: transform .15s ease, border-color .2s ease;
  display: block;
  color: var(--w034e-text);
}

.w034e-card:hover {
  transform: translateY(-2px);
  border-color: var(--w034e-primary);
  color: var(--w034e-text);
}

.w034e-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--w034e-bg-3);
}

.w034e-card-name {
  font-size: 1.15rem;
  padding: 6px 4px;
  color: var(--w034e-text-strong);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.w034e-card-tag {
  display: inline-block;
  background: var(--w034e-sand-soft);
  color: var(--w034e-sand);
  font-size: 1rem;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 6px;
}

/* ============ Generic content blocks ============ */
.w034e-box {
  background: var(--w034e-bg-2);
  border: 1px solid var(--w034e-border);
  border-radius: var(--w034e-radius);
  padding: 14px;
  margin-bottom: 12px;
}

.w034e-box h3 {
  margin: 0 0 8px;
  font-size: 1.4rem;
  color: var(--w034e-sand);
}

.w034e-box p { margin: 0 0 8px; font-size: 1.3rem; line-height: 1.6; }

.w034e-box ul { margin: 0; padding-left: 18px; }
.w034e-box li { margin-bottom: 4px; font-size: 1.25rem; line-height: 1.55; }

.w034e-promo-inline {
  color: var(--w034e-primary);
  font-weight: 700;
}

.w034e-cta {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, var(--w034e-primary), var(--w034e-primary-dark));
  color: #fff !important;
  padding: 12px;
  border-radius: var(--w034e-radius);
  font-weight: 700;
  font-size: 1.4rem;
  margin: 12px 0;
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.35);
}
.w034e-cta:hover { color: #fff !important; opacity: .92; }

/* ============ Featured winners list ============ */
.w034e-winner {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--w034e-border);
}
.w034e-winner:last-child { border-bottom: none; }
.w034e-winner-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--w034e-primary);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 1.3rem;
}
.w034e-winner-info { flex: 1; }
.w034e-winner-name { color: var(--w034e-text-strong); font-weight: 600; font-size: 1.25rem; }
.w034e-winner-game { color: var(--w034e-text); font-size: 1.1rem; }
.w034e-winner-amt { color: var(--w034e-sand); font-weight: 700; font-size: 1.25rem; }

/* ============ Payment / app strip ============ */
.w034e-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.w034e-chip {
  background: var(--w034e-bg-3);
  border: 1px solid var(--w034e-border);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 1.15rem;
  color: var(--w034e-text-strong);
  display: inline-flex; align-items: center; gap: 4px;
}

/* ============ FAQ ============ */
.w034e-faq-item {
  border-bottom: 1px solid var(--w034e-border);
  padding: 10px 0;
}
.w034e-faq-item h3 {
  margin: 0 0 4px;
  font-size: 1.3rem;
  color: var(--w034e-sand);
}
.w034e-faq-item p { margin: 0; font-size: 1.22rem; line-height: 1.55; }

/* ============ Footer ============ */
.w034e-footer {
  background: var(--w034e-bg-2);
  border-top: 2px solid var(--w034e-primary);
  padding: 20px 14px 100px;
  margin-top: 24px;
}

.w034e-footer-brand {
  color: var(--w034e-text-strong);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.w034e-footer p { font-size: 1.2rem; line-height: 1.5; margin: 0 0 10px; }

.w034e-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
  margin: 10px 0;
}
.w034e-footer-links a {
  font-size: 1.15rem;
  color: var(--w034e-text);
}
.w034e-footer-links a:hover { color: var(--w034e-primary); }

.w034e-footer-copy {
  font-size: 1.1rem;
  color: var(--w034e-text);
  border-top: 1px solid var(--w034e-border);
  padding-top: 10px;
  margin-top: 10px;
  text-align: center;
}

/* ============ Bottom nav ============ */
.w034e-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  background: linear-gradient(180deg, var(--w034e-bg-2), var(--w034e-bg));
  border-top: 1px solid var(--w034e-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.w034e-bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--w034e-text);
  font-size: 1rem;
  text-decoration: none;
  min-width: 60px;
  min-height: 60px;
  transition: color .15s ease, transform .15s ease;
  position: relative;
}

.w034e-bottom-nav a:hover, .w034e-bottom-nav a:active {
  color: var(--w034e-primary);
  transform: scale(1.05);
}

.w034e-bottom-nav a.w034e-active { color: var(--w034e-primary); }

.w034e-bottom-nav .material-icons,
.w034e-bottom-nav .ion-icon,
.w034e-bottom-nav .bi {
  font-size: 22px;
}

.w034e-bottom-nav .w034e-bn-icon {
  font-size: 22px;
  line-height: 1;
}

.w034e-bn-badge {
  position: absolute;
  top: 6px; right: 18%;
  background: var(--w034e-primary);
  color: #fff;
  font-size: 0.9rem;
  min-width: 16px; height: 16px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

/* ============ Back-to-top ============ */
.w034e-to-top {
  position: fixed;
  bottom: 78px; right: 14px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--w034e-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 20px;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  box-shadow: var(--w034e-shadow);
}
.w034e-to-top.w034e-to-top-visible { opacity: 1; pointer-events: auto; }

/* ============ Desktop ============ */
@media (min-width: 769px) {
  .w034e-bottom-nav { display: none; }
  .w034e-main { padding-bottom: 30px; }
  .w034e-footer { padding-bottom: 30px; }
  .w034e-mobile-menu { display: none; }
  .w034e-menu-btn { display: none; }
}

@media (max-width: 768px) {
  .w034e-main { padding-bottom: 80px; }
}

@media (min-width: 431px) {
  body { background: #0a0a1a; }
  .w034e-header { background: linear-gradient(180deg, rgba(15,15,35,0.98), rgba(15,15,35,0.92)); }
}
