body {
    font-family: Arial, sans-serif;
    background-color: #121212;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
       -moz-box-pack: center;
            justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
            align-items: center;
    margin: 0;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
}

.main {
    max-width: 320px;
    width: 100%;
}

.image {
    background-position: center;
    background-size: cover;
}

h1 {
    width: 100%;
    font-size: 20px;
    text-align: center;
}

.header {
    width: 100%;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
            align-items: center;
}

.header h1 {
    width: -webkit-calc(100% - 120px);
    width: calc(100% - 120px);
}

.back-btn {
    width: 40px;
    height: 40px;
    margin: 10px;
    background-image: url(../../images/back.382b99b.webp);
    background-size: cover;
}

.ad-container {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
       -moz-box-pack: center;
            justify-content: center;
    margin: 16px auto !important;
}

#ad-countdown {
    position: fixed;
    top: 0;
    left: 50%;
    -webkit-transform: translateX(-50%);
            transform: translateX(-50%);
    background: rgb(255, 255, 255);
    color: #000000;
    font-size: 14px;
    padding: 10px;
    border-radius: 0 0 10px 10px;
    display: none;
    z-index: 9999;
}

@media screen and (orientation: portrait) {
    .main {
        max-width: 400px;
    }
}
.main {
    color: white;
}

.info {
    width: 100%;
    font-size: 48px;
    color: #0ca97e;
    margin: 0;
    margin-bottom: 20px;
    text-align: center;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.grid-item {
    height: 105px;
    background: -webkit-gradient(linear, left top, left bottom, from(#54e6e8), to(#3ccfc4));
    background: -webkit-linear-gradient(top, #54e6e8, #3ccfc4);
    background: linear-gradient(180deg, #54e6e8, #3ccfc4);
    border-radius: 12px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
       -moz-box-pack: center;
            justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
            align-items: center;
    font-size: 26px;
    cursor: pointer;
    -webkit-transition: 0.2s;
    transition: 0.2s;
}

.grid-item span {
    width: 50%;
    aspect-ratio: 1;
    background-image: url(../../images/gift.8b94327.png);
    background-repeat: no-repeat;
    background-size: 60%;
    background-position: center;
}

.grid-item:hover {
    background: #2a2a2a;
}

.grid-item.win {
    background: greenyellow;
    color: #000;
    font-weight: bold;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
       -moz-box-orient: vertical;
       -moz-box-direction: normal;
            flex-direction: column;
}

.grid-item.win p {
    margin: 0;
    white-space: nowrap;
    font-size: 20px;
}

.grid-item.lose {
    background: #333;
}

.grid-item.lose span {
    width: 50%;
    aspect-ratio: 1;
    background-image: url(../../images/badluck.41a009d.webp);
    background-position: center;
    background-size: 60%;
    background-repeat: no-repeat;
}

.grid-container.disabled .grid-item {
    pointer-events: none;
}

.grid-container.disabled .grid-item:not(.revealed) {
    opacity: 0.5;
}

.grid-container.disabled .grid-item:hover {
    background: inherit;
}

.button {
    background: -webkit-gradient(linear, left top, left bottom, from(#1c3b33), to(#0d1f1b));
    background: -webkit-linear-gradient(top, #1c3b33, #0d1f1b);
    background: linear-gradient(180deg, #1c3b33, #0d1f1b);
    padding: 14px 40px;
    border-radius: 30px;
    color: white;
    font-size: 20px;
    margin-bottom: 30px;
    display: inline-block;
}
