@media (min-width: 992px) {
        .rules-popup-container, .rules-popup-overlay,.rules-popup-overlay.active {
            display: none;
        }  
    }
    .rules-open-btn:active {
      transform: scale(0.96);
      background: #1C1C1C;
    }

    /* ---------- POPUP OVERLAY (bottom sheet style) ---------- */
    .rules-popup-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0);
      backdrop-filter: blur(0px);
      transition: background-color 0.25s ease, backdrop-filter 0.25s ease;
      visibility: hidden;
      z-index: 99999;
      display: flex;
      align-items: flex-end;   /* bottom-align container */
      justify-content: center;
    }

    .rules-popup-overlay.active {
      visibility: visible;
      background-color: rgba(0, 0, 0, 0.5);
      backdrop-filter: blur(3px);
    }

    /* main popup container â€” BOTTOM FIXED, height adjusts to content */
    .rules-popup-container {
      width: 100%;
      /* max-width: 402px; */
      border-radius: 28px 28px 0 0;
      box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
      transform: translateY(100%);
      transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
      background: linear-gradient(140.58deg, #363636 16.2%, #040404 92.49%);
      max-height: 100vh;      
      overflow-y: auto;
      padding-bottom: env(safe-area-inset-bottom, 0);
      -webkit-overflow-scrolling: touch;
      transition: all 0.2s ease;
    }
    .rules-popup-overlay.active .rules-popup-container {
      transform: translateY(0);
    }
    .rules-popup-content {
     background: #1C1C1C;
     font-family:'poppins',sans-serif ;
    }
    .rules-content{
        padding: 16px;
    }
    .rules-popup-heading{
        background: linear-gradient(140.58deg, #363636 16.2%, #040404 92.49%);
        box-shadow: -8px -4px 14px 0px #323232, 4px  4px  6px 0px #090909,5px  5px  4px 0px rgba(255, 255, 255, 0.03) inset;
        width: 100%;  
        display: flex;  
        font-family: 'poppins',sans-serif ;
        font-weight: 600;
        font-style: SemiBold;
        font-size: 14px;
        line-height: 100%;
        letter-spacing: 0;
        position: sticky;
      	top: 0;
      	z-index: 10;
    }
    .rules-close{
        width: 24px;
        height: 24px;
        opacity: 1;
        border-radius: 50%;
        padding: 6px;
        background-origin: border-box;
        background-clip: content-box, border-box;
        box-shadow: -5px 0px 9.33px 0px rgba(255, 255, 255, 0.1);
        border: none;
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        background: linear-gradient(140.58deg, #363636 16.2%, #040404 92.49%);

    }
    .rules-popup-title {
      font-size: 1.5rem;
      font-weight: 600;
      margin: 8px 0 8px 0;
      color: #1f2a3e;
    }

    .rules-popup-text {
      color: #3a4a5f;
      line-height: 1.45;
      margin: 12px 0;
    }


    hr {
      margin: 20px 0;
      border: none;
      border-top: 1px solid #e9edf2;
    }

    .rules-small-note {
      font-size: 0.75rem;
      color: #7e8b9c;
      text-align: center;
      margin-top: 16px;
    }

    /* For custom large content preview */
    .rules-big-text-block {
      font-size: 0.9rem;
      line-height: 1.5;
      color: #2c3e4e;
    }
    .rules-rule-sub-head{
        margin-bottom: 0.2rem;
        font-weight: 600;
        font-size: 16px;
        line-height: 150%;
        letter-spacing: 0;
        font-family: 'poppins',sans-serif ;
    }
    .rules-sub-text{
        font-weight: 400;
        font-size: 14px;
        line-height: 150%;
        letter-spacing: 0;
        color: #8F99A3;
        font-family: 'poppins',sans-serif ;
    }
   .rules-popup-content {
        display: flex;
        flex-direction: column;
        max-height: 75dvh;
    }
     /* .rules-popup-container.OverflowContent .rules-popup-content {
        height: 100dvh;
    } */
    .rules-content {
        flex: 1;
        overflow: auto;
    }
.rule__click__icon__cs {
  background: linear-gradient(140.58deg, #363636 16.2%, #040404 92.49%);
  box-shadow: 4px 4px 6px #090909, -8px -4px 14px #323232, inset 5px 5px 4px rgba(255, 255, 255, .03);
  border-radius: 50%;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}
.rule__click__icon__cs img {
  width: 12px;
  height: 12px;
}
.kl__mth__role {
        display: flex;
        align-items: center;
        width: calc(100% - 25px);
    }
    .kl__mth__role .common_kr_para.cl_common_kr_para {
        width: auto;
    }
    .match__rules__popup__open {
      overflow: hidden;
    }
    .check__market__rules__main__cs {
        padding: 12px;
        background: #DB9D3A1F;
        border-bottom: 0.25px solid #DB9D3A;
        box-shadow: 0px 2px 4px 0px #6D4C171F;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-top: 10px;
    }
    .check__market__rules__left__cs {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    .check__market__rules__left__icon__cs {
        background: linear-gradient(140.58deg, #363636 16.2%, #040404 92.49%);
        box-shadow: 4px 4px 6px #090909, -8px -4px 14px #323232, inset 5px 5px 4px rgba(255, 255, 255, .03);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        flex: 0 0 auto;
    }
    .check__market__rules__left__icon__cs img {
        min-width: 6px;
    }
    .check__market__rules__left__cs p {
        font-size: 12px;
        font-weight: 400;
        color: #FFFFFF;
        margin-bottom: 0;
        font-family: poppins, sans-serif;
        font-style: normal;
        line-height: 1.4;
    }
    .check__market__rules__right__cs {
        flex: 0 0 auto;
        padding: 5px;
    }
    .check__market__rules__right__cs p {
        font-size: 12px;
        font-weight: 400;
        color: #F0D670;
        margin-bottom: 0;
        font-family: poppins, sans-serif;
        font-style: normal;
        line-height: 1.2;
        text-decoration: underline !important;
    }