@font-face {
    font-family: 'CustomFont';
    src: url('../fonts/custom-font.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
*:focus,
*:hover {
    outline: none;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    row-gap: 1em;
    background-image: radial-gradient(circle, #7100e4, #6001bc, #4e0296, #3d0371, #2b034f);
    background: url('../img/back.gif');
    font-family: 'CustomFont', sans-serif;
}

.scratch-card {
    position: relative;
    border-radius: 40px;
    padding: 12px;
    width: 280px;
    height: 280px;
    border: 10px solid white;
    background: #7100e4;
    background-image: radial-gradient(circle, #7100e4, #6001bc, #4e0296, #3d0371, #2b034f);
}
@keyframes rotateClockwise {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(360deg);
    }
  }
#turn-background {
    margin-top: -380px;
    width: 100%;
    max-width: 430px;
}
.scratch-card-cover-container {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    border-radius: 30px;
    width: 100%;
    height: 100%;
    filter: url('#remove-black');
    transition: opacity .4s;
    background-image: radial-gradient(circle, #ffa705, #ff9400, #ff8000, #ff6b00, #ff5208);

    &.clear {
        opacity: 0;
    }

    &.hidden {
        display: none;
    }
}

.scratch-card-canvas {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: grab;
    touch-action: none;

    &.hidden {
        opacity: 0;
    }

    &:active {
        cursor: grabbing;
    }
}

.scratch-card-canvas-unset {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

button {
    all: unset; 
    background: none; 
    border: none; 
    padding: 0;
    cursor: pointer; 
}

button:hover {
    background: none; 
    border: none; 
}

body>.tipBox {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .19);
    background: rgba(0, 0, 0, .5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #fff;
    text-align: center;
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    text-transform: capitalize;
    z-index: 120000;
    min-width: 50%;
    width: max-content;
    max-width: 80%
}

.scratch-card-canvas-render {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    transition: background-color .2s;

    &.hidden {
        display: none;
    }
}

.scratch-card-cover {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;

    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: linear-gradient(135deg, transparent 40%, rgb(255 255 255 / .8) 50%, transparent 60%);
        background-position: bottom right;
        background-size: 300% 300%;
        background-repeat: no-repeat;

        @at-root .scratch-card-cover.shine::before {
            animation:
                shine 8s infinite,
            ;
        }
    }

    @keyframes shine {
        50% {
            background-position: 0% 0%;
        }

        100% {
            background-position: -50% -50%;
        }
    }

    &::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: .1;
        filter: url('#noise');
    }
}

.scratch-card-cover-background {
    width: 100%;
    height: 100%;
    fill: #555;
    opacity: .1;
}
.scratch-card-image {
    border-radius: 30px;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 4px rgb(0 0 0 / .16));
    user-select: none;
    will-change: transform;

    &.animate {
        animation: pop-out-in cubic-bezier(.65, 1.35, .5, 1) 1s;
    }
}

@keyframes pop-out-in {
    36% {
        transform: scale(1.125);
    }

    100% {
        transform: scale(1);
    }
}

#gift-left {
    background-color: white;
    color: #ff5208;
    padding: 10px;
    padding-left: 20px;
    padding-right: 20px;
    border-radius: 10px;
    font-size: 30px;
    font-weight: bold;
    margin-top: 20px;
}

#scratch-card-image-div {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shareWrap {
    width: 100%;
    display: flex;
    gap: 8px;
    margin-top: -60px;
    margin-bottom: 10px
}

.shareWrap>.share {
    position: relative;
    flex: 1 0 0;
    text-align: center;
    margin-left: 24px;
    line-height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .4);
    background: linear-gradient(185deg, #c00cff 3.97%, #6500b4 96.33%)
}

.shareWrap>.share>span {
    color: #fff;
    text-align: center;
    font-family: Inter;
    font-size: 16px;
    font-style: italic;
    font-weight: 800;
    line-height: normal
}

.shareWrap>.link {
    margin-right: 24px;
    padding: 8px;
    flex-shrink: 0;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .2);
    background: linear-gradient(185deg, #c00cff 3.97%, #6500b4 96.33%)
}

.shareWrap>.link>img {
    width: 24px;
    height: 24px
}

.shareWrap>.share>img.spin {
    width: 32px;
    height: 32px;
    vertical-align: middle;
    margin-bottom: 2px
}

#footer-share {
    display: flex;
    justify-content: center;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px
}

#footer-share>span {
    color: #fff;
    font-family: Inter;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    margin-left: -50px
}

#footer-share>img {
    width: 24px;
    height: 24px;
    cursor: pointer
}

.tguser {
    position: absolute;
    left: 10px;
    bottom: 20px;
    padding: 12px 0 0 4px;
    color: #fff;
    font-family: Inter;
    font-size: 10px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
    text-transform: capitalize;
    opacity: .4;
    text-align: left;
    z-index: 12
}

#wrap {
    overflow: hidden;
    overflow-y: auto;
    position: fixed; 
    top: 0;          
    left: 0;       
    width: 100%;    
    z-index: 999;    
}


#wrap ul#header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 10px 18px 0
}

#wrap ul#header>li {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 71px;
    cursor: pointer
}

#wrap ul#header>li>img {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    transform: translateY(5px)
}

#wrap ul#header>li>.btn {
    display: flex;
    width: 72px;
    padding: 4px 0;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .4);
    background: rgba(192, 12, 255, .5);
    color: #fff;
    text-align: center;
    font-family: Inter;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-transform: capitalize
}

#wrap ul#header>li:nth-child(2),
#wrap ul#header>li:nth-child(3) {
    position: relative
}

#wrap ul#header>li:nth-child(2)>span.red-dot1,
#wrap ul#header>li:nth-child(2)>span.red-dot2,
#wrap ul#header>li:nth-child(3)>span.red-dot1,
#wrap ul#header>li:nth-child(3)>span.red-dot2 {
    display: none;
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: red
}

#wrap ul#header>li:nth-child(2)>span.red-dot1,
#wrap ul#header>li:nth-child(3)>span.red-dot1 {
    top: 8px;
    right: 12px
}

#wrap ul#header>li:nth-child(2)>span.red-dot2,
#wrap ul#header>li:nth-child(3)>span.red-dot2 {
    top: 10px;
    right: 20px
}

#wrap ul#header>li:nth-child(3)>.btn {
    background: linear-gradient(180deg, #ffc700 0, #ff8a00 100%)
}

#popup {
    display: none;
    position: fixed;
    box-sizing: border-box;
    left: 0;
    top: 0;
    padding: 0 16px 0;
    width: 100%;
    z-index: 3000;
    height: 100vh;
    background: rgba(19, 0, 50, .5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column
}

#imps,
.mask,
#popup {
    display: none;
    position: fixed;
    box-sizing: border-box;
    left: 0;
    top: 0;
    padding: 0 16px 0;
    width: 100%;
    height: 100vh;
    background: rgba(19, 0, 50, .5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column
}

#imps.nopad,
.mask.nopad,
#popup.nopad {
    padding: 0 16px
}

#imps,
.mask {
    z-index: 6
}

#imps .form .title,
.mask .form .title {
    color: #fff;
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
    margin-bottom: -10px
}

#imps .form label,
.mask .form label {
    flex: 1 0 0;
    color: #fff;
    font-family: Inter;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 142%;
    text-transform: capitalize;
    text-indent: 8px;
    margin-bottom: 4px;
    display: block
}

#imps .form input,
.mask .form input {
    width: 100%;
    text-indent: 16px;
    line-height: 36px;
    color: #fff;
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    outline: 0;
    border-radius: 10px;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, .08);
    margin-bottom: 12px
}

#imps .form input:focus,
.mask .form input:focus {
    border: 2px solid rgba(255, 255, 255, .5)
}

#imps .form input::placeholder,
.mask .form input::placeholder {
    font-weight: 400;
    opacity: .5
}

#imps .form .code,
.mask .form .code {
    position: relative
}

#imps .form .code>button,
.mask .form .code>button {
    display: flex;
    cursor: pointer;
    width: 100px;
    height: 28px;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 6px;
    right: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, .2);
    border: none;
    color: #fff
}

#imps .form .code>span,
.mask .form .code>span {
    position: absolute;
    left: 18px;
    top: 11px;
    font-size: 14px;
    color: #fff
}

#imps .form .code>input,
.mask .form .code>input {
    text-indent: 44px
}

#imps .form .check,
.mask .form .check {
    padding-left: 8px;
    flex: 1 0 0;
    color: #ff3d00;
    font-family: Inter;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%;
    text-transform: capitalize
}

#imps .groupBtn,
.mask .groupBtn {
    margin-top: 24px;
    display: flex;
    gap: 16px
}

#imps .groupBtn>button,
.mask .groupBtn>button {
    color: #fff;
    text-align: center;
    font-family: Inter;
    font-size: 16px;
    font-style: italic;
    font-weight: 800;
    line-height: normal;
    text-transform: capitalize;
    display: flex;
    height: 42px;
    padding: 0 12px;
    justify-content: center;
    align-items: center;
    flex: 1 0 0;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .4)
}

#imps .groupBtn button.back,
.mask .groupBtn button.back {
    background: rgba(255, 255, 255, .12)
}

#imps .groupBtn button.save,
.mask .groupBtn button.save {
    background: linear-gradient(180deg, #ffc700 0, #ff8a00 100%)
}

#imps,
.mask,
#popup {
    display: none;
    position: fixed;
    box-sizing: border-box;
    left: 0;
    top: 0;
    padding: 0 16px 0;
    width: 100%;
    height: 100vh;
    background: rgba(19, 0, 50, .5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column
}

#imps.nopad,
.mask.nopad,
#popup.nopad {
    padding: 0 16px
}

#imps,
.mask {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch
}

#imps .form,
#imps .inner,
.mask .form,
.mask .inner {
    align-self: stretch;
    color: #fff;
    font-family: Inter
}

#imps .form .topic,
#imps .inner .topic,
.mask .form .topic,
.mask .inner .topic {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0 14px
}

#imps .form .topic>span,
#imps .inner .topic>span,
.mask .form .topic>span,
.mask .inner .topic>span {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-transform: capitalize
}

#imps .form .topic>span>img,
#imps .inner .topic>span>img,
.mask .form .topic>span>img,
.mask .inner .topic>span>img {
    width: 44px;
    height: 44px;
    margin-right: 4px
}

#imps .form .topic>span.mini,
#imps .inner .topic>span.mini,
.mask .form .topic>span.mini,
.mask .inner .topic>span.mini {
    font-size: 20px
}

#imps .form .topic>span.mini>i,
#imps .inner .topic>span.mini>i,
.mask .form .topic>span.mini>i,
.mask .inner .topic>span.mini>i {
    font-style: normal
}

#imps .form .topic .account,
#imps .inner .topic .account,
.mask .form .topic .account,
.mask .inner .topic .account {
    display: flex;
    height: 32px;
    padding: 0 8px;
    align-items: center;
    gap: 4px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, .5)
}

#imps .form .topic .account>img,
#imps .inner .topic .account>img,
.mask .form .topic .account>img,
.mask .inner .topic .account>img {
    width: 24px;
    height: 24px
}

#imps .form .topic .account>span,
#imps .inner .topic .account>span,
.mask .form .topic .account>span,
.mask .inner .topic .account>span {
    color: #fff;
    text-align: center;
    font-family: Inter;
    font-size: 12px;
    font-style: italic;
    font-weight: 700;
    line-height: normal;
    text-transform: capitalize
}

@keyframes init {
    100% {
        -o-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg)
    }
}

.loading {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 300000;
    left: 0;
    top: 0;
}

.loading .inner {
    position: absolute;
    display: flex;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 16px;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .19);
    background: rgba(0, 0, 0, .5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px)
}

.loading .inner>img {
    width: 43px;
    height: 43px;
    -o-animation: init 1s linear infinite;
    -ms-animation: init 1s linear infinite;
    -moz-animation: init 1s linear infinite;
    -webkit-animation: init 1s linear infinite;
    animation: init 1s linear infinite
}

.loading .inner>span {
    color: #fff;
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
    text-transform: capitalize
}


#progress .balance {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px
}

#progress .balance>img {
    width: 29px;
    height: 29px
}

#progress .balance>span {
    color: #ffc700;
    text-align: center;
    font-family: Inter;
    font-size: 24px;
    font-style: italic;
    font-weight: 800;
    line-height: normal;
    letter-spacing: .902px
}

#progress .balance>i {
    display: none;
    position: absolute;
    right: -50%;
    top: 7px;
    color: #ffc700;
    font-style: normal;
    font-weight: 700px;
    font-weight: 700
}

#progress .line {
    width: 280px;
    height: 18px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, .3);
    border-radius: 9px;
    position: relative
}

#progress .line .fill {
    width: 0%;
    margin: 1px 0;
    height: 16px;
    flex-shrink: 0;
    background: linear-gradient(270deg, #ffce20 3.2%, #ff844f 99.85%, #fc7f4a 99.85%);
    border-radius: 8px
}

#progress .line .fill:after {
    display: none;
    content: '';
    height: 16px;
    background: #fff;
    border-radius: 4px;
    position: absolute;
    left: 0;
    top: 0;
    animation: progshow 1s infinite
}

#progress .line .fill.show::after {
    display: block
}

#progress p {
    color: #fff;
    text-align: center;
    font-family: Inter;
    font-size: 12px;
    font-style: italic;
    line-height: normal;
    font-weight: 700;
    margin-top: 6px
}

#progress p>span {
    color: #ffc700;
    font-size: 16px
}

#scratch-it {
    color: #fff;
    font-size: 50px;
    font-weight: bold;
}

#scratch-card-image-div>div>center>img {
    width: 100px;
    height: 100px;
}
#treasure-claim-btt {
    color: #fff;
    text-align: center;
    font-family: Inter;
    font-size: 16px;
    font-weight: 800;
    line-height: normal;
    flex: 1 0 0;
    text-align: center;
    line-height: 42px;
    border-radius: 10px;
    width: 200px;
    border: 1px solid rgba(255, 255, 255, .4);
    background: linear-gradient(185deg, #c00cff 3.97%, #6500b4 96.33%);
}

#telegramJoin p {
    color: #fff;
    text-align: center;
    font-family: Inter;
    font-size: 16px;
    font-weight: 800;
    line-height: normal;
    flex: 1 0 0;
    text-align: center;
    line-height: 42px;
    border-radius: 10px;
    width: 200px;
    border: 1px solid rgba(255, 255, 255, .4);
    background: linear-gradient(185deg, #c00cff 3.97%, #6500b4 96.33%);
}



#telegramJoin img {
    width: 50%;
    margin-top: 40%;
    margin-bottom: 10%;
}
#telegramJoin h3 {
    margin-bottom: 10%;
    color:#fff;
}
#scratch-card-image-div>div>center>span {
    color: #ffc700;
    font-size: 50px;
    font-weight: bolder;
}
#randomMarquee>span {
    border-radius: 20px;
    background-color: rgba(0, 0, 0, 10); 
    margin-left:100px;
}
#randomMarquee>span>b {
    padding: 10px;
    font-size: 12px;
    color:#fff;
    margin-bottom: 10px;
}
#randomMarquee>span>b>span {
    color: #ffc700;
}