/**
 * PhoneJoy Core Stylesheet
 * All classes use prefix: s566-
 */

:root {
  --s566-primary: #DEB887;
  --s566-secondary: #E0FFFF;
  --s566-accent: #40E0D0;
  --s566-bg-light: #E0F2F1;
  --s566-bg-dark: #2D2D2D;
  --s566-text: #E0FFFF;
  --s566-text-dark: #2D2D2D;
}

/* Reset & Base Styles */
* {
  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, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--s566-text);
  background-color: var(--s566-bg-dark);
  min-height: 100vh;
}

/* Header Styles */
.s566-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--s566-bg-dark) 0%, #1a1a1a 100%);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  border-bottom: 2px solid var(--s566-primary);
}

.s566-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--s566-primary);
  font-size: 1.8rem;
  font-weight: bold;
}

.s566-logo img {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 8px;
}

.s566-header-actions {
  display: flex;
  gap: 1rem;
}

.s566-btn {
  padding: 0.6rem 1.5rem;
  border: none;
  border-radius: 25px;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.s566-btn-register {
  background: linear-gradient(135deg, var(--s566-primary) 0%, #d4a574 100%);
  color: var(--s566-text-dark);
}

.s566-btn-login {
  background: linear-gradient(135deg, var(--s566-accent) 0%, #30b8a8 100%);
  color: var(--s566-text-dark);
}

.s566-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(222, 184, 135, 0.4);
}

.s566-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--s566-primary);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Mobile Menu */
.s566-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: linear-gradient(180deg, var(--s566-bg-dark) 0%, #1a1a1a 100%);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 6rem 2rem 2rem;
  overflow-y: auto;
  border-left: 2px solid var(--s566-primary);
 pointer-events: none;}

.s566-mobile-menu.s566-menu-open {
  right: 0;
 pointer-events: auto;}

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

.s566-menu-list {
  list-style: none;
}

.s566-menu-list li {
  margin-bottom: 1.5rem;
}

.s566-menu-list a {
  color: var(--s566-text);
  text-decoration: none;
  font-size: 1.6rem;
  display: block;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.s566-menu-list a:hover {
  background: var(--s566-primary);
  color: var(--s566-text-dark);
  padding-left: 1.5rem;
}

/* Main Content */
.s566-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 7rem 1.5rem 8rem;
}

/* Hero Carousel */
.s566-hero {
  margin-bottom: 3rem;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.s566-hero-slide {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  cursor: pointer;
}

.s566-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.s566-hero-slide:hover img {
  transform: scale(1.05);
}

/* Section Styles */
.s566-section {
  margin-bottom: 4rem;
}

.s566-section-title {
  font-size: 2rem;
  font-weight: bold;
  color: var(--s566-primary);
  margin-bottom: 2rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.s566-game-item {
  display: block;
  text-decoration: none;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.s566-game-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(222, 184, 135, 0.3);
}

.s566-game-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.s566-game-name {
  color: var(--s566-text);
  font-size: 1rem;
  text-align: center;
  padding: 0.5rem;
  background: var(--s566-bg-light);
  margin-top: 0.5rem;
  border-radius: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Card Component */
.s566-card {
  background: linear-gradient(135deg, rgba(222, 184, 135, 0.1) 0%, rgba(64, 224, 208, 0.1) 100%);
  border: 1px solid var(--s566-primary);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.s566-card h3 {
  color: var(--s566-primary);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.s566-card p {
  color: var(--s566-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Link Styles */
.s566-link {
  color: var(--s566-accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  cursor: pointer;
}

.s566-link:hover {
  color: var(--s566-primary);
  text-decoration: underline;
}

/* Bottom Navigation */
.s566-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, var(--s566-bg-dark) 0%, #1a1a1a 100%);
  border-top: 2px solid var(--s566-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  z-index: 1000;
  padding: 0 0.5rem;
}

.s566-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--s566-text);
  min-width: 60px;
  min-height: 60px;
  padding: 0.5rem;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.s566-nav-item:hover,
.s566-nav-item.s566-active {
  background: rgba(222, 184, 135, 0.2);
  transform: scale(1.05);
}

.s566-nav-icon {
  font-size: 24px;
  margin-bottom: 0.2rem;
}

.s566-nav-text {
  font-size: 10px;
  color: var(--s566-primary);
  font-weight: 600;
}

/* Footer */
.s566-footer {
  background: linear-gradient(180deg, #1a1a1a 0%, var(--s566-bg-dark) 100%);
  padding: 3rem 1.5rem 8rem;
  border-top: 2px solid var(--s566-primary);
}

.s566-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.s566-footer-links a {
  color: var(--s566-accent);
  text-decoration: none;
  font-size: 1.4rem;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.s566-footer-links a:hover {
  background: var(--s566-primary);
  color: var(--s566-text-dark);
}

.s566-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.s566-partners img {
  width: 50px;
  height: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.s566-partners img:hover {
  opacity: 1;
}

.s566-copyright {
  text-align: center;
  color: var(--s566-secondary);
  font-size: 1.2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(222, 184, 135, 0.3);
}

/* Responsive */
@media (min-width: 769px) {
  .s566-bottom-nav {
    display: none;
  }

  .s566-container {
    padding-bottom: 3rem;
  }

  .s566-menu-toggle {
    display: none;
  }

  .s566-footer {
    padding-bottom: 3rem;
  }
}

@media (max-width: 768px) {
  .s566-menu-toggle {
    display: block;
  }

  .s566-mobile-menu {
    display: block;
   pointer-events: none;}

  main {
    padding-bottom: 80px;
  }
}

@media (max-width: 480px) {
  .s566-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
