* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Dosis", sans-serif;
    text-decoration: none;
}

::-webkit-scrollbar {
    display: none;
}

:root {
    --text_color: #888;
    --btn-rounded: 393px;
    --rounded: 15px;
    --border-color: #e5e7eb;
    --btn_bg: #3B82F6;
    --btn-text-color: #f4f4f8;
    --btn-boxShadow: 2px 2px 14px rgb(0 0 0 / 40%);
    --div-boxShadow: rgba(0, 0, 0, 0.25) 0px 12px 22px -12px;
}

img, video {
    height: auto;
    max-width: 100%;
}

main {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
    background-image: url(../assets/icons/grid_Frame.svg);
    background-color: black;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    overflow-x: hidden;
}

.main_div {
    max-width: 400px;
    margin: 3px;
    text-wrap: nowrap;
    width: 100%;
    height: 100%;
    position: relative;
    background-color: #0d0c11;
    color: var(--text_color);
    gap: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.fff_game_section {
    text-align: center;
    width: 100%;
}

.play_btn {
    background-color: transparent;
    margin: 16px 16px 0 16px;
    padding: 16px;
    width: 370px;
    box-shadow: rgba(0, 0, 0, 0.25) 0 12px 22px -12px;
    border-radius: var(--rounded);
    border: 1px solid var(--border-color);
}

.play_btn_txt {
    font-size: 15px;
    color: var(--text-color);
    font-weight: 500;
    text-wrap: wrap;
}

.click_btn {
    background-color: var(--btn_bg);
    margin-top: 15px;
    padding: 10px 28px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 600;
    color: var(--btn-text-color);
    border-radius: var(--rounded);
    box-shadow: var(--btn-boxShadow);
    border: none;
    transition: all 0.3s ease-in-out;
}

.play-btn {
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.click_btn:hover, .play-btn:hover {
    background-color: #0072d1;
}

.more_game {
    width: 370px;
}

.click_btn_option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.cat_img {
    width: 20px;
    height: 20px;
}

.class_flex {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.class_flex a {
    width: 100%;
}

.game_section {
    margin: 16px 16px 0 16px;
    border-radius: var(--rounded);
}

.game_section1 {
    padding: 4px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    justify-items: center;
}

.game_section2 {
    border-radius: 25px;
    background-color: transparent;
    box-shadow: var(--div-boxShadow);
}

.game_section3 {
    overflow: hidden;
    border-radius: 10px;
    text-decoration: none;
    height: 100%;
    width: 100%;
}

.game_section4 {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 180px;
}

.game_section_img {
    width: 100%;
    height: unset;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
}

.game_section5 {
    background-color: transparent;
    border-bottom-right-radius: 25px;
    border-bottom-left-radius: 25px;
    padding: 0px 5px 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.game_section6 {
    color: var(--text_color);
    font-size: 16px;
    font-weight: 600;
    display: flex;
    justify-content: center;
}

.play_btn_txt1 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.game_section6 p {
    margin-bottom: 0;
    text-align: start;
    color: #000000;
    text-transform: uppercase;
}

.game_section5 button {
    background-color: var(--btn_bg);
    padding: 10px 50px;
    font-size: 14.4px;
    font-weight: 600;
    color: var(--btn-text-color);
    border-radius: var(--rounded);
    margin-bottom: 4px;
    border: none;
}

.main_logo {
    color: var(--text_color);
    object-fit: cover;
    background-repeat: no-repeat;
    background-position: 50%;
    width: 100%;
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.main_img {
    width: 50%;
}

.logo_content {
    font-weight: 700;
}

.logo_content .title {
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 2rem;
    text-align: center;
    padding-top: 1rem;
}

.about_section {
    margin-top: 40px;
    width: 316px;
}

.about_section h1 {
    margin: 10px 0;
    text-wrap: wrap;
    text-align: left;
    color: var(--text-color);
    font-size: 22px;
}

.about_section p {
    text-wrap: wrap;
    text-align: start;
    color: #888;
    font-size: 16px;
}

.about_section ul {
    padding-left: 10px;
    text-wrap: wrap;
    text-align: left;
    color: #888;
    font-size: 16px;
}

footer {
    display: flex;
    width: 370px;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    color: white !important;
}

.anchor_text {
    color: black;
}

.anchor_text:hover {
    text-decoration: underline;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    opacity: 0;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    z-index: 1000;
    pointer-events: none;
}

.popup-content {
    position: absolute;
    height: auto;
    border: 1px solid #888;
    color: #fff;
    border-radius: 5px;
    margin: 0 auto;
    width: 600px;
    padding: 10px;
    pointer-events: auto;
    z-index: 1001;
}

.close-popup {
    outline: none;
    background-color: #ffffff;
    border: 1px solid #000;
    border-radius: 20%;
    color: #000;
    cursor: pointer;
    font-family: arial;
    font-size: 25px;
    font-weight: 700;
    height: 30px;
    line-height: 25px;
    margin-bottom: 10px;
    position: relative;
    text-align: center;
    width: 30px;
    z-index: 1003;
}

.bottom-ad {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    text-align: center;
    background-color: transparent;
    color: white;
    padding: 10px 16px 0 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    display: none;
    animation: slideUp 0.5s ease-out forwards;
}

.close_ub {
    background-color: #ffffff;
    padding: 0 5px;
    position: absolute;
    top: -20px;
    left: 0;
    color: #000;
    font-weight: bold;
    font-size: 20px;
    border-top-right-radius: 8px;
    cursor: pointer;
}

.btn1, .click_btn1 {
    width: 100%;
}

.resp_footer {
    border-top: 1px solid #e5e7eb;
    margin-top: 10px;
}

.resp_play_btn,
.resp_choose_game,
.resp_more_game,
.resp_about_section,
.resp_footer {
    display: flex;
    justify-content: center;
}

.imgBanner {
    height: 30px;
    margin-top: 20px;
}

.header {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.home-back-button {
    width: 40px;
    height: 40px;
    margin-right: 20px;
    cursor: pointer;
    margin-left: 20px;
    visibility: hidden;
}

.back-button {
    width: 40px;
    height: 40px;
    margin-right: 20px;
    cursor: pointer;
    margin-left: 20px;
}

.home-title {
    font-size: 20px;
    margin-left: 15px;
    color: #ffffff;
}

.title {
    font-size: 26px;
    margin-left: 15px;
    color: #ff7f00;
}

.imgTitle {
    width: 50%;
}

.rbximage {
    width: 75%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.homeimage {
    width: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.image {
    width: 100%;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.images {
    width: 100%;
    margin-top: 10px;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.image-container {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.image-container img {
    width: 45%;
    max-width: 100%;
    height: auto;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.image-grid img {
    width: 100%;
    height: auto;
    display: block;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.contentButton {
    font-size: 15px;
    color: #f4a300;
    padding: 20px;
    background-color: #292929;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin: 10px 10px 5px 10px;
}

.countryP {
    font-size: 17px;
    color: #ffffff;
    text-wrap: wrap;
    margin: 10px 0;
}

.dialog-button {
    width: 100%;
}

.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.hidden {
    display: none;
}

.dialog-box {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    width: 300px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.dialog-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.dialog-box h2 {
    margin: 10px 0;
    font-size: 20px;
    font-weight: bold;
}

.dialog-box p {
    font-size: 16px;
    color: #555;
    margin: 10px 0 20px;
}

#spin-btn {
    position: absolute;
    transform: translate(-50%, -50%);
    top: 68%;
    left: 50%;
    height: 11%;
    width: 24%;
    border-radius: 50%;
    cursor: pointer;
    border: 0;
    background: radial-gradient(#fdcf3b 50%, #d88a40 85%);
    color: #c66e16;
    text-transform: uppercase;
    font-size: 1.8em;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.imgspin {
    position: absolute;
    width: 4em;
    top: 62%;
    right: -8%;
}

#final-value {
    font-size: 1.5em;
    text-align: center;
    margin-top: 1.5em;
    color: #ffffff;
    font-weight: 500;
}

.scratchCanvas {
    background: radial-gradient(circle, #cccccc, #999999);
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: transform 0.2s;
}

.scratchCanvas:hover {
    transform: scale(1.05);
}

#reward {
    margin: 20px 0 10px 0;
    animation: fadeIn 1s ease-in-out;
}

.reward-box {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 20px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    animation: popUp 0.5s ease-in-out;
}

.reward-box p {
    font-size: 1.5rem;
    color: #4caf50;
    margin-bottom: 10px;
}

.reward-box h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ff5722;
}

.h1scratch {
    font-size: 2.3rem;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.uldi {
    list-style-type: none;
    padding: 0;
}

.uldi li {
    cursor: pointer;
    padding: 10px 15px;
    margin: 5px 0;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.uldi li:hover {
    background-color: #0056b3;
}

.current-day {
    background-color: #28a745 !important;
    font-weight: bold;
    cursor: pointer;
}

.current-day:hover {
    background-color: #218838;
}

.gadsbanner {
    margin-top: 16px;
}

.imgnotaval {
    width: 25%;
}

.centernotaval {
    text-align: center;
}

.input-field {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.continue-btn {
    width: 100%;
    background-color: #ff7f00;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 10px;
}

#rbxbuilder {
    display: none;
    padding: 20px;
    color: #ffffff;
}

.rbxresult {
    margin-top: 10px;
    color: #ff7f00;
    font-weight: bold;
    font-size: 25px;
}

.animesec {
    margin-bottom: 10px;
}

.meme-card {
    background: #1e1e1e;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.meme-text {
    flex: 1;
    min-width: 0;
}

.meme-card h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    text-align: left;
    white-space: normal;
}

.meme-card p {
    margin: 0;
    font-size: 14px;
    color: #ddd;
    text-align: left;
    word-wrap: break-word;
    white-space: normal;
}

.copy-btn {
    background: #ff6600;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
}

.copy-btn:hover {
    background: #e65c00;
}

.resp_choose_game {
    margin-bottom: 4px;
}

.choose_game {
    margin: 12px 16px 0 16px;
    padding: 16px;
    width: 370px;
    border-radius: var(--rounded);
    border: 1px solid #e5e7eb9c;
}

.redeem-coin {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

#coin {
    font-weight: 600;
    color: #ffffff;
}

.earn-coin-btn {
    display: flex;
    width: 100%;
    justify-content: center;
    margin-top: 8px;
    font-size: 14px;
    text-transform: uppercase;
    position: relative;
}

.earn-coin-btn button {
    cursor: pointer;
    background: #ff765578;
    color: #fff;
    border: none;
    height: 42px;
    padding: 10px 0;
    width: 100%;
    border-radius: var(--btn-rounded);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.earn-coin-btn button img {
    width: 24px;
    height: 24px;
}

.earn-coin-btn button::before,
.earn-coin-btn button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    height: 100%;
    width: 10%;
    background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0) 100%);
    animation: shimmer 2s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes shimmer {
    0% { left: -150%; }
    100% { left: 150%; }
}

.ad-tag-earn {
    position: absolute;
    top: 0;
    right: -10px;
    font-size: 10px;
    letter-spacing: 0;
    text-transform: capitalize;
    color: #ffffff;
}

.toast-message {
    display: none;
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    color: #000;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 2px #0000001a;
    padding: 12px 10px;
    border-radius: 8px;
    font-size: 15px;
    z-index: 9999;
    max-width: 90vw;
    width: max-content;
    white-space: nowrap;
    transition: opacity 0.3s ease;
    text-align: center;
    text-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.toast-message.show {
    display: flex;
    animation: fadeOut 3s forwards;
}

.timer-toast-message {
    display: none;
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    color: #000;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 2px #0000001a;
    padding: 12px 10px;
    border-radius: 8px;
    font-size: 15px;
    z-index: 9999;
    max-width: 90vw;
    width: max-content;
    white-space: nowrap;
    transition: opacity 0.3s ease;
    text-align: center;
    text-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.timer-toast-message.show {
    display: flex;
    animation: fadeOut 8s forwards;
}

@keyframes fadeOut {
    0%, 80% { opacity: 1; }
    100% { opacity: 0; display: none; }
}

.popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.popup-data {
    background: #262626;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    max-width: 370px;
    width: 90%;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.popup-data .oops-img {
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: auto;
}

.popup-data .main-text {
    font-weight: bold;
    font-size: 16px;
    color: #ffffff;
    margin: 50px 0 10px;
}

.popup-data .sub-text {
    font-size: 14px;
    color: #ffffffab;
    margin-bottom: 20px;
}

.watch-btn-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.watch-btn {
    background: #ff7655;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: var(--btn-rounded);
    width: 100%;
    font-size: 14px;
    cursor: pointer;
    height: 42px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.watch-btn::before,
.watch-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    height: 100%;
    width: 10%;
    background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0) 100%);
    animation: shimmer 2s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

.ad-tag {
    position: absolute;
    top: 0;
    right: -15px;
    color: #e3e3e3;
    font-size: 10px;
    letter-spacing: 0;
    text-transform: capitalize;
}

.popup-data .watch-btn .play-icon {
    font-size: 18px;
}

.popup-data .skip-btn {
    background: none;
    border: none;
    color: #ffffffa3;
    width: fit-content;
    margin: 8px auto 0;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
}

.popup-data .congrats-stars {
    width: 80px;
    margin-bottom: 10px;
}

@keyframes bounceBottomToTop {
    0% { transform: translateY(50px); opacity: 0; }
    50% { transform: translateY(-10px); opacity: 1; }
    70% { transform: translateY(5px); }
    100% { transform: translateY(0); }
}

.anima {
    animation: bounceBottomToTop 1s ease-in-out forwards;
}

@keyframes slideUp {
    from { transform: translateX(-50%) translateY(100%); }
    to { transform: translateX(-50%) translateY(0); }
}

/* --- Responsive --- */

@media (min-width:500px) and (max-width:870px) {
    .logo_content { font-size: .875rem; line-height: 1.25rem; }
}

@media (max-width:500px) {
    .main_div { min-width: 100%; width: 100%; padding: 0; }
    .game_section2 { width: 180px; }
    .main_logo { display: none; }
}

@media (max-width:500px) and (min-width:420px) {
    .game_section1 { width: fit-content; margin: 0 auto; }
}

@media (max-width:450px) {
    .game_section { border: none; padding: 0; }
    .game_section5 button { text-wrap: nowrap; }
    .click_btn { font-size: 14px; text-wrap: nowrap; }
    .click_btn_option { padding: 10px 15px; }
}

@media (max-width:420px) {
    .game_section2, .choose_game, .play_btn, .more_game { width: 100%; }
}

@media (max-width:400px) {
    .game_section5 button { padding: 10px 45px; }
    .about_section { padding: 0 16px 16px 16px; }
    footer { padding: 7px 16px; }
}

@media (max-width:360px) {
    .game_section5 button { padding: 10px 35px; }
}

@media (max-width:346px) {
    .cat_img { width: 15px; height: 15px; }
    .game_section1 { gap: 0.5rem; }
}

@media (max-width:320px) {
    .game_section5 button { padding: 10px 20px; }
}

@media (max-width:280px) {
    .game_section { margin: 16px 12px 0 12px; }
    .click_btn { text-wrap: nowrap; font-size: 12px; }
    .class_flex { gap: 4px; }
}

@media (max-width:768px) {
    .main_img { width: 100%; }
}

@media (max-width:640px) {
    .popup-content { width: 350px; }
}

@media (max-width:470px) {
    .popup-content { width: 100%; }
}

@media (max-width:386px) {
    .bottom-ad { width: 100%; }
}
