/* ==========================================================================
   Super Ace 2016 - Theme Stylesheet
   All classes prefixed with "v335-" for namespace isolation
   Mobile-first design, max-width 430px
   ========================================================================== */

/* CSS Variables */
:root {
  --v335-primary: #1B263B;
  --v335-bg: #1B263B;
  --v335-bg-card: #243352;
  --v335-bg-section: #1e2d47;
  --v335-text: #CED4DA;
  --v335-text-muted: #8a95a5;
  --v335-accent: #DEB887;
  --v335-accent-glow: rgba(222, 184, 135, 0.3);
  --v335-highlight: #f0d8a8;
  --v335-border: rgba(206, 212, 218, 0.12);
  --v335-btn-bg: #DEB887;
  --v335-btn-text: #1B263B;
  --v335-btn-secondary: #A0522D;
  --v335-radius: 8px;
  --v335-radius-lg: 12px;
  --v335-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  --v335-shadow-lg: 0 4px 24px rgba(0, 0, 0, 0.4);
  --v335-transition: all 0.3s ease;
  font-size: 62.5%;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--v335-bg);
  color: var(--v335-text);
  font-size: 1.4rem;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--v335-accent); text-decoration: none; transition: var(--v335-transition); }
a:hover { color: var(--v335-highlight); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

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

/* ==========================================================================
   HEADER
   ========================================================================== */
.v335-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #1B263B 0%, #243352 50%, #1B263B 100%);
  border-bottom: 1px solid var(--v335-border);
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  box-shadow: var(--v335-shadow);
}
.v335-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}
.v335-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}
.v335-logo-wrap img { width: 28px; height: 28px; border-radius: 6px; }
.v335-site-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--v335-accent);
  white-space: nowrap;
}
.v335-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.v335-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: var(--v335-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--v335-transition);
  white-space: nowrap;
}
.v335-btn-register {
  background: var(--v335-accent);
  color: var(--v335-btn-text);
}
.v335-btn-register:hover { background: var(--v335-highlight); transform: scale(1.05); }
.v335-btn-login {
  background: transparent;
  color: var(--v335-accent);
  border: 1px solid var(--v335-accent);
}
.v335-btn-login:hover { background: rgba(222, 184, 135, 0.1); }
.v335-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: none;
  border: none;
  color: var(--v335-accent);
  font-size: 2rem;
  cursor: pointer;
}

/* ==========================================================================
   MOBILE MENU (Slide-out)
   ========================================================================== */
.v335-menu-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.v335-overlay-active { opacity: 1; pointer-events: auto; }
.v335-mobile-menu {
  position: fixed;
  top: 0; right: -280px;
  width: 280px;
  height: 100vh;
  background: linear-gradient(180deg, #1e2d47 0%, #1B263B 100%);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}
.v335-menu-open { right: 0; }
.v335-menu-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 36px; height: 36px;
  background: none;
  border: none;
  color: var(--v335-accent);
  font-size: 2.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.v335-menu-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--v335-accent);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--v335-border);
}
.v335-menu-nav a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 0;
  color: var(--v335-text);
  font-size: 1.4rem;
  border-bottom: 1px solid var(--v335-border);
  transition: var(--v335-transition);
}
.v335-menu-nav a:hover { color: var(--v335-accent); padding-left: 0.5rem; }
.v335-menu-nav .material-icons { font-size: 2rem; color: var(--v335-accent); }

/* ==========================================================================
   MAIN CONTENT
   ========================================================================== */
.v335-main { padding-top: 56px; }
@media (max-width: 768px) {
  .v335-main { padding-bottom: 80px; }
}

/* ==========================================================================
   BANNER SLIDER
   ========================================================================== */
.v335-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 var(--v335-radius-lg) var(--v335-radius-lg);
}
.v335-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}
.v335-slide img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.v335-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
}
.v335-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--v335-transition);
  border: none;
}
.v335-dot-active { background: var(--v335-accent); transform: scale(1.2); }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.v335-section {
  padding: 2rem 0;
}
.v335-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--v335-accent);
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--v335-accent);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.v335-section-title .material-icons,
.v335-section-title .fas,
.v335-section-title .far {
  font-size: 2rem;
}
.v335-section-alt {
  background: var(--v335-bg-section);
  margin: 0 -1.2rem;
  padding: 2rem 1.2rem;
}

/* ==========================================================================
   GAME GRID (4 columns)
   ========================================================================== */
.v335-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.v335-game-item {
  text-align: center;
  cursor: pointer;
  transition: var(--v335-transition);
  border-radius: var(--v335-radius);
  padding: 0.4rem;
}
.v335-game-item:hover { transform: translateY(-2px); background: var(--v335-bg-card); }
.v335-game-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--v335-radius);
  margin-bottom: 0.3rem;
}
.v335-game-name {
  font-size: 1rem;
  color: var(--v335-text-muted);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.v335-cat-label {
  font-size: 1.2rem;
  color: var(--v335-text-muted);
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ==========================================================================
   CONTENT CARDS
   ========================================================================== */
.v335-card {
  background: var(--v335-bg-card);
  border-radius: var(--v335-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  box-shadow: var(--v335-shadow);
  border: 1px solid var(--v335-border);
}
.v335-card h2, .v335-card h3 {
  color: var(--v335-accent);
  margin-bottom: 0.8rem;
}
.v335-card h2 { font-size: 1.6rem; }
.v335-card h3 { font-size: 1.4rem; }
.v335-card p {
  color: var(--v335-text);
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

/* ==========================================================================
   CTA BUTTONS
   ========================================================================== */
.v335-cta {
  text-align: center;
  padding: 2rem 0;
}
.v335-cta .v335-btn {
  padding: 1rem 2.5rem;
  font-size: 1.5rem;
  border-radius: var(--v335-radius-lg);
  background: linear-gradient(135deg, var(--v335-accent) 0%, var(--v335-btn-secondary) 100%);
  color: #fff;
  box-shadow: 0 4px 16px var(--v335-accent-glow);
}
.v335-cta .v335-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--v335-accent-glow);
}
.v335-btn-cta-sm {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: var(--v335-accent);
  color: var(--v335-btn-text);
  border-radius: var(--v335-radius);
  font-weight: 600;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--v335-transition);
}
.v335-btn-cta-sm:hover { background: var(--v335-highlight); transform: scale(1.05); }
.v335-btn-brown {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: var(--v335-btn-secondary);
  color: #fff;
  border-radius: var(--v335-radius);
  font-weight: 600;
  font-size: 1.3rem;
  cursor: pointer;
  transition: var(--v335-transition);
}
.v335-btn-brown:hover { background: #b5632e; transform: scale(1.05); }

/* ==========================================================================
   FEATURE GRID
   ========================================================================== */
.v335-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.v335-feature-item {
  background: var(--v335-bg-card);
  border-radius: var(--v335-radius);
  padding: 1.2rem;
  text-align: center;
  border: 1px solid var(--v335-border);
  transition: var(--v335-transition);
}
.v335-feature-item:hover { border-color: var(--v335-accent); }
.v335-feature-item .fas,
.v335-feature-item .far,
.v335-feature-item .material-icons {
  font-size: 2.4rem;
  color: var(--v335-accent);
  margin-bottom: 0.6rem;
}
.v335-feature-item h4 {
  font-size: 1.2rem;
  color: var(--v335-accent);
  margin-bottom: 0.4rem;
}
.v335-feature-item p {
  font-size: 1.1rem;
  color: var(--v335-text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   STEP LIST
   ========================================================================== */
.v335-step-list { counter-reset: v335-step; }
.v335-step-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.2rem;
  padding: 1rem;
  background: var(--v335-bg-card);
  border-radius: var(--v335-radius);
  border: 1px solid var(--v335-border);
}
.v335-step-num {
  min-width: 3rem; height: 3rem;
  background: var(--v335-accent);
  color: var(--v335-btn-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.v335-step-content h4 {
  font-size: 1.3rem;
  color: var(--v335-accent);
  margin-bottom: 0.3rem;
}
.v335-step-content p {
  font-size: 1.2rem;
  color: var(--v335-text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.v335-faq-item {
  margin-bottom: 1rem;
  background: var(--v335-bg-card);
  border-radius: var(--v335-radius);
  border: 1px solid var(--v335-border);
  overflow: hidden;
}
.v335-faq-q {
  padding: 1rem 1.2rem;
  font-weight: 600;
  color: var(--v335-accent);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.v335-faq-a {
  padding: 0 1.2rem 1rem;
  color: var(--v335-text);
  font-size: 1.2rem;
  line-height: 1.5;
}

/* ==========================================================================
   WINNERS
   ========================================================================== */
.v335-winners-list { display: flex; flex-direction: column; gap: 0.8rem; }
.v335-winner-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  background: var(--v335-bg-card);
  border-radius: var(--v335-radius);
  border: 1px solid var(--v335-border);
}
.v335-winner-info { display: flex; align-items: center; gap: 0.8rem; }
.v335-winner-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--v335-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--v335-btn-text);
  font-weight: 700;
  font-size: 1.2rem;
}
.v335-winner-name { font-size: 1.2rem; color: var(--v335-text); }
.v335-winner-game { font-size: 1rem; color: var(--v335-text-muted); }
.v335-winner-amount {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--v335-accent);
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.v335-testimonials { display: flex; flex-direction: column; gap: 1rem; }
.v335-testimonial {
  background: var(--v335-bg-card);
  border-radius: var(--v335-radius-lg);
  padding: 1.2rem;
  border: 1px solid var(--v335-border);
}
.v335-testimonial-text {
  font-style: italic;
  color: var(--v335-text);
  margin-bottom: 0.8rem;
  line-height: 1.5;
  font-size: 1.2rem;
}
.v335-testimonial-author {
  font-size: 1.1rem;
  color: var(--v335-accent);
  font-weight: 600;
}
.v335-testimonial-stars { color: var(--v335-accent); font-size: 1.2rem; margin-bottom: 0.4rem; }

/* ==========================================================================
   PAYMENT METHODS
   ========================================================================== */
.v335-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}
.v335-payment-item {
  background: var(--v335-bg-card);
  border: 1px solid var(--v335-border);
  border-radius: var(--v335-radius);
  padding: 0.6rem 1.2rem;
  font-size: 1.2rem;
  color: var(--v335-text);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.v335-footer {
  background: linear-gradient(180deg, var(--v335-bg-section) 0%, #0f1825 100%);
  padding: 2rem 0 1rem;
  margin-top: 2rem;
  border-top: 1px solid var(--v335-border);
}
.v335-footer-brand {
  text-align: center;
  margin-bottom: 1.5rem;
}
.v335-footer-brand p {
  font-size: 1.2rem;
  color: var(--v335-text-muted);
  line-height: 1.5;
  max-width: 360px;
  margin: 0 auto;
}
.v335-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.v335-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-bottom: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--v335-border);
  border-bottom: 1px solid var(--v335-border);
}
.v335-footer-links a {
  font-size: 1.1rem;
  color: var(--v335-text-muted);
  padding: 0.3rem 0.6rem;
}
.v335-footer-links a:hover { color: var(--v335-accent); }
.v335-footer-copy {
  text-align: center;
  font-size: 1.1rem;
  color: var(--v335-text-muted);
  padding-top: 1rem;
}

/* ==========================================================================
   BOTTOM NAVIGATION (Mobile Only)
   ========================================================================== */
.v335-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  height: 60px;
  background: linear-gradient(180deg, #243352 0%, #1B263B 100%);
  border-top: 1px solid var(--v335-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.3);
}
.v335-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(--v335-text-muted);
  cursor: pointer;
  transition: var(--v335-transition);
  padding: 0.4rem;
}
.v335-bottom-btn:hover,
.v335-bottom-btn:focus {
  color: var(--v335-accent);
  transform: scale(1.1);
}
.v335-bottom-btn.active { color: var(--v335-accent); }
.v335-bottom-btn .fas,
.v335-bottom-btn .far,
.v335-bottom-btn .material-icons,
.v335-bottom-btn ion-icon {
  font-size: 22px;
  margin-bottom: 2px;
}
.v335-bottom-label {
  font-size: 1rem;
  line-height: 1;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
  .v335-bottom-nav { display: none; }
}
@media (max-width: 768px) {
  .v335-main { padding-bottom: 72px; }
}

/* ==========================================================================
   RTP TABLE
   ========================================================================== */
.v335-rtp-table { width: 100%; border-collapse: collapse; }
.v335-rtp-table th {
  background: var(--v335-accent);
  color: var(--v335-btn-text);
  padding: 0.6rem 0.8rem;
  font-size: 1.1rem;
  text-align: left;
}
.v335-rtp-table td {
  padding: 0.6rem 0.8rem;
  font-size: 1.1rem;
  border-bottom: 1px solid var(--v335-border);
  color: var(--v335-text);
}
.v335-rtp-table tr:hover td { background: var(--v335-bg-card); }
.v335-rtp-bar {
  height: 6px;
  background: var(--v335-bg-card);
  border-radius: 3px;
  overflow: hidden;
}
.v335-rtp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--v335-btn-secondary), var(--v335-accent));
  border-radius: 3px;
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */
.v335-text-center { text-align: center; }
.v335-text-accent { color: var(--v335-accent); }
.v335-text-muted { color: var(--v335-text-muted); }
.v335-mb-1 { margin-bottom: 1rem; }
.v335-mb-2 { margin-bottom: 2rem; }
.v335-mt-1 { margin-top: 1rem; }
.v335-mt-2 { margin-top: 2rem; }
.v335-py-1 { padding-top: 1rem; padding-bottom: 1rem; }
.v335-py-2 { padding-top: 2rem; padding-bottom: 2rem; }
.v335-promo-link {
  color: var(--v335-accent);
  font-weight: 600;
  cursor: pointer;
  transition: var(--v335-transition);
}
.v335-promo-link:hover { color: var(--v335-highlight); text-decoration: underline; }

/* ==========================================================================
   APP DOWNLOAD CTA
   ========================================================================== */
.v335-app-cta {
  background: linear-gradient(135deg, var(--v335-btn-secondary) 0%, #8a4325 100%);
  border-radius: var(--v335-radius-lg);
  padding: 1.5rem;
  text-align: center;
  margin: 1.5rem 0;
}
.v335-app-cta h3 { font-size: 1.6rem; color: var(--v335-accent); margin-bottom: 0.6rem; }
.v335-app-cta p { font-size: 1.2rem; color: var(--v335-text); margin-bottom: 1rem; }

/* ==========================================================================
   DESKTOP STYLES
   ========================================================================== */
@media (min-width: 769px) {
  .v335-container { max-width: 430px; }
  .v335-hamburger { display: none; }
}
