@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

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

/* Waterfall Wave Animation */
.water-waves {
  display: block;
  position: relative;
  width: 100%;
  height: 80px;
  pointer-events: none;
  overflow: hidden;
  margin-top: -2px;
  background: linear-gradient(180deg, #FFF3F4 0%, rgba(217,37,52,0.08) 40%, rgba(158,16,30,0.15) 100%);
}

/* Walking Mascot - Now Visible */
.walking-mascot {
  position: fixed;
  bottom: 20px;
  left: 15px;
  z-index: 100;
  text-decoration: none;
  display: block !important;
}

.walking-sticker {
  display: none !important;
}

.mascot-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mascot-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  animation: mascotBounce 2s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(217, 37, 52, 0.3));
  border-radius: 12px;
}

.mascot-shadow {
  width: 40px;
  height: 8px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 50%;
  margin-top: 4px;
  animation: shadowPulse 2s ease-in-out infinite;
}

.mascot-bubble {
  background: linear-gradient(135deg, #D92534 0%, #E84350 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 12px rgba(217, 37, 52, 0.3);
  animation: bubblePop 3s ease-in-out infinite;
}

@keyframes mascotBounce {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-8px) rotate(5deg); }
}

@keyframes shadowPulse {
  0%, 100% { transform: scale(1); opacity: 0.2; }
  50% { transform: scale(0.8); opacity: 0.3; }
}

@keyframes bubblePop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Floating Particles - Hidden */
.particles-container {
  display: none;
}

.particle {
  position: absolute;
  font-size: 12px;
  opacity: 0.25;
  animation: floatParticle 18s linear infinite;
}

.particle:nth-child(1) { left: 5%; animation-delay: 0s; color: #D92534; }
.particle:nth-child(2) { left: 15%; animation-delay: 2s; color: #FFC107; }
.particle:nth-child(3) { left: 25%; animation-delay: 4s; color: #E84350; }
.particle:nth-child(4) { left: 35%; animation-delay: 1s; color: #D92534; }
.particle:nth-child(5) { left: 45%; animation-delay: 3s; color: #FFC107; }
.particle:nth-child(6) { left: 55%; animation-delay: 5s; color: #E84350; }
.particle:nth-child(7) { left: 65%; animation-delay: 2.5s; color: #D92534; }
.particle:nth-child(8) { left: 75%; animation-delay: 0.5s; color: #FFC107; }

@keyframes floatParticle {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.25; }
  90% { opacity: 0.25; }
  100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

/* Khmer and English Font Classes */
.khmer-text {
  font-family: 'Noto Sans Khmer', sans-serif;
}

.english-text {
  font-family: 'Poppins', sans-serif;
}

.footer-support-btn {
  display: none !important;
}

.waterfall-drop {
  position: absolute;
  width: 3px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(217,37,52,0.3), rgba(217,37,52,0.05));
  animation: waterfallDrop 2s ease-in infinite;
}

.waterfall-drop:nth-child(1) { left: 10%; height: 20px; animation-delay: 0s; animation-duration: 1.8s; }
.waterfall-drop:nth-child(2) { left: 30%; height: 25px; animation-delay: 0.4s; animation-duration: 2.2s; }
.waterfall-drop:nth-child(3) { left: 50%; height: 18px; animation-delay: 0.8s; animation-duration: 2s; }
.waterfall-drop:nth-child(4) { left: 70%; height: 22px; animation-delay: 0.2s; animation-duration: 1.6s; }
.waterfall-drop:nth-child(5) { left: 90%; height: 15px; animation-delay: 1s; animation-duration: 2.4s; }

@keyframes waterfallDrop {
  0% { top: -10px; opacity: 0; }
  20% { opacity: 0.6; }
  100% { top: 80px; opacity: 0; }
}

:root {
  --pink-primary: #D92534;
  --pink-light: #E84350;
  --pink-soft: #FFD6DB;
  --blush-bg: #FFF3F4;
  --white: #FFFFFF;
  --text-dark: #4A0E17;
  --text-gray: #6B3A42;
  --text-light: #9E6B74;
  --card-border: #FFD6DB;
  --shadow-pink: rgba(217, 37, 52, 0.15);
  --shadow-soft: rgba(74, 14, 23, 0.05);
  --header-bg: #FFFFFF;
  --footer-bg: #9E101E;
}

html, body {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: 'Poppins', 'Noto Sans Khmer', sans-serif;
  background: #FFF3F4;
  min-height: 100vh;
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
}

.page-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  background: transparent;
  position: relative;
  overflow-x: hidden;
}

@media (min-width: 768px) {
  .page-container {
    max-width: 100%;
  }
}

@media (min-width: 1024px) {
  .page-container {
    max-width: 1200px;
  }
}

@media (min-width: 1280px) {
  .page-container {
    max-width: 1200px;
  }
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #FFFFFF;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, #D92534, #E84350, #D92534) 1;
  box-shadow: 0 4px 20px rgba(74, 14, 23, 0.08);
}

@media (min-width: 400px) {
  .header {
    padding: 12px 16px;
  }
}

@media (min-width: 768px) {
  .header {
    padding: 14px 32px;
  }
}

@media (min-width: 1024px) {
  .header {
    padding: 16px 48px;
  }
}

.header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (min-width: 400px) {
  .header-left {
    gap: 10px;
  }
}

.logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(217, 37, 52, 0.3), 0 0 24px rgba(217, 37, 52, 0.1);
}

@media (min-width: 400px) {
  .logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
}

.brand-name {
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  font-family: 'Poppins', sans-serif;
  gap: 4px;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.brand-mori {
  color: #4A0E17;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 15px;
}

.brand-topup {
  color: #D92534;
  font-weight: 800;
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: 0.5px;
  margin-left: 2px;
}

@media (min-width: 400px) {
  .brand-name {
    font-size: 17px;
  }
  .brand-mori {
    font-size: 17px;
  }
  .brand-topup {
    font-size: 17px;
  }
}

.header-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-divider {
  display: none;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #4A0E17;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

@media (min-width: 400px) {
  .icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 17px;
  }
}

.icon-btn:hover {
  background: rgba(217, 37, 52, 0.1);
  color: #D92534;
  transform: scale(1.05);
}

.icon-btn:active {
  transform: scale(0.95);
}

.cambodia-flag {
  background: transparent !important;
}

.cambodia-flag img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.search-wrapper {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--pink-primary);
  font-size: 16px;
}

.search-input {
  width: 100%;
  padding: 14px 20px 14px 50px;
  border: 2px solid var(--card-border);
  border-radius: 50px;
  background: var(--blush-bg);
  color: var(--text-dark);
  font-size: 15px;
  font-family: inherit;
  transition: all 0.25s ease;
}

.search-input::placeholder {
  color: var(--text-light);
}

.search-input:focus {
  outline: none;
  border-color: var(--pink-primary);
  box-shadow: 0 0 0 4px var(--shadow-pink);
  background: var(--white);
}

.category-tabs {
  display: flex;
  gap: 10px;
  padding: 16px 20px;
  overflow-x: auto;
  background: var(--white);
  -webkit-overflow-scrolling: touch;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  flex-shrink: 0;
  padding: 10px 20px;
  border: 2px solid var(--card-border);
  border-radius: 50px;
  background: var(--white);
  color: var(--text-dark);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.tab-btn:hover {
  border-color: var(--pink-primary);
  color: var(--pink-primary);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--pink-primary) 0%, var(--pink-light) 100%);
  border-color: var(--pink-primary);
  color: var(--white);
  box-shadow: 0 4px 16px var(--shadow-pink);
}

.tab-btn i {
  margin-right: 6px;
}

.walking-mascot {
  position: fixed;
  bottom: 16px;
  right: 12px;
  z-index: 999;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.mascot-container {
  position: relative;
  animation: mascotBounce 1s ease-in-out infinite;
}

.mascot-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 3px solid var(--pink-primary);
  background: var(--white);
  box-shadow: 0 4px 16px var(--shadow-pink);
  animation: mascotWalk 0.4s ease-in-out infinite alternate;
}

.mascot-shadow {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 8px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.15) 0%, transparent 70%);
  animation: shadowPulse 1s ease-in-out infinite;
}

.mascot-bubble {
  background: linear-gradient(135deg, #0088cc 0%, #00a8e8 100%);
  color: white;
  font-size: 9px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 10px;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0, 136, 204, 0.3);
  animation: bubblePop 2s ease-in-out infinite;
  display: flex;
  align-items: center;
  gap: 4px;
}

.mascot-bubble i {
  font-size: 10px;
}

@keyframes mascotBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes mascotWalk {
  0% { transform: rotate(-3deg); }
  100% { transform: rotate(3deg); }
}

@keyframes shadowPulse {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.3; }
  50% { transform: translateX(-50%) scale(0.8); opacity: 0.5; }
}

@keyframes bubblePop {
  0%, 100% { transform: scale(1); }
  10% { transform: scale(1.05); }
  20% { transform: scale(1); }
}

@media (min-width: 400px) {
  .mascot-img {
    width: 55px;
    height: 55px;
  }
  .mascot-bubble {
    font-size: 10px;
    padding: 5px 10px;
  }
  .walking-mascot {
    bottom: 20px;
    right: 16px;
  }
}

@media (min-width: 768px) {
  .mascot-img {
    width: 60px;
    height: 60px;
  }
  .mascot-bubble {
    font-size: 11px;
    padding: 6px 12px;
  }
  .walking-mascot {
    bottom: 24px;
    right: 20px;
  }
}

.section {
  padding: 20px 16px 32px;
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 400px) {
  .section {
    padding: 20px 16px 32px;
  }
}

@media (min-width: 768px) {
  .section {
    padding: 24px 32px 40px;
  }
}

@media (min-width: 1024px) {
  .section {
    padding: 28px 20px 48px;
  }
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

@media (min-width: 400px) {
  .section-header {
    margin-bottom: 18px;
  }
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.3px;
}

@media (min-width: 400px) {
  .section-title {
    font-size: 22px;
    gap: 12px;
  }
}

@media (min-width: 768px) {
  .section-title {
    font-size: 24px;
    gap: 14px;
  }
}

.section-title .icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #D92534;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  box-shadow: none;
}

@media (min-width: 400px) {
  .section-title .icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 17px;
  }
}

@media (min-width: 768px) {
  .section-title .icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 18px;
  }
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-gray);
  margin-top: 4px;
}

.see-all {
  font-size: 14px;
  font-weight: 600;
  color: var(--pink-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 0;
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 500px) {
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .games-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .games-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.game-card {
  background: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid #e8e8e8;
  transition: all 0.25s ease;
  box-shadow: none;
  position: relative;
  display: flex;
  flex-direction: column;
}

.game-card::after {
  display: none;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: #d0d0d0;
}

.game-card:active {
  transform: translateY(-2px);
}

.game-card.maintenance {
  position: relative;
  opacity: 0.85;
}

.game-card.maintenance .game-image {
  filter: grayscale(30%);
}

.game-card.maintenance .topup-btn {
  background: linear-gradient(135deg, #FFA726 0%, #FF9800 100%);
  color: white;
  font-size: 8px;
}

.maintenance-badge {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
  color: white;
  font-size: 9px;
  font-weight: 600;
  padding: 4px 8px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  z-index: 5;
}

.maintenance-badge i {
  font-size: 10px;
}

@media (min-width: 400px) {
  .maintenance-badge {
    font-size: 10px;
    padding: 5px 10px;
  }
}

.game-card .game-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: #f5f5f5;
}

.game-info {
  padding: 10px 12px;
  text-align: left;
  background: #FFFFFF;
}

@media (min-width: 360px) {
  .game-info {
    padding: 10px 12px;
  }
}

@media (min-width: 768px) {
  .game-info {
    padding: 12px 14px;
  }
}

.game-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
  line-height: 1.4;
}

.game-dev {
  display: block;
  font-size: 11px;
  color: #999999;
}

.topup-btn {
  display: none;
  margin-top: 6px;
  padding: 4px 12px;
  background: linear-gradient(135deg, #D92534 0%, #E84350 100%);
  color: white;
  font-size: 9px;
  font-weight: 600;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (min-width: 360px) {
  .game-name {
    font-size: 13px;
    margin-bottom: 2px;
  }
  .game-dev {
    font-size: 11px;
  }
}

@media (min-width: 500px) {
  .game-name {
    font-size: 13px;
  }
  .game-dev {
    font-size: 11px;
  }
}

@media (min-width: 768px) {
  .game-name {
    font-size: 14px;
  }
  .game-dev {
    font-size: 11px;
  }
}

@media (min-width: 1024px) {
  .game-name {
    font-size: 14px;
  }
  .game-dev {
    font-size: 12px;
  }
}

.order-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  padding: 20px;
}

.order-modal.open {
  opacity: 1;
  visibility: visible;
}

.order-modal-content {
  background: var(--white);
  border-radius: 24px;
  width: 100%;
  max-width: 400px;
  overflow: hidden;
  animation: modalSlide 0.35s ease;
}

@keyframes modalSlide {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.order-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: linear-gradient(135deg, var(--pink-primary) 0%, var(--pink-light) 100%);
  color: var(--white);
}

.order-modal-header h3 {
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #FFFFFF;
}

.close-modal {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: none;
  background: rgba(255,255,255,0.2);
  color: #FFFFFF;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.close-modal:hover {
  background: rgba(255,255,255,0.3);
}

.order-modal-body {
  padding: 24px;
}

.order-modal-body .form-group {
  margin-bottom: 20px;
}

.order-modal-body .form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.order-modal-body .form-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--card-border);
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.25s ease;
  background: var(--blush-bg);
  color: var(--text-dark);
}

.order-modal-body .form-input:focus {
  outline: none;
  border-color: var(--pink-primary);
  box-shadow: 0 0 0 4px var(--shadow-pink);
}

.check-order-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--pink-primary) 0%, var(--pink-light) 100%);
  border: none;
  border-radius: 14px;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px var(--shadow-pink);
}

.check-order-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--shadow-pink);
}

.check-order-btn:active {
  transform: translateY(0);
}

.order-result {
  margin-top: 20px;
}

.order-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  color: var(--text-gray);
  font-size: 14px;
}

.order-error {
  background: #FEF2F2;
  color: #DC2626;
  padding: 16px;
  border-radius: 12px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.order-found {
  background: var(--blush-bg);
  border-radius: 16px;
  overflow: hidden;
}

.order-found .order-header {
  background: #ECFDF5;
  color: #059669;
  padding: 14px 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.order-details {
  padding: 16px;
}

.order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--card-border);
  font-size: 14px;
}

.order-row:last-child {
  border-bottom: none;
}

.order-row span:first-child {
  color: var(--text-gray);
}

.order-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.status-success {
  background: #ECFDF5;
  color: #059669;
}

.status-pending {
  background: #FEF3C7;
  color: #D97706;
}

.status-failed {
  background: #FEF2F2;
  color: #DC2626;
}

.menu-links {
  margin-bottom: 12px;
}

.menu-links a {
  color: var(--text-gray);
  text-decoration: none;
  font-size: 12px;
}

.menu-links span {
  margin: 0 8px;
  color: var(--text-light);
}

.terms-section {
  padding: 16px;
}

.terms-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow-soft);
}

.terms-header {
  background: linear-gradient(135deg, var(--pink-primary) 0%, var(--pink-light) 100%);
  padding: 24px;
  text-align: center;
  color: white;
}

.terms-icon {
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 24px;
}

.terms-header h1 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.terms-subtitle {
  font-size: 12px;
  opacity: 0.9;
}

.terms-content {
  padding: 20px;
}

.terms-item {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--card-border);
}

.terms-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.terms-item h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--pink-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.terms-item h3 i {
  width: 24px;
  text-align: center;
}

.terms-item p {
  font-size: 13px;
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 10px;
}

.terms-item ul {
  margin: 0;
  padding-left: 20px;
}

.terms-item li {
  font-size: 13px;
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 6px;
}

.support-links {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.support-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: white;
  transition: all 0.25s ease;
}

.support-btn.telegram {
  background: #0088cc;
}

.support-btn.facebook {
  background: #1877f2;
}

.support-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.terms-item.privacy {
  background: var(--blush-bg);
  padding: 16px;
  border-radius: 12px;
  border-bottom: none;
}

.terms-footer {
  padding: 20px;
  background: var(--blush-bg);
  text-align: center;
}

.terms-footer p {
  font-size: 13px;
  color: var(--text-gray);
  margin-bottom: 16px;
}

.back-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--pink-primary) 0%, var(--pink-light) 100%);
  color: white;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px var(--shadow-pink);
}

.back-home-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(217, 37, 52, 0.35);
}

.banner-section {
  padding: 0 12px 16px;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 400px) {
  .banner-section {
    padding: 0 16px 20px;
  }
}

@media (min-width: 768px) {
  .banner-section {
    padding: 0 32px 28px;
  }
}

@media (min-width: 1024px) {
  .banner-section {
    padding: 0 20px 32px;
  }
}

.banner-slider-wrapper {
  position: relative;
}

.banner-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.85);
  color: #D92534;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: all 0.2s;
  backdrop-filter: blur(4px);
}

.banner-nav-btn:hover {
  background: #D92534;
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.banner-prev {
  left: 8px;
}

.banner-next {
  right: 8px;
}

.banner-slider {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 6;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

@media (min-width: 400px) {
  .banner-slider {
    border-radius: 14px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  }
}

@media (min-width: 768px) {
  .banner-slider {
    border-radius: 16px;
    aspect-ratio: 16 / 5;
  }
}

@media (min-width: 1024px) {
  .banner-slider {
    border-radius: 16px;
    aspect-ratio: 16 / 5;
  }
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.banner-img.active {
  opacity: 1;
}

.banner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.5));
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.banner-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink-soft);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--pink-primary);
  width: 28px;
  border-radius: 4px;
}

.popular-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.popular-card {
  background: var(--white);
  border-radius: 20px;
  padding: 16px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--card-border);
  transition: all 0.3s ease;
  box-shadow: 0 2px 12px var(--shadow-soft);
}

.popular-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--shadow-pink);
  border-color: var(--pink-primary);
}

.popular-card:active {
  transform: translateY(0);
}

.popular-img {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.popular-info {
  flex: 1;
  min-width: 0;
}

.popular-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.popular-dev {
  font-size: 12px;
  color: var(--text-light);
}

.games-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.games-scroll::-webkit-scrollbar {
  display: none;
}

.games-scroll .game-card {
  flex-shrink: 0;
  width: 120px;
  max-width: none;
  scroll-snap-align: start;
}

.game-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.game-info {
  padding: 10px 12px;
  text-align: left;
}

.game-name {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.game-dev {
  font-size: 11px;
  color: #999999;
}

.features-section {
  background: linear-gradient(135deg, var(--pink-primary) 0%, #B81D2A 50%, var(--pink-light) 100%);
  margin: 0 20px 28px;
  border-radius: 28px;
  padding: 32px 24px;
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.features-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
  animation: shimmer 8s infinite linear;
}

@keyframes shimmer {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.features-content {
  position: relative;
  z-index: 1;
}

.mascot {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--white);
  padding: 8px;
  margin-bottom: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.features-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.features-subtitle {
  font-size: 15px;
  opacity: 0.9;
  margin-bottom: 28px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.feature-card {
  background: var(--white);
  border-radius: 18px;
  padding: 18px 14px;
  text-align: center;
  color: var(--text-dark);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin: 0 auto 12px;
  color: var(--white);
}

.feature-icon.blue { background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 100%); }
.feature-icon.pink { background: linear-gradient(135deg, var(--pink-primary) 0%, var(--pink-light) 100%); }
.feature-icon.yellow { background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%); }
.feature-icon.green { background: linear-gradient(135deg, #34D399 0%, #10B981 100%); }

.feature-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.feature-desc {
  font-size: 11px;
  color: var(--text-gray);
  line-height: 1.5;
}

.footer {
  background: #9E101E;
  padding: 40px 20px 30px;
  text-align: left;
  position: relative;
  z-index: 10;
  width: 100%;
  box-sizing: border-box;
  border-top: none;
}

.footer-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.footer-logo {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(217, 37, 52, 0.3);
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
}

.footer-brand-name {
  font-size: 20px;
  font-weight: 800;
  font-family: 'Poppins', sans-serif;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-brand-name span {
  color: #FFC107;
  font-weight: 800;
}

.footer-tagline {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-description {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
}

.footer-social-btn {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 18px;
  text-decoration: none;
  transition: all 0.3s;
}

.footer-social-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(217, 37, 52, 0.5);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-section-title::before {
  content: '';
  width: 3px;
  height: 16px;
  background: #FFC107;
  border-radius: 2px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-contact-icon {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 14px;
  flex-shrink: 0;
}

.footer-contact-text {
  display: flex;
  flex-direction: column;
}

.footer-contact-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.footer-contact-value {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-payment-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
}

.footer-payment-icons {
  display: flex;
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 320px;
}

.footer-payment-slider {
  display: flex;
  gap: 16px;
  animation: scrollPayment 20s linear infinite;
  width: max-content;
}

@keyframes scrollPayment {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.footer-payment-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: white;
  padding: 4px;
}

.footer-payment-icon {
  width: 56px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
}

.footer-payment-icon.wing {
  background: linear-gradient(135deg, #00C853, #00A843);
  color: white;
}

.footer-payment-icon.aba {
  background: linear-gradient(135deg, #B8860B, #DAA520);
  color: white;
}

.footer-payment-icon.khqr {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
  text-align: center;
}

.footer-copyright {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 8px;
}

.footer-copyright strong {
  color: #FFC107;
}

.footer-developer {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 12px;
}

.footer-developer a {
  color: var(--pink-primary);
  text-decoration: none;
}

.footer-links-bottom {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-links-bottom a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links-bottom a:hover {
  color: #FFFFFF;
}

.footer-links-bottom .dot {
  color: rgba(255, 255, 255, 0.3);
}

.footer-support-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, #40C4FF 0%, #0088CC 100%);
  color: white;
  padding: 12px 20px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(64, 196, 255, 0.4);
  z-index: 1000;
  transition: all 0.3s;
}

.footer-support-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(64, 196, 255, 0.5);
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.footer-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--pink-primary);
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-label {
  font-size: 14px;
  color: #666677;
  font-weight: 500;
}

.contact-buttons {
  display: flex;
  gap: 12px;
}

.contact-btn {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 22px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.contact-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.contact-btn.telegram {
  background: linear-gradient(135deg, #40C4FF 0%, #0088CC 100%);
}

.contact-btn.facebook {
  background: linear-gradient(135deg, #5B8DEE 0%, #1877F2 100%);
}

.footer-links {
  margin-bottom: 16px;
}

.footer-links a {
  color: #8888A0;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
}

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

.footer-links .divider {
  margin: 0 16px;
  color: rgba(255, 255, 255, 0.2);
}

.copyright {
  font-size: 13px;
  color: #8888A0;
  margin-bottom: 20px;
}

.copyright strong {
  color: var(--pink-primary);
  font-weight: 600;
}

.payment-methods {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.payment-methods span:first-child {
  font-size: 13px;
  color: #8888A0;
}

.payment-badge {
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #FFFFFF;
}

.payment-badge.khqr {
  background: linear-gradient(135deg, var(--pink-primary) 0%, var(--pink-light) 100%);
}

.payment-badge.aba {
  background: linear-gradient(135deg, #4F8EFF 0%, #0052CC 100%);
}

.side-menu {
  position: fixed;
  top: 0;
  right: -340px;
  width: 320px;
  max-width: 85vw;
  height: 100%;
  background: #FFFFFF;
  z-index: 1000;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(0,0,0,0.12);
  border-radius: 24px 0 0 24px;
  overflow: hidden;
}

.side-menu.open {
  right: 0;
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
  backdrop-filter: blur(6px);
}

.menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

.menu-header {
  position: relative;
  padding: 20px 20px 24px;
  background: linear-gradient(160deg, #D92534 0%, #E84350 50%, #FFD6DB 100%);
}

.close-menu {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.25);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.close-menu:hover {
  background: rgba(255,255,255,0.4);
  transform: rotate(90deg);
}

.menu-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.menu-logo {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  object-fit: contain;
  background: rgba(255,255,255,0.9);
  padding: 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.menu-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.menu-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  font-family: 'Poppins', 'Noto Sans Khmer', sans-serif;
  text-shadow: 0 1px 3px rgba(0,0,0,0.1);
  line-height: 1.3;
}

.menu-subtitle {
  font-size: 11px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.menu-nav {
  flex: 1;
  padding: 8px 0;
  overflow-y: auto;
}

.menu-section-label {
  font-size: 11px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 16px 24px 8px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 24px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  margin: 2px 12px;
  border-radius: 12px;
}

.menu-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  background: rgba(217, 37, 52, 0.08);
  color: #D92534;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.menu-item:hover,
.menu-item.active {
  background: rgba(217, 37, 52, 0.08);
  color: #D92534;
}

.menu-item:hover .menu-icon,
.menu-item.active .menu-icon {
  background: rgba(217, 37, 52, 0.15);
  color: #D92534;
}

.menu-item.telegram-item .menu-icon {
  background: rgba(0, 136, 204, 0.15);
  color: #0088CC;
}

.menu-item.telegram-item:hover .menu-icon {
  background: #0088CC;
  color: #fff;
}

.menu-item.facebook-item .menu-icon {
  background: rgba(24, 119, 242, 0.15);
  color: #1877F2;
}

.menu-item.facebook-item:hover .menu-icon {
  background: #1877F2;
  color: #fff;
}

.menu-external {
  margin-left: auto;
  font-size: 10px;
  color: #999;
}

.menu-footer {
  padding: 16px 24px;
  border-top: 1px solid #eee;
  text-align: center;
}

.menu-footer-link {
  display: inline-block;
  font-size: 12px;
  color: #777;
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.menu-footer-link:hover {
  color: #D92534;
}

.menu-footer-link i {
  margin-right: 4px;
}

.menu-footer p {
  font-size: 11px;
  color: #888;
}

.loading-games {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: var(--text-gray);
  font-size: 14px;
}

.contact-fab {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9995;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

@media (max-width: 400px) {
  .popular-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) {
  .banner-slider {
    height: auto;
  }
  
  .popular-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .features-section {
    margin: 0 32px 32px;
    padding: 40px 32px;
  }
  
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .footer {
    padding: 40px 32px;
  }
}

@media (min-width: 1024px) {
  .popular-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
  
  .features-section {
    margin: 0 48px 40px;
    padding: 48px 40px;
    border-radius: 36px;
  }
  
  .footer {
    padding: 48px;
  }
}
