/* Custom CSS for Htet Gaming - Modern Girl Design */

/* Removed external font imports to enforce system fonts */

:root {
  /* Brand palette for consistent, professional glow */
  --brand-pink-700: #db2777;
  --brand-pink-500: #ec4899;
  --brand-violet-500: #8b5cf6;
  --brand-cyan-500: #06b6d4; /* teal/cyan accent */
  --brand-amber-500: #f59e0b; /* warm amber accent */
  --glow-soft: rgba(251, 207, 232, 0.9);
  --glow-strong: rgba(236, 72, 153, 0.55);
}

body {
    font-family: -apple-system, system-ui, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
    padding-bottom: 80px; /* Add padding to the bottom of the body */
    letter-spacing: 0.025em;
    background-color: rgb(253 242 248); /* soft pink bg per request */
    color: #1F2937; /* slate-800 for readability */
}

/* Prevent accidental horizontal scrolling on mobile due to wide elements */
html, body { overflow-x: hidden; }
main { overflow-x: hidden; }

/* Headings use the same iOS system font for consistency */
h1, h2, h3, h4, h5, h6 {
    font-family: -apple-system, system-ui, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Buttons and UI elements use the same system font */
.btn, button, .button {
    font-family: -apple-system, system-ui, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* Wave Animation for Header Text */
.wave-text {
    font-family: -apple-system, system-ui, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ec4899;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.wave-text span {
    display: inline-block;
    animation: none; /* disable jumping animation */
}

.wave-text span:nth-child(1) {
    animation-delay: 0s;
}
.wave-text span:nth-child(2) {
    animation-delay: 0.1s;
}
.wave-text span:nth-child(3) {
    animation-delay: 0.2s;
}
.wave-text span:nth-child(4) {
    animation-delay: 0.3s;
}
.wave-text span:nth-child(5) {
    animation-delay: 0.4s;
}
.wave-text span:nth-child(6) {
    animation-delay: 0.5s;
}
.wave-text span:nth-child(7) {
    animation-delay: 0.6s;
}
.wave-text span:nth-child(8) {
    animation-delay: 0.7s;
}
.wave-text span:nth-child(9) {
    animation-delay: 0.8s;
}
.wave-text span:nth-child(10) {
    animation-delay: 0.9s;
}
.wave-text span:nth-child(11) {
    animation-delay: 1s;
}

@keyframes wave {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .wave-text {
        font-size: 1.5rem;
        letter-spacing: 1px;
        line-height: 1.2;
    }
    
    .wave-text span {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
    
    @keyframes wave {
        0%, 100% {
            transform: translateY(0);
        }
        50% {
            transform: translateY(-4px);
        }
    }
}

@media (max-width: 640px) {
    .wave-text {
        font-size: 1.3rem;
        letter-spacing: 0.5px;
        line-height: 1.1;
    }
    
    .wave-text span {
        font-size: 1.3rem;
        letter-spacing: 0.5px;
    }
}

/* Buy Credits Dropdown Mobile Improvements */
.buy-credits-dropdown {
    z-index: 50;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .buy-credits-dropdown {
        position: fixed !important;
        bottom: 80px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 200px !important;
        max-width: calc(100vw - 2rem);
    }
}

@media (max-width: 480px) {
    .wave-text {
        font-size: 1rem !important;
        letter-spacing: 0.2px;
        line-height: 1.2;
    }
    
    .wave-text span {
        font-size: 1rem !important;
    }
}

@media (max-width: 375px) {
    .wave-text {
        font-size: 0.9rem !important;
        letter-spacing: 0.1px;
        line-height: 1.1;
    }
    
    .wave-text span {
        font-size: 0.9rem !important;
    }
}

.cloud-card {
    box-shadow: 0 10px 25px rgba(219, 39, 119, 0.1), 0 6px 10px rgba(219, 39, 119, 0.08);
    transition: all 0.3s ease;
}

.cloud-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(219, 39, 119, 0.15), 0 8px 15px rgba(219, 39, 119, 0.12);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #db2777;
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.game-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(219, 39, 119, 0.2);
}

/* Toggle Switch */
input:checked ~ .dot {
    transform: translateX(100%);
    background-color: #db2777;
}

input:checked ~ .block {
    background-color: #fbcfe8;
}

/* Region Checker Styles */
.result-success {
    border-left: 4px solid #10b981;
    background-color: #ecfdf5;
    color: #065f46;
    padding: 12px 14px;
    border-radius: 0.75rem;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.12);
}

.result-error {
    border-left: 4px solid #ef4444;
    background-color: #fef2f2;
    color: #7f1d1d;
    padding: 12px 14px;
    border-radius: 0.75rem;
}

.result-header {
    font-weight: 600;
    margin-bottom: 6px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 6px;
    font-size: 0.95rem;
}

.detail-label {
    color: #374151;
}

.detail-value {
    font-weight: 600;
    color: #111827;
}


/* Mobile Liquid Footer (5-button layout, pill style) */
.mobile-footer {
    background: #ffffff; /* solid theme */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(236, 72, 153, 0.22);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(236, 72, 153, 0.08);
    /* Floating pill positioning */
    position: fixed;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px)); /* account for safe area */
    left: calc(8px + env(safe-area-inset-left, 0px));
    right: calc(8px + env(safe-area-inset-right, 0px));
    border-radius: 9999px;
    padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px)); /* inner padding incl. safe area */
    z-index: 1000;
  }
@media (min-width: 768px) {
  /* Hide footer on md+ to mirror md:hidden */
  .mobile-footer { display: none; }
}
.mobile-footer-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  height: 56px; /* match slimmer header feel */
  position: relative;
  padding: 0 8px;
}
.mobile-footer-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #6b7280; /* gray-500 */
  font-weight: 600;
  border-radius: 6px; /* remove pill hover look */
  padding: 4px 6px;
  transition: color 0.2s ease, transform 0.2s ease;
}
/* Only affect icon/text color on hover/active — no background */
.mobile-footer-btn:hover { color: #db2777; background: none; }
.mobile-footer-btn.active { color: #ec4899; background: none; }

/* RGB creative center button */
@keyframes rgbPulse {
  0% { background-position: 0% 50%; box-shadow: 0 12px 30px rgba(236, 72, 153, 0.30); }
  50% { background-position: 100% 50%; box-shadow: 0 16px 36px rgba(59, 130, 246, 0.35); }
  100% { background-position: 0% 50%; box-shadow: 0 12px 30px rgba(236, 72, 153, 0.30); }
}
.mobile-footer-center {
  position: relative; /* center within grid cell */
  place-self: center;
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  background: #ffffff; /* white fill per request */
  border: none; /* RGB ring drawn via pseudo-elements */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: visible;
  box-shadow: 0 6px 16px rgba(0,0,0,0.10);
  z-index: 3;
}
.mobile-footer-center::before {
  content: "";
  position: absolute;
  inset: -3px; /* ring extends outward */
  border-radius: inherit;
  background: linear-gradient(#14FFE9, #FFEB3B, #FF00E0);
  animation: rgbSpin 3.5s linear infinite;
  filter: blur(8px) drop-shadow(0 0 8px rgba(236, 72, 153, 0.35)) drop-shadow(0 0 8px rgba(255, 0, 224, 0.25)) drop-shadow(0 0 8px rgba(20, 255, 233, 0.25));
  opacity: 0.9; /* stronger glow */
  z-index: 0;
}
.mobile-footer-center::after {
  content: "";
  position: absolute;
  inset: 3px; /* inner cutout, ring thickness ≈ 6px */
  border-radius: inherit;
  /* Soft pink fill per request */
  background: rgba(255, 229, 238, 0.92); /* #FFE5EE ~ soft pink */
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.12); /* gentle pink-tinted shadow */
  z-index: 1;
}
.mobile-footer-center {
  box-shadow: 0 10px 22px rgba(0,0,0,0.20); /* slightly reduced for smaller size */
}
.mobile-footer-center:hover { transform: translateY(-2px); }
.mobile-footer-center-icon-img {
  position: relative;
  z-index: 2;
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.22));
}
.mobile-footer-center-label {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 600;
  color: #6b7280; /* gray-500 to match other labels */
  pointer-events: none;
}
/* End Mobile Liquid Footer */

/* Buy Credits Dropdown Mobile Improvements */
.buy-credits-dropdown {
  z-index: 1000;
  border: 1px solid rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
  border-radius: 16px;
  overflow: hidden;
  animation: slideUp 180ms ease;
}
.buy-credits-dropdown a { display:block; padding:10px 14px; border-radius:12px; }
.buy-credits-dropdown a:hover { background: rgba(236,72,153,0.10); color:#111827; }

@keyframes slideUp {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@media (max-width: 768px) {
  .buy-credits-dropdown {
      position: fixed !important;
      bottom: 84px !important;
      left: 50% !important;
      transform: translateX(-50%) !important;
      width: 240px !important;
      max-width: calc(100vw - 2rem);
  }
}

/* Scroll to Top button (mobile) */
.scroll-top-btn {
  position: fixed;
  right: 1rem;
  bottom: calc(104px + env(safe-area-inset-bottom, 0px)); /* stay above footer + safe area */
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #ec4899, #60a5fa);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
  z-index: 1001; /* above footer */
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.scroll-top-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.scroll-top-btn i { font-size: 0.95rem; filter: drop-shadow(0 1px 4px rgba(0,0,0,0.35)); }
@media (min-width: 768px) { .scroll-top-btn { display: none; } }

/* Liquid label background for section titles */
.liquid-label {
  position: relative;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 14px;
  color: #111827;
  font-weight: 700;
  white-space: nowrap; /* prevent wrapping on mobile */
}
/* Simplified glow — remove decorative circles and animations */
.liquid-label::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,0.6), rgba(255,255,255,0.6));
  z-index: -1;
  filter: none;
  opacity: 0.7;
}
/* Disable glow entirely on small screens to avoid visual artifacts */
@media (max-width: 768px) {
  .liquid-label::before { content: none; }
}

@keyframes rgbSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Unified CTA Button and Brand Showcase */
.brand-showcase {
  position: relative;
  margin: 8px 0 12px; /* replaces previous mb-2 section */
}
.brand-showcase-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border: 1px solid rgba(236,72,153,0.22);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 10px 12px;
}
.brand-left { display:flex; align-items:center; gap:10px; min-width:0; }
.brand-badge {
  display:inline-flex; align-items:center; justify-content:center;
  width:28px; height:28px; border-radius:9999px;
  background: linear-gradient(135deg,#ec4899,#8b5cf6);
  color:#fff; font-weight:800; font-size:12px; box-shadow:0 6px 14px rgba(139,92,246,0.25);
}
.brand-texts { display:flex; flex-direction:column; min-width:0; }
.brand-title-wrap { position: relative; overflow: hidden; --bg: transparent; --clr-1: #00c2ff; --clr-2: #33ff8c; --clr-3: #ffc640; --clr-4: #e54cff; --blur: 1rem; }
/* match example title behavior: relative, overflow hidden, no extra animations */
.title { position: relative; overflow: hidden; background: var(--bg); margin: 0; }
.brand-name {
  font-family: Inter, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight:900; letter-spacing:0.2px;
  color: #db2777;
  font-size: 1.35rem;
  text-shadow: 0 1px 2px rgba(219,39,119,0.15);
}
.brand-name-accent { text-transform: uppercase; letter-spacing: 0.6px; }
.brand-tagline { font-size: 0.80rem; color: var(--accent-pink, #9d174d); }
.brand-badges { display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; align-items:center; }
.brand-pill { display:inline-flex; align-items:center; padding:6px 10px; border-radius:9999px; background:#fce7f3; border:1px solid #f472b6; color:#9d174d; font-size:0.75rem; font-weight:600; box-shadow:0 1px 2px rgba(0,0,0,0.06); }
@media (max-width: 640px) { .brand-badges { gap:6px; margin-top:6px; } .brand-pill { padding:5px 9px; font-size:0.70rem; } }

/* Aurora overlay effect from provided CSS (scoped to brand title) */
/* merged: variables are defined in the first .brand-title-wrap block above */
.aurora { position:absolute; top:0; left:0; width:100%; height:100%; z-index:2; mix-blend-mode: darken; pointer-events:none; }
.aurora__item { overflow:hidden; position:absolute; width:60vw; height:60vw; background-color: var(--clr-1); border-radius:37% 29% 27% 27% / 28% 25% 41% 37%; filter: blur(var(--blur)); mix-blend-mode: overlay; }
.aurora__item:nth-of-type(1) { top:-50%; animation: aurora-border 6s ease-in-out infinite, aurora-1 12s ease-in-out infinite alternate; }
.aurora__item:nth-of-type(2) { background-color: var(--clr-3); right:0; top:0; animation: aurora-border 6s ease-in-out infinite, aurora-2 12s ease-in-out infinite alternate; }
.aurora__item:nth-of-type(3) { background-color: var(--clr-2); left:0; bottom:0; animation: aurora-border 6s ease-in-out infinite, aurora-3 8s ease-in-out infinite alternate; }
.aurora__item:nth-of-type(4) { background-color: var(--clr-4); right:0; bottom:-50%; animation: aurora-border 6s ease-in-out infinite, aurora-4 24s ease-in-out infinite alternate; }
@keyframes aurora-1 { 0% { top:0; right:0; } 50% { top:100%; right:75%; } 75% { top:100%; right:25%; } 100% { top:0; right:0; } }
@keyframes aurora-2 { 0% { top:-50%; left:0%; } 60% { top:100%; left:75%; } 85% { top:100%; left:25%; } 100% { top:-50%; left:0%; } }
@keyframes aurora-3 { 0% { bottom:0; left:0; } 40% { bottom:100%; left:75%; } 65% { bottom:40%; left:50%; } 100% { bottom:0; left:0; } }
@keyframes aurora-4 { 0% { bottom:-50%; right:0; } 50% { bottom:0%; right:40%; } 90% { bottom:50%; right:25%; } 100% { bottom:-50%; right:0; } }
@keyframes aurora-border { 0% { border-radius: 37% 29% 27% 27% / 28% 25% 41% 37%; } 25% { border-radius: 47% 29% 39% 49% / 61% 19% 66% 26%; } 50% { border-radius: 57% 23% 47% 72% / 63% 17% 66% 33%; } 75% { border-radius: 28% 49% 29% 100% / 93% 20% 64% 25%; } 100% { border-radius: 37% 29% 27% 27% / 28% 25% 41% 37%; } }
/* removed unused brand animations to avoid conflicts with aurora effect */

.brand-ctas { display:flex; flex-direction: column; align-items:flex-start; gap:10px; flex-shrink:0; }
.brand-ctas { grid-column: 2 / 3; }
.cta-row { display:inline-flex; align-items:center; gap:8px; }
.cta-row .cta-btn { min-width: 132px; }
.cta-btn {
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px; padding: 10px 16px; border-radius: 9999px; font-weight:700;
  font-size: 0.95rem; line-height: 1; white-space: nowrap; min-height: 40px;
  color:#fff; background: linear-gradient(135deg,#ec4899,#8b5cf6);
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
  border: none; text-decoration:none;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}
.cta-btn:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow:0 12px 24px rgba(0,0,0,0.14); }
.cta-btn:active { transform: translateY(0); box-shadow:0 6px 14px rgba(0,0,0,0.12); }

/* CTA variants: white and pink (for brand-showcase) */
.cta-btn--white {
  /* Match site theme with subtle gradient like Our Games cards */
  background: linear-gradient(135deg, rgba(236,72,153,0.12), rgba(139,92,246,0.12));
  color: #9d174d; /* pink-900 for readability */
  border: 1px solid rgba(236,72,153,0.22);
}
.cta-btn--white:hover { filter: none; background: #ffffff; box-shadow:0 10px 22px rgba(0,0,0,0.12); }
.cta-btn--pink { background: linear-gradient(135deg,#ec4899,#db2777); color:#fff; }

/* Brand highlights (reliable, secure, instant, support) */
.brand-highlights { display:flex; flex-wrap: wrap; gap:8px; align-items:center; justify-content:center; margin-top: 4px; grid-column: 1 / -1; }
.brand-highlight {
  display:inline-flex; align-items:center; gap:6px;
  padding:8px 12px; border-radius:9999px; font-weight:600; font-size:0.85rem;
  color: var(--accent-pink, #9d174d); /* brand pink */ background:#ffffff;
  border:1px solid rgba(236,72,153,0.15); box-shadow:0 6px 14px rgba(0,0,0,0.06);
  min-width: 120px; /* Consistent minimum width */
  justify-content: center; /* Center content within each pill */
}
.brand-highlight .icon { color:#db2777; flex-shrink: 0; }

@media (max-width: 640px) {
  /* Keep CTAs on right side by retaining two columns on mobile */
  .brand-showcase-inner { grid-template-columns: 1fr auto; }
  .brand-ctas { align-items:flex-end; grid-column: 2 / 3; }
  .cta-row { gap:6px; flex-wrap: nowrap; justify-content: flex-end; }
  /* Hide Top Up in mobile hero */
  .brand-showcase .cta-btn--pink { display: none; }
  /* Shrink CTA buttons as much as reasonable on mobile */
  .cta-row .cta-btn { min-width: 104px; }
  .cta-btn { padding: 6px 10px; min-height: 32px; font-size: 0.80rem; }

  /* Smaller highlight pills on mobile */
  .brand-highlights { justify-content: center; gap:6px; max-width: 100%; }
  .brand-highlight { 
    font-size:0.72rem; 
    padding:4px 8px; 
    min-width: 96px; /* Smaller but consistent on mobile */
    flex: 0 0 calc(50% - 3px); /* Two per row on mobile */
    max-width: calc(50% - 3px);
  }

  /* Make the title smaller on mobile to favor CTA placement */
  .neon-title { font-size: clamp(0.7rem, 2.2vw, 1.1rem); letter-spacing: 0.5px; }
  
  /* App icon label sizing handled in index.html to avoid conflicts */
}

/* Ultra-narrow devices: further shrink CTA and title to avoid overlap */
@media (max-width: 360px) {
  .cta-row .cta-btn { min-width: 88px; }
  .cta-btn { padding: 5px 9px; min-height: 30px; font-size: 0.74rem; }
  .neon-title { font-size: clamp(0.65rem, 2vw, 1rem); letter-spacing: 0.35px; }
}

/* Extra-narrow screens (e.g., Galaxy S9/S8 ~360px): stack CTAs below title */
@media (max-width: 400px) {
  .brand-showcase-inner { grid-template-columns: 1fr; grid-template-rows: auto auto; }
  .brand-ctas { grid-column: 1 / -1; grid-row: 2; align-items: center; }
  .cta-row { justify-content: center; gap: 6px; flex-wrap: wrap; }
  .cta-row .cta-btn { min-width: 92px; }
  .brand-showcase .neon-title { font-size: clamp(1.05rem, 3.6vw, 1.35rem); letter-spacing: 0.5px; }
}

/* Typed brand header styles */
.typed-brand-mode { background: #fff; border: 1px solid rgba(236,72,153,0.12); box-shadow: 0 10px 24px rgba(0,0,0,0.08); padding: 10px 12px; min-height: 72px; display:flex; align-items:center; justify-content:center; }
.typed-text {
  display: inline-block;
  font-weight: 800;
  color: var(--accent-pink, #9d174d); /* pink text */
  letter-spacing: 0.2px;
  white-space: nowrap;
  line-height: 1.1;
}
.typed-text.large { font-size: clamp(2rem, 4vw, 3rem); }
.typed-text.small { font-size: clamp(0.95rem, 2.2vw, 1.15rem); }
.typed-text::after {
  content: "";
  display: inline-block;
  vertical-align: text-bottom;
  margin-left: 4px;
  border-right: 2px solid var(--accent-pink, #9d174d); /* pink caret */
  height: 1em;
  animation: beamBlink 1s infinite;
}

/* Pink/White Theme Text Overrides */
:root {
  --accent-pink: #9d174d; /* deep pink for readable text */
  --text-on-pink: #ffffff; /* white on pink backgrounds */
}

/* Default text on light backgrounds uses brand pink */
body { color: var(--accent-pink); }

/* CTA text colors */
.cta-btn--pink { color: var(--text-on-pink) !important; }
.cta-btn--white { color: var(--accent-pink) !important; }

/* Buy game pages default text to pink */
.game-page, .game-detail, .purchase-panel, .pricing-summary { color: var(--accent-pink) !important; }

/* Force white text on pink surfaces */
.brand-showcase, .pink-bg, .pink-gradient, .game-hero-section { color: var(--text-on-pink) !important; }
@keyframes beamBlink { 75% { border-color: transparent; } }

/* Mobile wrapping and stable height for typed header */
@media (max-width: 640px) {
  .typed-text { white-space: normal; overflow-wrap: break-word; word-break: break-word; text-align: center; }
  .typed-brand-mode { min-height: 110px; padding: 12px 14px; }
}



/* Responsive adjustments */
@media (min-width: 480px) {
  .brand-name { font-size: 1.15rem; }
  .brand-tagline { font-size: 0.85rem; }
}
@media (min-width: 768px) {
  .brand-showcase-inner { border-radius: 20px; padding:12px 16px; }
  .brand-name { font-size: 1.25rem; }
  .cta-btn { padding: 12px 18px; font-size: 1rem; }
}

/* Section title pill styling (professional white chip) */
.section-title {
  display: block;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 2.25rem; /* 36px */
  letter-spacing: -0.02em;
  color: transparent; /* Make text transparent to show gradient */
  background: linear-gradient(
    90deg,
    var(--accent-pink, #ec4899),
    var(--accent-purple, #8b5cf6),
    var(--accent-pink, #ec4899)
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shimmer 4s linear infinite;
  text-shadow: 0 2px 8px rgba(236, 72, 153, 0.3); /* Soft pink glow */
  padding: 0;
  border: none;
  box-shadow: none;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.section-title::after {
  content: none; /* Remove the old underline */
}

@media (max-width: 640px) {
  .section-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
  }
}

/* Professional on-white neon title (system fonts, subtle glow) */
.neon-title {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px 6px;
  border-radius: 8px;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 3rem); /* Smaller on mobile */
  text-transform: uppercase;
  letter-spacing: 1.5px;
  line-height: 1; /* prevent layout shifts */
  animation: titleShine 1800ms ease forwards, titleFlicker 3200ms ease-in-out infinite;
  transition: none !important;
}
.neon-title span {
  display:inline-block;
  /* Hollow text style - transparent fill with stroke */
  color: transparent;
  -webkit-text-stroke: 2px var(--brand-pink-700); /* thicker stroke for hollow effect */
  /* refined on-white glow for each letter (crisper, less blur) */
  text-shadow: 0 0 0.1rem rgba(251,207,232,0.85), 0 0 0.28rem rgba(236,72,153,0.45);
  will-change: color, opacity, text-shadow, -webkit-text-stroke;
  transition: none !important;
}
@media (max-width: 640px) {
  /* Reduce title size by ~3px relative to 1.5rem base on mobile */
  .brand-showcase .neon-title {
    font-size: clamp(1.3rem, 3.6vw, 1.45rem);
    letter-spacing: 0.5px;
    line-height: 1;
  }
}

/* Soft blink: vary glow + stroke color for visible flicker on hollow text */
@keyframes titleBlink {
  /* Bright stage — saturated pink + stronger glow */
  0%, 18% {
    -webkit-text-stroke-color: var(--brand-pink-700);
    opacity: 1;
    text-shadow: 0 0 0.14rem rgba(251,207,232,0.95), 0 0 0.36rem rgba(236,72,153,0.55);
  }
  /* Brief dim — lighter pink, reduced glow */
  22%, 26% {
    -webkit-text-stroke-color: var(--brand-pink-500);
    opacity: 0.98;
    text-shadow: 0 0 0.08rem rgba(251,207,232,0.6), 0 0 0.18rem rgba(236,72,153,0.35);
  }
  /* Cyan pop — cool accent */
  36% {
    -webkit-text-stroke-color: var(--brand-cyan-500);
    opacity: 1;
    text-shadow: 0 0 0.16rem rgba(224,255,255,0.85), 0 0 0.40rem rgba(6,182,212,0.55);
  }
  /* Amber flare — warm accent */
  52% {
    -webkit-text-stroke-color: var(--brand-amber-500);
    opacity: 1;
    text-shadow: 0 0 0.16rem rgba(255,245,200,0.85), 0 0 0.40rem rgba(245,158,11,0.55);
  }
  /* Violet pulse — classic neon */
  64% {
    -webkit-text-stroke-color: var(--brand-violet-500);
    opacity: 1;
    text-shadow: 0 0 0.18rem rgba(251,207,232,0.9), 0 0 0.42rem rgba(236,72,153,0.6);
  }
  /* Near the end — back to saturated pink with medium glow */
  82%, 97% {
    -webkit-text-stroke-color: var(--brand-pink-700);
    opacity: 0.99;
    text-shadow: 0 0 0.12rem rgba(251,207,232,0.75), 0 0 0.28rem rgba(236,72,153,0.45);
  }
}

/* Individual letter animations with different delays and colors */
.neon-title span:nth-child(1) { animation: titleShine 1200ms ease forwards, titleBlink 1600ms 0ms infinite; }
.neon-title span:nth-child(2) { animation: titleShine 1200ms ease forwards, titleBlink 1800ms 180ms infinite; }
.neon-title span:nth-child(3) { animation: titleShine 1200ms ease forwards, titleBlink 1600ms 360ms infinite; }
.neon-title span:nth-child(4) { animation: titleShine 1200ms ease forwards, titleBlink 1800ms 540ms infinite; }
.neon-title span:nth-child(5) { animation: titleShine 1200ms ease forwards, titleBlink 1600ms 720ms infinite; }
.neon-title span:nth-child(6) { animation: titleShine 1200ms ease forwards, titleBlink 1800ms 900ms infinite; }
.neon-title span:nth-child(7) { animation: titleShine 1200ms ease forwards, titleBlink 1600ms 1080ms infinite; }
.neon-title span:nth-child(8) { animation: titleShine 1200ms ease forwards, titleBlink 1800ms 1260ms infinite; }
.neon-title span:nth-child(9) { animation: titleShine 1200ms ease forwards, titleBlink 1600ms 1440ms infinite; }
.neon-title span:nth-child(10) { animation: titleShine 1200ms ease forwards, titleBlink 1800ms 1620ms infinite; }
.neon-title span:nth-child(11) { animation: titleShine 1200ms ease forwards, titleBlink 1600ms 1800ms infinite; }
.neon-title span:nth-child(12) { animation: titleShine 1200ms ease forwards, titleBlink 1800ms 1980ms infinite; }
.neon-title span:nth-child(13) { animation: titleShine 1200ms ease forwards, titleBlink 1600ms 2160ms infinite; }

.flicker { animation: titleShine 1200ms ease forwards, titleBlink 1700ms 300ms infinite; }
.fast-flicker { animation: titleShine 1200ms ease forwards, titleBlink 1900ms 450ms infinite; }

@keyframes titleShine {
  0% { filter: saturate(0.8) brightness(0.9); }
  100% { filter: saturate(1) brightness(1); }
}

/* Accessibility: Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .neon-title, .neon-title span, .flicker, .fast-flicker { animation: none !important; }
}

@keyframes titleFlicker {
  from { opacity: 1; }
  4% { opacity: 0.97; }
  6% { opacity: 0.94; }
  11% { opacity: 0.98; }
  20% { opacity: 1; }
  38% { opacity: 0.97; }
  46% { opacity: 0.95; }
  60% { opacity: 1; }
  72% { opacity: 0.96; }
  93% { opacity: 0.98; }
  to { opacity: 1; }
}

/* Removed legacy duplicate keyframes (shine, flicker) to avoid confusion */

/* Home page: Our Games chip helpers moved to index stylesheet for precision */
/* ---------------------------------------------
   Home: Our Games cards — professional palette, animation, and UX
   --------------------------------------------- */
/* Grid layout */
#our-games .app-icons-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem; /* tighter spacing between cards */
  align-items: stretch;
}
@media (max-width: 400px) {
  #our-games .app-icons-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  #our-games .app-icons-grid { grid-template-columns: repeat(7, 1fr); gap: 0.75rem; }
}

/* Card base */
#our-games .app-icon-card {
  width: 100%;
  background: transparent !important; /* plain icon style */
  background-size: initial;
  animation: none;
  border-radius: 0;
  padding: 0;
  display: inline-flex; flex-direction: column; align-items: center; text-align: center;
  text-decoration: none; overflow: visible;
  box-shadow: none;
}
@media (prefers-reduced-motion: reduce) {
  #our-games .app-icon-card { animation: none; }
}

#our-games .app-icon-card:hover {
  transform: none;
  filter: none;
  box-shadow: none;
}
@media (hover: none) and (pointer: coarse) {
  #our-games .app-icon-card:hover { transform: none; filter: none; box-shadow: 0 8px 18px rgba(0,0,0,0.06); }
}

/* Icon */
#our-games .app-icon-image {
  width: 88px; height: 88px; max-width: 88px;
  border-radius: 14px; /* subtle rounding only */
  object-fit: cover; background: transparent;
  box-shadow: none; /* remove card-like shadow */
  margin-bottom: 8px;
}
@media (max-width: 640px) {
  #our-games .app-icon-image { width: 72px; height: 72px; max-width: 72px; }
}
@supports not (aspect-ratio: 1 / 1) {
  #our-games .app-icon-image { width: 72px; height: 72px; }
}

/* Label — single line, readable on gradients */
#our-games .app-icon-label {
  display: block; width: 100%;
  /* Align label color with site theme; still readable atop gradients */
  color: var(--accent-pink, #9d174d) !important; /* match Secure payments */
  font-weight: 600; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(0,0,0,0.20);
  font-size: 0.84rem;
  padding: 0 4px;
}
@media (max-width: 640px) {
  #our-games .app-icon-label { font-size: 0.70rem; }
}

/* Animated gradient keyframes */
@keyframes cardGradientShift {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

/* Per-game gradient palettes (derived from logos) */
#our-games .app-icon-card.card-gradient--ml {
  --card-bg: linear-gradient(135deg, rgba(59,130,246,0.22), rgba(139,92,246,0.24));
}
#our-games .app-icon-card.card-gradient--ml-other {
  --card-bg: linear-gradient(135deg, rgba(99,102,241,0.22), rgba(217,70,239,0.24));
}
#our-games .app-icon-card.card-gradient--pubg {
  --card-bg: linear-gradient(135deg, rgba(245,158,11,0.24), rgba(120,53,15,0.24));
}
#our-games .app-icon-card.card-gradient--hok {
  --card-bg: linear-gradient(135deg, rgba(251,191,36,0.24), rgba(124,58,237,0.24));
}
#our-games .app-icon-card.card-gradient--magic {
  --card-bg: linear-gradient(135deg, rgba(14,165,233,0.22), rgba(20,184,166,0.24));
}
#our-games .app-icon-card.card-gradient--genshin {
  --card-bg: linear-gradient(135deg, rgba(56,189,248,0.22), rgba(100,116,139,0.24));
}
#our-games .app-icon-card.card-gradient--blood {
  --card-bg: linear-gradient(135deg, rgba(239,68,68,0.24), rgba(17,24,39,0.24));
}