body {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
        font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
          Roboto, sans-serif;
        font-feature-settings: "kern" 1, "liga" 1;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        background: linear-gradient(135deg, #f5f7fa 0%, #e9f0ff 50%, #ffffff 100%);
        min-height: 100%;
        color: #2C3E50;
        overflow-x: hidden;
        -webkit-tap-highlight-color: transparent;
        line-height: 1.6;
      }

      /* Nav Profile */
      .nav-profile {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 0 12px;
        border-left: 1px solid rgba(13, 59, 102, 0.1);
        border-right: 1px solid rgba(13, 59, 102, 0.1);
        flex-shrink: 0;
      }

      .nav-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: linear-gradient(135deg, #ff7f00, #ffa500);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: 700;
        font-size: 1rem;
        cursor: pointer;
        transition: transform 0.2s ease;
        flex-shrink: 0;
      }

      .nav-avatar:hover {
        transform: scale(1.1);
      }

      .nav-user-info {
        display: flex;
        flex-direction: column;
        gap: 2px;
        min-width: 0;
      }

      .nav-username {
        font-weight: 700;
        font-size: 0.95rem;
        color: #0D3B66;
        cursor: pointer;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 120px;
      }

      .nav-level-info {
        font-size: 0.75rem;
        color: rgba(13, 59, 102, 0.7);
        white-space: nowrap;
      }

      .nav-stats {
        display: flex;
        gap: 8px;
        align-items: center;
      }

      .nav-stat {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        min-width: 45px;
      }

      .nav-stat-value {
        font-weight: 700;
        font-size: 0.9rem;
        color: #0D3B66;
        line-height: 1;
      }

      .nav-stat-label {
        font-size: 0.65rem;
        color: rgba(13, 59, 102, 0.6);
        text-transform: uppercase;
        letter-spacing: 0.5px;
      }

      /* Global Volume Control in Nav */
      .global-volume {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 0 8px;
        flex-shrink: 0;
      }
      .global-volume button {
        background: rgba(13, 59, 102, 0.1);
        border: 1px solid rgba(13, 59, 102, 0.2);
        color: #0D3B66;
        border-radius: 8px;
        width: 32px;
        height: 32px;
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        flex-shrink: 0;
      }
      .global-volume .global-label {
        color: #0D3B66;
        font-size: 12px;
        font-weight: 700;
        padding: 0 4px;
        align-self: center;
        opacity: 0.85;
      }
      .global-volume input[type="range"] {
        width: 60px;
        height: 4px;
        border-radius: 5px;
        background: rgba(13, 59, 102, 0.15);
        outline: none;
        -webkit-appearance: none;
        appearance: none;
        flex-shrink: 0;
      }
      .global-volume input[type="range"]::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: #e9850b;
        cursor: pointer;
      }
      .global-volume input[type="range"]::-moz-range-thumb {
        appearance: none;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: #e9850b;
        cursor: pointer;
        border: none;
      }
      /* Purpose Tagline */
      .purpose-tagline {
        text-align: center;
        padding: 15px 0 10px;
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
      }

      .purpose-tagline span {
        font-size: 1rem;
        font-weight: 600;
        color: #0D3B66;
      }

      .purpose-info-btn {
        background: rgba(13, 59, 102, 0.1);
        border: 1px solid rgba(13, 59, 102, 0.2);
        border-radius: 50%;
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        cursor: pointer;
        transition: all 0.2s ease;
        flex-shrink: 0;
      }

      .purpose-info-btn:hover {
        background: rgba(13, 59, 102, 0.2);
        transform: scale(1.1);
      }

      /* All nav items visible on all devices */

      /* Sticky Navigation Bar */
      .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 10000;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(13, 59, 102, 0.1);
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
        transition: all 0.3s ease;
        will-change: transform;
      }

      .main-nav.scrolled {
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
      }

      .nav-content {
        max-width: 1400px;
        margin: 0 auto;
        padding: 12px 20px;
        display: flex;
        align-items: center;
        gap: 20px;
      }

      .nav-brand {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 1.5rem;
        font-weight: 700;
        color: #0D3B66;
        cursor: pointer;
        transition: transform 0.2s ease;
        flex-shrink: 0;
      }

      .nav-brand:hover {
        transform: scale(1.05);
      }

      .nav-logo-icon {
        font-size: 1.3rem;
      }

      .nav-search-container {
        flex: 1;
        max-width: 400px;
        position: relative;
        display: flex;
        align-items: center;
      }

      .nav-search {
        width: 100%;
        padding: 10px 16px;
        padding-right: 40px;
        border: 1px solid rgba(13, 59, 102, 0.2);
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.9);
        font-size: 0.95rem;
        color: #0D3B66;
        outline: none;
        transition: all 0.3s ease;
      }

      .nav-search:focus {
        border-color: #0D3B66;
        box-shadow: 0 0 0 3px rgba(13, 59, 102, 0.1);
        background: rgba(255, 255, 255, 1);
      }

      .nav-search::placeholder {
        color: rgba(13, 59, 102, 0.5);
      }

      .nav-search-toggle {
        position: absolute;
        right: 8px;
        background: none;
        border: none;
        font-size: 1.2rem;
        cursor: pointer;
        padding: 4px;
        display: none;
        color: #0D3B66;
      }

      .nav-links {
        display: flex;
        align-items: center;
        gap: 16px;
        flex-shrink: 0;
      }

      .nav-link {
        padding: 8px 16px;
        color: #0D3B66;
        text-decoration: none;
        font-weight: 500;
        font-size: 0.95rem;
        border-radius: 20px;
        transition: all 0.2s ease;
        white-space: nowrap;
      }

      .nav-link:hover {
        background: rgba(13, 59, 102, 0.1);
        color: #0D3B66;
      }

      .nav-link-dropdown {
        position: relative;
      }

      .nav-link-dropdown .nav-link {
        display: flex;
        align-items: center;
        gap: 6px;
      }

      .dropdown-arrow {
        font-size: 0.7rem;
        transition: transform 0.2s ease;
      }

      .nav-link-dropdown.active .dropdown-arrow {
        transform: rotate(180deg);
      }

      .nav-dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        margin-top: 8px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        border: 1px solid rgba(13, 59, 102, 0.1);
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
        min-width: 180px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.2s ease;
        z-index: 1000;
        overflow: hidden;
      }

      .nav-link-dropdown.active .nav-dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
      }

      .nav-dropdown-item {
        display: block;
        padding: 12px 16px;
        color: #0D3B66;
        text-decoration: none;
        font-weight: 500;
        font-size: 0.9rem;
        transition: all 0.2s ease;
        border-bottom: 1px solid rgba(13, 59, 102, 0.05);
      }

      .nav-dropdown-item:last-child {
        border-bottom: none;
      }

      .nav-dropdown-item:hover {
        background: rgba(13, 59, 102, 0.1);
        color: #0D3B66;
      }

      .nav-toggle {
        display: none;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        z-index: 10001;
      }

      /* Show nav toggle on mobile */
      @media (max-width: 1023px) {
        .nav-toggle {
          display: flex;
          order: 4;
        }
      }

      .nav-toggle span {
        width: 25px;
        height: 3px;
        background: #0D3B66;
        border-radius: 2px;
        transition: all 0.3s ease;
      }

      .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
      }

      .nav-toggle.active span:nth-child(2) {
        opacity: 0;
      }

      .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
      }

      /* Add padding to body to account for fixed nav */
      body {
        padding-top: 80px;
      }

      @media (max-width: 768px) {
        body {
          padding-top: 60px; /* Standard nav height, menu expands on click */
        }
      }

      /* Compact Hero Section - removed, using purpose-tagline instead */

      /* Disabled Background Animations (removed for performance) */
      .bg-animation,
      .bg-animation::before,
      .bg-animation::after,
      .mesh-gradient,
      .geometric-shapes,
      .particles {
        display: none !important;
      }

      .bg-animation::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(
            circle at 15% 25%,
            rgba(13, 59, 102, 0.08) 0%,
            transparent 40%
          ),
          radial-gradient(
            circle at 85% 75%,
            rgba(255, 127, 0, 0.06) 0%,
            transparent 45%
          ),
          radial-gradient(
            circle at 45% 10%,
            rgba(85, 139, 47, 0.05) 0%,
            transparent 35%
          ),
          radial-gradient(
            circle at 70% 40%,
            rgba(201, 168, 106, 0.04) 0%,
            transparent 50%
          );
        animation: modernFloat 25s ease-in-out infinite;
      }

      .bg-animation::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(
            45deg,
            transparent 30%,
            rgba(233, 240, 255, 0.3) 50%,
            transparent 70%
          ),
          linear-gradient(
            -45deg,
            transparent 30%,
            rgba(13, 59, 102, 0.05) 50%,
            transparent 70%
          );
        animation: modernShimmer 15s ease-in-out infinite;
      }

      @keyframes modernGradientFlow {
        0%,
        100% {
          background-position: 0% 50%;
          filter: hue-rotate(0deg);
        }
        25% {
          background-position: 100% 25%;
          filter: hue-rotate(5deg);
        }
        50% {
          background-position: 100% 75%;
          filter: hue-rotate(10deg);
        }
        75% {
          background-position: 0% 100%;
          filter: hue-rotate(5deg);
        }
      }

      @keyframes modernFloat {
        0%,
        100% {
          transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
          opacity: 0.8;
        }
        25% {
          transform: translateY(-20px) translateX(10px) rotate(1deg) scale(1.05);
          opacity: 0.9;
        }
        50% {
          transform: translateY(-10px) translateX(-15px) rotate(-0.5deg)
            scale(0.95);
          opacity: 1;
        }
        75% {
          transform: translateY(15px) translateX(5px) rotate(0.8deg) scale(1.02);
          opacity: 0.85;
        }
      }

      @keyframes modernShimmer {
        0%,
        100% {
          transform: translateX(-100%) translateY(-100%) rotate(0deg);
          opacity: 0.3;
        }
        50% {
          transform: translateX(100%) translateY(100%) rotate(180deg);
          opacity: 0.6;
        }
      }

      /* Floating Geometric Shapes */
      .geometric-shapes {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: -1;
        overflow: hidden;
      }

      .shape {
        position: absolute;
        opacity: 0.1;
        animation: shapeFloat 20s linear infinite;
      }

      .shape.circle {
        border-radius: 50%;
        background: linear-gradient(
          135deg,
          rgba(85, 139, 47, 0.15),
          rgba(255, 127, 0, 0.1)
        );
      }

      .shape.square {
        background: linear-gradient(
          45deg,
          rgba(13, 59, 102, 0.1),
          rgba(201, 168, 106, 0.15)
        );
        transform: rotate(45deg);
      }

      .shape.triangle {
        width: 0;
        height: 0;
        background: transparent;
        border-left: 15px solid transparent;
        border-right: 15px solid transparent;
        border-bottom: 25px solid rgba(255, 127, 0, 0.1);
      }

      .shape.hexagon {
        width: 30px;
        height: 17px;
        background: rgba(85, 139, 47, 0.1);
        position: relative;
      }

      .shape.hexagon:before,
      .shape.hexagon:after {
        content: "";
        position: absolute;
        width: 0;
        border-left: 15px solid transparent;
        border-right: 15px solid transparent;
      }

      .shape.hexagon:before {
        bottom: 100%;
        border-bottom: 8px solid rgba(85, 139, 47, 0.1);
      }

      .shape.hexagon:after {
        top: 100%;
        border-top: 8px solid rgba(85, 139, 47, 0.1);
      }

      @keyframes shapeFloat {
        0% {
          transform: translateY(100vh) translateX(0px) rotate(0deg) scale(0.5);
          opacity: 0;
        }
        10% {
          opacity: 0.1;
        }
        90% {
          opacity: 0.1;
        }
        100% {
          transform: translateY(-100px) translateX(50px) rotate(360deg) scale(1);
          opacity: 0;
        }
      }

      /* Mesh Gradient Overlay */
      .mesh-gradient {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
        background: radial-gradient(
            circle at 20% 20%,
            rgba(13, 59, 102, 0.06) 0%,
            transparent 50%
          ),
          radial-gradient(
            circle at 80% 80%,
            rgba(255, 127, 0, 0.05) 0%,
            transparent 50%
          ),
          radial-gradient(
            circle at 40% 60%,
            rgba(85, 139, 47, 0.04) 0%,
            transparent 50%
          ),
          radial-gradient(
            circle at 60% 20%,
            rgba(201, 168, 106, 0.03) 0%,
            transparent 50%
          ),
          radial-gradient(
            circle at 80% 40%,
            rgba(233, 240, 255, 0.4) 0%,
            transparent 50%
          );
        animation: meshFlow 30s ease-in-out infinite;
      }

      @keyframes meshFlow {
        0%,
        100% {
          background: radial-gradient(
              circle at 20% 20%,
              rgba(13, 59, 102, 0.06) 0%,
              transparent 50%
            ),
            radial-gradient(
              circle at 80% 80%,
              rgba(255, 127, 0, 0.05) 0%,
              transparent 50%
            ),
            radial-gradient(
              circle at 40% 60%,
              rgba(85, 139, 47, 0.04) 0%,
              transparent 50%
            ),
            radial-gradient(
              circle at 60% 20%,
              rgba(201, 168, 106, 0.03) 0%,
              transparent 50%
            ),
            radial-gradient(
              circle at 80% 40%,
              rgba(233, 240, 255, 0.4) 0%,
              transparent 50%
            );
        }
        33% {
          background: radial-gradient(
              circle at 80% 30%,
              rgba(13, 59, 102, 0.07) 0%,
              transparent 50%
            ),
            radial-gradient(
              circle at 20% 70%,
              rgba(255, 127, 0, 0.06) 0%,
              transparent 50%
            ),
            radial-gradient(
              circle at 70% 20%,
              rgba(85, 139, 47, 0.05) 0%,
              transparent 50%
            ),
            radial-gradient(
              circle at 30% 80%,
              rgba(201, 168, 106, 0.04) 0%,
              transparent 50%
            ),
            radial-gradient(
              circle at 50% 50%,
              rgba(233, 240, 255, 0.5) 0%,
              transparent 50%
            );
        }
        66% {
          background: radial-gradient(
              circle at 40% 80%,
              rgba(13, 59, 102, 0.05) 0%,
              transparent 50%
            ),
            radial-gradient(
              circle at 70% 20%,
              rgba(255, 127, 0, 0.07) 0%,
              transparent 50%
            ),
            radial-gradient(
              circle at 20% 40%,
              rgba(85, 139, 47, 0.06) 0%,
              transparent 50%
            ),
            radial-gradient(
              circle at 80% 60%,
              rgba(201, 168, 106, 0.04) 0%,
              transparent 50%
            ),
            radial-gradient(
              circle at 30% 30%,
              rgba(233, 240, 255, 0.45) 0%,
              transparent 50%
            );
        }
      }

      /* Glassmorphism Container */
      .container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 30px 20px;
        position: relative;
      }

      .glass-card {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border: 1px solid rgba(13, 59, 102, 0.15);
        border-radius: 28px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08),
          0 0 0 1px rgba(233, 240, 255, 0.5) inset;
      }

      /* Floating Particles */
      .particles {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: -1;
      }

      .particle {
        position: absolute;
        width: 4px;
        height: 4px;
        background: rgba(13, 59, 102, 0.3);
        border-radius: 50%;
        animation: particleFloat 15s linear infinite;
      }

      @keyframes particleFloat {
        0% {
          transform: translateY(100vh) translateX(0px);
          opacity: 0;
        }
        10% {
          opacity: 1;
        }
        90% {
          opacity: 1;
        }
        100% {
          transform: translateY(-100px) translateX(100px);
          opacity: 0;
        }
      }

      /* Header with Hero Animation */
      /* Old hero-header styles removed - using hero-header-compact instead */

      .logo-container {
        position: relative;
        display: inline-block;
        margin-bottom: 20px;
      }

      .logo {
        font-size: 4.5rem;
        font-weight: 900;
        letter-spacing: -0.02em;
        line-height: 1.1;
        background: linear-gradient(135deg, #0D3B66, #558B2F, #FF7F00);
        background-size: 300% 300%;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        animation: logoGlow 3s ease-in-out infinite alternate;
        text-shadow: 0 2px 10px rgba(13, 59, 102, 0.2);
      }

      @keyframes logoGlow {
        0% {
          background-position: 0% 50%;
          filter: brightness(1);
        }
        100% {
          background-position: 100% 50%;
          filter: brightness(1.2);
        }
      }

      .tagline {
        font-size: 1.5rem;
        font-weight: 400;
        letter-spacing: 0.01em;
        color: #0D3B66;
        margin-bottom: 24px;
        animation: fadeInUp 1s ease-out 0.5s both;
        line-height: 1.5;
      }

      .mission {
        font-size: 1.15rem;
        color: #2C3E50;
        max-width: 750px;
        margin: 0 auto;
        line-height: 1.7;
        animation: fadeInUp 1s ease-out 1s both;
        letter-spacing: 0.01em;
      }

      @keyframes fadeInUp {
        from {
          opacity: 0;
          transform: translateY(30px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      /* Enhanced Profile Bar */
      .profile-bar {
        padding: 36px;
        margin-bottom: 50px;
        display: flex;
        align-items: center;
        gap: 36px;
        flex-wrap: wrap;
        position: relative;
        overflow: hidden;
        animation: slideInLeft 1s ease-out;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border: 1px solid rgba(13, 59, 102, 0.15);
        border-radius: 28px;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08),
          0 0 0 1px rgba(233, 240, 255, 0.5) inset;
      }

      .profile-bar::before {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(
          90deg,
          transparent,
          rgba(13, 59, 102, 0.05),
          transparent
        );
        animation: shimmer 3s ease-in-out infinite;
      }

      @keyframes shimmer {
        0% {
          left: -100%;
        }
        100% {
          left: 100%;
        }
      }

      @keyframes slideInLeft {
        from {
          opacity: 0;
          transform: translateX(-50px);
        }
        to {
          opacity: 1;
          transform: translateX(0);
        }
      }

      .avatar-container {
        position: relative;
      }

      .avatar {
        width: 96px;
        height: 96px;
        border-radius: 50%;
        background: linear-gradient(135deg, #558B2F, #FF7F00);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2.5rem;
        color: white;
        font-weight: 800;
        position: relative;
        box-shadow: 0 8px 32px rgba(85, 139, 47, 0.3),
          0 0 0 4px rgba(255, 255, 255, 0.8) inset;
        animation: pulse 2s ease-in-out infinite;
        cursor: pointer;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
      }

      .avatar:hover {
        transform: scale(1.05);
        box-shadow: 0 12px 40px rgba(85, 139, 47, 0.4),
          0 0 0 4px rgba(255, 255, 255, 0.9) inset;
      }

      .avatar::before {
        content: "";
        position: absolute;
        top: -5px;
        left: -5px;
        right: -5px;
        bottom: -5px;
        border-radius: 50%;
        background: linear-gradient(135deg, #558B2F, #FF7F00, #C9A86A);
        z-index: -1;
        animation: rotate 3s linear infinite;
      }

      @keyframes pulse {
        0%,
        100% {
          transform: scale(1);
        }
        50% {
          transform: scale(1.05);
        }
      }

      .user-info {
        flex: 1;
        min-width: 250px;
      }

      .username {
        font-size: 1.75rem;
        font-weight: 700;
        letter-spacing: -0.01em;
        margin-bottom: 10px;
        color: #0D3B66;
        cursor: pointer;
        line-height: 1.3;
      }

      .level-info {
        font-size: 1.05rem;
        color: #2C3E50;
        margin-bottom: 18px;
        letter-spacing: 0.01em;
        font-weight: 500;
      }

      .progress-container {
        position: relative;
        width: 100%;
        height: 14px;
        background: rgba(13, 59, 102, 0.1);
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) inset;
      }

      .progress-fill {
        height: 100%;
        background: linear-gradient(90deg, #558B2F, #6B8E23, #FF7F00, #FFA500);
        background-size: 200% 100%;
        animation: progressGradient 3s ease infinite;
        border-radius: 8px;
        transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        box-shadow: 0 0 12px rgba(85, 139, 47, 0.4);
      }

      @keyframes progressGradient {
        0%,
        100% {
          background-position: 0% 50%;
        }
        50% {
          background-position: 100% 50%;
        }
      }

      .progress-fill::before {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(
          90deg,
          transparent,
          rgba(255, 255, 255, 0.4),
          transparent
        );
        animation: progressShine 2s ease-in-out infinite;
      }

      @keyframes progressShine {
        0% {
          left: -100%;
        }
        100% {
          left: 100%;
        }
      }

      .stats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 20px;
        flex: 1;
      }

      .stat-item {
        text-align: center;
        padding: 24px;
        background: rgba(255, 255, 255, 0.8);
        border-radius: 20px;
        border: 1px solid rgba(13, 59, 102, 0.15);
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05),
          0 0 0 1px rgba(233, 240, 255, 0.5) inset;
      }

      .stat-item:hover {
        transform: translateY(-8px) scale(1.02);
        background: rgba(255, 255, 255, 0.95);
        border-color: rgba(13, 59, 102, 0.25);
        box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1),
          0 0 0 1px rgba(233, 240, 255, 0.8) inset;
      }

      .stat-value {
        font-size: 2rem;
        font-weight: 800;
        letter-spacing: -0.02em;
        color: #0D3B66;
        margin-bottom: 8px;
        line-height: 1.2;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
      }

      .stat-label {
        font-size: 0.95rem;
        color: #2C3E50;
        font-weight: 600;
        letter-spacing: 0.02em;
        text-transform: uppercase;
        line-height: 1.3;
      }

      /* Floating Action Buttons */
      .quick-actions {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
        margin-bottom: 50px;
      }

      .action-btn {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border: 1px solid rgba(13, 59, 102, 0.15);
        border-radius: 24px;
        padding: 32px 28px;
        cursor: pointer;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        text-align: center;
        position: relative;
        overflow: hidden;
        animation: fadeInUp 1s ease-out;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08),
          0 0 0 1px rgba(233, 240, 255, 0.5) inset;
      }

      .action-btn:hover {
        transform: translateY(-12px) scale(1.03);
        background: rgba(255, 255, 255, 1);
        border-color: rgba(13, 59, 102, 0.3);
        box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12),
          0 0 0 1px rgba(233, 240, 255, 0.8) inset;
      }

      .action-btn:active {
        transform: translateY(-8px) scale(1.01);
        transition: all 0.15s ease;
      }

      .action-btn:focus {
        outline: none;
        box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4),
          0 0 0 3px rgba(233, 133, 11, 0.3),
          0 0 0 1px rgba(255, 255, 255, 0.1) inset;
      }

      .action-btn::before {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(
          90deg,
          transparent,
          rgba(13, 59, 102, 0.05),
          transparent
        );
        transition: left 0.5s ease;
      }

      .action-btn:hover::before {
        left: 100%;
      }

      .action-icon {
        font-size: 3rem;
        margin-bottom: 15px;
        display: block;
        animation: bounce 2s ease-in-out infinite;
      }

      @keyframes bounce {
        0%,
        20%,
        50%,
        80%,
        100% {
          transform: translateY(0);
        }
        40% {
          transform: translateY(-10px);
        }
        60% {
          transform: translateY(-5px);
        }
      }

      .action-title {
        font-weight: 700;
        font-size: 1.3rem;
        letter-spacing: -0.01em;
        margin-bottom: 10px;
        color: #0D3B66;
        line-height: 1.3;
      }

      .action-desc {
        font-size: 1rem;
        color: #2C3E50;
        line-height: 1.5;
        letter-spacing: 0.01em;
      }

      /* Enhanced Games Grid with Premium 3D Effects */
      /* Game Filters */
      .game-filters {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
        margin-bottom: 30px;
        padding: 0 10px;
      }

      .filter-btn {
        padding: 10px 24px;
        border: 2px solid rgba(13, 59, 102, 0.2);
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.7);
        color: #0D3B66;
        font-weight: 600;
        font-size: 0.95rem;
        cursor: pointer;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
        white-space: nowrap;
      }

      .filter-btn:hover {
        background: rgba(13, 59, 102, 0.1);
        border-color: rgba(13, 59, 102, 0.4);
        transform: translateY(-2px);
      }

      .filter-btn.active {
        background: linear-gradient(135deg, #0D3B66, #1a5a8a);
        color: white;
        border-color: #0D3B66;
        box-shadow: 0 4px 12px rgba(13, 59, 102, 0.3);
      }

      .game-card {
        transition: opacity 0.3s ease, transform 0.3s ease;
        will-change: opacity, transform;
      }

      .game-card.hidden {
        display: none !important;
      }

      .no-results-message {
        text-align: center;
        padding: 40px 20px;
        color: rgba(13, 59, 102, 0.6);
        font-size: 1.1rem;
        background: rgba(255, 255, 255, 0.7);
        border-radius: 16px;
        margin: 20px 0;
        backdrop-filter: blur(10px);
      }

      .show-all-btn {
        will-change: transform;
      }

      /* Collapsible Sections for Mobile */
      .collapsible-section {
        position: relative;
      }

      .collapsible-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
      }

      .collapse-toggle {
        background: none;
        border: none;
        font-size: 1.2rem;
        color: #0D3B66;
        cursor: pointer;
        padding: 8px;
        transition: transform 0.3s ease;
        display: none;
      }

      .collapse-toggle.active .collapse-icon {
        transform: rotate(180deg);
      }

      .collapse-icon {
        display: inline-block;
        transition: transform 0.3s ease;
      }

      .collapsible-content {
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease;
      }

      .mobile-only {
        display: none;
      }

      @media (max-width: 768px) {
        .mobile-only {
          display: block;
        }

        .collapsible-content {
          max-height: 2000px;
          opacity: 1;
        }

        .collapsible-content.collapsed {
          max-height: 0;
          opacity: 0;
          padding-top: 0;
          padding-bottom: 0;
          margin: 0;
        }

        .collapse-toggle {
          display: block;
        }

        .challenges-header {
          cursor: pointer;
        }
      }

      .games-section {
        margin-bottom: 60px;
        position: relative;
      }

      /* Donation Banner */
      .donation-banner {
        background: linear-gradient(135deg, rgba(13, 59, 102, 0.05) 0%, rgba(85, 139, 47, 0.05) 50%, rgba(255, 127, 0, 0.05) 100%);
        border: 2px solid rgba(13, 59, 102, 0.15);
        border-radius: 24px;
        padding: 28px 32px;
        margin-bottom: 40px;
        box-shadow: 0 8px 32px rgba(13, 59, 102, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        position: relative;
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      }

      .donation-banner::before {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        animation: shimmer 3s ease-in-out infinite;
      }

      @keyframes shimmer {
        0% { left: -100%; }
        100% { left: 100%; }
      }

      .donation-banner:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 40px rgba(13, 59, 102, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
        border-color: rgba(13, 59, 102, 0.25);
      }

      .donation-content {
        display: flex;
        align-items: center;
        gap: 20px;
        margin-bottom: 16px;
        flex-wrap: wrap;
      }

      .donation-icon {
        font-size: 3rem;
        animation: heartbeat 2s ease-in-out infinite;
        flex-shrink: 0;
      }

      @keyframes heartbeat {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.1); }
      }

      .donation-text {
        flex: 1;
        min-width: 250px;
      }

      .donation-title {
        font-size: 1.5rem;
        font-weight: 800;
        color: #0D3B66;
        margin-bottom: 8px;
        letter-spacing: -0.02em;
        line-height: 1.3;
      }

      .donation-message {
        font-size: 1rem;
        color: rgba(13, 59, 102, 0.8);
        line-height: 1.5;
        font-weight: 500;
      }

      .donation-btn {
        background: linear-gradient(135deg, #FF7F00, #ff9500);
        color: white;
        border: none;
        border-radius: 16px;
        padding: 14px 28px;
        font-size: 1rem;
        font-weight: 700;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 10px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 4px 16px rgba(255, 127, 0, 0.3);
        flex-shrink: 0;
        position: relative;
        overflow: hidden;
      }

      .donation-btn::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
      }

      .donation-btn:hover::before {
        width: 300px;
        height: 300px;
      }

      .donation-btn:hover {
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 6px 24px rgba(255, 127, 0, 0.4);
      }

      .donation-btn:active {
        transform: translateY(0) scale(0.98);
      }

      .donation-btn-text {
        position: relative;
        z-index: 1;
      }

      .donation-btn-icon {
        position: relative;
        z-index: 1;
        font-size: 1.2rem;
        transition: transform 0.3s ease;
      }

      .donation-btn:hover .donation-btn-icon {
        transform: translateX(4px);
      }

      .donation-impact {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        padding-top: 16px;
        border-top: 1px solid rgba(13, 59, 102, 0.1);
        flex-wrap: wrap;
        font-size: 0.9rem;
      }

      .impact-stat {
        font-weight: 800;
        color: #558B2F;
        font-size: 1.1rem;
      }

      .impact-label {
        color: rgba(13, 59, 102, 0.7);
        font-weight: 500;
      }

      .impact-divider {
        color: rgba(13, 59, 102, 0.3);
        font-weight: 300;
      }

      @media (max-width: 768px) {
        .donation-banner {
          padding: 20px 24px;
          margin-bottom: 30px;
        }

        .donation-content {
          flex-direction: column;
          align-items: center;
          gap: 16px;
          text-align: center;
        }

        .donation-icon {
          font-size: 2.5rem;
        }

        .donation-text {
          text-align: center;
          width: 100%;
        }

        .donation-title {
          font-size: 1.3rem;
          text-align: center;
        }

        .donation-message {
          font-size: 0.95rem;
          text-align: center;
        }

        .donation-btn {
          width: 100%;
          justify-content: center;
        }

        .donation-impact {
          font-size: 0.85rem;
          gap: 8px;
        }

        .impact-stat {
          font-size: 1rem;
        }
      }

      @media (max-width: 480px) {
        .donation-banner {
          padding: 18px 20px;
        }

        .donation-content {
          align-items: center;
          text-align: center;
        }

        .donation-text {
          text-align: center;
        }

        .donation-title {
          font-size: 1.15rem;
          text-align: center;
        }

        .donation-message {
          font-size: 0.9rem;
          text-align: center;
        }

        .donation-impact {
          flex-direction: column;
          gap: 6px;
          align-items: center;
          text-align: center;
        }

        .impact-divider {
          display: none;
        }
      }

      .games-section::before {
        content: "";
        position: absolute;
        top: -20px;
        left: -20px;
        right: -20px;
        bottom: -20px;
        background: radial-gradient(
            circle at 30% 70%,
            rgba(85, 139, 47, 0.08) 0%,
            transparent 50%
          ),
          radial-gradient(
            circle at 70% 30%,
            rgba(255, 127, 0, 0.08) 0%,
            transparent 50%
          );
        border-radius: 40px;
        z-index: -1;
        animation: sectionGlow 8s ease-in-out infinite alternate;
      }

      @keyframes sectionGlow {
        0% {
          opacity: 0.3;
          transform: scale(0.98);
        }
        100% {
          opacity: 0.6;
          transform: scale(1.02);
        }
      }

      .section-title {
        font-size: 3.25rem;
        font-weight: 900;
        letter-spacing: -0.03em;
        text-align: center;
        margin-bottom: 20px;
        background: linear-gradient(135deg, #0D3B66, #558B2F, #FF7F00);
        background-size: 300% 300%;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        position: relative;
        animation: titleGradient 4s ease-in-out infinite;
        text-shadow: 0 2px 10px rgba(13, 59, 102, 0.2);
        line-height: 1.2;
      }

      @keyframes titleGradient {
        0%,
        100% {
          background-position: 0% 50%;
        }
        50% {
          background-position: 100% 50%;
        }
      }

      .section-title::before {
        content: "🎮";
        position: absolute;
        top: -60px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 3rem;
        animation: titleIconBounce 3s ease-in-out infinite;
      }

      @keyframes titleIconBounce {
        0%,
        100% {
          transform: translateX(-50%) translateY(0px) rotate(0deg);
        }
        50% {
          transform: translateX(-50%) translateY(-15px) rotate(10deg);
        }
      }

      .section-title::after {
        content: "";
        position: absolute;
        bottom: -15px;
        left: 50%;
        transform: translateX(-50%);
        width: 150px;
        height: 6px;
        background: linear-gradient(90deg, #558B2F, #FF7F00, #558B2F);
        border-radius: 3px;
        animation: underlineGlow 2s ease-in-out infinite alternate;
      }

      @keyframes underlineGlow {
        0% {
          box-shadow: 0 0 10px rgba(85, 139, 47, 0.4);
        }
        100% {
          box-shadow: 0 0 25px rgba(255, 127, 0, 0.6);
        }
      }

      .games-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 40px;
        perspective: 1200px;
        padding: 24px;
      }

      .game-card {
        background: linear-gradient(
          145deg,
          rgba(255, 255, 255, 0.98),
          rgba(255, 255, 255, 0.95)
        );
        backdrop-filter: blur(28px);
        -webkit-backdrop-filter: blur(28px);
        border: 1px solid rgba(13, 59, 102, 0.15);
        background-clip: padding-box;
        border-radius: 32px;
        padding: 36px;
        cursor: pointer;
        transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        position: relative;
        overflow: hidden;
        transform-style: preserve-3d;
        animation: fadeInUp 1s ease-out;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08),
          0 0 0 1px rgba(233, 240, 255, 0.5) inset;
      }

      .game-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(
          135deg,
          rgba(85, 139, 47, 0.05) 0%,
          rgba(255, 127, 0, 0.05) 50%,
          rgba(233, 240, 255, 0.3) 100%
        );
        opacity: 0;
        transition: opacity 0.4s ease;
        border-radius: 28px;
      }

      .game-card::after {
        content: "";
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        background: linear-gradient(45deg, #558B2F, #FF7F00, #558B2F, #FF7F00);
        background-size: 400% 400%;
        border-radius: 30px;
        z-index: -1;
        opacity: 0;
        animation: borderGlow 3s ease-in-out infinite;
        transition: opacity 0.4s ease;
      }

      @keyframes borderGlow {
        0%,
        100% {
          background-position: 0% 50%;
        }
        50% {
          background-position: 100% 50%;
        }
      }

      .game-card:hover {
        transform: translateY(-24px) rotateX(8deg) rotateY(8deg) scale(1.03);
        background: linear-gradient(
          145deg,
          rgba(255, 255, 255, 1),
          rgba(255, 255, 255, 0.98)
        );
        border-color: rgba(13, 59, 102, 0.3);
        box-shadow: 0 40px 80px rgba(0, 0, 0, 0.12),
          0 20px 40px rgba(85, 139, 47, 0.2),
          0 0 0 1px rgba(233, 240, 255, 0.8) inset;
      }

      .game-card:active {
        transform: translateY(-18px) rotateX(6deg) rotateY(6deg) scale(1.01);
        transition: all 0.2s ease;
      }

      .game-card:focus {
        outline: none;
        box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45),
          0 20px 40px rgba(16, 110, 60, 0.35), 0 0 0 3px rgba(233, 133, 11, 0.3),
          0 0 0 1px rgba(255, 255, 255, 0.12) inset;
      }

      .game-card:hover::before {
        opacity: 1;
      }

      .game-card:hover::after {
        opacity: 1;
      }

      .game-icon-container {
        position: relative;
        text-align: center;
        margin-bottom: 25px;
        height: 120px;
        display: flex;
        align-items: center;
        justify-content: center;
      }

      .game-icon {
        font-size: 5rem;
        display: block;
        position: relative;
        animation: gameIconFloat 4s ease-in-out infinite;
        filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
        transition: all 0.4s ease;
      }

      .game-card:hover .game-icon {
        transform: scale(1.1) rotate(5deg);
        filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.4));
      }

      .game-icon-container::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100px;
        height: 100px;
        background: radial-gradient(
          circle,
          rgba(255, 255, 255, 0.1) 0%,
          transparent 70%
        );
        border-radius: 50%;
        animation: iconGlow 3s ease-in-out infinite alternate;
      }

      @keyframes iconGlow {
        0% {
          transform: translate(-50%, -50%) scale(0.8);
          opacity: 0.3;
        }
        100% {
          transform: translate(-50%, -50%) scale(1.2);
          opacity: 0.6;
        }
      }

      @keyframes gameIconFloat {
        0%,
        100% {
          transform: translateY(0px) rotate(0deg);
        }
        25% {
          transform: translateY(-8px) rotate(2deg);
        }
        50% {
          transform: translateY(-12px) rotate(0deg);
        }
        75% {
          transform: translateY(-8px) rotate(-2deg);
        }
      }

      .game-title {
        font-size: 1.85rem;
        font-weight: 800;
        letter-spacing: -0.02em;
        margin-bottom: 18px;
        text-align: center;
        color: #0D3B66;
        position: relative;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        line-height: 1.3;
      }

      .game-desc {
        font-size: 1.1rem;
        color: #2C3E50;
        margin-bottom: 0;
        text-align: center;
        line-height: 1.65;
        font-weight: 400;
        letter-spacing: 0.01em;
      }

      /* Special effects for different game cards */
      .game-card:nth-child(1) {
        animation-delay: 0.1s;
      }

      .game-card:nth-child(2) {
        animation-delay: 0.2s;
      }

      .game-card:nth-child(3) {
        animation-delay: 0.3s;
      }

      .game-card:nth-child(4) {
        animation-delay: 0.4s;
      }

      .game-card:nth-child(1):hover {
        box-shadow: 0 35px 70px rgba(0, 0, 0, 0.12),
          0 15px 35px rgba(13, 59, 102, 0.2);
      }

      .game-card:nth-child(2):hover {
        box-shadow: 0 35px 70px rgba(0, 0, 0, 0.12),
          0 15px 35px rgba(85, 139, 47, 0.2);
      }

      .game-card:nth-child(3):hover {
        box-shadow: 0 35px 70px rgba(0, 0, 0, 0.12),
          0 15px 35px rgba(255, 127, 0, 0.2);
      }

      .game-card:nth-child(4):hover {
        box-shadow: 0 35px 70px rgba(0, 0, 0, 0.12),
          0 15px 35px rgba(201, 168, 106, 0.2);
      }

      /* Impact Section with Animated Counters */
      .impact-section {
        padding: 50px 40px;
        margin-bottom: 50px;
        text-align: center;
        position: relative;
        overflow: hidden;
      }

      .impact-section::before {
        content: "";
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(
          circle,
          rgba(13, 59, 102, 0.03) 0%,
          transparent 70%
        );
        animation: rotate 30s linear infinite;
      }

      .impact-title {
        font-size: 2.25rem;
        font-weight: 800;
        letter-spacing: -0.02em;
        margin-bottom: 40px;
        color: #0D3B66;
        position: relative;
        line-height: 1.2;
      }

      .impact-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 28px;
        margin-bottom: 35px;
      }

      .impact-item {
        padding: 28px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-radius: 24px;
        border: 1px solid rgba(13, 59, 102, 0.15);
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08),
          0 0 0 1px rgba(233, 240, 255, 0.5) inset;
      }

      .impact-item:hover {
        transform: translateY(-8px) scale(1.02);
        background: rgba(255, 255, 255, 1);
        border-color: rgba(13, 59, 102, 0.25);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12),
          0 0 0 1px rgba(233, 240, 255, 0.8) inset;
      }

      .impact-value {
        font-size: 2.5rem;
        font-weight: 900;
        letter-spacing: -0.03em;
        color: #0D3B66;
        margin-bottom: 10px;
        line-height: 1.2;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
      }

      .impact-label {
        font-size: 1.05rem;
        color: #2C3E50;
        font-weight: 600;
        letter-spacing: 0.01em;
        line-height: 1.4;
      }

      .impact-btn {
        background: linear-gradient(135deg, #558B2F, #FF7F00);
        color: white;
        border: none;
        border-radius: 50px;
        padding: 15px 40px;
        font-weight: 700;
        font-size: 1.1rem;
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(85, 139, 47, 0.3);
      }

      .impact-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 40px rgba(85, 139, 47, 0.4);
      }

      .impact-btn::before {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(
          90deg,
          transparent,
          rgba(255, 255, 255, 0.3),
          transparent
        );
        transition: left 0.5s ease;
      }

      .impact-btn:hover::before {
        left: 100%;
      }

      /* Enhanced Footer */
      .footer {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
        backdrop-filter: blur(20px);
        border-radius: 24px;
        padding: 40px 30px 30px;
        text-align: center;
        border: 1px solid rgba(13, 59, 102, 0.1);
        position: relative;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(13, 59, 102, 0.08);
      }

      .footer::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(
          90deg,
          transparent,
          rgba(13, 59, 102, 0.2),
          rgba(85, 139, 47, 0.3),
          rgba(13, 59, 102, 0.2),
          transparent
        );
      }

      .footer-content {
        display: flex;
        flex-direction: column;
        gap: 24px;
        margin-bottom: 24px;
      }

      .footer-primary-links {
        display: flex;
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
      }

      .footer-action-links {
        display: flex;
        justify-content: center;
        gap: 32px;
        flex-wrap: wrap;
      }

      .footer-link {
        color: #2C3E50;
        text-decoration: none;
        font-weight: 500;
        font-size: 0.95rem;
        transition: all 0.3s ease;
        position: relative;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 12px;
        border-radius: 12px;
      }

      .footer-link-primary {
        background: linear-gradient(135deg, rgba(13, 59, 102, 0.08) 0%, rgba(13, 59, 102, 0.05) 100%);
        padding: 12px 20px;
        font-weight: 600;
        border: 1px solid rgba(13, 59, 102, 0.15);
      }

      .footer-link-fundraising {
        background: linear-gradient(135deg, rgba(255, 127, 0, 0.12) 0%, rgba(255, 165, 0, 0.08) 100%);
        padding: 12px 20px;
        font-weight: 600;
        border: 1px solid rgba(255, 127, 0, 0.2);
        color: #D2691E;
      }

      .footer-link-fundraising:hover {
        background: linear-gradient(135deg, rgba(255, 127, 0, 0.2) 0%, rgba(255, 165, 0, 0.15) 100%);
        border-color: rgba(255, 127, 0, 0.4);
        color: #B8860B;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(255, 127, 0, 0.2);
      }

      .footer-link-icon {
        font-size: 1.1rem;
        display: inline-block;
        transition: transform 0.3s ease;
      }

      .footer-link:hover .footer-link-icon {
        transform: scale(1.15) rotate(5deg);
      }

      .footer-link:hover {
        color: #0D3B66;
        transform: translateY(-2px);
        background: rgba(13, 59, 102, 0.1);
      }

      .footer-link-primary:hover {
        background: linear-gradient(135deg, rgba(13, 59, 102, 0.15) 0%, rgba(13, 59, 102, 0.1) 100%);
        box-shadow: 0 4px 12px rgba(13, 59, 102, 0.15);
      }

      .footer-link::after {
        content: "";
        position: absolute;
        bottom: 4px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 2px;
        background: linear-gradient(90deg, #558B2F, #FF7F00);
        transition: width 0.3s ease;
        border-radius: 2px;
      }

      .footer-link-primary::after,
      .footer-link-fundraising::after {
        display: none;
      }

      .footer-link:not(.footer-link-primary):not(.footer-link-fundraising):hover::after {
        width: calc(100% - 24px);
      }

      .footer-divider {
        height: 1px;
        background: linear-gradient(
          90deg,
          transparent,
          rgba(13, 59, 102, 0.15),
          transparent
        );
        margin: 0 auto 20px;
        max-width: 400px;
      }

      .copyright {
        font-size: 0.9rem;
        color: #64748B;
        font-weight: 400;
        line-height: 1.6;
      }

      /* Mobile Navigation Styles - Hamburger menu with all items (tablet and mobile) */
      @media (max-width: 1023px) {
        .nav-content {
          padding: 10px 15px;
          gap: 12px;
          flex-wrap: nowrap;
          align-items: center;
        }

        .nav-brand {
          font-size: 1.2rem;
          order: 1;
          flex-shrink: 0;
        }

        .nav-search-container {
          order: 2;
          flex: 1;
          min-width: 0;
          max-width: none;
          position: relative;
        }

        .nav-search {
          font-size: 0.85rem;
          padding: 6px 12px;
          padding-right: 32px;
        }

        .nav-search-toggle {
          display: block;
          right: 6px;
          font-size: 1rem;
        }

        /* Hide desktop navigation elements initially - show via toggle */
        .nav-profile,
        .global-volume {
          display: none;
        }

        .nav-links {
          order: 3;
          position: fixed;
          top: 60px;
          left: 0;
          right: 0;
          background: rgba(255, 255, 255, 0.98);
          backdrop-filter: blur(12px);
          flex-direction: column;
          padding: 20px;
          gap: 12px;
          border-bottom: 1px solid rgba(13, 59, 102, 0.1);
          transform: translateY(-100%);
          opacity: 0;
          visibility: hidden;
          transition: all 0.3s ease;
          z-index: 9999;
          max-height: calc(100vh - 60px);
          overflow-y: auto;
          display: flex; /* Show as flex but hidden via transform/opacity */
        }

        .nav-links.active {
          transform: translateY(0);
          opacity: 1;
          visibility: visible;
        }

        .nav-link {
          width: 100%;
          text-align: left;
          padding: 12px;
          font-size: 0.9rem;
        }

        .nav-link-dropdown {
          width: 100%;
        }

        .nav-dropdown-menu {
          position: static;
          margin-top: 0;
          margin-left: 20px;
          box-shadow: none;
          border: none;
          border-top: 1px solid rgba(13, 59, 102, 0.1);
          border-radius: 0;
          background: rgba(13, 59, 102, 0.03);
          display: none;
          opacity: 1;
          visibility: visible;
          transform: none;
        }

        .nav-link-dropdown.active .nav-dropdown-menu {
          display: block;
        }

        .nav-dropdown-item {
          padding: 10px 12px;
          font-size: 0.85rem;
        }

        .nav-profile {
          order: 4;
          width: 100%;
          border-left: none;
          border-right: none;
          border-top: 1px solid rgba(13, 59, 102, 0.1);
          padding: 15px 20px;
          margin-top: 0;
          display: none;
          flex-direction: column;
          gap: 12px;
          position: fixed;
          top: 60px;
          left: 0;
          right: 0;
          background: rgba(255, 255, 255, 0.98);
          backdrop-filter: blur(12px);
          transform: translateY(-100%);
          opacity: 0;
          visibility: hidden;
          transition: all 0.3s ease;
          z-index: 9998;
        }

        .nav-profile.active {
          display: flex;
          transform: translateY(0);
          opacity: 1;
          visibility: visible;
        }

        .nav-avatar {
          width: 50px;
          height: 50px;
          font-size: 1.2rem;
          align-self: center;
        }

        .nav-user-info {
          text-align: center;
        }

        .nav-username {
          font-size: 1rem;
          max-width: none;
        }

        .nav-level-info {
          font-size: 0.85rem;
        }

        .nav-stats {
          gap: 12px;
          justify-content: center;
        }

        .nav-stat {
          min-width: 50px;
        }

        .nav-stat-value {
          font-size: 1rem;
        }

        .nav-stat-label {
          font-size: 0.7rem;
        }

        .global-volume {
          order: 5;
          width: 100%;
          border-top: 1px solid rgba(13, 59, 102, 0.1);
          padding: 15px 20px;
          margin-top: 0;
          display: none;
          justify-content: center;
          gap: 8px;
          flex-wrap: wrap;
          position: fixed;
          top: 60px;
          left: 0;
          right: 0;
          background: rgba(255, 255, 255, 0.98);
          backdrop-filter: blur(12px);
          transform: translateY(-100%);
          opacity: 0;
          visibility: hidden;
          transition: all 0.3s ease;
          z-index: 9997;
        }

        .global-volume.active {
          display: flex;
          transform: translateY(0);
          opacity: 1;
          visibility: visible;
        }

        .global-volume button {
          width: 36px;
          height: 36px;
          font-size: 14px;
        }

        .global-volume input[type="range"] {
          width: 70px;
        }

        .global-volume .global-label {
          font-size: 11px;
          padding: 0 4px;
        }

        .nav-toggle {
          display: flex;
          order: 3;
          margin-left: auto;
        }

        .game-filters {
          gap: 8px;
          padding: 0 5px;
        }

        .filter-btn {
          padding: 8px 16px;
          font-size: 0.85rem;
        }

      }

      /* Responsive Design */
      @media (max-width: 768px) {
        .container {
          padding: 15px;
        }

        /* Reduce heavy background effects on mobile to avoid scroll jank */
        .bg-animation,
        .bg-animation::before,
        .bg-animation::after {
          animation: none !important;
        }
        .geometric-shapes,
        .particles {
          display: none;
        }

        /* Mobile-only overflow guards */
        html {
          overflow-x: hidden;
          width: 100%;
        }
        *,
        *::before,
        *::after {
          box-sizing: border-box;
        }
        .container {
          max-width: 100%;
        }

        .logo {
          font-size: 3rem;
        }

        .profile-bar {
          flex-direction: column;
          text-align: center;
          gap: 15px;
          padding: 20px 15px;
        }

        .profile-bar .stats-grid {
          grid-template-columns: repeat(3, 1fr);
          gap: 10px;
        }

        .profile-bar .stat-item {
          padding: 10px 5px;
        }

        .profile-bar .stat-value {
          font-size: 1.2rem;
        }

        .profile-bar .stat-label {
          font-size: 0.75rem;
        }

        .stats-grid {
          grid-template-columns: repeat(2, 1fr);
        }

        .games-grid {
          grid-template-columns: 1fr;
        }

        .footer-content {
          gap: 20px;
        }

        .footer-primary-links {
          flex-direction: column;
          gap: 16px;
        }

        .footer-action-links {
          flex-direction: column;
          gap: 16px;
        }

        .footer-link-primary,
        .footer-link-fundraising {
          justify-content: center;
        }
      }

      /* Extra-tight layout on very small screens */
      @media (max-width: 360px) {
        .nav-content {
          padding: 8px 10px;
          gap: 6px;
        }

        .nav-brand {
          font-size: 1rem;
        }

        .nav-link {
          padding: 5px 8px;
          font-size: 0.75rem;
        }

        .nav-avatar {
          width: 28px;
          height: 28px;
          font-size: 0.75rem;
        }

        .nav-username {
          font-size: 0.8rem;
          max-width: 80px;
        }

        .nav-stat {
          min-width: 30px;
        }

        .nav-stat-value {
          font-size: 0.75rem;
        }

        .nav-stat-label {
          font-size: 0.55rem;
        }

        .global-volume input[type="range"] {
          width: 40px;
        }

        body {
          padding-top: 150px;
        }

        .game-card {
          padding: 25px;
        }
      }

      /* Honor iOS prefers-reduced-motion */
      @media (prefers-reduced-motion: reduce) {
        html,
        body {
          scroll-behavior: auto;
        }
        .bg-animation,
        .bg-animation::before,
        .bg-animation::after,
        .geometric-shapes,
        .particles,
        .animate-on-scroll,
        .game-icon,
        .logo {
          animation: none !important;
        }
      }

      /* Scroll Animations */
      .animate-on-scroll {
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.6s ease;
      }

      .animate-on-scroll.animated {
        opacity: 1;
        transform: translateY(0);
      }

      /* New player hint */
      .hint-box {
        background: rgba(255, 243, 205, 0.8);
        border: 2px solid #FF7F00;
        border-radius: 15px;
        padding: 20px;
        margin-bottom: 30px;
        text-align: center;
      }

      .hint-box h3 {
        color: #0D3B66;
        margin-bottom: 10px;
      }

      /* Daily Challenges Styles */
      .daily-challenges {
        margin-bottom: 30px;
        padding: 25px;
      }

      .challenges-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        flex-wrap: wrap;
        gap: 10px;
      }

      .challenges-header h3 {
        margin: 0;
        font-size: 1.8rem;
        color: #0D3B66;
      }

      .audio-btn {
        background: rgba(255, 255, 255, 0.9);
        border: 2px solid rgba(13, 59, 102, 0.2);
        border-radius: 50%;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #0D3B66;
      }

      .audio-btn:hover {
        background: rgba(255, 255, 255, 1);
        border-color: #FF7F00;
        transform: scale(1.1);
      }

      .challenges-info {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        padding: 15px;
        background: rgba(255, 255, 255, 0.8);
        border-radius: 10px;
        flex-wrap: wrap;
        gap: 10px;
        border: 1px solid rgba(13, 59, 102, 0.1);
      }

      .challenge-timer {
        font-size: 1rem;
        color: #0D3B66;
        font-weight: 600;
      }

      .challenge-streak {
        font-size: 1rem;
        color: #FF7F00;
        font-weight: 600;
        animation: flameGlow 2s ease-in-out infinite;
      }

      @keyframes flameGlow {
        0%,
        100% {
          opacity: 1;
        }
        50% {
          opacity: 0.7;
        }
      }

      .challenges-list {
        display: flex;
        flex-direction: column;
        gap: 15px;
      }

      .challenge-item {
        background: rgba(255, 255, 255, 0.9);
        border: 2px solid rgba(13, 59, 102, 0.15);
        border-radius: 12px;
        padding: 15px;
        transition: all 0.3s ease;
      }

      .challenge-item:hover {
        background: rgba(255, 255, 255, 1);
        border-color: rgba(255, 127, 0, 0.4);
        transform: translateY(-2px);
      }

      .challenge-item.completed {
        border-color: #558B2F;
        background: rgba(85, 139, 47, 0.1);
      }

      .challenge-item.claimed {
        opacity: 0.6;
        border-color: rgba(13, 59, 102, 0.1);
      }

      .challenge-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
      }

      .challenge-description {
        font-size: 1.1rem;
        font-weight: 600;
        color: #0D3B66;
        display: flex;
        align-items: center;
        gap: 10px;
      }

      .challenge-progress-bar {
        background: rgba(13, 59, 102, 0.1);
        border-radius: 10px;
        height: 8px;
        overflow: hidden;
        margin-top: 10px;
      }

      .challenge-progress-fill {
        background: linear-gradient(90deg, #558B2F, #FF7F00);
        height: 100%;
        transition: width 0.5s ease;
        border-radius: 10px;
      }

      .challenge-progress-text {
        font-size: 0.9rem;
        color: #2C3E50;
        margin-top: 5px;
      }

      .challenge-claim-btn {
        background: linear-gradient(135deg, #558B2F, #6B8E23);
        color: white;
        border: none;
        border-radius: 8px;
        padding: 8px 16px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        margin-top: 10px;
      }

      .challenge-claim-btn:hover {
        background: linear-gradient(135deg, #6B8E23, #558B2F);
        transform: scale(1.05);
      }

      .challenge-claim-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
      }

      /* Audio Panel Styles */
      .audio-panel {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        border: 2px solid rgba(13, 59, 102, 0.2);
        border-radius: 20px;
        padding: 30px;
        z-index: 10000;
        min-width: 350px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
      }

      /* When panels/modals are open, prevent background from scrolling */
      body.no-scroll {
        overflow: hidden;
      }

      .audio-panel h4 {
        margin: 0 0 25px 0;
        font-size: 1.5rem;
        color: #0D3B66;
        text-align: center;
      }

      .audio-slider {
        margin-bottom: 25px;
        display: flex;
        align-items: center;
        gap: 15px;
      }

      .audio-slider label {
        font-size: 1.1rem;
        color: #0D3B66;
        font-weight: 600;
        min-width: 120px;
      }

      .audio-slider input[type="range"] {
        flex: 1;
        height: 6px;
        border-radius: 5px;
        background: rgba(13, 59, 102, 0.15);
        outline: none;
        -webkit-appearance: none;
        appearance: none;
      }

      .audio-slider input[type="range"]::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: #FF7F00;
        cursor: pointer;
        transition: all 0.3s ease;
      }
      .audio-slider input[type="range"]::-moz-range-thumb {
        appearance: none;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: #FF7F00;
        cursor: pointer;
        border: none;
        transition: all 0.3s ease;
      }

      .audio-slider input[type="range"]::-webkit-slider-thumb:hover {
        background: #558B2F;
        transform: scale(1.2);
      }

      .audio-slider input[type="range"]::-moz-range-thumb:hover {
        background: #558B2F;
        transform: scale(1.2);
      }

      .audio-slider button {
        background: rgba(255, 255, 255, 0.9);
        border: 2px solid rgba(13, 59, 102, 0.2);
        border-radius: 8px;
        padding: 8px 12px;
        font-size: 1.2rem;
        cursor: pointer;
        transition: all 0.3s ease;
        color: #0D3B66;
      }

      .audio-slider button:hover {
        background: rgba(255, 255, 255, 1);
        border-color: #FF7F00;
      }

      .close-panel-btn {
        width: 100%;
        background: linear-gradient(135deg, #558B2F, #6B8E23);
        color: white;
        border: none;
        border-radius: 10px;
        padding: 12px;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        margin-top: 10px;
      }

      .close-panel-btn:hover {
        background: linear-gradient(135deg, #FF7F00, #FF9500);
        transform: translateY(-2px);
      }

      @media (max-width: 768px) {
        .audio-panel {
          min-width: 90%;
          padding: 20px;
        }

        .challenges-info {
          flex-direction: column;
          align-items: flex-start;
        }

        .audio-slider {
          flex-direction: column;
          align-items: stretch;
        }

        .audio-slider label {
          min-width: auto;
        }
      }