/* ph799 ph Styles - All classes prefixed with w533f- */
:root {
  font-size: 62.5%; /* 10px base for rem calculations */
  --w533f-primary: #F08080;
  --w533f-secondary: #E9967A;
  --w533f-bg: #273746;
  --w533f-bg-light: #34495e;
  --w533f-text: #ffffff;
  --w533f-text-muted: #bdc3c7;
  --w533f-accent: #F08080;
  --w533f-light: #E9967A;
  --w533f-success: #2ecc71;
  --w533f-warning: #f39c12;
  --w533f-error: #e74c3c;
  --w533f-border: rgba(240, 128, 128, 0.2);
  --w533f-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --w533f-radius: 8px;
  --w533f-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--w533f-text);
  background: linear-gradient(135deg, var(--w533f-bg) 0%, var(--w533f-bg-light) 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Base Layout */
.w533f-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.6rem;
  position: relative;
}

.w533f-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.w533f-main {
  flex: 1;
  padding-top: 7rem;
  padding-bottom: 8rem;
}

/* Header */
.w533f-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(39, 55, 70, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--w533f-border);
  transition: var(--w533f-transition);
  height: 6rem;
}

.w533f-header.w533f-hidden {
  transform: translateY(-100%);
}

.w533f-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 6rem;
  padding: 0 1.6rem;
}

.w533f-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--w533f-text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.6rem;
}

.w533f-logo-img {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
}

.w533f-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.w533f-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: var(--w533f-radius);
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--w533f-transition);
  min-height: 4.4rem;
  min-width: 4.4rem;
}

.w533f-btn-primary {
  background: linear-gradient(135deg, var(--w533f-primary), #ff6b6b);
  color: white;
}

.w533f-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--w533f-shadow);
}

.w533f-btn-secondary {
  background: linear-gradient(135deg, var(--w533f-secondary), var(--w533f-light));
  color: white;
}

.w533f-btn-outline {
  background: transparent;
  border: 2px solid var(--w533f-primary);
  color: var(--w533f-primary);
}

.w533f-menu-toggle {
  background: none;
  border: none;
  color: var(--w533f-text);
  font-size: 2rem;
  cursor: pointer;
  width: 4.4rem;
  height: 4.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Menu */
.w533f-mobile-menu {
  position: fixed;
  top: 6rem;
  left: 0;
  right: 0;
  background: rgba(39, 55, 70, 0.98);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--w533f-border);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: var(--w533f-transition);
  z-index: 999;
  max-height: calc(100vh - 6rem);
  overflow-y: auto;
}

.w533f-mobile-menu.w533f-active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.w533f-mobile-nav {
  padding: 2rem 1.6rem;
}

.w533f-mobile-nav a {
  display: block;
  padding: 1.2rem 0;
  color: var(--w533f-text);
  text-decoration: none;
  font-size: 1.4rem;
  border-bottom: 1px solid rgba(240, 128, 128, 0.1);
  transition: var(--w533f-transition);
}

.w533f-mobile-nav a:hover {
  color: var(--w533f-primary);
  padding-left: 1rem;
}

/* Carousel */
.w533f-carousel {
  position: relative;
  width: 100%;
  height: 20rem;
  overflow: hidden;
  border-radius: var(--w533f-radius);
  margin-bottom: 2rem;
}

.w533f-carousel-track {
  display: flex;
  width: 300%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.w533f-slide {
  width: 33.333%;
  height: 100%;
  position: relative;
  cursor: pointer;
}

.w533f-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.w533f-carousel-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  padding: 2rem;
  color: white;
}

.w533f-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1rem;
}

.w533f-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: rgba(240, 128, 128, 0.3);
  cursor: pointer;
  transition: var(--w533f-transition);
}

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

/* Game Grid */
.w533f-game-section {
  margin: 3rem 0;
}

.w533f-section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--w533f-text);
  text-align: center;
  position: relative;
}

.w533f-section-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 5rem;
  height: 0.3rem;
  background: linear-gradient(135deg, var(--w533f-primary), var(--w533f-secondary));
  border-radius: 0.15rem;
}

.w533f-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.w533f-game-card {
  background: var(--w533f-bg-light);
  border-radius: var(--w533f-radius);
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: var(--w533f-transition);
  border: 1px solid var(--w533f-border);
  position: relative;
  overflow: hidden;
}

.w533f-game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(240, 128, 128, 0.1), transparent);
  transition: left 0.5s;
}

.w533f-game-card:hover::before {
  left: 100%;
}

.w533f-game-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--w533f-shadow);
  border-color: var(--w533f-primary);
}

.w533f-game-icon {
  width: 4rem;
  height: 4rem;
  border-radius: var(--w533f-radius);
  margin-bottom: 0.8rem;
  object-fit: cover;
}

.w533f-game-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--w533f-text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Content Sections */
.w533f-section {
  margin: 3rem 0;
  padding: 2rem;
  background: var(--w533f-bg-light);
  border-radius: var(--w533f-radius);
  border: 1px solid var(--w533f-border);
}

.w533f-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--w533f-primary);
}

.w533f-section p {
  margin-bottom: 1rem;
  color: var(--w533f-text-muted);
  line-height: 1.6;
}

.w533f-section ul {
  margin: 1rem 0;
  padding-left: 2rem;
}

.w533f-section li {
  margin-bottom: 0.5rem;
  color: var(--w533f-text-muted);
}

/* Promo Links */
.w533f-promo-link {
  color: var(--w533f-primary);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: var(--w533f-transition);
}

.w533f-promo-link:hover {
  border-bottom-color: var(--w533f-primary);
  color: var(--w533f-secondary);
}

/* Cards */
.w533f-card {
  background: var(--w533f-bg-light);
  border-radius: var(--w533f-radius);
  padding: 2rem;
  border: 1px solid var(--w533f-border);
  margin-bottom: 2rem;
}

.w533f-card-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--w533f-text);
}

/* Footer */
.w533f-footer {
  background: var(--w533f-bg);
  border-top: 1px solid var(--w533f-border);
  padding: 3rem 0 8rem;
  margin-top: auto;
}

.w533f-footer-content {
  text-align: center;
}

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

.w533f-footer-links a {
  color: var(--w533f-text-muted);
  text-decoration: none;
  font-size: 1.2rem;
  transition: var(--w533f-transition);
}

.w533f-footer-links a:hover {
  color: var(--w533f-primary);
}

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

.w533f-partner-logo {
  width: 3rem;
  height: 3rem;
  opacity: 0.6;
  transition: var(--w533f-transition);
  border-radius: 0.4rem;
}

.w533f-partner-logo:hover {
  opacity: 1;
  transform: scale(1.1);
}

.w533f-copyright {
  font-size: 1.2rem;
  color: var(--w533f-text-muted);
  margin-top: 2rem;
}

/* Bottom Navigation */
.w533f-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(39, 55, 70, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--w533f-border);
  height: 6rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.w533f-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--w533f-text-muted);
  font-size: 1rem;
  transition: var(--w533f-transition);
  padding: 0.5rem;
  min-width: 4.4rem;
  min-height: 4.4rem;
  justify-content: center;
}

.w533f-nav-item:hover,
.w533f-nav-item.w533f-active {
  color: var(--w533f-primary);
  transform: translateY(-2px);
}

.w533f-nav-icon {
  font-size: 2rem;
  margin-bottom: 0.2rem;
}

/* Animations */
@keyframes w533f-fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.w533f-fade-in {
  animation: w533f-fadeIn 0.6s ease-out;
}

/* Toast Notifications */
.w533f-toast {
  position: fixed;
  top: 8rem;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: var(--w533f-bg-light);
  color: var(--w533f-text);
  padding: 1.2rem 2rem;
  border-radius: var(--w533f-radius);
  border: 1px solid var(--w533f-border);
  box-shadow: var(--w533f-shadow);
  z-index: 1001;
  opacity: 0;
  transition: var(--w533f-transition);
}

.w533f-toast.w533f-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.w533f-toast-success {
  border-color: var(--w533f-success);
  background: rgba(46, 204, 113, 0.1);
}

.w533f-toast-error {
  border-color: var(--w533f-error);
  background: rgba(231, 76, 60, 0.1);
}

/* Responsive Design */
@media (max-width: 375px) {
  .w533f-container {
    padding: 0 1.2rem;
  }
  
  .w533f-game-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
  }
  
  .w533f-game-icon {
    width: 3.5rem;
    height: 3.5rem;
  }
  
  .w533f-game-name {
    font-size: 1rem;
  }
}

@media (min-width: 431px) {
  .w533f-container {
    max-width: 430px;
  }
}

/* Utility Classes */
.w533f-text-center { text-align: center; }
.w533f-text-left { text-align: left; }
.w533f-text-right { text-align: right; }
.w533f-mb-1 { margin-bottom: 1rem; }
.w533f-mb-2 { margin-bottom: 2rem; }
.w533f-mb-3 { margin-bottom: 3rem; }
.w533f-mt-1 { margin-top: 1rem; }
.w533f-mt-2 { margin-top: 2rem; }
.w533f-mt-3 { margin-top: 3rem; }
.w533f-p-1 { padding: 1rem; }
.w533f-p-2 { padding: 2rem; }
.w533f-hidden { display: none; }
.w533f-flex { display: flex; }
.w533f-flex-center { display: flex; align-items: center; justify-content: center; }
.w533f-gap-1 { gap: 1rem; }
.w533f-gap-2 { gap: 2rem; }

/* Loading States */
.w533f-lazy {
  opacity: 0.6;
  filter: blur(2px);
  transition: var(--w533f-transition);
}

.w533f-lazy:not([src]) {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: w533f-loading 1.5s infinite;
}

@keyframes w533f-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}