/* ck222.sbs - Design Stylesheet */
/* All classes prefixed with v503- for namespace isolation */
/* Color palette: #DEB887 (burlywood), #CD853F (peru), #EEE8AA (pale goldenrod), #DAA520 (goldenrod), #1C2833 (dark bg) */

/* === CSS Variables === */
:root {
  --v503-primary: #DEB887;
  --v503-secondary: #CD853F;
  --v503-accent: #DAA520;
  --v503-light: #EEE8AA;
  --v503-dark: #1C2833;
  --v503-darker: #141c26;
  --v503-text: #f0e6d3;
  --v503-text-muted: #b8a88a;
  --v503-border: rgba(222, 184, 135, 0.2);
  --v503-radius: 10px;
  --v503-shadow: 0 4px 20px rgba(0,0,0,0.4);
  --v503-gold-glow: 0 0 15px rgba(218, 165, 32, 0.3);
}

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

/* === Header === */
.v503-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, var(--v503-darker) 0%, var(--v503-dark) 100%);
  border-bottom: 1px solid var(--v503-border);
  padding: 0 16px; height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 2px 15px rgba(0,0,0,0.5);
}
.v503-logo {
  font-size: 22px; font-weight: 800; color: var(--v503-accent);
  text-shadow: 0 0 10px rgba(218,165,32,0.4);
  letter-spacing: 1px;
}
.v503-logo span { color: var(--v503-primary); }
.v503-header-actions { display: flex; gap: 8px; align-items: center; }
.v503-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 18px; border-radius: 6px; font-size: 13px; font-weight: 700;
  cursor: pointer; border: none; transition: all 0.3s;
}
.v503-btn-register {
  background: linear-gradient(135deg, var(--v503-accent), var(--v503-secondary));
  color: var(--v503-dark);
  box-shadow: var(--v503-gold-glow);
}
.v503-btn-register:hover { transform: translateY(-1px); box-shadow: 0 0 20px rgba(218,165,32,0.5); }
.v503-btn-login {
  background: transparent; color: var(--v503-primary);
  border: 1px solid var(--v503-primary);
}
.v503-btn-login:hover { background: rgba(222,184,135,0.1); }
.v503-menu-toggle {
  display: none; background: none; border: none; color: var(--v503-primary);
  font-size: 24px; cursor: pointer; padding: 4px;
}
.v503-header-nav { display: flex; gap: 16px; align-items: center; }
.v503-header-nav a {
  color: var(--v503-text-muted); font-size: 13px; font-weight: 500;
  transition: color 0.3s; white-space: nowrap;
}
.v503-header-nav a:hover { color: var(--v503-accent); }

/* === Mobile Menu === */
.v503-menu-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7); z-index: 9998;
  display: none; opacity: 0; transition: opacity 0.3s;
}
.v503-overlay-active { display: block; opacity: 1; }
.v503-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100%;
  background: var(--v503-darker); z-index: 9999;
  transition: right 0.35s ease; padding: 20px;
  border-left: 1px solid var(--v503-border);
  overflow-y: auto;
}
.v503-menu-active { right: 0; }
.v503-menu-close {
  background: none; border: none; color: var(--v503-primary);
  font-size: 24px; cursor: pointer; float: right; margin-bottom: 20px;
}
.v503-mobile-menu ul { clear: both; padding-top: 10px; }
.v503-mobile-menu li { border-bottom: 1px solid var(--v503-border); }
.v503-mobile-menu a {
  display: block; padding: 14px 0; color: var(--v503-text);
  font-size: 15px; font-weight: 500;
}
.v503-mobile-menu a:hover { color: var(--v503-accent); padding-left: 8px; }

/* === Main Content === */
main { padding-top: 56px; }
.v503-container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* === Carousel === */
.v503-carousel {
  position: relative; overflow: hidden;
  border-radius: var(--v503-radius); margin: 12px 0;
  box-shadow: var(--v503-shadow);
}
.v503-carousel-slide {
  display: none; width: 100%; cursor: pointer;
  aspect-ratio: 16/7; object-fit: cover;
}
.v503-carousel-dots {
  position: absolute; bottom: 10px; left: 50%;
  transform: translateX(-50%); display: flex; gap: 8px;
}
.v503-carousel-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.v503-dot-active { background: var(--v503-accent); transform: scale(1.3); }

/* === Section Titles === */
.v503-section-title {
  font-size: 22px; font-weight: 800; color: var(--v503-primary);
  margin: 28px 0 16px; padding-bottom: 10px;
  border-bottom: 2px solid var(--v503-accent);
  display: flex; align-items: center; gap: 10px;
}
.v503-section-title i { color: var(--v503-accent); font-size: 24px; }

/* === Category Tabs === */
.v503-cat-tabs {
  display: flex; gap: 6px; overflow-x: auto;
  padding: 8px 0 12px; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.v503-cat-tabs::-webkit-scrollbar { display: none; }
.v503-cat-btn {
  padding: 8px 18px; border-radius: 20px; font-size: 13px;
  font-weight: 600; cursor: pointer; border: 1px solid var(--v503-border);
  background: var(--v503-darker); color: var(--v503-text-muted);
  white-space: nowrap; transition: all 0.3s;
}
.v503-cat-btn:hover { border-color: var(--v503-accent); color: var(--v503-primary); }
.v503-cat-btn-active {
  background: linear-gradient(135deg, var(--v503-accent), var(--v503-secondary));
  color: var(--v503-dark); border-color: transparent;
  box-shadow: var(--v503-gold-glow);
}

/* === Game Grid === */
.v503-cat-panel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.v503-game-card {
  background: var(--v503-darker); border-radius: var(--v503-radius);
  overflow: hidden; cursor: pointer; transition: all 0.3s;
  border: 1px solid var(--v503-border); text-align: center;
}
.v503-game-card:hover {
  transform: translateY(-3px); border-color: var(--v503-accent);
  box-shadow: var(--v503-gold-glow);
}
.v503-game-card img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-bottom: 1px solid var(--v503-border);
}
.v503-game-name {
  padding: 6px 4px; font-size: 11px; font-weight: 600;
  color: var(--v503-text); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}

/* === Content Modules === */
.v503-module {
  background: var(--v503-darker); border-radius: var(--v503-radius);
  padding: 24px; margin: 16px 0;
  border: 1px solid var(--v503-border);
}
.v503-module h2 {
  font-size: 20px; color: var(--v503-primary); margin-bottom: 14px;
  padding-bottom: 8px; border-bottom: 1px solid var(--v503-border);
}
.v503-module h3 { font-size: 17px; color: var(--v503-accent); margin: 14px 0 8px; }
.v503-module p { color: var(--v503-text-muted); font-size: 14px; line-height: 1.7; margin-bottom: 10px; }
.v503-module ul { padding-left: 18px; }
.v503-module li {
  color: var(--v503-text-muted); font-size: 14px; line-height: 1.8;
  list-style: disc; margin-bottom: 4px;
}
.v503-internal-link {
  color: var(--v503-accent); text-decoration: underline;
  transition: color 0.3s;
}
.v503-internal-link:hover { color: var(--v503-light); }

/* === FAQ Accordion === */
.v503-faq-item { border-bottom: 1px solid var(--v503-border); }
.v503-faq-q {
  padding: 14px 0; cursor: pointer; display: flex;
  justify-content: space-between; align-items: center;
  color: var(--v503-primary); font-weight: 600; font-size: 15px;
}
.v503-faq-icon { transition: transform 0.3s; color: var(--v503-accent); }
.v503-faq-open { transform: rotate(180deg); }
.v503-faq-a {
  display: none; padding: 0 0 14px; color: var(--v503-text-muted);
  font-size: 14px; line-height: 1.7;
}

/* === Footer === */
.v503-footer {
  background: var(--v503-darker); border-top: 1px solid var(--v503-border);
  padding: 30px 16px 20px; margin-top: 30px;
}
.v503-footer-logo { font-size: 20px; font-weight: 800; color: var(--v503-accent); margin-bottom: 16px; }
.v503-footer-links { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.v503-footer-links a { color: var(--v503-text-muted); font-size: 13px; }
.v503-footer-links a:hover { color: var(--v503-accent); }
.v503-footer-copy { color: var(--v503-text-muted); font-size: 12px; margin-top: 12px; opacity: 0.7; }

/* === Bottom Navigation === */
.v503-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, var(--v503-darker), #0d1117);
  border-top: 1px solid var(--v503-border);
  display: flex; justify-content: space-around; align-items: center;
  height: 60px; padding: 0 4px;
  box-shadow: 0 -2px 15px rgba(0,0,0,0.5);
}
.v503-bottom-btn {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-width: 60px; min-height: 56px;
  background: none; border: none; cursor: pointer;
  color: var(--v503-text-muted); transition: all 0.3s;
  border-radius: 8px; padding: 4px 8px;
}
.v503-bottom-btn i, .v503-bottom-btn .material-icons { font-size: 22px; margin-bottom: 2px; }
.v503-bottom-btn span { font-size: 10px; font-weight: 600; }
.v503-bottom-btn:hover, .v503-bottom-btn:focus {
  color: var(--v503-accent); background: rgba(218,165,32,0.08);
}
.v503-bottom-btn-active { color: var(--v503-accent) !important; }
.v503-bottom-btn-active::after {
  content: ''; display: block; width: 20px; height: 2px;
  background: var(--v503-accent); border-radius: 2px; margin-top: 2px;
}

/* === Back to Top === */
.v503-back-top {
  position: fixed; bottom: 75px; right: 16px; z-index: 999;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--v503-accent); color: var(--v503-dark);
  display: none; align-items: center; justify-content: center;
  cursor: pointer; border: none; font-size: 18px;
  box-shadow: var(--v503-gold-glow); transition: transform 0.3s;
}
.v503-back-top:hover { transform: scale(1.1); }

/* === Help Page Styles === */
.v503-page-banner {
  background: linear-gradient(135deg, var(--v503-darker), var(--v503-dark));
  padding: 30px 16px; text-align: center;
  border-bottom: 1px solid var(--v503-border);
}
.v503-page-banner h1 {
  font-size: 24px; color: var(--v503-primary); margin-bottom: 8px;
}
.v503-page-banner p { color: var(--v503-text-muted); font-size: 14px; }
.v503-content-area { padding: 20px 16px; max-width: 800px; margin: 0 auto; }
.v503-content-area h2 {
  font-size: 18px; color: var(--v503-primary); margin: 20px 0 10px;
  padding-bottom: 6px; border-bottom: 1px solid var(--v503-border);
}
.v503-content-area p {
  color: var(--v503-text-muted); font-size: 14px; line-height: 1.8; margin-bottom: 12px;
}
.v503-content-area ul { padding-left: 20px; margin-bottom: 12px; }
.v503-content-area li {
  color: var(--v503-text-muted); font-size: 14px; line-height: 1.8;
  list-style: disc; margin-bottom: 4px;
}
.v503-cta-box {
  background: linear-gradient(135deg, rgba(218,165,32,0.15), rgba(205,133,63,0.1));
  border: 1px solid var(--v503-accent); border-radius: var(--v503-radius);
  padding: 20px; text-align: center; margin: 20px 0;
}
.v503-cta-box p { color: var(--v503-primary); font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.v503-cta-btn {
  display: inline-block; padding: 12px 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--v503-accent), var(--v503-secondary));
  color: var(--v503-dark); font-weight: 700; font-size: 15px;
  cursor: pointer; border: none; transition: all 0.3s;
  box-shadow: var(--v503-gold-glow);
}
.v503-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 0 25px rgba(218,165,32,0.5); }

/* === Desktop Responsive === */
@media (min-width: 769px) {
  .v503-bottom-nav { display: none; }
  .v503-menu-toggle { display: none; }
  .v503-header-nav { display: flex; }
  .v503-cat-panel { grid-template-columns: repeat(5, 1fr); }
  main { padding-top: 56px; }
}
@media (min-width: 1024px) {
  .v503-cat-panel { grid-template-columns: repeat(6, 1fr); gap: 14px; }
}

/* === Mobile Responsive === */
@media (max-width: 768px) {
  .v503-header-nav { display: none; }
  .v503-menu-toggle { display: block; }
  .v503-cat-panel { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .v503-section-title { font-size: 18px; }
  .v503-module { padding: 16px; }
  .v503-module h2 { font-size: 17px; }
  main { padding-bottom: 75px; }
  .v503-page-banner h1 { font-size: 20px; }
}
@media (max-width: 480px) {
  .v503-cat-panel { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .v503-game-name { font-size: 10px; padding: 4px 2px; }
  .v503-btn { padding: 6px 12px; font-size: 12px; }
}
