:root {
    --my-primary: #f2eded00;
    --my-secondary: #f2eded00;
  }
  * {
    box-sizing: border-box;
  }

  /* Logo Mahjong di tengah, tidak tertutup tombol menu */
  .site-header .logo > img,
  .site-header .logo > picture,
  .site-header .logo > picture img,
  .site-header .logo img {
    max-height: 62px !important;
    max-width: 160px !important;
    height: auto !important;
    width: auto !important;
    object-fit: contain !important;
    margin: 0 !important;
  }

  @media (min-width: 1024px) {
    .site-header .logo > img,
    .site-header .logo > picture,
    .site-header .logo > picture img,
    .site-header .logo img {
      max-height: 90px !important;
      max-width: 230px !important;
    }
  }

  @media (max-width: 767px) {
    .site-header {
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
    }
    .site-header .logo {
      position: absolute !important;
      left: 50% !important;
      top: 50% !important;
      transform: translate(-50%, -50%) !important;
      margin: 0 !important;
      z-index: 2 !important;
    }
  }

  @media (min-width: 768px) {
    .site-header .logo {
      position: relative !important;
      left: auto !important;
      transform: none !important;
    }
  }

  .site-description ul {
    list-style: none;
  }
  .site-description ul li {
    text-align: left;
  }
  /* =========================================================
     FLOATING BUTTON (FAB) - tombol kecil di header, dropdown turun
     ========================================================= */
  .site-header {
    position: relative !important;
    overflow: visible !important;
  }

  .fab-wrapper {
    position: absolute !important;
    top: 50% !important;
    left: 10px !important;
    right: auto !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    scale: 1 !important;
    z-index: 2147483647 !important;
    pointer-events: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    height: auto !important;
    width: auto !important;
  }

  .fab-wrapper.checked::after {
    content: "" !important;
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.45) !important;
    z-index: 2147483646 !important;
    pointer-events: auto !important;
  }

  .fab-checkbox,
  .fab-checkbox2 {
    position: absolute !important;
    opacity: 0 !important;
    width: 1px !important;
    height: 1px !important;
    pointer-events: none !important;
  }
  
  .fab {
    position: relative !important;
    width: 3.4rem !important;
    height: 3.4rem !important;
    border-radius: 50% !important;
    background: var(--my-primary) !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
    transition: all 0.25s ease !important;
    border: 1px solid var(--my-secondary) !important;
    cursor: pointer !important;
    overflow: hidden !important;
    z-index: 2147483647 !important;
    display: block !important;
    bottom: auto !important;
  }

  .fab:before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    border-radius: 50% !important;
    background-size: 80% !important;
    background-color: transparent !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    z-index: 2 !important;
    display: block !important;
  }

  .fab-label-text {
    display: block !important;
    text-align: center !important;
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    margin-top: 2px !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55) !important;
    white-space: nowrap !important;
    pointer-events: none !important;
  }

  .fab-wheel {
    position: absolute !important;
    top: calc(100% + 6px) !important;
    left: 0 !important;
    right: auto !important;
    bottom: auto !important;
    transform: scale(0) !important;
    transform-origin: top left !important;
    width: 190px !important;
    max-width: 78vw !important;
    max-height: calc(100vh - 140px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    align-items: stretch !important;
    background: rgba(22, 22, 30, 0.96) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 16px !important;
    padding: 8px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    z-index: 2147483647 !important;
    transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s ease !important;
  }

  .fab-wrapper.checked .fab-wheel,
  .fab-checkbox:checked ~ .fab-wheel {
    transform: scale(1) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .fab-wheel .fab-action {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    text-decoration: none !important;
    display: block !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  .fab-item-container,
  .fab-item-container,
  .fab-item-container {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 7px 10px !important;
    border-radius: 12px !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    height: 44px !important;
    width: 100% !important;
  }

  .fab-image-container,
  .fab-image-container {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.14) !important;
    flex: 0 0 auto !important;
  }

  .fab-item-image,
  .fab-item-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
  }

  .fab-item-name,
  .fab-item-name {
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    flex: 1 1 auto !important;
  }

  @media (max-width: 767px) {
    .fab-wrapper {
      left: 8px !important;
      top: 50% !important;
    }
    .fab {
      width: 3.1rem !important;
      height: 3.1rem !important;
    }
  }

  @media (min-width: 1024px) {
    .fab-wrapper {
      left: 18px !important;
    }
    .fab {
      width: 3.8rem !important;
      height: 3.8rem !important;
    }
    .fab-wheel {
      width: 210px !important;
    }
  }
      
  #customGif {
      padding-top: 20px;
      z-index:205;
      cursor:pointer;
      bottom:65px;
      left:14px;
      position:fixed;
      display: flex;
      justify-content:center;
      flex-direction: column;
  }
  #customGif a {
      padding-bottom: 5px;
  }
  #customGif.close_custom_gif{
      display: none;
  }
  #custom_popup::before{
      content:" ";
      width:100px;
      height: 100px;
      background: red;
  }
  #alternate{
      display: none;
  }
  @media (max-width: 767px) {
      #noty_layout__bottomLeft {
          bottom:50px;
      }
      #customGif {
          right:14px;
          left: auto;
      }
      #alternate{
          display: block;
      }
  }
  
  @keyframes zoomInOut {
    0% {
      transform: scale(1);  /* Initial size */
    }
    50% {
      transform: scale(1.2);  /* Zoomed in size */
    }
    100% {
      transform: scale(1);  /* Back to initial size */
    }
  }
  
  .onlinePlayer {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    margin: 0 450px;
    scale: 2;
  }
  .onlinePlayer .title {
    color: hsla(0, 0%, 100%, 0.644);
  }
  .onlinePlayer .title::before {
    content: "";
    display: block;
    width: 15px;
    height: 15px;
    background-color: rgb(124, 252, 0);
    border: 1.5px solid grey;
    border-radius: 50%;
    position: absolute;
    left: -5%;
    top: 10%;
  }
  .onlinePlayer .nowOnline {
      color: hwb(122 0% 0%);
      animation: zoomInOut 1s infinite;
  }
  @media only screen and (max-width: 767px) {
      .onlinePlayer.mobile{
        width: auto;
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        text-align: center;
        font-size : 20px;
        scale: 1;
        padding: 10px 0;
        margin: 0;
      }
      .onlinePlayer .title::before {
        position: relative; /* Change the position to relative for smaller screens */
        display: inline-block; /* Adjust the display property for smaller screens */
        margin-right: 5px; /* Add margin for spacing */
        top: 0; /* Reset the top position */
        left: 0; /* Reset the left position */
      }
  }
  
  .scroll-container {
              height: 200px;
              width: 70%;
          min-width: 330px;
          margin: 20px auto 35px auto;
              overflow: hidden;
              position: relative;
          font-family: 'Arial', sans-serif;
              background: linear-gradient(to bottom,#b59456 0%,#6f521e 100%);
              border-style: none ridge ridge ridge;
              border-color: #6f521e;
              border-width: 5px;
              box-sizing: border-box;
              box-shadow: 0 0 8px 2px gold;
              animation: boxShadowAnimation 2s infinite;
          }
  
  .scroll-title {
              position: absolute;
              top: 0;
              left: 0;
              width: 100%;
              background: #6f521e;
              color: #fff;
              text-align: center;
              padding: 3px;
              box-sizing: border-box;
              font-weight: bold;
              text-shadow: 2px 2px 4px goldenrod;
              z-index: 1;
          }
  
          .scroll-text {
          background: #1b1b1b;
              display: flex;
              flex-direction: column;
              position: absolute;
              width: 100%;
              top: 30px;
              animation: scroll 20s linear infinite;
              overflow: hidden;
              box-sizing: border-box;
          }
  
          .scroll-text p {
          background: linear-gradient(to right,#b59456 0%,#6f521e 100%);
              margin: 3px;
              padding: 3px;
              border: 2px solid goldenrod;
          border-radius: 5px;
              text-shadow: 2px 2px 4px black;
              color: white;
              display: flex;
              justify-content: space-between;
          }
  
  .scroll-text span {
      display: inline-block;
  }
  
  .scroll-text span.circle {
      position: relative;
      display: inline-block;
      padding-left: 25px; /* Adjust as needed */
  }
  
  .scroll-text span.circle::before {
      content: "";
      display: block;
      width: 15px;
      height: 15px;
      background: linear-gradient(135deg, 
        #00FF00, /* Bright green */
        #66FF66, /* Light green */
        #009900, /* Medium green */
        #004d00 /* Dark green */
      );
      border: 3px solid #b5b5b5;
      border-radius: 50%;
      position: absolute;
      left: 0;
      top: 50%;
      transform: translateY(-50%);
  }
  
  @keyframes boxShadowAnimation {
              0% {
                  box-shadow: 0 0 8px 2px goldenrod;
              }
              50% {
                  box-shadow: 0 0 15px 5px rgba(255, 215, 0, 0.7);
              }
              100% {
                  box-shadow: 0 0 8px 2px goldenrod;
              }
          }
  
  @keyframes scroll {
              from {
                  transform: translateY(0);
              }
              to {
                  transform: translateY(-75%);
              }
          }
  
  /* Hide login and register buttons in site-header */
  .site-header .login-button,
  .site-header .register-button,
  .site-header a.login-button,
  .site-header a.register-button,
  .site-header [data-require-login],
  .site-header a[data-require-login],
  .site-header [data-target="#register_modal"],
  .site-header [data-target="#register_mod"],
  .site-header a[data-target="#register_modal"],
  .site-header a[data-target="#register_mod"],
  .site-header .header-info .login-button,
  .site-header .header-info .register-button,
  .site-header .header-info a.login-button,
  .site-header .header-info a.register-button,
  .site-header .header-info [data-require-login],
  .site-header .header-info a[data-require-login],
  .site-header .header-info [data-target="#register_modal"],
  .site-header .header-info [data-target="#register_mod"],
  .site-header .header-info a[data-target="#register_modal"],
  .site-header .header-info a[data-target="#register_mod"] {
      display: none !important;
      visibility: hidden !important;
      opacity: 0 !important;
      width: 0 !important;
      height: 0 !important;
      overflow: hidden !important;
      pointer-events: none !important;
      position: absolute !important;
      left: -9999px !important;
  }

  /* Server bar: jangan dorong layout (bikin navbar bawah kepotong) */
  .asik-server-bar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 38px !important;
    z-index: 90 !important;
    background-color: #1b1b1b !important;
    text-align: center !important;
    pointer-events: auto !important;
  }

  /* Livescore jangan nutup kategori HOT GAMES */
  #mahjong2000-livescore-float {
    max-width: 110px !important;
    max-height: 58px !important;
    overflow: hidden !important;
    z-index: 40 !important;
  }
  #mahjong2000-livescore-float img {
    width: 110px !important;
    max-height: 58px !important;
    height: auto !important;
    object-fit: contain !important;
  }

  .fab-item-container {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 7px 10px !important;
    border-radius: 12px !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    height: 44px !important;
    width: 100% !important;
  }
  .fab-image-container {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.14) !important;
    flex: 0 0 auto !important;
  }
  .fab-item-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
  }
  .fab-item-name {
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    flex: 1 1 auto !important;
  }
  