/* Super Ace 2026 - Design Stylesheet */
/* All classes use w445d- prefix for namespace isolation */

:root {
  --w445d-primary: #004D40;
  --w445d-bg: #141414;
  --w445d-bg-card: #1a2e2a;
  --w445d-bg-section: #0d2b26;
  --w445d-text: #5F9EA0;
  --w445d-text-muted: #7ab5b7;
  --w445d-accent: #00E5FF;
  --w445d-accent-glow: rgba(0, 229, 255, 0.25);
  --w445d-highlight: #F0FDFF;
  --w445d-border: rgba(95, 158, 160, 0.2);
  --w445d-btn-bg: #00E5FF;
  --w445d-btn-text: #004D40;
  --w445d-btn-secondary: #004D40;
  --w445d-radius: 8px;
  --w445d-radius-lg: 12px;
  --w445d-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  --w445d-shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.5);
  --w445d-transition: all 0.3s ease;
  font-size: 62.5%;
}

*, *::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: var(--w445d-bg);
  color: var(--w445d-text);
  line-height: 1.6;
  font-size: 1.6rem;
  -webkit-font-smoothing: antialiased;
}

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

/* Header */
.w445d-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 56px;
  background: linear-gradient(135deg, var(--w445d-primary), var(--w445d-bg));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  box-shadow: var(--w445d-shadow-lg);
}

.w445d-header-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.w445d-header-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.w445d-header-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--w445d-highlight);
  white-space: nowrap;
}

.w445d-header-name span {
  color: var(--w445d-accent);
}

.w445d-header-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.w445d-btn-register,
.w445d-btn-login {
  padding: 0.5rem 1.2rem;
  border-radius: var(--w445d-radius);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--w445d-transition);
}

.w445d-btn-register {
  background: var(--w445d-accent);
  color: var(--w445d-btn-text);
}

.w445d-btn-register:hover {
  background: #33ecff;
  transform: scale(1.05);
}

.w445d-btn-login {
  background: transparent;
  color: var(--w445d-accent);
  border: 1px solid var(--w445d-accent);
}

.w445d-btn-login:hover {
  background: rgba(0, 229, 255, 0.1);
}

.w445d-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--w445d-highlight);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 0.4rem;
  line-height: 1;
}

@media (max-width: 768px) {
  .w445d-hamburger { display: block; }
}

/* Mobile Menu */
.w445d-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: var(--w445d-transition);
}

.w445d-overlay-active {
  opacity: 1;
  visibility: visible;
}

.w445d-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: linear-gradient(180deg, var(--w445d-primary), var(--w445d-bg));
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 2rem 1.5rem;
}

.w445d-menu-open {
  right: 0;
}

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

.w445d-menu-title {
  font-size: 1.8rem;
  color: var(--w445d-accent);
  font-weight: 700;
  margin-bottom: 2rem;
}

.w445d-menu-link {
  display: block;
  padding: 1rem 0;
  color: var(--w445d-text-muted);
  text-decoration: none;
  font-size: 1.5rem;
  border-bottom: 1px solid var(--w445d-border);
  transition: var(--w445d-transition);
}

.w445d-menu-link:hover {
  color: var(--w445d-accent);
  padding-left: 0.5rem;
}

/* Banner Slider */
.w445d-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-top: 56px;
  background: var(--w445d-bg);
}

.w445d-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}

.w445d-slide-active {
  opacity: 1;
}

.w445d-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.w445d-slider-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  z-index: 10;
}

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

.w445d-dot-active {
  background: var(--w445d-accent);
  transform: scale(1.3);
}

/* Main Content */
.w445d-main {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

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

/* Section */
.w445d-section {
  padding: 2rem 0;
}

.w445d-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--w445d-highlight);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.w445d-section-title i,
.w445d-section-title .material-icons {
  color: var(--w445d-accent);
  font-size: 2.2rem;
}

/* Category Tabs */
.w445d-cats {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.8rem 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.w445d-cats::-webkit-scrollbar { display: none; }

.w445d-cat-tab {
  padding: 0.6rem 1.4rem;
  border-radius: 2rem;
  background: var(--w445d-bg-card);
  color: var(--w445d-text);
  border: 1px solid var(--w445d-border);
  font-size: 1.3rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--w445d-transition);
}

.w445d-cat-tab:hover,
.w445d-cat-tab.w445d-cat-active {
  background: var(--w445d-accent);
  color: var(--w445d-btn-text);
  border-color: var(--w445d-accent);
}

/* Game Grid */
.w445d-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  padding: 1rem 0;
}

.w445d-game-item {
  text-align: center;
  cursor: pointer;
  transition: var(--w445d-transition);
}

.w445d-game-item:hover {
  transform: translateY(-3px);
}

.w445d-game-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--w445d-radius);
  object-fit: cover;
  border: 2px solid var(--w445d-border);
  transition: var(--w445d-transition);
}

.w445d-game-item:hover .w445d-game-img {
  border-color: var(--w445d-accent);
  box-shadow: 0 0 12px var(--w445d-accent-glow);
}

.w445d-game-name {
  font-size: 1.1rem;
  color: var(--w445d-text-muted);
  margin-top: 0.4rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Card */
.w445d-card {
  background: var(--w445d-bg-card);
  border-radius: var(--w445d-radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--w445d-border);
  margin-bottom: 1.2rem;
}

.w445d-card-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--w445d-highlight);
  margin-bottom: 0.8rem;
}

.w445d-card-text {
  font-size: 1.4rem;
  color: var(--w445d-text);
  line-height: 1.7;
}

/* CTA Button */
.w445d-cta {
  display: inline-block;
  padding: 1.2rem 3rem;
  background: linear-gradient(135deg, var(--w445d-accent), #00b8d4);
  color: var(--w445d-btn-text);
  font-size: 1.6rem;
  font-weight: 700;
  border-radius: var(--w445d-radius-lg);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--w445d-transition);
  text-align: center;
}

.w445d-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--w445d-accent-glow);
}

.w445d-cta-secondary {
  background: var(--w445d-btn-secondary);
  color: var(--w445d-accent);
  border: 2px solid var(--w445d-accent);
}

.w445d-cta-secondary:hover {
  background: rgba(0, 229, 255, 0.1);
}

/* Feature Grid */
.w445d-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.w445d-feature-item {
  background: var(--w445d-bg-card);
  padding: 1.4rem;
  border-radius: var(--w445d-radius);
  border: 1px solid var(--w445d-border);
  text-align: center;
}

.w445d-feature-icon {
  font-size: 2.8rem;
  color: var(--w445d-accent);
  margin-bottom: 0.8rem;
}

.w445d-feature-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--w445d-highlight);
  margin-bottom: 0.4rem;
}

.w445d-feature-desc {
  font-size: 1.2rem;
  color: var(--w445d-text);
}

/* Step List */
.w445d-steps {
  list-style: none;
  counter-reset: step;
}

.w445d-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--w445d-border);
}

.w445d-step:last-child { border-bottom: none; }

.w445d-step-num {
  min-width: 3rem;
  height: 3rem;
  background: var(--w445d-accent);
  color: var(--w445d-btn-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.w445d-step-content h4 {
  font-size: 1.5rem;
  color: var(--w445d-highlight);
  margin-bottom: 0.3rem;
}

.w445d-step-content p {
  font-size: 1.3rem;
  color: var(--w445d-text);
}

/* FAQ */
.w445d-faq-item {
  background: var(--w445d-bg-card);
  border-radius: var(--w445d-radius);
  margin-bottom: 0.8rem;
  border: 1px solid var(--w445d-border);
  overflow: hidden;
}

.w445d-faq-q {
  padding: 1.2rem 1.5rem;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--w445d-highlight);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.w445d-faq-q::after {
  content: '+';
  color: var(--w445d-accent);
  font-size: 1.8rem;
  font-weight: 700;
}

.w445d-faq-a {
  padding: 0 1.5rem 1.2rem;
  font-size: 1.3rem;
  color: var(--w445d-text);
  line-height: 1.7;
  display: none;
}

.w445d-faq-item.w445d-faq-open .w445d-faq-a { display: block; }
.w445d-faq-item.w445d-faq-open .w445d-faq-q::after { content: '-'; }

/* Winners */
.w445d-winner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--w445d-border);
}

.w445d-winner:last-child { border-bottom: none; }

.w445d-winner-avatar {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--w445d-accent);
}

.w445d-winner-info {
  flex: 1;
}

.w445d-winner-name {
  font-size: 1.4rem;
  color: var(--w445d-highlight);
  font-weight: 600;
}

.w445d-winner-game {
  font-size: 1.2rem;
  color: var(--w445d-text);
}

.w445d-winner-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--w445d-accent);
}

/* Testimonials */
.w445d-testimonial {
  background: var(--w445d-bg-card);
  border-radius: var(--w445d-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--w445d-accent);
}

.w445d-testimonial-text {
  font-size: 1.4rem;
  color: var(--w445d-text);
  font-style: italic;
  margin-bottom: 0.8rem;
}

.w445d-testimonial-author {
  font-size: 1.3rem;
  color: var(--w445d-accent);
  font-weight: 600;
}

/* Payment */
.w445d-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.w445d-payment-item {
  background: var(--w445d-bg-card);
  border: 1px solid var(--w445d-border);
  border-radius: var(--w445d-radius);
  padding: 0.8rem 1.4rem;
  font-size: 1.3rem;
  color: var(--w445d-text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.w445d-payment-item i {
  color: var(--w445d-accent);
}

/* Footer */
.w445d-footer {
  background: linear-gradient(180deg, var(--w445d-primary), var(--w445d-bg));
  padding: 2.5rem 0 1.5rem;
  margin-top: 2rem;
  border-top: 1px solid var(--w445d-border);
}

.w445d-footer-brand {
  text-align: center;
  margin-bottom: 1.5rem;
}

.w445d-footer-brand-name {
  font-size: 2rem;
  font-weight: 700;
  color: var(--w445d-highlight);
}

.w445d-footer-brand-name span {
  color: var(--w445d-accent);
}

.w445d-footer-desc {
  font-size: 1.3rem;
  color: var(--w445d-text);
  margin-top: 0.5rem;
}

.w445d-footer-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 1.5rem 0;
}

.w445d-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  justify-content: center;
  margin: 1.5rem 0;
}

.w445d-footer-link {
  color: var(--w445d-text-muted);
  text-decoration: none;
  font-size: 1.3rem;
  transition: var(--w445d-transition);
}

.w445d-footer-link:hover {
  color: var(--w445d-accent);
}

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

/* Bottom Navigation */
.w445d-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(180deg, var(--w445d-primary), #0a1f1c);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
  border-top: 1px solid var(--w445d-border);
}

.w445d-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  background: none;
  border: none;
  color: var(--w445d-text);
  cursor: pointer;
  transition: var(--w445d-transition);
  gap: 0.2rem;
}

.w445d-bottom-btn:hover,
.w445d-bottom-btn.w445d-bottom-active {
  color: var(--w445d-accent);
}

.w445d-bottom-btn .material-icons,
.w445d-bottom-btn ion-icon {
  font-size: 22px;
}

.w445d-bottom-btn i {
  font-size: 20px;
}

.w445d-bottom-label {
  font-size: 1rem;
  line-height: 1;
}

@media (min-width: 769px) {
  .w445d-bottom-nav { display: none; }
}

/* RTP Table */
.w445d-rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.3rem;
}

.w445d-rtp-table th {
  background: var(--w445d-primary);
  color: var(--w445d-highlight);
  padding: 0.8rem;
  text-align: left;
  font-weight: 600;
}

.w445d-rtp-table td {
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--w445d-border);
  color: var(--w445d-text);
}

.w445d-rtp-table tr:hover td {
  background: rgba(0, 229, 255, 0.05);
}

/* Internal links */
.w445d-internal-link {
  color: var(--w445d-accent);
  text-decoration: underline;
  transition: var(--w445d-transition);
}

.w445d-internal-link:hover {
  color: var(--w445d-highlight);
}

/* Utility */
.w445d-text-center { text-align: center; }
.w445d-mt-1 { margin-top: 1rem; }
.w445d-mt-2 { margin-top: 2rem; }
.w445d-mb-1 { margin-bottom: 1rem; }
.w445d-mb-2 { margin-bottom: 2rem; }
.w445d-hidden { display: none; }

/* Desktop adjustments */
@media (min-width: 769px) {
  .w445d-container {
    max-width: 600px;
  }
  .w445d-game-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}
