.login-register-prompt {
    clear: both;
    margin: 14px 0 0;
    color: #aeb5c2;
    font-size: 13px;
    text-align: center;
}

.login-register-prompt a {
    color: #e9b83f;
    font-weight: 700;
    text-decoration: none;
}

.login-register-prompt a:hover,
.login-register-prompt a:focus-visible {
    color: #ffd66b;
    text-decoration: underline;
}

/* Shared reCAPTCHA frame. It keeps the iframe's real hit area aligned with
   the rendered checkbox on desktop and on touch screens. */
.mobile-recaptcha-shell {
    --mobile-captcha-scale: 1;
    width: 304px;
    max-width: 100%;
    min-height: 78px;
    margin: 8px auto 14px;
    position: relative;
    z-index: 2;
    overflow: visible;
    pointer-events: auto;
    touch-action: manipulation;
}

.mobile-recaptcha-shell .g-recaptcha,
.mobile-recaptcha-shell iframe {
    pointer-events: auto !important;
    touch-action: manipulation;
}

@media (max-width: 900px) {
    /* ValuableItems ve Shozin iki kolonlu eski tablo iskeletini mobilde alt alta getirir. */
    .chests > table,
    .chests > table > tbody,
    .chests > table > tbody > tr,
    .chests > table > tbody > tr > td {
        display: block;
        width: 100% !important;
        box-sizing: border-box;
    }

    .chests > table {
        border-spacing: 0;
    }

    .chests #chestform,
    .chests #chestdiv {
        width: auto !important;
        max-width: 100%;
        margin: 20px auto !important;
        box-sizing: border-box;
    }

    .chests > table > tbody > tr > td:first-child {
        max-height: 520px;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .chests #chestform fieldset {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .chests #chestform fieldset img {
        margin: 0 !important;
    }

    .chests #loading {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* ItemSearch sabit 960px masaüstü yerleşimini mobil akışa çevirir. */
    .item-search-page .store_body,
    .item-search-page .store_header,
    .item-search-page .store_inner_body,
    .item-search-page .store_left_side,
    .item-search-page .store_right_side,
    .item-search-page .store_items_list {
        width: 100% !important;
        max-width: 100%;
        box-sizing: border-box;
    }

    .item-search-page .store_body {
        margin: 18px 0 !important;
    }

    .item-search-page .store_header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        height: auto !important;
        padding: 12px;
    }

    .item-search-page .store_header #item_name {
        width: auto !important;
        min-width: 0;
        margin: 0 !important;
        box-sizing: border-box;
    }

    .item-search-page .store_header #searchbtn {
        float: none;
        margin: 0 !important;
    }

    .item-search-page .store_inner_body {
        display: flex;
        flex-direction: column;
        height: auto !important;
        margin-left: 0 !important;
    }

    .item-search-page .store_left_side,
    .item-search-page .store_right_side {
        float: none !important;
        height: auto !important;
    }

    .item-search-page .store_left_side {
        margin-left: 0 !important;
        padding: 0 12px 12px;
    }

    .item-search-page .store_right_side {
        padding: 12px;
    }

    .item-search-page #left_scrollbable .scrollbar,
    .item-search-page .store_items_list > .scrollbar,
    .item-search-page #topik .scrollbar {
        display: none !important;
    }

    .item-search-page #left_scrollbable .viewport,
    .item-search-page #left_scrollbable .overview,
    .item-search-page .store_items_list > .viewport,
    .item-search-page .store_items_list > .viewport > .overview,
    .item-search-page #topik .viewport,
    .item-search-page #topik .overview {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        height: auto !important;
        max-width: 100%;
    }

    .item-search-page #left_scrollbable .viewport {
        float: none !important;
        max-height: 380px;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .item-search-page .store_items_list > .viewport {
        float: none !important;
        margin: 0 !important;
        overflow: visible !important;
    }

    .item-search-page .store_category,
    .item-search-page .store_category_button,
    .item-search-page .store_sub_categories,
    .item-search-page .store_sub_category_button,
    .item-search-page #itemsearch_result,
    .item-search-page #itemsearch_result .error,
    .item-search-page #itemsearch_result #monster_info,
    .item-search-page #itemsearch_result .mob_info,
    .item-search-page #itemsearch_result .found_item_list {
        width: 100% !important;
        max-width: 100%;
        box-sizing: border-box;
    }

    .item-search-page #itemsearch_result #monster_info,
    .item-search-page #itemsearch_result .mob_info,
    .item-search-page #itemsearch_result .found_item_list {
        float: none !important;
        margin: 0 !important;
    }

    .item-search-page #itemsearch_result #monster_info + #monster_info {
        margin-top: 14px !important;
    }

    .item-search-page #itemsearch_result .found_item_list,
    .item-search-page #topik .viewport {
        max-height: 430px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 680px) {
    .login-page .mainbox-body,
    .login-page form,
    .login-page form table,
    .login-page form tbody,
    .login-page form tr,
    .login-page form td {
        display: block;
        width: 100% !important;
        box-sizing: border-box;
    }

    .login-page input[type="text"],
    .login-page input[type="password"],
    .login-page input[type="submit"] {
        width: 100% !important;
        max-width: 100%;
        margin-right: 0 !important;
        box-sizing: border-box;
    }

    .login-page #forgot {
        float: none !important;
        width: 100%;
        margin: 12px 0 0;
        text-align: center;
    }

    .mobile-recaptcha-shell {
        --mobile-captcha-scale: 1;
        width: calc(304px * var(--mobile-captcha-scale));
        height: calc(78px * var(--mobile-captcha-scale));
        min-height: 0;
        max-width: 100%;
        margin: 8px auto 14px;
        position: relative;
        z-index: 20;
        overflow: visible;
        pointer-events: auto;
        touch-action: manipulation;
    }

    .mobile-recaptcha-shell .g-recaptcha {
        width: 304px;
        max-width: none;
        overflow: visible;
        position: relative;
        z-index: 1;
        transform: scale(var(--mobile-captcha-scale));
        transform-origin: left top;
        pointer-events: auto !important;
    }

    .mobile-recaptcha-shell iframe {
        pointer-events: auto !important;
        touch-action: manipulation;
    }

    .agreement-page .container_terms,
    .agreement-page #terms-container,
    .agreement-page #terms-container .viewport,
    .agreement-page #terms-container .overview {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        max-width: 100%;
        margin-left: 0 !important;
        box-sizing: border-box;
    }

    .agreement-page .container_terms {
        padding: 0 12px;
    }

    .agreement-page #terms-container .scrollbar,
    .agreement-page #terms-container .shadow {
        display: none !important;
    }

    .agreement-page #terms-container .viewport {
        height: min(64vh, 620px) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .agreement-page #terms-container .overview {
        padding-right: 4px;
    }

    .agreement-page input[type="button"],
    .agreement-page input[type="submit"],
    .agreement-page .button {
        width: 100%;
        max-width: 100%;
        margin: 6px 0 !important;
        box-sizing: border-box;
    }

    .upgrade-page .account-wide,
    .upgrade-page .mainbox-body {
        width: 100% !important;
        max-width: 100%;
        box-sizing: border-box;
    }

    .upgrade-page #imaged_header {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
        height: auto !important;
    }

    .upgrade-page .account-wide {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .upgrade-page .account-wide table {
        min-width: 640px;
    }

    .mining-page .mainbox-body {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .mining-page .mainbox-body table.dataTable,
    .mining-page .mainbox-body .dataTables_wrapper {
        min-width: 640px;
    }

    .chests #chestdiv {
        max-height: 430px;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .chests #chestdiv .valuable-results,
    .chests #chestdiv .shozin-results,
    .chests #chestdiv .result-grid {
        grid-template-columns: 1fr !important;
    }

    .chests #chestdiv img {
        flex: 0 0 auto;
    }

    .products-page .store_product_list,
    .products-page .store_product_list > ul,
    .products-page .store_product_list .category {
        width: 100% !important;
        max-width: 100%;
        box-sizing: border-box;
    }

    .products-page .store_product_list .category:first-child {
        flex-wrap: nowrap;
        margin: 0 0 16px !important;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .products-page .product-select-info {
        width: 100%;
        white-space: normal;
        line-height: 1.55;
        box-sizing: border-box;
    }

    .products-page .store_product_list > ul > li {
        width: 100% !important;
        max-width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box;
    }
}

@media (max-width: 380px) {
    .mobile-recaptcha-shell {
        --mobile-captcha-scale: .84;
    }

    .products-page .store_product_list .category:first-child a {
        flex: 0 0 auto;
    }
}
/* Eşya arama: buton, arama alanının yanında kalır. */
.item-search-page .store_header {
    width: min(100%, 700px);
    min-height: 55px;
    height: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    box-sizing: border-box;
}

.item-search-page .store_header #item_name {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    margin: 0;
}

.item-search-page .store_header #searchbtn {
    flex: 0 0 auto;
    float: none;
    width: auto;
    height: 34px;
    margin: 0;
    padding: 0 18px;
}
