/**
 * Pacman Super Ace - Main Stylesheet
 * Class prefix: wb35b- | CSS variable prefix: --wb35b-
 */

/* CSS Variables */
:root {
  --wb35b-bg: #262626;
  --wb35b-primary: #00CED1;
  --wb35b-text: #FFFFFF;
  --wb35b-accent: #FFB74D;
  --wb35b-highlight: #FF7F50;
  --wb35b-light: #F0F8FF;
  --wb35b-dark: #1a1a1a;
  --wb35b-card-bg: #2e2e2e;
  --wb35b-border: #3a3a3a;
  --wb35b-radius: 8px;
  --wb35b-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  --wb35b-transition: all 0.3s ease;
  font-size: 62.5%;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--wb35b-bg);
  color: var(--wb35b-text);
  font-size: 1.6rem;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--wb35b-primary); text-decoration: none; transition: var(--wb35b-transition); }
a:hover { color: var(--wb35b-accent); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* Container */
.wb35b-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.6rem;
}

/* Header */
.wb35b-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--wb35b-dark) 0%, var(--wb35b-bg) 100%);
  border-bottom: 2px solid var(--wb35b-primary);
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.wb35b-header-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.wb35b-header-logo img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.wb35b-header-logo span {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--wb35b-primary);
  letter-spacing: 0.5px;
}

.wb35b-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.wb35b-btn-register, .wb35b-btn-login {
  padding: 0.5rem 1.2rem;
  border: none;
  border-radius: var(--wb35b-radius);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--wb35b-transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.wb35b-btn-register {
  background: linear-gradient(135deg, var(--wb35b-highlight), var(--wb35b-accent));
  color: var(--wb35b-dark);
}

.wb35b-btn-register:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 127, 80, 0.4);
}

.wb35b-btn-login {
  background: transparent;
  color: var(--wb35b-primary);
  border: 1.5px solid var(--wb35b-primary);
}

.wb35b-btn-login:hover {
  background: rgba(0, 206, 209, 0.1);
}

.wb35b-menu-toggle {
  background: none;
  border: none;
  color: var(--wb35b-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}

/* Overlay */
.wb35b-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
}

.wb35b-overlay-active { display: block; }

/* Mobile Menu */
.wb35b-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--wb35b-dark);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 2rem 1.6rem;
}

.wb35b-menu-active { right: 0; }

.wb35b-mobile-menu-close {
  background: none;
  border: none;
  color: var(--wb35b-text);
  font-size: 2.4rem;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1.2rem;
}

.wb35b-mobile-menu h3 {
  font-size: 1.6rem;
  color: var(--wb35b-primary);
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--wb35b-border);
}

.wb35b-mobile-menu ul li {
  margin-bottom: 0.4rem;
}

.wb35b-mobile-menu ul li a {
  display: block;
  padding: 0.8rem 1rem;
  color: var(--wb35b-light);
  font-size: 1.4rem;
  border-radius: var(--wb35b-radius);
  transition: var(--wb35b-transition);
}

.wb35b-mobile-menu ul li a:hover {
  background: rgba(0, 206, 209, 0.1);
  color: var(--wb35b-primary);
}

/* Carousel */
.wb35b-carousel {
  position: relative;
  margin-top: 56px;
  overflow: hidden;
  border-radius: 0 0 var(--wb35b-radius) var(--wb35b-radius);
}

.wb35b-slide {
  display: none;
  position: relative;
  width: 100%;
  cursor: pointer;
}

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

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

.wb35b-slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.2rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
}

.wb35b-slide-overlay h2 {
  font-size: 1.8rem;
  color: var(--wb35b-accent);
  margin-bottom: 0.3rem;
}

.wb35b-slide-overlay p {
  font-size: 1.2rem;
  color: var(--wb35b-light);
}

.wb35b-carousel-dots {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
}

.wb35b-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--wb35b-transition);
}

.wb35b-dot-active {
  background: var(--wb35b-primary);
  transform: scale(1.2);
}

.wb35b-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: var(--wb35b-text);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--wb35b-transition);
}

.wb35b-carousel-arrow:hover { background: rgba(0,206,209,0.6); }
.wb35b-carousel-prev { left: 0.8rem; }
.wb35b-carousel-next { right: 0.8rem; }

/* Main Content */
main {
  padding-top: 1.6rem;
}

/* Section Titles */
.wb35b-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--wb35b-text);
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--wb35b-primary);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.wb35b-section-title i {
  color: var(--wb35b-primary);
  font-size: 2.2rem;
}

/* Game Tabs */
.wb35b-game-tabs {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 0.4rem;
}

.wb35b-game-tabs::-webkit-scrollbar { display: none; }

.wb35b-game-tab {
  padding: 0.6rem 1.4rem;
  background: var(--wb35b-card-bg);
  border: 1px solid var(--wb35b-border);
  border-radius: 20px;
  color: var(--wb35b-light);
  font-size: 1.3rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--wb35b-transition);
}

.wb35b-game-tab:hover { border-color: var(--wb35b-primary); }

.wb35b-tab-active {
  background: linear-gradient(135deg, var(--wb35b-primary), #009999);
  color: var(--wb35b-dark);
  border-color: var(--wb35b-primary);
  font-weight: 600;
}

/* Game Grid */
.wb35b-game-panel {
  display: none;
}

.wb35b-panel-active { display: grid; }

.wb35b-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.wb35b-game-card {
  background: var(--wb35b-card-bg);
  border-radius: var(--wb35b-radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--wb35b-transition);
  border: 1px solid var(--wb35b-border);
}

.wb35b-game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 206, 209, 0.2);
  border-color: var(--wb35b-primary);
}

.wb35b-game-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.wb35b-game-card p {
  padding: 0.5rem;
  font-size: 1.1rem;
  text-align: center;
  color: var(--wb35b-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Info Sections */
.wb35b-info-section {
  background: var(--wb35b-card-bg);
  border-radius: var(--wb35b-radius);
  padding: 2rem 1.6rem;
  margin-bottom: 1.6rem;
  border: 1px solid var(--wb35b-border);
}

.wb35b-info-section h2 {
  font-size: 1.8rem;
  color: var(--wb35b-primary);
  margin-bottom: 1rem;
}

.wb35b-info-section h3 {
  font-size: 1.5rem;
  color: var(--wb35b-accent);
  margin: 1rem 0 0.6rem;
}

.wb35b-info-section p {
  color: var(--wb35b-light);
  margin-bottom: 0.8rem;
  line-height: 1.7;
}

.wb35b-info-section ul {
  padding-left: 1.6rem;
  margin-bottom: 0.8rem;
}

.wb35b-info-section ul li {
  color: var(--wb35b-light);
  margin-bottom: 0.4rem;
  padding-left: 0.4rem;
  position: relative;
}

.wb35b-info-section ul li::before {
  content: '';
  position: absolute;
  left: -1.2rem;
  top: 0.8rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wb35b-primary);
}

/* Promo Button */
.wb35b-promo-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--wb35b-highlight), var(--wb35b-accent));
  color: var(--wb35b-dark);
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--wb35b-radius);
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--wb35b-transition);
  margin: 1rem 0;
}

.wb35b-promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 127, 80, 0.4);
}

/* Winners Table */
.wb35b-winners-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.wb35b-winners-table th {
  background: rgba(0, 206, 209, 0.15);
  color: var(--wb35b-primary);
  padding: 0.8rem;
  font-size: 1.2rem;
  text-align: left;
}

.wb35b-winners-table td {
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--wb35b-border);
  font-size: 1.2rem;
  color: var(--wb35b-light);
}

.wb35b-winners-table tr:hover td {
  background: rgba(0, 206, 209, 0.05);
}

.wb35b-amount { color: var(--wb35b-accent); font-weight: 600; }

/* Footer */
.wb35b-footer {
  background: var(--wb35b-dark);
  padding: 2rem 1.6rem 1rem;
  margin-top: 2rem;
  border-top: 2px solid var(--wb35b-primary);
}

.wb35b-footer-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.6rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--wb35b-border);
}

.wb35b-footer-partners img {
  height: 28px;
  opacity: 0.7;
  transition: var(--wb35b-transition);
}

.wb35b-footer-partners img:hover { opacity: 1; }

.wb35b-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem 1.6rem;
  margin-bottom: 1.2rem;
}

.wb35b-footer-links a {
  font-size: 1.2rem;
  color: var(--wb35b-light);
  transition: var(--wb35b-transition);
}

.wb35b-footer-links a:hover { color: var(--wb35b-primary); }

.wb35b-footer-copy {
  text-align: center;
  font-size: 1.1rem;
  color: #888;
  margin-top: 1rem;
}

/* Bottom Navigation */
.wb35b-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, var(--wb35b-dark), #111);
  border-top: 1.5px solid var(--wb35b-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  padding: 0 0.4rem;
}

.wb35b-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 56px;
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  transition: var(--wb35b-transition);
  padding: 0.3rem;
  border-radius: 8px;
}

.wb35b-bottom-nav-btn:hover,
.wb35b-bottom-nav-btn:focus {
  color: var(--wb35b-primary);
  background: rgba(0, 206, 209, 0.08);
}

.wb35b-bottom-nav-btn .wb35b-nav-icon {
  font-size: 22px;
  margin-bottom: 2px;
  line-height: 1;
}

.wb35b-bottom-nav-btn .wb35b-nav-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.wb35b-bottom-nav-btn.wb35b-nav-active {
  color: var(--wb35b-primary);
}

.wb35b-bottom-nav-btn.wb35b-nav-active .wb35b-nav-icon {
  color: var(--wb35b-primary);
  transform: scale(1.1);
}

/* Responsive */
@media (min-width: 769px) {
  .wb35b-container { max-width: 768px; }
  .wb35b-game-grid { grid-template-columns: repeat(6, 1fr); }
  .wb35b-bottom-nav { display: none; }
  .wb35b-menu-toggle { display: none; }
}

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

@media (max-width: 360px) {
  .wb35b-game-grid { grid-template-columns: repeat(3, 1fr); }
  .wb35b-header-logo span { font-size: 1.3rem; }
}
