/**
 * 4777b.click - Layout Stylesheet
 * Prefix: w51b0-
 * Colors: #DEE2E6 (light gray), #3A3A3A (dark bg), #DDA0DD (plum),
 *         #BDB76B (dark gold), #E6E6FA (lavender), #D4AF37 (gold)
 */

/* ========== CSS Variables ========== */
:root {
  --w51b0-light: #DEE2E6;
  --w51b0-dark: #3A3A3A;
  --w51b0-plum: #DDA0DD;
  --w51b0-dgold: #BDB76B;
  --w51b0-lavender: #E6E6FA;
  --w51b0-gold: #D4AF37;
  --w51b0-white: #FFFFFF;
  --w51b0-text: #F0F0F0;
  --w51b0-text-dim: #B0B0B0;
  --w51b0-radius: 10px;
  --w51b0-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --w51b0-transition: all 0.3s ease;
}

/* ========== Reset & Base ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--w51b0-dark);
  color: var(--w51b0-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--w51b0-plum); text-decoration: none; transition: var(--w51b0-transition); }
a:hover { color: var(--w51b0-gold); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ========== Header ========== */
.w51b0-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, #2a2a2a 0%, var(--w51b0-dark) 100%);
  border-bottom: 2px solid var(--w51b0-gold);
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
}
.w51b0-header-brand {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.3rem; font-weight: 800; color: var(--w51b0-gold);
  letter-spacing: 1px;
}
.w51b0-header-brand img {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--w51b0-gold);
}
.w51b0-header-actions { display: flex; gap: 8px; align-items: center; }
.w51b0-btn-register, .w51b0-btn-login {
  padding: 8px 18px; border-radius: 20px; font-weight: 700;
  font-size: 0.85rem; cursor: pointer; border: none;
  transition: var(--w51b0-transition); text-transform: uppercase;
  letter-spacing: 0.5px;
}
.w51b0-btn-register {
  background: linear-gradient(135deg, var(--w51b0-gold), #c4982a);
  color: var(--w51b0-dark);
}
.w51b0-btn-register:hover {
  background: linear-gradient(135deg, #e6c040, var(--w51b0-gold));
  transform: scale(1.05);
}
.w51b0-btn-login {
  background: transparent; color: var(--w51b0-gold);
  border: 2px solid var(--w51b0-gold);
}
.w51b0-btn-login:hover {
  background: var(--w51b0-gold); color: var(--w51b0-dark);
}
.w51b0-menu-toggle {
  display: none; background: none; border: none;
  color: var(--w51b0-gold); font-size: 1.5rem; cursor: pointer;
  padding: 4px;
}
@media (max-width: 768px) {
  .w51b0-menu-toggle { display: block; }
  .w51b0-header-actions .w51b0-btn-register,
  .w51b0-header-actions .w51b0-btn-login { display: none; }
}

/* ========== Mobile Menu ========== */
.w51b0-menu-overlay {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(0, 0, 0, 0.7); opacity: 0;
  pointer-events: none; transition: opacity 0.3s ease;
}
.w51b0-overlay-active { opacity: 1; pointer-events: all; }
.w51b0-mobile-menu {
  position: fixed; top: 0; right: -280px; z-index: 9999;
  width: 280px; height: 100vh;
  background: linear-gradient(180deg, #2e2e2e, var(--w51b0-dark));
  transition: right 0.3s ease; padding: 80px 20px 20px;
  overflow-y: auto;
}
.w51b0-menu-active { right: 0; }
.w51b0-mobile-menu .w51b0-menu-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; color: var(--w51b0-gold);
  font-size: 1.6rem; cursor: pointer;
}
.w51b0-mobile-menu a {
  display: block; padding: 14px 12px; color: var(--w51b0-text);
  border-bottom: 1px solid rgba(222, 160, 222, 0.15);
  font-size: 1rem; transition: var(--w51b0-transition);
}
.w51b0-mobile-menu a:hover {
  color: var(--w51b0-gold); padding-left: 20px;
  background: rgba(212, 175, 55, 0.1);
}
.w51b0-mobile-menu .w51b0-menu-btns {
  display: flex; gap: 10px; margin-bottom: 20px;
}
.w51b0-mobile-menu .w51b0-menu-btns button {
  flex: 1; padding: 12px; border-radius: 8px; font-weight: 700;
  font-size: 0.9rem; cursor: pointer; border: none;
}

/* ========== Bottom Navigation ========== */
.w51b0-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, #2a2a2a 0%, #1f1f1f 100%);
  border-top: 2px solid var(--w51b0-dgold);
  display: flex; justify-content: space-around; align-items: center;
  height: 64px; padding: 0 4px;
}
.w51b0-bottom-nav-btn {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-width: 60px; min-height: 60px;
  background: none; border: none; color: var(--w51b0-text-dim);
  cursor: pointer; transition: var(--w51b0-transition);
  padding: 6px 4px; gap: 2px;
}
.w51b0-bottom-nav-btn:hover, .w51b0-bottom-nav-btn.w51b0-nav-active {
  color: var(--w51b0-gold); transform: scale(1.08);
}
.w51b0-bottom-nav-btn .w51b0-nav-icon { font-size: 24px; line-height: 1; }
.w51b0-bottom-nav-btn .w51b0-nav-label { font-size: 10px; font-weight: 600; }
.w51b0-bottom-nav-btn.w51b0-nav-active::after {
  content: ''; position: absolute; top: -2px;
  width: 30px; height: 3px; border-radius: 2px;
  background: var(--w51b0-gold);
}
.w51b0-bottom-nav-btn { position: relative; }

/* ========== Main Content ========== */
.w51b0-main { margin-top: 60px; min-height: calc(100vh - 60px); }
@media (max-width: 768px) {
  .w51b0-main { padding-bottom: 80px; }
}

/* ========== Hero Banner ========== */
.w51b0-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1a1a2e 0%, var(--w51b0-dark) 60%, #2d1b3d 100%);
  padding: 40px 16px 30px;
}
.w51b0-hero::before {
  content: ''; position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(ellipse at center, rgba(221, 160, 221, 0.08) 0%, transparent 70%);
  animation: w51b0Pulse 6s ease-in-out infinite;
}
@keyframes w51b0Pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 1; }
}
.w51b0-hero-content {
  position: relative; z-index: 1; text-align: center;
  max-width: 600px; margin: 0 auto;
}
.w51b0-hero h1 {
  font-size: 2rem; font-weight: 900; margin-bottom: 12px;
  background: linear-gradient(135deg, var(--w51b0-gold), var(--w51b0-plum));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.w51b0-hero p {
  font-size: 1rem; color: var(--w51b0-text-dim);
  margin-bottom: 20px; line-height: 1.7;
}
.w51b0-hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.w51b0-hero-actions .w51b0-btn-register { font-size: 1rem; padding: 12px 28px; }
.w51b0-hero-actions .w51b0-btn-login { font-size: 1rem; padding: 10px 28px; }
.w51b0-hero-banner {
  margin-top: 24px; border-radius: var(--w51b0-radius);
  overflow: hidden; box-shadow: var(--w51b0-shadow);
}
.w51b0-hero-banner img { width: 100%; }

/* ========== Section Styles ========== */
.w51b0-section {
  padding: 30px 16px; max-width: 800px; margin: 0 auto;
}
.w51b0-section-title {
  font-size: 1.4rem; font-weight: 800; margin-bottom: 20px;
  padding-bottom: 10px; position: relative;
  color: var(--w51b0-gold);
}
.w51b0-section-title::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 60px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--w51b0-gold), var(--w51b0-plum));
}

/* ========== Category Tabs ========== */
.w51b0-tabs {
  display: flex; gap: 8px; overflow-x: auto;
  padding-bottom: 8px; margin-bottom: 20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.w51b0-tabs::-webkit-scrollbar { display: none; }
.w51b0-tab-btn {
  padding: 10px 20px; border-radius: 25px;
  background: rgba(222, 160, 222, 0.1); border: 1px solid rgba(221, 160, 221, 0.2);
  color: var(--w51b0-text-dim); font-weight: 600; font-size: 0.85rem;
  cursor: pointer; white-space: nowrap; transition: var(--w51b0-transition);
}
.w51b0-tab-btn:hover { border-color: var(--w51b0-gold); color: var(--w51b0-gold); }
.w51b0-tab-btn.w51b0-tab-active {
  background: linear-gradient(135deg, var(--w51b0-gold), #c4982a);
  color: var(--w51b0-dark); border-color: var(--w51b0-gold);
}
.w51b0-tab-panel { display: none; }
.w51b0-tab-panel.w51b0-panel-active { display: block; }

/* ========== Game Grid ========== */
.w51b0-game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (min-width: 500px) {
  .w51b0-game-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 769px) {
  .w51b0-game-grid { grid-template-columns: repeat(5, 1fr); gap: 16px; }
}
.w51b0-game-card {
  background: linear-gradient(145deg, #333333, #2a2a2a);
  border-radius: var(--w51b0-radius); overflow: hidden;
  border: 1px solid rgba(189, 183, 107, 0.2);
  transition: var(--w51b0-transition); cursor: pointer;
  position: relative;
}
.w51b0-game-card:hover {
  transform: translateY(-4px);
  border-color: var(--w51b0-gold);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.2);
}
.w51b0-game-card img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
}
.w51b0-game-card-title {
  padding: 8px 6px; font-size: 0.75rem; font-weight: 600;
  text-align: center; color: var(--w51b0-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.w51b0-game-card-overlay {
  position: absolute; inset: 0;
  background: rgba(58, 58, 58, 0.85);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: var(--w51b0-transition);
}
.w51b0-game-card:hover .w51b0-game-card-overlay { opacity: 1; }
.w51b0-play-btn {
  padding: 10px 22px; border-radius: 20px;
  background: linear-gradient(135deg, var(--w51b0-gold), #c4982a);
  color: var(--w51b0-dark); font-weight: 700; font-size: 0.85rem;
  border: none; cursor: pointer;
}

/* ========== Features Grid ========== */
.w51b0-features-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 769px) {
  .w51b0-features-grid { grid-template-columns: repeat(3, 1fr); }
}
.w51b0-feature-card {
  background: linear-gradient(145deg, #333, #2c2c2c);
  border-radius: var(--w51b0-radius); padding: 20px 14px;
  text-align: center; border: 1px solid rgba(189, 183, 107, 0.15);
  transition: var(--w51b0-transition);
}
.w51b0-feature-card:hover {
  border-color: var(--w51b0-gold);
  transform: translateY(-3px);
}
.w51b0-feature-icon {
  font-size: 2rem; color: var(--w51b0-gold); margin-bottom: 10px;
}
.w51b0-feature-card h3 {
  font-size: 0.95rem; color: var(--w51b0-plum); margin-bottom: 6px;
}
.w51b0-feature-card p {
  font-size: 0.8rem; color: var(--w51b0-text-dim); line-height: 1.5;
}

/* ========== Promo Banner ========== */
.w51b0-promo {
  background: linear-gradient(135deg, #2d1b3d, #1a1a2e);
  border-radius: var(--w51b0-radius); padding: 24px 20px;
  margin: 20px 0; border: 1px solid rgba(221, 160, 221, 0.2);
  text-align: center;
}
.w51b0-promo h3 {
  font-size: 1.2rem; color: var(--w51b0-gold); margin-bottom: 8px;
}
.w51b0-promo p {
  color: var(--w51b0-text-dim); font-size: 0.9rem; margin-bottom: 16px;
}

/* ========== FAQ Section ========== */
.w51b0-faq-item {
  background: linear-gradient(145deg, #333, #2c2c2c);
  border-radius: var(--w51b0-radius); margin-bottom: 10px;
  border: 1px solid rgba(189, 183, 107, 0.15);
  overflow: hidden; transition: var(--w51b0-transition);
}
.w51b0-faq-item:hover { border-color: var(--w51b0-plum); }
.w51b0-faq-question {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 18px; cursor: pointer; font-weight: 600;
  font-size: 0.95rem; color: var(--w51b0-text);
}
.w51b0-faq-icon {
  color: var(--w51b0-gold); font-size: 1.2rem;
  transition: transform 0.3s ease;
}
.w51b0-faq-content {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 18px;
}
.w51b0-faq-answer {
  padding: 0 0 16px; color: var(--w51b0-text-dim);
  font-size: 0.9rem; line-height: 1.7;
}

/* ========== Content Article ========== */
.w51b0-article {
  max-width: 750px; margin: 0 auto; padding: 30px 16px;
}
.w51b0-article h2 {
  font-size: 1.3rem; color: var(--w51b0-gold); margin: 24px 0 12px;
  padding-bottom: 6px; border-bottom: 1px solid rgba(189, 183, 107, 0.3);
}
.w51b0-article h3 {
  font-size: 1.1rem; color: var(--w51b0-plum); margin: 18px 0 8px;
}
.w51b0-article p {
  color: var(--w51b0-text-dim); margin-bottom: 14px;
  font-size: 0.95rem; line-height: 1.8;
}
.w51b0-article ul, .w51b0-article ol {
  margin: 12px 0; padding-left: 24px;
}
.w51b0-article li {
  list-style: disc; margin-bottom: 8px;
  color: var(--w51b0-text-dim); font-size: 0.95rem; line-height: 1.7;
}
.w51b0-article ol li { list-style: decimal; }
.w51b0-article strong { color: var(--w51b0-gold); }

/* ========== Footer ========== */
.w51b0-footer {
  background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
  padding: 30px 16px 20px; border-top: 2px solid var(--w51b0-dgold);
}
.w51b0-footer-inner {
  max-width: 800px; margin: 0 auto;
}
.w51b0-footer-partners {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 16px; margin-bottom: 20px; padding-bottom: 16px;
  border-bottom: 1px solid rgba(189, 183, 107, 0.2);
}
.w51b0-footer-partners span {
  color: var(--w51b0-text-dim); font-size: 0.8rem;
  padding: 4px 10px; border: 1px solid rgba(189, 183, 107, 0.2);
  border-radius: 4px;
}
.w51b0-footer-links {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 12px; margin-bottom: 16px;
}
.w51b0-footer-links a {
  color: var(--w51b0-text-dim); font-size: 0.8rem;
  transition: var(--w51b0-transition);
}
.w51b0-footer-links a:hover { color: var(--w51b0-gold); }
.w51b0-footer-copy {
  text-align: center; font-size: 0.75rem;
  color: var(--w51b0-text-dim); opacity: 0.7;
}

/* ========== Back to Top ========== */
.w51b0-back-top {
  position: fixed; bottom: 80px; right: 16px; z-index: 999;
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--w51b0-gold), #c4982a);
  color: var(--w51b0-dark); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; opacity: 0; pointer-events: none;
  transition: var(--w51b0-transition);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}
.w51b0-back-top-visible { opacity: 1; pointer-events: all; }
.w51b0-back-top:hover { transform: scale(1.1); }

/* ========== Scroll Reveal ========== */
.w51b0-reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.w51b0-revealed { opacity: 1; transform: translateY(0); }

/* ========== Desktop Bottom Nav Hidden ========== */
@media (min-width: 769px) {
  .w51b0-bottom-nav { display: none; }
}

/* ========== Responsive ========== */
@media (max-width: 430px) {
  .w51b0-hero h1 { font-size: 1.6rem; }
  .w51b0-hero p { font-size: 0.9rem; }
  .w51b0-section-title { font-size: 1.2rem; }
  .w51b0-game-grid { gap: 8px; }
  .w51b0-game-card-title { font-size: 0.65rem; }
  .w51b0-feature-card { padding: 14px 10px; }
}

/* ========== Page Content Links ========== */
.w51b0-text-link {
  color: var(--w51b0-plum); text-decoration: underline;
  text-underline-offset: 3px;
}
.w51b0-text-link:hover { color: var(--w51b0-gold); }

/* ========== Breadcrumb ========== */
.w51b0-breadcrumb {
  padding: 12px 16px; font-size: 0.85rem;
  color: var(--w51b0-text-dim);
  background: rgba(42, 42, 42, 0.5);
}
.w51b0-breadcrumb a { color: var(--w51b0-plum); }
.w51b0-breadcrumb a:hover { color: var(--w51b0-gold); }

/* ========== Internal Link Section ========== */
.w51b0-internal-links {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 16px 0;
}
.w51b0-internal-links a {
  padding: 8px 16px; border-radius: 20px;
  background: rgba(221, 160, 221, 0.1);
  border: 1px solid rgba(221, 160, 221, 0.2);
  color: var(--w51b0-text-dim); font-size: 0.85rem;
  transition: var(--w51b0-transition);
}
.w51b0-internal-links a:hover {
  border-color: var(--w51b0-gold); color: var(--w51b0-gold);
  background: rgba(212, 175, 55, 0.1);
}
