@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, #0a0a0a, #220000);
             
    }

    .container {
      max-width: 550px;
      margin: auto;
      background: linear-gradient(to bottom, #2c0001, #2e0000,#850004, #000000);
      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 {
      padding-top: 40px;
      width: 350px;
      padding-bottom: 20px;
    }

       
    @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, #fc0000, #9e0000, #c80000, #bb0000);
        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: 320px; 
        margin: 30px auto;
        overflow: hidden;
        border-radius: 12px;
        box-shadow: 0 5px 5px rgba(124, 0, 0, 0.6);

        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, #e20000, #c01600);
        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: #d80000;
        font-weight: bold;
      }
      
      

      
    .footer {
      font-size: 0.9rem;
      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(236, 0, 0, 0.938), inset 0 0 10px rgba(255, 0, 0, 0.5);
      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: #ffffff;
      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, #ff0000, #a80000, #b60101);
      box-shadow: 0 0 12px #ff0000, 0 0 24px #9b0101;
      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: 270px;
      }
    
      .btn-register,
      .btn-inbox {
        font-size: 0.95rem;
        width: 85%;
      }
    
      .slider-fade {
        height: 230px;
        width: 90%;
      }
    
      .report-header {
        font-size: 1rem;
        padding: 10px;
        max-width: 85%;
      }
    
      .notification {
        width: 80%;
        font-size: 0.85rem;
      }
    }