/**
 * PHCash11 Mobile-First Responsive Styles
 * Version: 1.0.0
 * Class prefix: s221-
 * CSS variables prefix: --s221-
 */

/* Root variables and base setup */
:root {
  --s221-primary: #FF1493;
  --s221-secondary: #8B0000;
  --s221-accent: #FF4500;
  --s221-dark: #2E4057;
  --s221-light: #BBBBBB;
  --s221-white: #FFFFFF;
  --s221-black: #000000;
  --s221-bg-primary: #2E4057;
  --s221-bg-secondary: #8B0000;
  --s221-text-primary: #FFFFFF;
  --s221-text-secondary: #BBBBBB;
  --s221-border: rgba(255, 255, 255, 0.1);
  --s221-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  --s221-gradient-1: linear-gradient(135deg, #FF1493, #FF4500);
  --s221-gradient-2: linear-gradient(135deg, #8B0000, #2E4057);
  --s221-max-width: 430px;
  font-size: 62.5%;
}

/* Base reset and typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--s221-text-primary);
  background: var(--s221-bg-primary);
  max-width: var(--s221-max-width);
  margin: 0 auto;
  overflow-x: hidden;
}

/* Container and layout */
.s221-container {
  max-width: var(--s221-max-width);
  margin: 0 auto;
  padding: 0 1.6rem;
}

.s221-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.s221-main {
  flex: 1;
  padding-top: 7rem;
  padding-bottom: 8rem;
}

/* Header and navigation */
.s221-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--s221-max-width);
  background: var(--s221-bg-secondary);
  border-bottom: 1px solid var(--s221-border);
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.s221-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 6rem;
  padding: 0 1.6rem;
}

.s221-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--s221-primary);
  font-weight: 700;
  font-size: 2rem;
}

.s221-logo-icon {
  width: 3.2rem;
  height: 3.2rem;
}

.s221-nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.s221-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 2.4rem;
  height: 2.4rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.s221-hamburger-line {
  width: 100%;
  height: 2px;
  background: var(--s221-text-primary);
  transition: all 0.3s ease;
}

.s221-hamburger.s221-active .s221-hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.s221-hamburger.s221-active .s221-hamburger-line:nth-child(2) {
  opacity: 0;
}

.s221-hamburger.s221-active .s221-hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile menu */
.s221-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.s221-menu-overlay.s221-active {
  opacity: 1;
  visibility: visible;
}

.s221-mobile-menu {
  position: fixed;
  top: 6rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--s221-max-width);
  background: var(--s221-bg-secondary);
  border-bottom: 1px solid var(--s221-border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  z-index: 998;
}

.s221-mobile-menu.s221-active {
  max-height: 50rem;
}

.s221-nav-list {
  list-style: none;
  padding: 2rem 0;
}

.s221-nav-item {
  border-bottom: 1px solid var(--s221-border);
}

.s221-nav-link {
  display: block;
  padding: 1.5rem 2rem;
  color: var(--s221-text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.s221-nav-link:hover {
  color: var(--s221-primary);
  background: rgba(255, 20, 147, 0.1);
}

/* Buttons */
.s221-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 2.4rem;
  border: none;
  border-radius: 6px;
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 4.4rem;
  white-space: nowrap;
}

.s221-btn-primary {
  background: var(--s221-gradient-1);
  color: var(--s221-white);
  box-shadow: var(--s221-shadow);
}

.s221-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 20, 147, 0.4);
}

.s221-btn-secondary {
  background: var(--s221-bg-secondary);
  color: var(--s221-text-primary);
  border: 1px solid var(--s221-border);
}

.s221-btn-secondary:hover {
  border-color: var(--s221-primary);
  color: var(--s221-primary);
}

.s221-btn-small {
  padding: 0.8rem 1.6rem;
  font-size: 1.3rem;
  min-height: 3.6rem;
}

.s221-btn-large {
  padding: 1.6rem 3.2rem;
  font-size: 1.6rem;
  min-height: 5.2rem;
}

/* Hero section */
.s221-hero {
  background: var(--s221-gradient-2);
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.s221-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><radialGradient id="g"><stop offset="0%" stop-color="rgba(255,20,147,0.1)"/><stop offset="100%" stop-color="transparent"/></radialGradient></defs><circle cx="50" cy="50" r="25" fill="url(%23g)"/></svg>') repeat;
  animation: s221-float 20s ease-in-out infinite;
  opacity: 0.5;
}

@keyframes s221-float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-20px, -20px) rotate(180deg); }
}

.s221-hero-content {
  position: relative;
  z-index: 2;
}

.s221-hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.6rem;
  color: var(--s221-text-primary);
  line-height: 1.2;
}

.s221-hero-subtitle {
  font-size: 1.8rem;
  color: var(--s221-text-secondary);
  margin-bottom: 3rem;
  line-height: 1.4;
}

/* Carousel */
.s221-carousel {
  position: relative;
  margin: 3rem 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--s221-shadow);
}

.s221-carousel-container {
  display: flex;
  transition: transform 0.5s ease;
}

.s221-carousel-item {
  flex: 0 0 100%;
  cursor: pointer;
  position: relative;
}

.s221-carousel-item img {
  width: 100%;
  height: 20rem;
  object-fit: cover;
  display: block;
}

.s221-carousel-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 20, 147, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.s221-carousel-item:hover::after {
  opacity: 1;
}

.s221-carousel-indicators {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
}

.s221-carousel-indicator {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.s221-carousel-indicator.s221-active {
  background: var(--s221-primary);
  transform: scale(1.2);
}

/* Game sections */
.s221-games-section {
  padding: 4rem 0;
}

.s221-section-title {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--s221-text-primary);
}

.s221-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: 1.6rem;
  margin: 3rem 0;
}

.s221-game-card {
  background: var(--s221-bg-secondary);
  border-radius: 8px;
  padding: 1.2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid var(--s221-border);
  min-height: 10rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.s221-game-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--s221-shadow);
  border-color: var(--s221-primary);
}

.s221-game-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 6px;
  margin-bottom: 0.8rem;
  object-fit: cover;
}

.s221-game-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--s221-text-primary);
  margin: 0;
  line-height: 1.3;
}

/* Content sections */
.s221-content-section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--s221-border);
}

.s221-content-section:last-child {
  border-bottom: none;
}

.s221-content-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--s221-text-primary);
  text-align: center;
}

.s221-content-text {
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--s221-text-secondary);
  margin-bottom: 2rem;
}

.s221-content-text p {
  margin-bottom: 1.6rem;
}

.s221-content-text h4 {
  color: var(--s221-primary);
  font-size: 1.6rem;
  margin: 2rem 0 1rem 0;
}

.s221-content-text strong {
  color: var(--s221-text-primary);
}

/* Features grid */
.s221-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin: 3rem 0;
}

.s221-feature-card {
  background: var(--s221-bg-secondary);
  border-radius: 12px;
  padding: 2.4rem;
  text-align: center;
  border: 1px solid var(--s221-border);
  transition: all 0.3s ease;
}

.s221-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--s221-shadow);
  border-color: var(--s221-accent);
}

.s221-feature-icon {
  width: 5rem;
  height: 5rem;
  background: var(--s221-gradient-1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.6rem;
  font-size: 2rem;
  color: var(--s221-white);
}

.s221-feature-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--s221-text-primary);
}

.s221-feature-text {
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--s221-text-secondary);
}

/* Statistics grid */
.s221-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
  margin: 3rem 0;
}

.s221-stat-card {
  background: var(--s221-gradient-1);
  border-radius: 12px;
  padding: 2.4rem 1.6rem;
  text-align: center;
  box-shadow: var(--s221-shadow);
}

.s221-stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--s221-white);
  display: block;
  margin-bottom: 0.8rem;
}

.s221-stat-label {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-weight: 500;
}

/* Bottom navigation */
.s221-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--s221-max-width);
  background: var(--s221-bg-secondary);
  border-top: 1px solid var(--s221-border);
  z-index: 999;
  backdrop-filter: blur(10px);
}

.s221-bottom-nav-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 6.4rem;
  padding: 0 1rem;
}

.s221-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 0.6rem;
  text-decoration: none;
  color: var(--s221-text-secondary);
  transition: all 0.3s ease;
  border-radius: 8px;
  min-width: 5rem;
  position: relative;
}

.s221-bottom-nav-item:hover,
.s221-bottom-nav-item.s221-active {
  color: var(--s221-primary);
  background: rgba(255, 20, 147, 0.1);
  transform: scale(1.05);
}

.s221-nav-icon {
  font-size: 2.2rem;
  margin-bottom: 0.4rem;
}

.s221-nav-text {
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1;
}

/* Footer */
.s221-footer {
  background: var(--s221-bg-secondary);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  border-top: 1px solid var(--s221-border);
}

.s221-footer-content {
  text-align: center;
}

.s221-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.6rem;
  margin-bottom: 2rem;
}

.s221-footer-link {
  color: var(--s221-text-secondary);
  text-decoration: none;
  font-size: 1.3rem;
  transition: color 0.3s ease;
}

.s221-footer-link:hover {
  color: var(--s221-primary);
}

.s221-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  margin: 2rem 0;
  opacity: 0.7;
}

.s221-partner-logo {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

.s221-partner-logo:hover {
  filter: grayscale(0%);
  transform: scale(1.1);
}

.s221-copyright {
  font-size: 1.2rem;
  color: var(--s221-text-secondary);
  margin-top: 2rem;
  line-height: 1.4;
}

/* Back to top button */
.s221-back-to-top {
  position: fixed;
  bottom: 8rem;
  right: 2rem;
  width: 5rem;
  height: 5rem;
  background: var(--s221-gradient-1);
  border: none;
  border-radius: 50%;
  color: var(--s221-white);
  font-size: 2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 998;
  box-shadow: var(--s221-shadow);
}

.s221-back-to-top.s221-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.s221-back-to-top:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 6px 16px rgba(255, 20, 147, 0.4);
}

/* Animations */
.s221-animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.s221-animate-on-scroll.s221-animated {
  opacity: 1;
  transform: translateY(0);
}

/* Loading spinner */
.s221-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--s221-bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.s221-spinner {
  width: 4rem;
  height: 4rem;
  border: 3px solid var(--s221-border);
  border-top: 3px solid var(--s221-primary);
  border-radius: 50%;
  animation: s221-spin 1s linear infinite;
}

@keyframes s221-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Utility classes */
.s221-text-center { text-align: center; }
.s221-text-left { text-align: left; }
.s221-text-right { text-align: right; }
.s221-mt-1 { margin-top: 1rem; }
.s221-mt-2 { margin-top: 2rem; }
.s221-mt-3 { margin-top: 3rem; }
.s221-mb-1 { margin-bottom: 1rem; }
.s221-mb-2 { margin-bottom: 2rem; }
.s221-mb-3 { margin-bottom: 3rem; }
.s221-hidden { display: none; }
.s221-visible { display: block; }

/* Responsive adjustments */
@media (min-width: 375px) {
  .s221-games-grid {
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  }

  .s221-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 430px) {
  .s221-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .s221-games-grid {
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  }
}