:root {
  /* Color palette */
  --s7cc-primary: #FF8C00;
  --s7cc-secondary: #800080;
  --s7cc-dark: #1C2833;
  --s7cc-light: #DEB887;
  --s7cc-accent: #9932CC;

  /* Additional color variables */
  --s7cc-bg: #1C2833;
  --s7cc-text: #DEB887;
  --s7cc-text-dark: #1C2833;
  --s7cc-text-light: #FFFFFF;
  --s7cc-border: rgba(255, 140, 0, 0.3);
  --s7cc-shadow: rgba(0, 0, 0, 0.5);
  --s7cc-gradient: linear-gradient(135deg, #FF8C00 0%, #800080 100%);

  /* Typography */
  --s7cc-font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --s7cc-font-size-base: 1.6rem;
  --s7cc-line-height: 1.5;

  /* Spacing */
  --s7cc-spacing-xs: 0.5rem;
  --s7cc-spacing-sm: 1rem;
  --s7cc-spacing-md: 1.5rem;
  --s7cc-spacing-lg: 2rem;
  --s7cc-spacing-xl: 3rem;

  /* Border radius */
  --s7cc-radius-sm: 0.5rem;
  --s7cc-radius-md: 1rem;
  --s7cc-radius-lg: 1.5rem;
  --s7cc-radius-full: 50%;

  /* Transitions */
  --s7cc-transition: all 0.3s ease;
  --s7cc-transition-fast: all 0.15s ease;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--s7cc-font-primary);
  font-size: var(--s7cc-font-size-base);
  line-height: var(--s7cc-line-height);
  background-color: var(--s7cc-bg);
  color: var(--s7cc-text);
  overflow-x: hidden;
}

/* Container and layout */
.s7cc-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 var(--s7cc-spacing-sm);
}

.s7cc-wrapper {
  min-height: 100vh;
  padding-top: 6rem;
  padding-bottom: 8rem;
}

/* Header */
.s7cc-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--s7cc-gradient);
  box-shadow: 0 2px 10px var(--s7cc-shadow);
}

.s7cc-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s7cc-spacing-sm);
  max-width: 430px;
  margin: 0 auto;
}

.s7cc-logo {
  display: flex;
  align-items: center;
  gap: var(--s7cc-spacing-xs);
  text-decoration: none;
}

.s7cc-logo img {
  width: 28px;
  height: 28px;
}

.s7cc-logo-text {
  font-size: 2rem;
  font-weight: bold;
  color: var(--s7cc-text-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.s7cc-header-actions {
  display: flex;
  gap: var(--s7cc-spacing-xs);
}

.s7cc-btn {
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: var(--s7cc-radius-md);
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--s7cc-transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 4.4rem;
  touch-action: manipulation;
}

.s7cc-btn-primary {
  background: var(--s7cc-secondary);
  color: var(--s7cc-text-light);
  box-shadow: 0 4px 6px rgba(128, 0, 128, 0.3);
}

.s7cc-btn-primary:hover {
  background: var(--s7cc-accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(128, 0, 128, 0.4);
}

.s7cc-btn-secondary {
  background: var(--s7cc-light);
  color: var(--s7cc-text-dark);
  box-shadow: 0 4px 6px rgba(222, 184, 135, 0.3);
}

.s7cc-btn-secondary:hover {
  background: #F4D03F;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(222, 184, 135, 0.4);
}

/* Navigation */
.s7cc-nav {
  display: none;
}

.s7cc-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.s7cc-hamburger span {
  display: block;
  height: 3px;
  background: var(--s7cc-text-light);
  border-radius: 2px;
  transition: var(--s7cc-transition);
}

.s7cc-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: var(--s7cc-dark);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.s7cc-mobile-menu.active {
  right: 0;
}

.s7cc-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: var(--s7cc-transition);
}

.s7cc-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.s7cc-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s7cc-spacing-md);
  background: var(--s7cc-gradient);
}

.s7cc-menu-close {
  background: none;
  border: none;
  color: var(--s7cc-text-light);
  font-size: 2.4rem;
  cursor: pointer;
}

.s7cc-menu-nav {
  padding: var(--s7cc-spacing-md);
}

.s7cc-menu-nav ul {
  list-style: none;
}

.s7cc-menu-nav li {
  border-bottom: 1px solid var(--s7cc-border);
}

.s7cc-menu-nav a {
  display: block;
  padding: var(--s7cc-spacing-md);
  color: var(--s7cc-text);
  text-decoration: none;
  transition: var(--s7cc-transition);
}

.s7cc-menu-nav a:hover {
  background: rgba(255, 140, 0, 0.1);
  color: var(--s7cc-primary);
}

/* Main content */
.s7cc-main {
  padding: var(--s7cc-spacing-md) 0;
}

.s7cc-section {
  margin-bottom: var(--s7cc-spacing-xl);
}

.s7cc-section-title {
  font-size: 2.4rem;
  font-weight: bold;
  margin-bottom: var(--s7cc-spacing-md);
  text-align: center;
  background: var(--s7cc-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Carousel */
.s7cc-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--s7cc-radius-lg);
  margin-bottom: var(--s7cc-spacing-xl);
  box-shadow: 0 10px 30px var(--s7cc-shadow);
}

.s7cc-carousel-inner {
  display: flex;
  transition: transform 0.5s ease;
}

.s7cc-carousel-slide {
  min-width: 100%;
  position: relative;
}

.s7cc-carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.s7cc-carousel-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 var(--s7cc-spacing-sm);
}

.s7cc-carousel-prev,
.s7cc-carousel-next {
  background: rgba(28, 40, 51, 0.8);
  color: var(--s7cc-text-light);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: var(--s7cc-radius-full);
  cursor: pointer;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--s7cc-transition);
}

.s7cc-carousel-prev:hover,
.s7cc-carousel-next:hover {
  background: var(--s7cc-primary);
}

.s7cc-carousel-indicators {
  position: absolute;
  bottom: var(--s7cc-spacing-sm);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--s7cc-spacing-xs);
}

.s7cc-carousel-indicator {
  width: 10px;
  height: 10px;
  border-radius: var(--s7cc-radius-full);
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--s7cc-transition);
}

.s7cc-carousel-indicator.active {
  background: var(--s7cc-primary);
  width: 30px;
}

/* Game grid */
.s7cc-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s7cc-spacing-sm);
  margin-bottom: var(--s7cc-spacing-lg);
}

.s7cc-game-item {
  text-align: center;
  cursor: pointer;
  transition: var(--s7cc-transition);
}

.s7cc-game-item:hover {
  transform: translateY(-5px);
}

.s7cc-game-icon {
  width: 100%;
  height: auto;
  border-radius: var(--s7cc-radius-md);
  margin-bottom: var(--s7cc-spacing-xs);
  box-shadow: 0 4px 8px var(--s7cc-shadow);
  transition: var(--s7cc-transition);
}

.s7cc-game-item:hover .s7cc-game-icon {
  box-shadow: 0 8px 16px var(--s7cc-shadow);
}

.s7cc-game-name {
  font-size: 1.2rem;
  color: var(--s7cc-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Cards */
.s7cc-card {
  background: rgba(28, 40, 51, 0.8);
  border-radius: var(--s7cc-radius-lg);
  padding: var(--s7cc-spacing-md);
  margin-bottom: var(--s7cc-spacing-md);
  border: 1px solid var(--s7cc-border);
  transition: var(--s7cc-transition);
}

.s7cc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px var(--s7cc-shadow);
}

.s7cc-card-title {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: var(--s7cc-spacing-sm);
  color: var(--s7cc-primary);
}

/* Text utilities */
.s7cc-text-center {
  text-align: center;
}

.s7cc-text-gradient {
  background: var(--s7cc-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Bottom navigation */
.s7cc-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--s7cc-dark);
  border-top: 2px solid var(--s7cc-primary);
  box-shadow: 0 -5px 15px var(--s7cc-shadow);
}

.s7cc-bottom-nav-content {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 64px;
  max-width: 430px;
  margin: 0 auto;
}

.s7cc-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  cursor: pointer;
  transition: var(--s7cc-transition);
  text-decoration: none;
  color: var(--s7cc-text);
  position: relative;
}

.s7cc-bottom-nav-item:hover {
  color: var(--s7cc-primary);
  transform: scale(1.1);
}

.s7cc-bottom-nav-item.active {
  color: var(--s7cc-primary);
}

.s7cc-bottom-nav-item.active::before {
  content: '';
  position: absolute;
  top: -10px;
  width: 40px;
  height: 3px;
  background: var(--s7cc-primary);
  border-radius: 2px;
}

.s7cc-bottom-nav-icon {
  font-size: 2.4rem;
  margin-bottom: 0.2rem;
}

.s7cc-bottom-nav-text {
  font-size: 1rem;
  font-weight: 500;
}

/* Footer */
.s7cc-footer {
  background: var(--s7cc-dark);
  padding: var(--s7cc-spacing-lg) 0 var(--s7cc-spacing-xl);
  border-top: 2px solid var(--s7cc-primary);
}

.s7cc-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s7cc-spacing-sm);
  margin-bottom: var(--s7cc-spacing-lg);
}

.s7cc-partner {
  width: 60px;
  height: 30px;
  object-fit: contain;
  filter: grayscale(100%) brightness(150%);
  transition: var(--s7cc-transition);
}

.s7cc-partner:hover {
  filter: grayscale(0%) brightness(100%);
}

.s7cc-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s7cc-spacing-sm);
  margin-bottom: var(--s7cc-spacing-lg);
}

.s7cc-footer-link {
  color: var(--s7cc-text);
  text-decoration: none;
  font-size: 1.3rem;
  transition: var(--s7cc-transition);
}

.s7cc-footer-link:hover {
  color: var(--s7cc-primary);
}

.s7cc-footer-text {
  text-align: center;
  font-size: 1.2rem;
  color: rgba(222, 184, 135, 0.7);
  margin-top: var(--s7cc-spacing-md);
}

/* Responsive design */
@media (min-width: 769px) {
  .s7cc-bottom-nav {
    display: none;
  }

  .s7cc-wrapper {
    padding-bottom: var(--s7cc-spacing-lg);
  }
}

@media (max-width: 768px) {
  .s7cc-wrapper {
    padding-bottom: calc(64px + var(--s7cc-spacing-lg));
  }
}

/* Animations */
@keyframes s7cc-fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.s7cc-fade-in {
  animation: s7cc-fadeIn 0.6s ease-out;
}

@keyframes s7cc-pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.s7cc-pulse {
  animation: s7cc-pulse 2s infinite;
}

/* Utility classes */
.s7cc-mb-0 { margin-bottom: 0; }
.s7cc-mb-1 { margin-bottom: var(--s7cc-spacing-xs); }
.s7cc-mb-2 { margin-bottom: var(--s7cc-spacing-sm); }
.s7cc-mb-3 { margin-bottom: var(--s7cc-spacing-md); }
.s7cc-mb-4 { margin-bottom: var(--s7cc-spacing-lg); }
.s7cc-mb-5 { margin-bottom: var(--s7cc-spacing-xl); }

.s7cc-mt-0 { margin-top: 0; }
.s7cc-mt-1 { margin-top: var(--s7cc-spacing-xs); }
.s7cc-mt-2 { margin-top: var(--s7cc-spacing-sm); }
.s7cc-mt-3 { margin-top: var(--s7cc-spacing-md); }
.s7cc-mt-4 { margin-top: var(--s7cc-spacing-lg); }
.s7cc-mt-5 { margin-top: var(--s7cc-spacing-xl); }

.s7cc-text-primary { color: var(--s7cc-primary); }
.s7cc-text-secondary { color: var(--s7cc-secondary); }
.s7cc-text-accent { color: var(--s7cc-accent); }

.s7cc-bg-primary { background-color: var(--s7cc-primary); }
.s7cc-bg-secondary { background-color: var(--s7cc-secondary); }
.s7cc-bg-dark { background-color: var(--s7cc-dark); }

.s7cc-hidden { display: none; }
.s7cc-block { display: block; }
.s7cc-flex { display: flex; }
.s7cc-grid { display: grid; }