/* ============================================================
 * PPPoker-Home Games - design.css
 * Mobile-first (max 430px) base styles for the homepage.
 * All custom classes use the "wec64-" prefix.
 * Code comments are in English per project convention.
 * Palette: #1C2833 (bg) | #FFA500 | #FFCC02 | #8B7355 | #FFAA00
 * ============================================================ */

:root {
  --wec64-bg: #1C2833;
  --wec64-bg-2: #141c25;
  --wec64-bg-3: #0f161d;
  --wec64-primary: #FFA500;
  --wec64-accent: #FFCC02;
  --wec64-bronze: #8B7355;
  --wec64-amber: #FFAA00;
  --wec64-text: #f4f1ea;
  --wec64-text-dim: #b6b2a8;
  --wec64-line: rgba(255, 165, 0, 0.18);
  --wec64-radius: 14px;
  --wec64-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* ---- Reset ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  font-size: 62.5%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  font-family: "Segoe UI", "Roboto", system-ui, -apple-system, sans-serif;
  background: var(--wec64-bg);
  color: var(--wec64-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; border: 0; }
a { color: var(--wec64-accent); text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { line-height: 1.8rem; font-weight: 700; color: var(--wec64-text); }

/* ---- Layout helpers ---- */
.wec64-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 14px;
}
.wec64-wrapper { width: 100%; }
.wec64-section { padding: 28px 0; }
.wec64-section-alt { background: var(--wec64-bg-2); }

.wec64-eyebrow {
  display: inline-block;
  font-size: 1.1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wec64-primary);
  background: rgba(255, 165, 0, 0.12);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.wec64-section-title {
  font-size: 2.2rem;
  margin-bottom: 6px;
  color: var(--wec64-text);
}
.wec64-section-title span { color: var(--wec64-accent); }
.wec64-section-sub {
  color: var(--wec64-text-dim);
  font-size: 1.35rem;
  margin-bottom: 18px;
}

/* ---- Header ---- */
.wec64-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #11181f 0%, #1C2833 100%);
  border-bottom: 1px solid var(--wec64-line);
  transition: box-shadow 0.25s ease;
}
.wec64-header-shadow { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45); }
.wec64-header-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.wec64-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.wec64-logo img { width: 30px; height: 30px; border-radius: 8px; }
.wec64-logo-text {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--wec64-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wec64-logo-text span { color: var(--wec64-primary); }

.wec64-header-actions { display: flex; align-items: center; gap: 8px; }
.wec64-hamburger {
  width: 40px; height: 40px;
  border: 0;
  background: rgba(255, 165, 0, 0.14);
  color: var(--wec64-primary);
  border-radius: 10px;
  font-size: 1.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ---- Buttons ---- */
.wec64-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.35rem;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.wec64-btn:active { transform: scale(0.96); }
.wec64-btn-login {
  background: transparent;
  color: var(--wec64-text);
  border: 1px solid var(--wec64-line);
}
.wec64-btn-register {
  background: linear-gradient(135deg, var(--wec64-primary) 0%, var(--wec64-amber) 100%);
  color: #1a1205;
  box-shadow: 0 4px 14px rgba(255, 165, 0, 0.35);
}
.wec64-btn-hero {
  background: linear-gradient(135deg, var(--wec64-accent) 0%, var(--wec64-primary) 100%);
  color: #1a1205;
  padding: 0 26px;
  min-height: 48px;
  font-size: 1.55rem;
  box-shadow: 0 8px 22px rgba(255, 204, 2, 0.3);
}
.wec64-btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--wec64-text);
  border: 1px solid var(--wec64-line);
}
.wec64-link-text {
  color: var(--wec64-accent);
  font-weight: 700;
  border-bottom: 1px dashed rgba(255, 204, 2, 0.4);
}

/* ---- Mobile slide menu ---- */
.wec64-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}
.wec64-overlay-show { opacity: 1; visibility: visible; }
.wec64-mobile-menu {
  position: fixed;
  top: 0; right: -86%;
  width: 86%;
  max-width: 360px;
  height: 100%;
  background: var(--wec64-bg-2);
  z-index: 9999;
  padding: 22px 18px;
  transform: translateX(0);
  transition: right 0.3s ease;
  overflow-y: auto;
  border-left: 1px solid var(--wec64-line);
}
.wec64-menu-open { right: 0; }
.wec64-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.wec64-menu-head h3 { font-size: 1.6rem; color: var(--wec64-accent); }
.wec64-menu-close {
  width: 36px; height: 36px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--wec64-text);
  border: 0;
  border-radius: 10px;
  font-size: 1.8rem;
  cursor: pointer;
}
.wec64-menu-list li { border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.wec64-menu-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 8px;
  color: var(--wec64-text);
  font-size: 1.4rem;
  font-weight: 600;
}
.wec64-menu-list a i { color: var(--wec64-primary); width: 22px; text-align: center; }
.wec64-menu-cta {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ---- Hero ---- */
.wec64-main { padding-top: 64px; }
.wec64-hero {
  position: relative;
  padding: 26px 0 32px;
  background:
    radial-gradient(circle at 80% 0%, rgba(255, 165, 0, 0.18), transparent 60%),
    linear-gradient(180deg, var(--wec64-bg-3) 0%, var(--wec64-bg) 100%);
  overflow: hidden;
}
.wec64-hero h1 {
  font-size: 2.6rem;
  line-height: 1.9rem;
  padding: 6px 0;
  margin-bottom: 12px;
}
.wec64-hero h1 span { color: var(--wec64-accent); display: block; font-size: 3rem; }
.wec64-hero p { color: var(--wec64-text-dim); margin-bottom: 18px; font-size: 1.4rem; }
.wec64-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.wec64-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 22px;
}
.wec64-stat {
  background: rgba(255, 165, 0, 0.06);
  border: 1px solid var(--wec64-line);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
}
.wec64-stat b { display: block; font-size: 1.8rem; color: var(--wec64-accent); }
.wec64-stat small { color: var(--wec64-text-dim); font-size: 1.15rem; }

/* ---- Carousel ---- */
.wec64-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: var(--wec64-shadow);
  margin-top: 22px;
}
.wec64-carousel-viewport { overflow: hidden; }
.wec64-carousel-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.wec64-slide {
  min-width: 100%;
  position: relative;
}
.wec64-slide img { width: 100%; height: 180px; object-fit: cover; }
.wec64-slide-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.85));
  color: #fff;
}
.wec64-slide-caption b { color: var(--wec64-accent); display: block; font-size: 1.5rem; }
.wec64-slide-caption p { color: #d8d4c8; font-size: 1.2rem; margin-top: 4px; }
.wec64-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 10px 0;
}
.wec64-carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: 0; cursor: pointer;
}
.wec64-dot-active { background: var(--wec64-primary); width: 22px; border-radius: 6px; }
.wec64-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.wec64-arrow-prev { left: 8px; }
.wec64-arrow-next { right: 8px; }

/* ---- Filter ---- */
.wec64-filter {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 6px;
  scrollbar-width: none;
}
.wec64-filter::-webkit-scrollbar { display: none; }
.wec64-filter-btn {
  flex: 0 0 auto;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--wec64-line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--wec64-text-dim);
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.wec64-filter-active {
  background: linear-gradient(135deg, var(--wec64-primary), var(--wec64-amber));
  color: #1a1205;
  border-color: transparent;
}

/* ---- Game grid & cards ---- */
.wec64-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.wec64-card {
  background: var(--wec64-bg-2);
  border: 1px solid var(--wec64-line);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.2s ease;
  position: relative;
}
.wec64-card:active { transform: scale(0.97); }
.wec64-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #0c1117;
}
.wec64-card-body {
  padding: 7px 8px 10px;
}
.wec64-card-body b {
  display: block;
  font-size: 1.15rem;
  color: var(--wec64-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}
.wec64-card-tag {
  position: absolute;
  top: 6px; left: 6px;
  background: rgba(255, 165, 0, 0.92);
  color: #1a1205;
  font-size: 1rem;
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 700;
}
.wec64-card-hot {
  position: absolute;
  top: 6px; right: 6px;
  background: #e23b3b;
  color: #fff;
  font-size: 1rem;
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 700;
}

/* ---- Category section header ---- */
.wec64-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 26px;
  margin-bottom: 4px;
}
.wec64-cat-head h3 {
  font-size: 1.7rem;
  display: flex; align-items: center; gap: 8px;
}
.wec64-cat-head h3 i { color: var(--wec64-primary); }
.wec64-cat-link { font-size: 1.2rem; color: var(--wec64-accent); font-weight: 700; }

/* ---- Featured ---- */
.wec64-feature-card {
  display: flex;
  gap: 12px;
  background: var(--wec64-bg-2);
  border: 1px solid var(--wec64-line);
  border-radius: 14px;
  padding: 12px;
  margin-top: 12px;
  align-items: center;
}
.wec64-feature-card img {
  width: 86px; height: 86px;
  border-radius: 10px;
  object-fit: cover;
  flex: 0 0 auto;
}
.wec64-feature-body { flex: 1; min-width: 0; }
.wec64-feature-body h4 { font-size: 1.45rem; color: var(--wec64-text); margin-bottom: 4px; }
.wec64-feature-body p { color: var(--wec64-text-dim); font-size: 1.2rem; line-height: 1.45rem; }

/* ---- Steps ---- */
.wec64-steps { display: grid; gap: 10px; margin-top: 14px; }
.wec64-step {
  display: flex;
  gap: 12px;
  background: var(--wec64-bg-2);
  border: 1px solid var(--wec64-line);
  border-radius: 12px;
  padding: 12px;
}
.wec64-step-num {
  flex: 0 0 36px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wec64-primary), var(--wec64-amber));
  color: #1a1205;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}
.wec64-step h4 { font-size: 1.4rem; margin-bottom: 3px; }
.wec64-step p { color: var(--wec64-text-dim); font-size: 1.2rem; line-height: 1.45rem; }

/* ---- SEO long text ---- */
.wec64-seo { color: var(--wec64-text-dim); font-size: 1.3rem; line-height: 1.7rem; }
.wec64-seo h2 { font-size: 1.85rem; color: var(--wec64-text); margin: 16px 0 6px; }
.wec64-seo h3 { font-size: 1.55rem; color: var(--wec64-accent); margin: 12px 0 4px; }
.wec64-seo p { margin-bottom: 10px; }
.wec64-seo ul { padding-left: 18px; margin: 6px 0 12px; list-style: disc; }
.wec64-seo ul li { margin-bottom: 4px; }

/* ---- FAQ ---- */
.wec64-faq-item {
  background: var(--wec64-bg-2);
  border: 1px solid var(--wec64-line);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.wec64-faq-item h4 {
  font-size: 1.35rem;
  color: var(--wec64-accent);
  margin-bottom: 4px;
}
.wec64-faq-item p { color: var(--wec64-text-dim); font-size: 1.25rem; line-height: 1.55rem; }

/* ---- Footer ---- */
.wec64-footer {
  background: var(--wec64-bg-3);
  border-top: 1px solid var(--wec64-line);
  padding: 26px 0 100px;
}
.wec64-footer-brand { font-size: 1.3rem; color: var(--wec64-text-dim); line-height: 1.6rem; margin-bottom: 14px; }
.wec64-footer h4 { color: var(--wec64-accent); font-size: 1.35rem; margin: 14px 0 8px; }
.wec64-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 10px;
  margin-bottom: 14px;
}
.wec64-footer-links a {
  color: var(--wec64-text-dim);
  font-size: 1.2rem;
}
.wec64-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.wec64-footer-promo .wec64-btn { flex: 1 1 auto; min-height: 36px; font-size: 1.2rem; padding: 0 12px; }
.wec64-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 12px;
  font-size: 1.15rem;
  color: var(--wec64-text-dim);
  text-align: center;
}

/* ---- Bottom nav ---- */
.wec64-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  height: 62px;
  background: linear-gradient(180deg, #11181f 0%, #0c1117 100%);
  border-top: 1px solid var(--wec64-line);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  padding: 4px 0 6px;
}
.wec64-bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--wec64-text-dim);
  font-size: 1.05rem;
  min-width: 60px;
  min-height: 54px;
}
.wec64-bottom-nav a i { font-size: 2rem; }
.wec64-bottom-nav .wec64-nav-active { color: var(--wec64-accent); }
.wec64-bottom-nav .wec64-nav-promo i { color: var(--wec64-primary); }
.wec64-bottom-nav .wec64-nav-promo span { color: var(--wec64-primary); font-weight: 700; }

/* ---- Back to top ---- */
.wec64-totop {
  position: fixed;
  right: 14px; bottom: 76px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--wec64-primary);
  color: #1a1205;
  border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  z-index: 900;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* ---- Desktop / tablet ---- */
@media (min-width: 769px) {
  .wec64-bottom-nav { display: none; }
  .wec64-container { max-width: 960px; }
  .wec64-grid { grid-template-columns: repeat(6, 1fr); }
  .wec64-footer { padding-bottom: 30px; }
}
@media (max-width: 768px) {
  .wec64-main { padding-bottom: 80px; }
  .wec64-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 360px) {
  .wec64-grid { grid-template-columns: repeat(2, 1fr); }
  .wec64-hero h1 { font-size: 2.3rem; }
  .wec64-hero h1 span { font-size: 2.6rem; }
}
