      * {
          margin: 0;
          padding: 0;
          box-sizing: border-box;
      }

      body {
          font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
          background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #2d1810 100%);
          min-height: 100vh;
          color: white;
          overflow-x: hidden;
          position: relative;
          line-height: 1.6;
      }

      /* Animated Background */
      .bg-animation {
          position: fixed;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          z-index: -1;
          opacity: 0.1;
      }

      .bg-animation::before {
          content: '';
          position: absolute;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          background: 
              radial-gradient(circle at 25% 25%, #d4af37 0%, transparent 50%),
              radial-gradient(circle at 75% 75%, #cd7f32 0%, transparent 50%),
              radial-gradient(circle at 50% 50%, #b87333 0%, transparent 50%);
          animation: glow 8s ease-in-out infinite alternate;
      }

      @keyframes glow {
          0% { opacity: 0.3; transform: scale(1); }
          100% { opacity: 0.1; transform: scale(1.1); }
      }

      .container {
          max-width: 430px;
          margin: 0 auto;
          background: rgba(0, 0, 0, 0.9);
          backdrop-filter: blur(20px);
          border: 2px solid rgba(212, 175, 55, 0.4);
          box-shadow: 0 0 50px rgba(212, 175, 55, 0.2);
          min-height: 100vh;
          position: relative;
      }

      /* Desktop Full Width Layout */
      @media (min-width: 1024px) {
          .container {
              max-width: 100%;
              margin: 0;
              border: none;
              background: rgba(0, 0, 0, 0.95);
          }
      }

      /* Enhanced Header with Logo Space */
      .header {
          background: linear-gradient(45deg, #1a1a1a, #2d1810);
          padding: 15px 20px;
          position: relative;
          overflow: hidden;
          border-bottom: 3px solid #d4af37;
          display: flex;
          align-items: center;
          justify-content: space-between;
          min-height: 80px;
      }

      /* Desktop Header Layout */
      @media (min-width: 1024px) {
          .header {
              padding: 20px 40px;
              min-height: 100px;
          }
      }

      .header::before {
          content: '';
          position: absolute;
          top: 0;
          left: -100%;
          width: 200%;
          height: 100%;
          background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
          animation: sweep 3s infinite;
      }

      @keyframes sweep {
          0% { left: -100%; }
          100% { left: 100%; }
      }

      /* Logo Container - Can hold image or text */
      .logo-container {
          flex: 1;
          display: flex;
          align-items: center;
          justify-content: flex-start;
          position: relative;
          z-index: 2;
      }

      /* Text logo fallback */
      .logo {
          font-size: clamp(18px, 4vw, 28px);
          font-weight: 900;
          background: linear-gradient(45deg, #d4af37, #ffd700, #d4af37);
          -webkit-background-clip: text;
          -webkit-text-fill-color: transparent;
          text-shadow: 0 0 30px rgba(212, 175, 55, 0.8);
          display: flex;
          align-items: center;
          gap: 8px;
          animation: shine 2s infinite;
      }

      /* Image logo styles */
      .logo-image {
          max-height: 50px;
          max-width: 200px;
          width: auto;
          height: auto;
          object-fit: contain;
          filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.6));
          transition: all 0.3s ease;
      }

      .logo-image:hover {
          filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.8));
          transform: scale(1.05);
      }

      @keyframes shine {
          0%, 100% { filter: brightness(1); }
          50% { filter: brightness(1.3); }
      }

      .logo::before {
          content: '♛';
          font-size: clamp(20px, 5vw, 32px);
          animation: rotate 4s linear infinite;
      }

      @keyframes rotate {
          from { transform: rotate(0deg); }
          to { transform: rotate(360deg); }
      }

      .menu-btn {
          background: linear-gradient(45deg, #d4af37, #b87333);
          border: 2px solid rgba(212, 175, 55, 0.6);
          border-radius: 12px;
          padding: 12px 15px;
          color: #1a1a1a;
          cursor: pointer;
          font-weight: bold;
          font-size: 16px;
          transition: all 0.3s ease;
          box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
          position: relative;
          z-index: 2;
      }

      .menu-btn:hover {
          transform: translateY(-2px);
          box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
      }

      /* Hero Banner Section */
      .hero-banner {
          position: relative;
          width: 100%;
          height: auto;
          margin-bottom: 20px;
          overflow: hidden;
      }

      .hero-image {
          width: 100%;
          height: auto;
          max-height: 300px;
          object-fit: cover;
          display: block;
      }

      /* Desktop Hero Banner */
      @media (min-width: 1024px) {
          .hero-banner {
              margin: 0 40px 30px;
          }
          
          .hero-image {
              max-height: 400px;
          }
      }

      .hero-overlay {
          position: absolute;
          bottom: 0;
          left: 0;
          right: 0;
          background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
          padding: 30px 20px 20px;
          color: white;
      }

      .hero-title {
          font-size: clamp(24px, 6vw, 32px);
          font-weight: 800;
          margin-bottom: 10px;
          background: linear-gradient(45deg, #d4af37, #ffd700);
          -webkit-background-clip: text;
          -webkit-text-fill-color: transparent;
      }

      .hero-subtitle {
          font-size: clamp(14px, 3.5vw, 18px);
          opacity: 0.9;
      }

      /* Premium Welcome Banner */
      .welcome-banner {
          background: linear-gradient(45deg, #b87333, #d4af37, #cd7f32);
          margin: 20px;
          padding: 25px;
          border-radius: 20px;
          text-align: center;
          position: relative;
          overflow: hidden;
          border: 2px solid rgba(212, 175, 55, 0.4);
          box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
      }

      .welcome-banner::before {
          content: '';
          position: absolute;
          top: -50%;
          left: -50%;
          width: 200%;
          height: 200%;
          background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
          animation: shimmer 4s infinite;
      }

      @keyframes shimmer {
          0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
          100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
      }

      .welcome-text {
          font-size: clamp(16px, 4vw, 20px);
          font-weight: 700;
          margin-bottom: 10px;
          position: relative;
          z-index: 1;
          color: #1a1a1a;
      }

      .welcome-subtitle {
          font-size: clamp(12px, 3.5vw, 16px);
          position: relative;
          z-index: 1;
          color: #2a2a2a;
      }

      /* Enhanced Auth Buttons */
      .auth-buttons {
          display: flex;
          margin: 20px;
          gap: 15px;
          flex-wrap: wrap;
      }

      .auth-btn {
          flex: 1;
          min-width: 140px;
          padding: clamp(14px, 3vw, 18px);
          border: none;
          border-radius: 15px;
          font-weight: 700;
          cursor: pointer;
          transition: all 0.3s ease;
          text-transform: uppercase;
          letter-spacing: 1px;
          position: relative;
          overflow: hidden;
          font-size: clamp(12px, 3vw, 14px);
      }

      .login-btn {
          background: linear-gradient(45deg, #d4af37, #b87333);
          color: #1a1a1a;
          border: 2px solid rgba(212, 175, 55, 0.6);
          box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
      }

      .register-btn {
          background: rgba(205, 127, 50, 0.3);
          color: white;
          border: 2px solid rgba(205, 127, 50, 0.6);
          box-shadow: 0 5px 20px rgba(205, 127, 50, 0.2);
      }

      .auth-btn:hover {
          transform: translateY(-3px);
          box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
      }

      .auth-btn::before {
          content: '';
          position: absolute;
          top: 0;
          left: -100%;
          width: 100%;
          height: 100%;
          background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
          transition: left 0.5s;
      }

      .auth-btn:hover::before {
          left: 100%;
      }

      /* Superior Game Categories */
      .game-nav {
          display: grid;
          grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
          gap: 10px;
          background: rgba(0, 0, 0, 0.7);
          margin: 20px;
          border-radius: 25px;
          padding: 20px 15px;
          border: 2px solid rgba(212, 175, 55, 0.4);
          box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.1);
      }

      .nav-item {
          display: flex;
          flex-direction: column;
          align-items: center;
          gap: 8px;
          cursor: pointer;
          transition: all 0.4s ease;
          padding: 15px 10px;
          border-radius: 15px;
          position: relative;
      }

      .nav-item:hover {
          background: rgba(212, 175, 55, 0.2);
          transform: translateY(-5px) scale(1.05);
          box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
      }

      .nav-icon {
          font-size: clamp(20px, 5vw, 28px);
          color: #d4af37;
          font-family: serif;
          font-weight: bold;
          transition: all 0.3s ease;
      }

      .nav-item:hover .nav-icon {
          transform: scale(1.2);
          text-shadow: 0 0 15px rgba(212, 175, 55, 0.8);
      }

      .nav-label {
          font-size: clamp(10px, 2.5vw, 13px);
          font-weight: 600;
          text-align: center;
      }

      /* Thumbnail Gallery */
      .thumbnail-gallery {
          background: rgba(0, 0, 0, 0.8);
          margin: 20px;
          border-radius: 20px;
          padding: 25px;
          border: 2px solid rgba(212, 175, 55, 0.4);
          box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
      }

      .gallery-header {
          text-align: center;
          margin-bottom: 25px;
          color: #d4af37;
          font-weight: 700;
          font-size: clamp(16px, 4vw, 18px);
          position: relative;
      }

      .gallery-header::after {
          content: '';
          position: absolute;
          bottom: -8px;
          left: 50%;
          transform: translateX(-50%);
          width: 60px;
          height: 3px;
          background: linear-gradient(90deg, #d4af37, #cd7f32, #d4af37);
          border-radius: 2px;
      }

      .thumbnail-grid {
          display: grid;
          grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
          gap: 15px;
      }

      /* Desktop Thumbnail Grid */
      @media (min-width: 1024px) {
          .thumbnail-grid {
              grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
              gap: 20px;
          }
      }

      .thumbnail-item {
          aspect-ratio: 1;
          border-radius: 15px;
          overflow: hidden;
          border: 2px solid rgba(212, 175, 55, 0.4);
          cursor: pointer;
          transition: all 0.4s ease;
          background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
          display: flex;
          align-items: center;
          justify-content: center;
          position: relative;
      }

      .thumbnail-item:hover {
          border-color: rgba(212, 175, 55, 0.8);
          transform: scale(1.08) rotateY(5deg);
          box-shadow: 0 15px 40px rgba(212, 175, 55, 0.3);
      }

      .thumbnail-icon {
          font-size: clamp(18px, 4vw, 28px);
          color: #d4af37;
          font-weight: bold;
          transition: all 0.3s ease;
      }

      .thumbnail-item:hover .thumbnail-icon {
          transform: scale(1.3);
          text-shadow: 0 0 20px rgba(212, 175, 55, 0.8);
      }

      .thumbnail-label {
          position: absolute;
          bottom: 0;
          left: 0;
          right: 0;
          background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
          padding: 8px 4px;
          font-size: clamp(9px, 2.5vw, 11px);
          text-align: center;
          color: white;
          font-weight: 600;
      }

      /* Premium Featured Games */
      .featured-games {
          margin: 20px;
      }

      .section-title {
          font-size: clamp(18px, 4.5vw, 20px);
          font-weight: 800;
          margin-bottom: 20px;
          color: #d4af37;
          display: flex;
          align-items: center;
          gap: 12px;
          position: relative;
      }

      .section-title::before {
          content: '';
          width: 4px;
          height: 25px;
          background: linear-gradient(to bottom, #d4af37, #cd7f32);
          border-radius: 2px;
      }

      .games-grid {
          display: grid;
          grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
          gap: 18px;
      }

      /* Desktop Games Grid - Force 2x2 Layout */
      @media (min-width: 1024px) {
          .games-grid {
              grid-template-columns: repeat(2, 1fr);
              gap: 25px;
              max-width: 600px;
              margin: 0 auto;
          }
      }

      .game-card {
          background: rgba(255, 255, 255, 0.03);
          border-radius: 20px;
          padding: 25px 20px;
          text-align: center;
          cursor: pointer;
          transition: all 0.4s ease;
          border: 2px solid rgba(212, 175, 55, 0.3);
          position: relative;
          overflow: hidden;
      }

      .game-card::before {
          content: '';
          position: absolute;
          top: 0;
          left: 0;
          right: 0;
          bottom: 0;
          background: linear-gradient(45deg, transparent, rgba(212, 175, 55, 0.15), transparent);
          opacity: 0;
          transition: opacity 0.4s ease;
      }

      .game-card:hover::before {
          opacity: 1;
      }

      .game-card:hover {
          transform: translateY(-8px) scale(1.02);
          box-shadow: 
              0 20px 50px rgba(0, 0, 0, 0.5),
              0 0 30px rgba(212, 175, 55, 0.3);
          border-color: rgba(212, 175, 55, 0.7);
      }

      .game-icon {
          font-size: clamp(28px, 6vw, 36px);
          margin-bottom: 15px;
          position: relative;
          z-index: 1;
          color: #d4af37;
          font-weight: bold;
          transition: all 0.3s ease;
      }

      .game-card:hover .game-icon {
          transform: scale(1.2) rotate(5deg);
          text-shadow: 0 0 25px rgba(212, 175, 55, 0.8);
      }

      .game-title {
          font-weight: 700;
          margin-bottom: 8px;
          position: relative;
          z-index: 1;
          font-size: clamp(14px, 3.5vw, 16px);
      }

      .game-players {
          font-size: clamp(11px, 2.8vw, 13px);
          opacity: 0.8;
          position: relative;
          z-index: 1;
          color: #d4af37;
      }

      /* Side Menu */
      .side-menu {
          position: fixed;
          top: 0;
          right: -320px;
          width: 300px;
          height: 100vh;
          background: rgba(0, 0, 0, 0.95);
          backdrop-filter: blur(20px);
          border-left: 2px solid rgba(212, 175, 55, 0.4);
          z-index: 1000;
          transition: right 0.4s ease;
          padding: 25px;
          overflow-y: auto;
      }

      .side-menu.active {
          right: 0;
      }

      .menu-overlay {
          position: fixed;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          background: rgba(0, 0, 0, 0.7);
          z-index: 999;
          opacity: 0;
          visibility: hidden;
          transition: all 0.4s ease;
      }

      .menu-overlay.active {
          opacity: 1;
          visibility: visible;
      }

      .menu-header {
          display: flex;
          justify-content: space-between;
          align-items: center;
          margin-bottom: 35px;
          padding-bottom: 20px;
          border-bottom: 2px solid rgba(212, 175, 55, 0.4);
      }

      .menu-title {
          font-size: clamp(18px, 4vw, 22px);
          font-weight: 800;
          background: linear-gradient(45deg, #d4af37, #ffd700);
          -webkit-background-clip: text;
          -webkit-text-fill-color: transparent;
      }

      .menu-close {
          background: none;
          border: none;
          color: white;
          font-size: 28px;
          cursor: pointer;
          padding: 8px;
          border-radius: 8px;
          transition: all 0.3s ease;
      }

      .menu-close:hover {
          background: rgba(212, 175, 55, 0.2);
          transform: rotate(90deg);
      }

      .menu-items {
          list-style: none;
      }

      .menu-item {
          margin-bottom: 18px;
      }

      .menu-link {
          display: flex;
          align-items: center;
          gap: 18px;
          padding: 18px;
          color: white;
          text-decoration: none;
          border-radius: 15px;
          transition: all 0.4s ease;
          border: 2px solid transparent;
          position: relative;
          overflow: hidden;
      }

      .menu-link::before {
          content: '';
          position: absolute;
          top: 0;
          left: -100%;
          width: 100%;
          height: 100%;
          background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
          transition: left 0.5s;
      }

      .menu-link:hover::before {
          left: 100%;
      }

      .menu-link:hover {
          background: rgba(212, 175, 55, 0.2);
          border-color: rgba(212, 175, 55, 0.4);
          transform: translateX(8px);
      }

      .menu-icon {
          font-size: 20px;
          color: #d4af37;
          width: 25px;
          font-weight: bold;
      }

      .menu-text {
          font-weight: 600;
          font-size: clamp(14px, 3.5vw, 16px);
      }

      /* Bottom Navigation */
      .bottom-nav {
          position: fixed;
          bottom: 0;
          left: 50%;
          transform: translateX(-50%);
          width: 100%;
          max-width: 430px;
          background: rgba(0, 0, 0, 0.95);
          backdrop-filter: blur(20px);
          border-top: 2px solid rgba(212, 175, 55, 0.4);
          display: flex;
          justify-content: space-around;
          padding: 18px 10px;
      }

      /* Desktop Bottom Navigation */
      @media (min-width: 1024px) {
          .bottom-nav {
              display: none;
          }
      }

      .nav-bottom-item {
          display: flex;
          flex-direction: column;
          align-items: center;
          gap: 6px;
          cursor: pointer;
          transition: all 0.3s ease;
          padding: 10px;
          border-radius: 15px;
          flex: 1;
          text-decoration: none;
          color: white;
      }

      .nav-bottom-item:hover {
          background: rgba(212, 175, 55, 0.2);
          transform: translateY(-3px);
      }

      .nav-bottom-item.active {
          color: #d4af37;
          background: rgba(212, 175, 55, 0.15);
      }

      .nav-bottom-icon {
          font-size: clamp(18px, 4vw, 22px);
      }

      .nav-bottom-label {
          font-size: clamp(9px, 2.2vw, 11px);
          font-weight: 600;
      }

      /* Achievement Badge */
      .achievement-badge {
          position: absolute;
          top: 15px;
          right: 15px;
          background: linear-gradient(45deg, #cd7f32, #b87333);
          padding: 8px 15px;
          border-radius: 25px;
          font-size: clamp(9px, 2.2vw, 11px);
          font-weight: 700;
          animation: pulse-glow 3s ease-in-out infinite;
          border: 2px solid rgba(205, 127, 50, 0.6);
      }

      @keyframes pulse-glow {
          0%, 100% { 
              transform: scale(1);
              box-shadow: 0 0 10px rgba(205, 127, 50, 0.5);
          }
          50% { 
              transform: scale(1.05);
              box-shadow: 0 0 20px rgba(205, 127, 50, 0.8);
          }
      }

      /* Loading Animation */
      .loading-spinner {
          display: none;
          position: fixed;
          top: 50%;
          left: 50%;
          transform: translate(-50%, -50%);
          z-index: 1000;
      }

      .spinner {
          width: 50px;
          height: 50px;
          border: 4px solid rgba(255, 255, 255, 0.3);
          border-top: 4px solid #d4af37;
          border-radius: 50%;
          animation: spin 1s linear infinite;
      }

      @keyframes spin {
          0% { transform: rotate(0deg); }
          100% { transform: rotate(360deg); }
      }

      /* Desktop Content Layout */
      @media (min-width: 1024px) {
          .desktop-layout {
              display: grid;
              grid-template-columns: 1fr 3fr 1fr;
              gap: 30px;
              padding: 0 40px 120px;
              max-width: 1400px;
              margin: 0 auto;
          }
          
          .main-content {
              order: 2;
          }
          
          .sidebar-left {
              order: 1;
          }
          
          .sidebar-right {
              order: 3;
          }
          
          .welcome-banner,
          .auth-buttons {
              margin: 0 0 30px 0;
          }
          
          .game-nav,
          .featured-games {
              margin: 0 0 30px 0;
          }
          
          .thumbnail-gallery {
              margin: 0 0 30px 0;
          }
      }

      /* Mobile Responsive Styles */
      @media (max-width: 480px) {
          .container {
              max-width: 100%;
              border-left: none;
              border-right: none;
          }
          
          .header {
              padding: 12px 15px;
              min-height: 70px;
          }
          
          .auth-buttons {
              flex-direction: column;
              gap: 12px;
          }
          
          .auth-btn {
              min-width: unset;
          }
          
          .game-nav {
              grid-template-columns: repeat(4, 1fr);
              gap: 8px;
              padding: 15px 10px;
          }
          
          .nav-item {
              padding: 12px 8px;
          }
      }

      @media (min-width: 481px) and (max-width: 768px) {
          .container {
              max-width: 100%;
              border-left: none;
              border-right: none;
          }
      }

      @media (min-width: 769px) and (max-width: 1023px) {
          .container {
              max-width: 768px;
              margin: 0 auto;
          }
      }

      /* Desktop Side Menu Enhancements */
      @media (min-width: 1024px) {
          .side-menu {
              width: 400px;
              right: -420px;
              padding: 40px;
          }
          
          .header::after {
              content: 'Premium Gaming Platform';
              position: absolute;
              right: 40px;
              top: 50%;
              transform: translateY(-50%);
              color: #d4af37;
              font-weight: 600;
              font-size: 16px;
          }
      }