/**
 * blucky Core CSS Styles
 * File: css/layout.css
 * Prefix: v223-
 * Colors: #CD853F (accent) | #2C3E50 (bg) | #F5F5F5 (text)
 */

:root {
  --v223-primary: #CD853F;
  --v223-bg: #2C3E50;
  --v223-text: #F5F5F5;
  --v223-bg-light: #34495E;
  --v223-bg-dark: #1A252F;
  --v223-accent-hover: #B8732E;
  --v223-border: #3D566E;
  --v223-shadow: rgba(0, 0, 0, 0.3);
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  background-color: var(--v223-bg);
  color: var(--v223-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--v223-primary);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--v223-accent-hover);
}

img {
  max-width: 100%;
  height: auto;
}

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

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

.v223-header-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

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

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

.v223-header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.v223-btn-register {
  background: var(--v223-primary);
  color: var(--v223-bg-dark);
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: 6px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.v223-btn-register:hover {
  background: var(--v223-accent-hover);
  transform: scale(1.05);
}

.v223-btn-login {
  background: transparent;
  color: var(--v223-primary);
  border: 1.5px solid var(--v223-primary);
  padding: 0.6rem 1.4rem;
  border-radius: 6px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.v223-btn-login:hover {
  background: var(--v223-primary);
  color: var(--v223-bg-dark);
}

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

/* Mobile Menu */
.v223-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s;
}

.v223-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 260px;
  height: 100%;
  background: var(--v223-bg-dark);
  z-index: 9999;
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 2rem 0;
  overflow-y: auto;
}

.v223-mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.6rem 1.6rem;
  border-bottom: 1px solid var(--v223-border);
}

.v223-mobile-menu-header span {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--v223-primary);
}

.v223-menu-close {
  background: none;
  border: none;
  color: var(--v223-text);
  font-size: 2rem;
  cursor: pointer;
}

.v223-mobile-menu nav {
  padding: 1rem 0;
}

.v223-mobile-menu nav a {
  display: block;
  padding: 1.2rem 1.6rem;
  color: var(--v223-text);
  font-size: 1.4rem;
  border-bottom: 1px solid var(--v223-border);
  transition: all 0.2s;
}

.v223-mobile-menu nav a:hover {
  background: var(--v223-bg-light);
  color: var(--v223-primary);
  padding-left: 2rem;
}

/* Main Content */
.v223-main {
  padding-top: 56px;
  min-height: 100vh;
}

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

/* Carousel */
.v223-carousel {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
}

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

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

.v223-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.v223-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(245, 245, 245, 0.5);
  cursor: pointer;
  border: none;
  transition: background 0.3s;
}

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

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

.v223-section-title i,
.v223-section-title .material-icons {
  font-size: 2rem;
}

/* Game Grid */
.v223-game-section {
  padding: 1rem 0;
}

.v223-game-category-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--v223-primary);
  padding: 0.8rem 0;
  margin-top: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.v223-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0.5rem 0;
}

.v223-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s;
  border-radius: 8px;
  padding: 4px;
  background: var(--v223-bg-light);
}

.v223-game-item:hover {
  transform: scale(1.05);
  background: var(--v223-bg-dark);
}

.v223-game-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
}

.v223-game-item span {
  font-size: 1rem;
  color: var(--v223-text);
  text-align: center;
  padding: 3px 2px;
  line-height: 1.2rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

/* Content Sections */
.v223-content-block {
  padding: 1.2rem 0;
}

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

.v223-content-block h3 {
  font-size: 1.5rem;
  color: var(--v223-primary);
  margin: 1rem 0 0.5rem;
}

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

.v223-content-block ul {
  list-style: none;
  padding: 0;
}

.v223-content-block ul li {
  padding: 0.5rem 0 0.5rem 1.6rem;
  position: relative;
  color: var(--v223-text);
  font-size: 1.3rem;
  line-height: 2rem;
}

.v223-content-block ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.1rem;
  width: 6px;
  height: 6px;
  background: var(--v223-primary);
  border-radius: 50%;
}

/* Promo Button */
.v223-promo-btn {
  display: inline-block;
  background: var(--v223-primary);
  color: var(--v223-bg-dark);
  padding: 1rem 2.4rem;
  border-radius: 8px;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
  text-align: center;
}

.v223-promo-btn:hover {
  background: var(--v223-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--v223-shadow);
}

.v223-promo-text {
  color: var(--v223-primary);
  font-weight: 600;
  cursor: pointer;
  border-bottom: 1px dashed var(--v223-primary);
}

/* Feature Cards */
.v223-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 0.5rem 0;
}

.v223-feature-card {
  background: var(--v223-bg-light);
  border-radius: 10px;
  padding: 1.2rem;
  text-align: center;
  border: 1px solid var(--v223-border);
  transition: all 0.3s;
}

.v223-feature-card:hover {
  border-color: var(--v223-primary);
  transform: translateY(-3px);
}

.v223-feature-card i,
.v223-feature-card .material-icons {
  font-size: 2.4rem;
  color: var(--v223-primary);
  margin-bottom: 0.6rem;
}

.v223-feature-card h4 {
  font-size: 1.3rem;
  color: var(--v223-primary);
  margin-bottom: 0.4rem;
}

.v223-feature-card p {
  font-size: 1.1rem;
  color: var(--v223-text);
  line-height: 1.6rem;
}

/* Testimonial Cards */
.v223-testimonial {
  background: var(--v223-bg-light);
  border-radius: 10px;
  padding: 1.4rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--v223-primary);
}

.v223-testimonial-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--v223-primary);
}

.v223-testimonial-text {
  font-size: 1.2rem;
  color: var(--v223-text);
  line-height: 1.8rem;
  margin-top: 0.5rem;
}

/* Winner List */
.v223-winner-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  background: var(--v223-bg-light);
  border-radius: 8px;
  margin-bottom: 0.6rem;
}

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

.v223-winner-amount {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--v223-primary);
}

.v223-winner-game {
  font-size: 1rem;
  color: var(--v223-text);
  opacity: 0.7;
}

/* Payment Methods */
.v223-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  padding: 1rem 0;
}

.v223-payment-item {
  background: var(--v223-bg-light);
  border: 1px solid var(--v223-border);
  border-radius: 8px;
  padding: 1rem 1.4rem;
  text-align: center;
  font-size: 1.2rem;
  color: var(--v223-text);
  min-width: 80px;
}

.v223-payment-item i {
  display: block;
  font-size: 2rem;
  color: var(--v223-primary);
  margin-bottom: 0.4rem;
}

/* Footer */
.v223-footer {
  background: var(--v223-bg-dark);
  padding: 2rem 0 1.4rem;
  border-top: 2px solid var(--v223-primary);
}

.v223-footer-brand {
  text-align: center;
  padding: 0 1.2rem 1.2rem;
}

.v223-footer-brand p {
  font-size: 1.2rem;
  color: var(--v223-text);
  line-height: 1.8rem;
  opacity: 0.8;
}

.v223-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  padding: 1rem 1.2rem;
}

.v223-footer-links a {
  color: var(--v223-primary);
  font-size: 1.2rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--v223-border);
  border-radius: 4px;
  transition: all 0.2s;
}

.v223-footer-links a:hover {
  border-color: var(--v223-primary);
  background: rgba(205, 133, 63, 0.1);
}

.v223-footer-copy {
  text-align: center;
  font-size: 1.1rem;
  color: var(--v223-text);
  opacity: 0.6;
  padding-top: 1rem;
}

/* Bottom Navigation */
.v223-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: var(--v223-bg-dark);
  border-top: 2px solid var(--v223-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
}

.v223-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 56px;
  background: none;
  border: none;
  color: var(--v223-text);
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  opacity: 0.7;
}

.v223-bottom-nav-item:hover,
.v223-bottom-nav-item.v223-nav-active {
  opacity: 1;
  color: var(--v223-primary);
  transform: scale(1.08);
}

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

.v223-bottom-nav-item span {
  font-size: 1rem;
  line-height: 1.2rem;
}

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

/* FAQ Section */
.v223-faq-item {
  background: var(--v223-bg-light);
  border-radius: 8px;
  margin-bottom: 0.8rem;
  padding: 1.2rem;
  border-left: 3px solid var(--v223-primary);
}

.v223-faq-item h3 {
  font-size: 1.4rem;
  color: var(--v223-primary);
  margin-bottom: 0.5rem;
}

.v223-faq-item p {
  font-size: 1.2rem;
  color: var(--v223-text);
  line-height: 1.8rem;
}

/* Help Page Content */
.v223-help-section {
  padding: 1.2rem 0;
}

.v223-help-section h2 {
  font-size: 1.6rem;
  color: var(--v223-primary);
  margin-bottom: 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--v223-border);
}

.v223-help-section p {
  font-size: 1.3rem;
  color: var(--v223-text);
  line-height: 2rem;
  margin-bottom: 0.8rem;
}

.v223-step-list {
  list-style: none;
  padding: 0;
  counter-reset: v223-step;
}

.v223-step-list li {
  counter-increment: v223-step;
  padding: 0.6rem 0 0.6rem 3rem;
  position: relative;
  font-size: 1.3rem;
  color: var(--v223-text);
  line-height: 1.8rem;
}

.v223-step-list li::before {
  content: counter(v223-step);
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 22px;
  height: 22px;
  background: var(--v223-primary);
  color: var(--v223-bg-dark);
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CTA Banner */
.v223-cta-banner {
  background: linear-gradient(135deg, var(--v223-primary), #DAA06D);
  border-radius: 10px;
  padding: 2rem 1.4rem;
  text-align: center;
  margin: 1.5rem 0;
}

.v223-cta-banner h3 {
  font-size: 1.8rem;
  color: var(--v223-bg-dark);
  margin-bottom: 0.6rem;
}

.v223-cta-banner p {
  font-size: 1.3rem;
  color: var(--v223-bg-dark);
  margin-bottom: 1rem;
}

.v223-cta-banner .v223-promo-btn {
  background: var(--v223-bg-dark);
  color: var(--v223-primary);
}

/* Desktop adjustments */
@media (min-width: 769px) {
  .v223-container {
    max-width: 768px;
  }
  .v223-game-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .v223-feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
