@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@400;700&display=swap');

    body {
      margin: 0;
      font-family: 'Kanit', sans-serif;
      background: linear-gradient(to bottom, #141414, #222222);
      margin: 0;        
    }

    .container {
      max-width: 550px;
      margin: auto;
      background: linear-gradient(250deg, #008bcb, #ef0df7, #0da1f7, #ef0df7);
      color: white;
      text-align: center;
      padding-bottom: 40px;
      border-radius: 0 0 10px 10px;
      box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    }

    .logo img {
      margin: 10px;
      width: 200px;
      height: 100%;
      object-fit: cover;

      animation: bounce 1s ease-in-out infinite;
    }

    @keyframes bounce {
      0%, 100% { transform: translateY(0); }
      50%      { transform: translateY(-25px); }
    }



       
    @keyframes slideGreen {
        0% { background-position: 0% 50%; }
        50% { background-position: 100% 50%; }
        100% { background-position: 0% 50%; }
      }
      
      @keyframes slideRedGreen {
        0% { background-position: 0% 50%; }
        50% { background-position: 100% 50%; }
        100% { background-position: 0% 50%; }
      }
      
      
      .btn-register {
        display: block;
        width: 85%;
        margin: 12px auto;
        padding: 14px;
        font-size: 1.02rem;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        font-weight: bold;
        text-align: center;
        color: white;
        text-decoration: none;
        background: linear-gradient(270deg, #fc7100, #ff0000, #e62e00, #ff0000);
        background-size: 400% 400%;
        animation: slideGreen 6s ease infinite;
        transition: transform 0.2s ease-in-out;
      }
      
      .btn-register:hover {
        transform: scale(1.01);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
      }
      
     
      .btn-inbox {
        display: block;
        width: 85%;
        margin: 12px auto;
        padding: 14px;
        font-size: 1.02rem;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        font-weight: bold;
        text-align: center;
        color: white;
        text-decoration: none;
        background: linear-gradient(270deg, #3bfc00, #009e1a, #00c853, #16bb00);
        background-size: 400% 400%;
        animation: slideRedGreen 6s ease infinite;
        transition: transform 0.2s ease-in-out;
      }
      
      .btn-inbox:hover {
        transform: scale(1.01);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
      }
      
      .slider-fade {
        position: relative;
        width: 100%;
        max-width: 500px;
        height: 300px; 
        margin: 30px auto;
        overflow: hidden;
        border-radius: 12px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);

        display: flex;
        justify-content: center;
        align-items: center;
      }
      
      .fade-slide {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover; /* รูปเต็มกรอบ ไม่ยืด */
        opacity: 0;
        animation: fadeAnimation 15s infinite;
        transition: opacity 12s ease-in-out;
        border-radius: 12px;
      }
      
      /* กำหนดลำดับเวลาให้ภาพแต่ละภาพ */
      .fade-slide:nth-child(1) { animation-delay: 0s; }
      .fade-slide:nth-child(2) { animation-delay: 3s; }
      .fade-slide:nth-child(3) { animation-delay: 6s; }
      .fade-slide:nth-child(4) { animation-delay: 9s; }
      .fade-slide:nth-child(5) { animation-delay: 12s; }
      
      /* keyframes สำหรับการเฟด */
      @keyframes fadeAnimation {
        0%   { opacity: 0; }
        8%   { opacity: 1; }
        20%  { opacity: 1; }
        28%  { opacity: 0; }
        100% { opacity: 0; }
      }
      
  
      .report-section {
        margin-top: 30px;
        text-align: center;
      }
      
      .report-header {
        background: linear-gradient(to right, #ff00ea, #04eafb);
        color: white;
        max-width: 400px;
        font-weight: bold;
        padding: 12px;
        font-size: 1.2rem;
        border-radius: 8px 8px 0 0;
        margin: 20px auto 10px auto;
        margin-bottom: 10px;
      }
      
      .report-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: center;
      }
      
      .notification {
        display: flex;
        align-items: center;
        background: #242121;
        border-radius: 12px;
        padding: 10px 15px;
        width: 95%;
        max-width: 400px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        gap: 12px;
        color: white;
      }
      
      .notification .icon {
        width: 40px;
        height: 40px;
        object-fit: contain;
        border-radius: 50%;
        background: white;
        padding: 4px;
      }
      
      .notification p {
        margin: 2px 0;
        font-size: 0.9rem;
        text-align: left;
      }
      
      .highlight {
        color: #e515a0;
        font-weight: bold;
      }
      
      

      
    .footer {
      font-size: 0.8rem;
      color: #bbb;
      margin-top: 60px;
    }


    .slider {
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      padding: 20px;
      position: relative;        
    }

    .slide {
      display: flex;
      white-space: nowrap;
      width: max-content;
      animation: scroll-left 60s linear infinite;
    }

    @keyframes scroll-left {
      0% { transform: translateX(0); }
      100% { transform: translateX(-50%); }
    }

    .game-card {
      flex: 0 0 auto;
      width: 130px;
      margin-right: 12px;
      background: #1a0e00;
      border-radius: 10px;
      padding: 10px;
      box-shadow: 0 0 20px rgba(255, 106, 248, 0.7), inset 0 0 10px rgba(0, 174, 255, 0.7);
      text-align: center;
      transition: transform 0.5s;
    }

    .game-card:hover {
      transform: scale(1.05);
    }

    .game-card img {
      width: 100%;
      border-radius: 6px;
    }

    .game-title {
      font-size: 14px;
      color: #00ffff;
      margin-top: 6px;
    }

    .game-percentage {
      font-size: 12px;
      color: #ffffff;
    }

    .percentage-bar {
      width: 100%;
      height: 6px;
      background: #444;
      border-radius: 3px;
      margin-top: 4px;
      overflow: hidden;
      position: relative;
    }

    .percentage-fill {
      height: 100%;
      background: linear-gradient(90deg, #ff00f2, #f9f9f9, #db49ee);
      box-shadow: 0 0 12px #ff00ff, 0 0 24px #009ee7;
      transition: width 1s ease-in-out;
      position: relative;
      overflow: hidden;
    }

    .percentage-fill::after {
      content: '';
      position: absolute;
      top: 0;
      left: -50%;
      height: 100%;
      width: 50%;
      background: linear-gradient(to right, transparent, rgba(255,255,255,0.5), transparent);
      animation: shine 1.2s linear infinite;
    }

    @keyframes shine {
      0% { left: -50%; }
      100% { left: 100%; }
    }

    .bounce {
      animation: bounce 0.8s infinite alternate;
    }

    @keyframes bounce {
      from { transform: translateY(0); }
      to { transform: translateY(-6px); }
    }
    

    /* ✅ Responsive for mobile */
    @media (max-width: 480px) {
      .logo img {
        width: 150px;
      }
    
      .btn-register,
      .btn-inbox {
        font-size: 0.95rem;
        width: 85%;
      }
    
      .slider-fade {
        height: 200px;
        width: 90%;
      }
    
      .report-header {
        font-size: 1rem;
        padding: 10px;
        max-width: 85%;
      }
    
      .notification {
        width: 80%;
        font-size: 0.85rem;
      }
    }