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;
}

.result-box {
    background: #fff;
    color: #ff5722;
    padding: 18px 25px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
    display: none;
    width: 90%;
    max-width: 280px;
}

.result-box.show {
    display: block;
}

.congrats {
    color: #4caf50;
    font-size: 20px;
    margin-bottom: 10px;
}

.prize {
    font-size: 28px;
    font-weight: bold;
}

.scratch-container {
    position: relative;
    width: 320px;
    height: 180px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

#reward {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #0CA97E;
    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: 32px;
    font-weight: bold;
}

canvas {
    position: absolute;
    width: 100%;
    height: 100%;
    margin: 0 auto;
}

.h1scratch {
    font-size: 30px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    margin: 0;
    margin-bottom: 20px;
}

.game-section {
    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;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
            align-items: center;
}
