/* sun20.cfd core stylesheet - basefiles */
/* All classes use v356- prefix for namespace isolation */
/* Comments in English per project convention */

:root {
  --v356-bg: #1A1A1A;
  --v356-primary: #4169E1;
  --v356-secondary: #5F9EA0;
  --v356-accent: #87CEFA;
  --v356-highlight: #00FF00;
  --v356-text: #F5F7FA;
  --v356-text-dim: #B8C2D0;
  --v356-card-bg: #232328;
  --v356-card-bg-alt: #2A2A30;
  --v356-border: #3A3A45;
  --v356-shadow: 0 4px 20px rgba(0,0,0,0.45);
  --v356-radius: 12px;
  --v356-radius-sm: 8px;
  --v356-header-h: 56px;
  --v356-bottom-h: 62px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 62.5%; scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  background: var(--v356-bg);
  color: var(--v356-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--v356-accent); text-decoration: none; }
a:hover { color: var(--v356-highlight); }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

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

/* Header */
.v356-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--v356-header-h);
  background: linear-gradient(135deg, #1A1A1A 0%, #2A2A30 100%);
  border-bottom: 1px solid var(--v356-border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.2rem;
  max-width: 430px; margin: 0 auto; right: 0; left: 50%; transform: translateX(-50%);
  box-shadow: var(--v356-shadow);
}
.v356-header-left { display: flex; align-items: center; gap: 0.6rem; }
.v356-logo { width: 28px; height: 28px; border-radius: 6px; }
.v356-brand { font-weight: 800; font-size: 1.7rem; color: var(--v356-accent); letter-spacing: 0.3px; }
.v356-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.v356-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  font-weight: 700; font-size: 1.3rem; border-radius: var(--v356-radius-sm);
  padding: 0.7rem 1.2rem; min-height: 38px; transition: transform 0.15s, box-shadow 0.15s;
}
.v356-btn:hover { transform: translateY(-1px); }
.v356-btn-primary { background: linear-gradient(135deg, var(--v356-highlight), var(--v356-primary)); color: #0a0a0a; box-shadow: 0 3px 10px rgba(0,255,0,0.25); }
.v356-btn-outline { background: transparent; color: var(--v356-accent); border: 1.5px solid var(--v356-primary); }
.v356-btn-block { display: flex; width: 100%; padding: 1rem; font-size: 1.5rem; }
.v356-menu-toggle {
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  color: var(--v356-accent); font-size: 2rem; background: rgba(255,255,255,0.04); border-radius: 8px;
}

/* Mobile Menu */
.v356-mobile-menu {
  position: fixed; top: var(--v356-header-h); left: 0; right: 0;
  background: #202024; border-bottom: 1px solid var(--v356-border);
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease; z-index: 9999;
  max-width: 430px; margin: 0 auto;
}
.v356-menu-open { max-height: 520px; box-shadow: var(--v356-shadow); }
.v356-menu-list { list-style: none; padding: 0.6rem 1.2rem; }
.v356-menu-list li { border-bottom: 1px solid var(--v356-border); }
.v356-menu-list li:last-child { border-bottom: none; }
.v356-menu-list a { display: block; padding: 1.1rem 0.4rem; color: var(--v356-text); font-size: 1.4rem; }

/* Main content spacing */
main { padding-top: calc(var(--v356-header-h) + 4px); min-height: 60vh; }
@media (max-width: 768px) { main { padding-bottom: 80px; } }

/* Carousel */
.v356-carousel { position: relative; width: 100%; overflow: hidden; border-radius: var(--v356-radius); margin: 1rem 0; }
.v356-slides { position: relative; width: 100%; height: 180px; }
.v356-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease;
  display: flex; align-items: center; justify-content: center;
}
.v356-slide img { width: 100%; height: 180px; object-fit: cover; border-radius: var(--v356-radius); }
.v356-slide-active { opacity: 1; }
.v356-slide-caption {
  position: absolute; left: 1rem; bottom: 1.2rem; right: 1rem;
  color: #fff; font-weight: 800; font-size: 1.6rem; text-shadow: 0 2px 6px rgba(0,0,0,0.7);
}
.v356-carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,0.45);
  color: #fff; font-size: 1.6rem; display: flex; align-items: center; justify-content: center;
}
.v356-carousel-arrow:hover { background: var(--v356-primary); }
.v356-arrow-prev { left: 0.6rem; }
.v356-arrow-next { right: 0.6rem; }
.v356-slide-dots { position: absolute; bottom: 0.6rem; left: 0; right: 0; display: flex; justify-content: center; gap: 0.5rem; }
.v356-slide-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); }
.v356-dot-active { background: var(--v356-highlight); width: 18px; border-radius: 4px; }

/* Sections */
.v356-section { margin: 1.6rem 0; padding: 1.4rem 1.2rem; background: var(--v356-card-bg); border-radius: var(--v356-radius); border: 1px solid var(--v356-border); }
.v356-section-title { font-size: 1.7rem; font-weight: 800; color: var(--v356-accent); margin-bottom: 0.8rem; padding-bottom: 0.4rem; border-bottom: 2px solid var(--v356-primary); }
.v356-section-title i, .v356-section-title .material-icons, .v356-section-title .bi { color: var(--v356-highlight); margin-right: 0.5rem; }
.v356-section-text { color: var(--v356-text-dim); font-size: 1.35rem; line-height: 1.6rem; margin-bottom: 0.6rem; }
.v356-section-text strong { color: var(--v356-accent); }

h1.v356-h1 { font-size: 2rem; font-weight: 800; color: var(--v356-highlight); margin: 1rem 0; text-align: center; line-height: 1.6rem; }
h2.v356-h2 { font-size: 1.8rem; font-weight: 700; color: var(--v356-accent); margin: 1rem 0 0.6rem; }
h3.v356-h3 { font-size: 1.5rem; font-weight: 700; color: var(--v356-secondary); margin: 0.8rem 0 0.4rem; }

/* Game grid */
.v356-game-block { margin: 1.4rem 0; }
.v356-game-block-title { font-size: 1.6rem; font-weight: 800; color: var(--v356-highlight); margin-bottom: 0.8rem; display: flex; align-items: center; gap: 0.5rem; }
.v356-game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.v356-game-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.v356-game-item img { width: 100%; height: 80px; object-fit: cover; border-radius: var(--v356-radius-sm); border: 1px solid var(--v356-border); transition: transform 0.15s, box-shadow 0.15s; }
.v356-game-item:hover img { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(65,105,225,0.4); border-color: var(--v356-primary); }
.v356-game-name { font-size: 1.15rem; color: var(--v356-text-dim); margin-top: 0.4rem; line-height: 1.3rem; height: 2.6rem; overflow: hidden; }

/* Filter buttons */
.v356-filter-bar { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.6rem 0; margin-bottom: 0.6rem; }
.v356-filter-btn { padding: 0.5rem 1rem; border-radius: 20px; background: var(--v356-card-bg-alt); color: var(--v356-text-dim); font-size: 1.2rem; white-space: nowrap; border: 1px solid var(--v356-border); }
.v356-filter-active { background: var(--v356-primary); color: #fff; border-color: var(--v356-primary); }

/* Cards */
.v356-card { background: var(--v356-card-bg-alt); border: 1px solid var(--v356-border); border-radius: var(--v356-radius); padding: 1.2rem; margin-bottom: 1rem; }
.v356-card-title { font-size: 1.4rem; font-weight: 700; color: var(--v356-accent); margin-bottom: 0.5rem; }
.v356-card-text { color: var(--v356-text-dim); font-size: 1.3rem; line-height: 1.55rem; }
.v356-card-grid { display: grid; grid-template-columns: 1fr; gap: 0.8rem; }

/* Promo CTA */
.v356-cta { background: linear-gradient(135deg, var(--v356-primary), var(--v356-secondary)); border-radius: var(--v356-radius); padding: 1.4rem; text-align: center; margin: 1rem 0; }
.v356-cta-title { font-size: 1.7rem; font-weight: 800; color: #fff; margin-bottom: 0.4rem; }
.v356-cta-text { color: #E8EEF8; font-size: 1.3rem; margin-bottom: 1rem; }
.v356-cta .v356-btn { display: inline-flex; }

/* FAQ */
.v356-faq-item { border-bottom: 1px solid var(--v356-border); padding: 0.8rem 0; }
.v356-faq-q { font-weight: 700; color: var(--v356-accent); font-size: 1.35rem; margin-bottom: 0.3rem; }
.v356-faq-a { color: var(--v356-text-dim); font-size: 1.3rem; line-height: 1.55rem; }

/* Testimonials */
.v356-testi { background: var(--v356-card-bg-alt); border-left: 3px solid var(--v356-highlight); padding: 0.8rem 1rem; border-radius: 6px; margin-bottom: 0.8rem; }
.v356-testi-text { color: var(--v356-text); font-style: italic; font-size: 1.3rem; }
.v356-testi-author { color: var(--v356-accent); font-size: 1.2rem; font-weight: 700; margin-top: 0.4rem; }

/* Winners list */
.v356-winner-row { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px dashed var(--v356-border); font-size: 1.25rem; }
.v356-winner-name { color: var(--v356-accent); font-weight: 700; }
.v356-winner-amount { color: var(--v356-highlight); font-weight: 800; }

/* Payment methods */
.v356-pay-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; margin-top: 0.8rem; }
.v356-pay-item { background: #fff; color: #1A1A1A; border-radius: 6px; padding: 0.6rem 0.4rem; text-align: center; font-size: 1.1rem; font-weight: 700; min-height: 44px; display: flex; align-items: center; justify-content: center; }

/* Footer */
.v356-footer { background: #141416; border-top: 1px solid var(--v356-border); padding: 1.6rem 1.2rem; margin-top: 1rem; }
.v356-footer-brand { color: var(--v356-accent); font-weight: 800; font-size: 1.5rem; margin-bottom: 0.5rem; }
.v356-footer-text { color: var(--v356-text-dim); font-size: 1.25rem; line-height: 1.55rem; margin-bottom: 1rem; }
.v356-footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin: 0.8rem 0; }
.v356-footer-links a { font-size: 1.2rem; color: var(--v356-accent); text-decoration: underline; }
.v356-promo-links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0; }
.v356-promo-links .v356-btn { font-size: 1.2rem; padding: 0.6rem 1rem; }
.v356-copyright { color: #6A6A75; font-size: 1.15rem; text-align: center; margin-top: 1rem; border-top: 1px solid var(--v356-border); padding-top: 0.8rem; }

/* Bottom navigation */
.v356-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: var(--v356-bottom-h);
  background: linear-gradient(180deg, #2A2A30 0%, #1A1A1A 100%);
  border-top: 1px solid var(--v356-border);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000; box-shadow: 0 -2px 14px rgba(0,0,0,0.5);
}
.v356-bottom-nav-btn {
  flex: 1; min-width: 60px; min-height: 60px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem;
  color: var(--v356-text-dim); font-size: 1.1rem; transition: transform 0.15s, color 0.15s;
}
.v356-bottom-nav-btn i, .v356-bottom-nav-btn .material-icons, .v356-bottom-nav-btn .bi, .v356-bottom-nav-btn ion-icon {
  font-size: 22px;
}
.v356-bottom-nav-btn ion-icon { font-size: 24px; }
.v356-bottom-nav-btn:hover { color: var(--v356-accent); transform: translateY(-2px); }
.v356-bottom-nav-btn:active { transform: scale(0.92); }
.v356-nav-current { color: var(--v356-highlight) !important; }
.v356-nav-current i, .v356-nav-current .material-icons { color: var(--v356-highlight); }
.v356-nav-badge {
  position: absolute; top: 6px; right: 14px; min-width: 16px; height: 16px;
  background: var(--v356-highlight); color: #000; border-radius: 8px;
  font-size: 1rem; font-weight: 800; display: flex; align-items: center; justify-content: center; padding: 0 4px;
}

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

/* Desktop tweaks */
@media (min-width: 431px) {
  body { background: #0E0E10; }
  .v356-wrapper, .v356-header, .v356-bottom-nav, .v356-mobile-menu { max-width: 430px; }
}

/* Utility */
.v356-center { text-align: center; }
.v356-mt1 { margin-top: 1rem; }
.v356-mb1 { margin-bottom: 1rem; }
.v356-flex { display: flex; gap: 0.8rem; }
.v356-flex-col { display: flex; flex-direction: column; gap: 0.8rem; }
.v356-text-link { color: var(--v356-highlight); font-weight: 700; text-decoration: underline; }
.v356-hidden { display: none !important; }