/* tk333 CSS - All classes use v357- prefix */
/* Color palette: #1A1A1A | #FFB347 | #F8F9FA | #FFFACD */

:root {
  --v357-primary: #FFB347;
  --v357-bg: #1A1A1A;
  --v357-bg-light: #2A2A2A;
  --v357-text: #F8F9FA;
  --v357-text-muted: #CCC;
  --v357-accent: #FFFACD;
  --v357-gold: #FFD700;
  --v357-dark-card: #222;
  --v357-border: #333;
  --v357-success: #4CAF50;
  --v357-danger: #E74C3C;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  background-color: var(--v357-bg);
  color: var(--v357-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
  max-width: 430px;
  margin: 0 auto;
}

/* Header */
.v357-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 1000;
  background: linear-gradient(135deg, #1A1A1A 0%, #2A2A2A 100%);
  border-bottom: 2px solid var(--v357-primary);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.v357-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.v357-logo img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

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

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

.v357-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.2s ease;
  min-height: 36px;
}

.v357-btn-register {
  background: var(--v357-primary);
  color: #1A1A1A;
}

.v357-btn-register:hover {
  background: #FFA500;
  transform: scale(1.05);
}

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

.v357-btn-login:hover {
  background: rgba(255, 179, 71, 0.15);
}

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

/* Mobile Menu Overlay */
.v357-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 9998;
}

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

/* Mobile Slide Menu */
.v357-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: #1E1E1E;
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

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

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

.v357-menu-links {
  list-style: none;
  margin-top: 3rem;
}

.v357-menu-links li {
  margin-bottom: 1.2rem;
}

.v357-menu-links a {
  color: var(--v357-text);
  text-decoration: none;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  border-radius: 6px;
  transition: background 0.2s;
}

.v357-menu-links a:hover {
  background: var(--v357-bg-light);
  color: var(--v357-primary);
}

/* Main Content */
main {
  padding-top: 5.5rem;
  padding-bottom: 1rem;
}

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

.v357-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Carousel */
.v357-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 1.5rem;
}

.v357-carousel-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}

.v357-carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.v357-carousel-dots {
  text-align: center;
  padding: 0.8rem 0;
  display: flex;
  justify-content: center;
  gap: 0.6rem;
}

.v357-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #555;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.v357-dot-active {
  background: var(--v357-primary);
  width: 24px;
  border-radius: 5px;
}

/* Section Titles */
.v357-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--v357-primary);
  margin: 2rem 0 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--v357-primary);
}

.v357-section-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--v357-accent);
  margin: 1.5rem 0 0.8rem;
}

/* Game Grid */
.v357-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.v357-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.v357-game-item:hover {
  transform: scale(1.05);
}

.v357-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  object-fit: cover;
  border: 1.5px solid var(--v357-border);
}

.v357-game-item span {
  display: block;
  font-size: 1.1rem;
  color: var(--v357-text-muted);
  margin-top: 0.3rem;
  line-height: 1.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Category Label */
.v357-cat-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--v357-primary);
  margin: 1.5rem 0 0.8rem;
  padding: 0.4rem 1rem;
  background: rgba(255,179,71,0.1);
  border-radius: 20px;
}

/* Content Blocks */
.v357-content-block {
  background: var(--v357-dark-card);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--v357-border);
}

.v357-content-block h2 {
  color: var(--v357-primary);
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
}

.v357-content-block h3 {
  color: var(--v357-accent);
  font-size: 1.4rem;
  margin: 1rem 0 0.5rem;
}

.v357-content-block p {
  color: var(--v357-text);
  font-size: 1.3rem;
  line-height: 2rem;
  margin-bottom: 0.8rem;
}

.v357-content-block ul, .v357-content-block ol {
  padding-left: 2rem;
  margin-bottom: 0.8rem;
}

.v357-content-block li {
  color: var(--v357-text);
  font-size: 1.3rem;
  line-height: 2rem;
  margin-bottom: 0.4rem;
}

/* Promo Link Styles */
.v357-promo-link {
  color: var(--v357-primary);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s;
}

.v357-promo-link:hover {
  color: var(--v357-gold);
}

.v357-promo-btn {
  display: block;
  width: 100%;
  padding: 1.2rem;
  background: linear-gradient(135deg, var(--v357-primary), #FFA500);
  color: #1A1A1A;
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin: 1.5rem 0;
  transition: all 0.3s ease;
  text-decoration: none;
}

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

.v357-promo-sm {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: var(--v357-primary);
  color: #1A1A1A;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  margin: 0.5rem 0.3rem;
}

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

.v357-footer-desc {
  color: #999;
  font-size: 1.2rem;
  line-height: 1.8rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

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

.v357-footer-links a {
  color: var(--v357-primary);
  font-size: 1.2rem;
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  background: var(--v357-bg-light);
  border-radius: 4px;
  transition: background 0.2s;
}

.v357-footer-links a:hover {
  background: #3A3A3A;
}

.v357-copyright {
  text-align: center;
  color: #666;
  font-size: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid #333;
}

/* Bottom Navigation */
.v357-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: linear-gradient(180deg, #2A2A2A, #1A1A1A);
  border-top: 2px solid var(--v357-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 0.3rem;
}

.v357-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 54px;
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.v357-bottom-nav-item:hover,
.v357-bottom-nav-item.v357-nav-active {
  color: var(--v357-primary);
  transform: scale(1.1);
}

.v357-bottom-nav-item i,
.v357-bottom-nav-item .material-icons {
  font-size: 22px;
  margin-bottom: 2px;
}

.v357-bottom-nav-item span {
  font-size: 10px;
  line-height: 1.2;
}

.v357-nav-active {
  color: var(--v357-primary) !important;
}

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

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

.v357-faq-q {
  padding: 1rem 1.2rem;
  font-weight: 600;
  color: var(--v357-primary);
  font-size: 1.3rem;
  cursor: pointer;
}

.v357-faq-a {
  padding: 0 1.2rem 1rem;
  color: var(--v357-text);
  font-size: 1.2rem;
  line-height: 1.8rem;
}

/* Feature Cards */
.v357-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.v357-feature-card {
  background: var(--v357-bg-light);
  border-radius: 8px;
  padding: 1.2rem;
  text-align: center;
  border: 1px solid var(--v357-border);
}

.v357-feature-card i {
  font-size: 2.4rem;
  color: var(--v357-primary);
  margin-bottom: 0.5rem;
}

.v357-feature-card h4 {
  color: var(--v357-accent);
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.v357-feature-card p {
  color: #999;
  font-size: 1.1rem;
}

/* Winner Ticker */
.v357-winner-ticker {
  background: var(--v357-bg-light);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--v357-border);
}

.v357-winner-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  border-bottom: 1px solid #333;
  font-size: 1.2rem;
}

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

.v357-winner-name {
  color: var(--v357-primary);
  font-weight: 600;
}

.v357-winner-amount {
  color: var(--v357-success);
  font-weight: 700;
}

.v357-winner-game {
  color: #999;
  font-size: 1.1rem;
}

/* Responsive helpers */
.v357-text-center { text-align: center; }
.v357-mt-1 { margin-top: 1rem; }
.v357-mb-1 { margin-bottom: 1rem; }
.v357-hidden { display: none; }

@media (min-width: 769px) {
  body {
    max-width: 430px;
  }
}

/* Internal link styles */
.v357-internal-link {
  color: var(--v357-accent);
  text-decoration: underline;
  transition: color 0.2s;
}

.v357-internal-link:hover {
  color: var(--v357-primary);
}
