/* ROD PC integration. Mobile user agents are routed to /wap/ by checkJump(). */
html,
body.dragon-page {
    width: 100%;
    min-width: 1180px;
    margin: 0;
    padding: 0;
}

body.dragon-page {
    min-height: 100vh;
    color: #d8c8aa;
    background: #242424;
}

.dragon-page .hero {
    position: relative;
    width: min(1920px, 100%);
    height: auto;
    aspect-ratio: 1920 / 480;
    margin: 0 auto;
    border: 0;
    background: url("../images/pay_top.jpg") center top / 100% 100% no-repeat;
}

.dragon-page .shell_bg {
    width: min(1920px, 100%);
    min-height: 700px;
    margin: 0 auto;
    overflow: visible;
    background: url("../images/pay_bg_m.jpg") center top / 100% auto repeat-y;
}

.dragon-page .shell_bg_top {
    width: 100%;
    min-height: 700px;
    background: url("../images/pay_bg_t.jpg") center top / 100% auto no-repeat;
}

.dragon-page .shell {
    width: 1180px;
    min-height: 700px;
    margin: 0 auto;
    padding: 110px 85px 76px;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.dragon-page .shell_bg_bottom {
    width: 100%;
    height: auto;
    aspect-ratio: 1920 / 156;
    margin-top: -1px;
    background: url("../images/pay_bg_b.jpg") center bottom / 100% 100% no-repeat;
}

.dragon-language {
    position: absolute;
    z-index: 12;
    top: 28px;
    right: 28px;
    width: 104px;
    min-height: 40px;
    border: 1px solid #9d8455;
    color: #ead4a7;
    background: #11191de8;
    cursor: pointer;
}

.dragon-language > span {
    display: block;
    padding: 10px 32px 10px 13px;
    font-size: 15px;
}

.dragon-language > i {
    position: absolute;
    top: 16px;
    right: 12px;
    width: 0;
    height: 0;
    border: 5px solid transparent;
    border-top-color: #d8bd89;
}

.dragon-language.active > i {
    top: 10px;
    transform: rotate(180deg);
}

.dragon-language ul {
    display: none;
    position: absolute;
    top: 39px;
    right: -1px;
    width: 104px;
    margin: 0;
    padding: 0;
    border: 1px solid #9d8455;
    background: #11191d;
    list-style: none;
}

.dragon-language li,
.dragon-language a {
    display: block;
    width: 100%;
}

.dragon-language a {
    padding: 9px 13px;
    color: #d8c39d;
    text-decoration: none;
}

.dragon-language a:hover,
.dragon-language a.active {
    color: #fff3d3;
    background: #493e2b;
}

.dragon-page .view.active {
    padding-top: 0;
}

/* Region and payment method page */
.dragon-page .region-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 353px));
    justify-content: start;
    gap: 12px 18px;
}

.dragon-page .region-grid button,
.dragon-page .region-grid button[data-region] {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 85px;
    aspect-ratio: auto;
    padding: 0 20px;
    align-items: center;
    justify-content: center;
    gap: 18px;
    border: 0;
    color: #d8c092;
    background: url("../images/info_btn.jpg") center / 100% 100% no-repeat;
    box-shadow: none;
    font: 600 24px/1.15 Georgia, serif;
    text-align: center;
    text-shadow: 0 2px 3px #000;
    cursor: pointer;
}

.dragon-page .region-grid button::before {
    content: "";
    width: 46px;
    height: 48px;
    flex: 0 0 46px;
    background: url("../images/tab_ico.png") center / contain no-repeat;
}

.dragon-page .region-grid button:hover,
.dragon-page .region-grid button:focus-visible,
.dragon-page .region-grid button.active,
.dragon-page .region-grid button.hover {
    color: #fff1c7;
    background-image: url("../images/info_btn_hover.jpg");
    box-shadow: none;
    filter: none;
}

.dragon-page .notes {
    margin-top: 54px;
    padding: 25px 28px;
    border: 1px solid #a9906440;
    background: #05080a33;
}

.dragon-page .notes h2 {
    margin: 0 0 25px;
    color: #b79979;
    font: 600 20px Georgia, serif;
}

.dragon-page .notes ol {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: dragon-note;
}

.dragon-page .notes li {
    position: relative;
    min-height: 29px;
    margin-bottom: 17px;
    padding-left: 39px;
    color: #b79979;
    font-size: 16px;
    line-height: 1.55;
    counter-increment: dragon-note;
}

.dragon-page .notes li:last-child {
    margin-bottom: 0;
}

.dragon-page .notes li::before {
    content: counter(dragon-note);
    position: absolute;
    top: -1px;
    left: 0;
    display: grid;
    width: 29px;
    height: 28px;
    place-items: center;
    color: #000;
    background: url("../images/tip_nuber_ico1.png") center / contain no-repeat;
    font-size: 12px;
    font-weight: 700;
}

.dragon-page .methods-title {
    margin: 42px 0 25px;
}

.dragon-page .methods-title h2 {
    margin: 0;
    color: #cfa17e;
    font-size: 22px;
}

.dragon-page #channel-groups-container.method-grid {
    display: block;
}

.payment-group {
    margin-bottom: 30px;
}

.payment-group h3 {
    margin: 0 0 16px;
    color: #cfa17e;
    font-size: 18px;
}

.payment-group-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.dragon-page .method.recommend {
    display: flex;
    min-width: 0;
    min-height: 76px;
    padding: 14px 20px;
    align-items: center;
    gap: 16px;
    border: 1px solid #344d60;
    color: #c2bbad;
    background: #0b141acc;
    font-size: 18px;
    cursor: pointer;
}

.dragon-page .method.recommend:hover,
.dragon-page .method.recommend:focus-visible {
    border-color: #d0aa68;
    color: #fff1d1;
    background: #17252d;
}

.dragon-page .method img {
    width: auto;
    min-width: 44px;
    height: 44px;
    flex: 0 0 auto;
    object-fit: contain;
}

.method-name {
    min-width: 0;
    flex: 0 1 auto;
    overflow-wrap: anywhere;
    line-height: 1.3;
    text-align: left;
    word-break: break-word;
}

.method-recommended {
    margin-left: auto;
    padding: 3px 6px;
    flex: 0 0 auto;
    color: #f4d49c;
    background: #7b4931;
    font-size: 10px;
    white-space: nowrap;
}

/* Recharge page */
.dragon-products-view .account {
    position: relative;
}

.dragon-products-view .label-row {
    min-height: 72px;
    padding-right: 115px;
}

.dragon-products-view .label-row h2 {
    flex: 0 0 auto;
}

.dragon-products-view .label-row em {
    font-size: 17px;
    line-height: 1.4;
}

.dragon-products-view .tiny-info {
    border: 0;
    background: url("../images/info-red.png") center / contain no-repeat;
    font-size: 0;
}

.dragon-products-view .coin-guide {
    top: -14px;
    right: 0;
    width: 92px;
    height: 92px;
    padding: 0;
    border: 0;
    transform: none;
    background: transparent;
}

.dragon-products-view .coin-guide img {
    border-radius: 0;
    transform: none;
}

.dragon-products-view .label-row .coin-guide {
    position: fixed;
    z-index: 20;
    top: 180px;
    right: max(24px, calc((100vw - 1600px) / 2 + 80px));
    background: transparent url("../images/guide-button.png") center / contain no-repeat;
}

.dragon-products-view .label-row .coin-guide img {
    display: none;
}

.dragon-products-view .account form {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 18px;
    padding-right: 0;
}

.dragon-products-view .login_1 {
    position: relative;
    display: block;
}

.dragon-products-view #uniq_id {
    width: 100%;
    padding-right: 56px;
    background: #11191d url("../images/icon_down.png") right 18px center no-repeat;
}

.dragon-products-view .confirm {
    width: 210px;
    height: 75px;
    border: 0;
    color: #fff4d5;
    background: url("../images/btn_infirm.png") center / 100% 100% no-repeat;
    box-shadow: none;
    font: 600 22px Georgia, serif;
    text-shadow: 0 1px 2px #35200d;
}

.role_history_btn {
    position: absolute;
    top: 1px;
    right: 1px;
    width: 54px;
    height: 73px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.role_history_dropdown {
    position: absolute;
    z-index: 16;
    top: 76px;
    left: 0;
    display: block;
    width: 100%;
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid #6f6044;
    background: #11191d;
    box-shadow: 0 10px 20px #0008;
}

.role_history_list,
.role_history_item,
.role_history_info,
.role_history_roleId {
    display: block;
}

.role_history_item {
    position: relative;
    padding: 12px 42px 12px 14px;
    border-bottom: 1px solid #363b38;
    color: #d7c29b;
    cursor: pointer;
}

.role_history_item:hover {
    background: #3b3428;
}

.role_history_delete {
    position: absolute;
    top: 8px;
    right: 14px;
    color: #ca6f68;
    font-size: 22px;
}

.dragon-products-view .character {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    padding: 14px 8px 22px;
}

.dragon-products-view .role-points {
    text-align: right;
}

.dragon-products-view .role-points b {
    color: #d55a52;
}

.dragon-products-view .shop {
    margin-top: 8px;
}

.dragon-products-view .section-head {
    min-height: 54px;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    margin: 0 0 18px;
    padding: 0;
    gap: 4px;
    list-style: none;
}

.category-tabs .pay_type {
    min-width: 145px;
    padding: 12px 18px;
    border: 1px solid #5c5a4b;
    color: #a9a28f;
    background: #121a1eaa;
    text-align: center;
    cursor: pointer;
}

.category-tabs .pay_type:hover,
.category-tabs .pay_type.active {
    border-color: #ae8950;
    color: #f1d49f;
    background: #433a2c;
}

.countdown-bar {
    margin-bottom: 14px;
    padding: 10px 16px;
    color: #ffe1aa;
    background: #8b392fb8;
    text-align: center;
}

.countdown-bar span + span {
    margin-left: 18px;
}

.dragon-products-view .product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    max-height: 560px;
    margin: 0;
    padding: 0 14px 0 0;
    gap: 9px;
    list-style: none;
}

.dragon-products-view .product-card {
    position: relative;
    aspect-ratio: 1 / 1.04;
    min-width: 0;
    overflow: hidden;
    border: 0;
    background: url("../images/product-bg.png") center / 100% 100% no-repeat;
}

.dragon-products-view .product-card::after {
    display: none;
}

.dragon-products-view .product-card.on,
.dragon-products-view .product-card.selected {
    z-index: 1;
    box-shadow: 0 0 18px #ffc64e;
}

.dragon-products-view .product-card.on::before,
.dragon-products-view .product-card.selected::before {
    content: "";
    position: absolute;
    z-index: 5;
    inset: 0;
    background: transparent url("../images/selected.png") center / 100% 100% no-repeat;
    pointer-events: none;
}

.dragon-products-view .product-card:not(.on):not(.selected):hover::before {
    content: "";
    position: absolute;
    z-index: 5;
    inset: 0;
    background: transparent url("../images/selected.png") center / 110% 110% no-repeat;
    pointer-events: none;
}

.dragon-products-view .product-card .ribbon {
    position: absolute;
    z-index: 6;
    top: 0;
    left: 0;
    width: 84px;
    height: 82px;
    padding: 0;
    transform: none;
    color: transparent;
    background: url("../images/ribbon.png") left top / 84px 82px no-repeat;
}

.dragon-products-view .product-card .ribbon::after {
    content: attr(data-label);
    position: absolute;
    top: 21px;
    left: -1px;
    width: 68px;
    transform: rotate(-45deg);
    color: #fff7dc;
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    text-shadow: 0 1px 1px #5b1d1d;
}

.dragon-products-view .product-card .card-info {
    z-index: 7;
    background: url("../images/info-card.png") center / contain no-repeat;
    font-size: 0;
}

.dragon-products-view .select-product {
    z-index: 4;
    padding: 2% 0 0;
}

.dragon-products-view .select-product img {
    width: 47%;
    border-radius: 0;
    object-fit: contain;
    filter: drop-shadow(0 6px 7px #160d05);
}

.dragon-products-view .product-card-details {
    display: flex;
    width: 100%;
    height: 62px;
    padding: 6px 7px 8px;
    align-items: center;
    flex: 0 0 62px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    color: #e8d9ba;
    background: #2b241ba8;
    font-family: Georgia, "Microsoft YaHei", serif;
    font-size: 16px;
    line-height: 1.15;
    text-align: center;
}

.dragon-products-view .product-card-details > span {
    display: block;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.dragon-products-view .product-card-details .product-quantity {
    color: #f28a00;
    font: inherit;
    font-weight: 400;
}

.no-items {
    grid-column: 1 / -1;
    padding: 55px 20px;
    color: #aaa;
    text-align: center;
}

.recharge-action {
    padding-top: 42px;
}

.dragon-page .pay,
.dragon-page .modal-price {
    width: 550px;
    min-height: 110px;
    border: 0;
    background: url("../images/price-bg.png") center / 100% 100% no-repeat;
    box-shadow: none;
    clip-path: none;
}

.dragon-page .pay:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.dragon-page .pay strong {
    font-size: 38px;
    color: #c94700;
    -webkit-text-fill-color: #c94700;
    -webkit-text-stroke: 1px #e56b00;
    font-family: "Arial Black", Arial, "Microsoft YaHei", sans-serif;
    font-style: italic;
    font-weight: 900;
    letter-spacing: 0;
    text-shadow: 0 1px 0 #ffad22, 0 2px 2px rgba(103, 31, 0, .32);
}

.dragon-page .pay small {
    font-size: 16px;
}

.agreement-row {
    display: flex;
    max-width: 760px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    line-height: 1.4;
    font-size: 15px !important;
}

.agreement-row input {
    flex: 0 0 auto;
}

/* Checkout */
.dragon-checkout-page .shell,
.dragon-result-page .shell {
    padding-top: 95px;
}

.dragon-checkout-page .checkout-view.active {
    display: flex;
    width: 100%;
    justify-content: center;
}

.dragon-page .confirm-panel {
    width: 790px;
    max-width: 100%;
    margin: 0 auto;
    padding: 38px 48px;
}

.dragon-page .confirm-panel > h2 {
    margin: 0 0 18px;
    font-size: 20px;
    text-align: center;
}

.checkout-product-preview {
    display: flex;
    min-height: 110px;
    margin-bottom: 15px;
    padding: 10px 24px;
    align-items: center;
    justify-content: center;
    gap: 22px;
    border: 1px solid #554e40;
    background: #0b1114a6;
}

.checkout-product-preview > div {
    min-width: 0;
    max-width: calc(100% - 110px);
}

.checkout-product-preview img {
    width: 88px;
    height: 88px;
    object-fit: contain;
}

.checkout-product-preview strong,
.checkout-product-preview span {
    display: block;
    overflow-wrap: anywhere;
}

.checkout-product-preview strong {
    color: #f0d7a7;
    font-size: 20px;
}

.checkout-product-preview span {
    margin-top: 8px;
    color: #ce645a;
}

.dragon-page .confirm-panel dl {
    margin: 0;
}

.dragon-page .confirm-panel dl > div {
    display: grid;
    grid-template-columns: 155px minmax(0, 1fr);
    min-height: 50px;
    padding: 12px 14px;
    align-items: center;
    border-bottom: 1px solid #323432;
    font-size: 17px;
}

.dragon-page .confirm-panel dt {
    text-align: right;
}

.dragon-page .confirm-panel dd {
    min-width: 0;
    margin-left: 28px;
    overflow-wrap: anywhere;
}

.dragon-checkout-page .confirm-panel dl > div {
    display: flex;
    justify-content: center;
    gap: 28px;
}

.dragon-checkout-page .confirm-panel dt {
    flex: 0 0 170px;
}

.dragon-checkout-page .confirm-panel dd {
    width: 260px;
    margin-left: 0;
}

#currency-select {
    min-width: 220px;
    padding: 8px 34px 8px 12px;
    border: 1px solid #776748;
    color: #e5d8be;
    background: #11191d;
}

.dragon-page .actions button {
    min-width: 220px;
    min-height: 62px;
    border: 0;
    color: #ead6ab;
    background: url("../images/btn_infirm.png") center / 100% 100% no-repeat;
}

.dragon-page .actions .primary {
    color: #fff2c8;
    filter: brightness(1.14);
}

/* Result */
.dragon-page .result-panel {
    width: 760px;
    margin: 35px auto 80px;
    padding: 55px;
    border: 1px solid #554e40;
    background: #11191dcc;
}

.dragon-page .result-back-button {
    display: inline-grid;
    min-width: 345px;
    min-height: 84px;
    padding: 12px 34px;
    place-items: center;
    border: 1px solid #887655;
    color: #d8bf91;
    background: linear-gradient(135deg, #514939, #282a26);
    font-size: 28px;
    font-weight: 700;
    text-decoration: none;
}

.dragon-page .result-message {
    min-height: 24px;
}

/* Modal integration */
.dragon-page .overlay {
    z-index: 40;
}

.dragon-page #product-detail-modal {
    height: 748px;
}

.dragon-page .product-modal .paper {
    height: 100%;
    max-height: calc(100vh - 48px);
    padding: 24px 48px 20px;
    overflow: hidden;
}

.dragon-page .id-help-modal {
    width: min(860px, calc(100vw - 80px));
    max-height: calc(100dvh - 48px);
}

.dragon-page .id-help-paper {
    display: grid;
    max-height: calc(100dvh - 48px);
    padding: 16px;
    place-items: center;
    box-sizing: border-box;
    overflow: auto;
}

.dragon-page .id-help-paper img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: calc(100dvh - 84px);
    object-fit: contain;
}

.dragon-page .alert-modal .paper {
    max-height: calc(100vh - 48px);
    overflow-y: auto;
}

.dragon-page .alert-modal p {
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.dragon-page .large-card .ribbon {
    top: -4px;
    left: -9px;
    width: 160px;
    height: 156px;
    background: url("../images/ribbon_phone.png") left top / 160px 156px no-repeat;
}

.dragon-page .large-card .ribbon::after {
    top: 44px;
    left: 4px;
    width: 116px;
    font-size: 18px;
}

.dragon-page #product-detail-modal .paper .large-card > img {
    display: block;
    width: 160px !important;
    max-width: 160px !important;
    height: auto !important;
    margin: 15% auto 21% !important;
    border-radius: 0;
    object-fit: contain;
    image-rendering: auto;
}

.dragon-page #product-detail-modal .large-card {
    width: min(430px, 88%);
    min-height: 0;
    aspect-ratio: 1 / 1.03;
    margin: 0 auto 12px;
    background: transparent url("../images/tc_gift.png") center / 100% 100% no-repeat;
    border: 0;
}

.dragon-page #product-detail-modal .large-card > strong,
.dragon-page #product-detail-modal .large-card > small {
    display: block;
    width: 84%;
    min-width: 0;
    max-width: 84%;
    margin-inline: auto;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.dragon-page .large-card .product-quantity {
    color: #f28a00;
    font: inherit;
}

.dragon-page #product-detail-modal .paper > h2 {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    overflow: visible;
    font-size: 24px;
    line-height: 1.15;
    white-space: normal;
    text-align: left;
    text-overflow: clip;
}

.dragon-page #product-detail-modal .paper > h2 + h2 {
    margin-top: 12px;
}

.dragon-page #product-detail-modal .paper > h2 > span,
.dragon-page #product-detail-modal .paper > h2 > b {
    display: block;
    min-width: 0;
    max-width: 100%;
}

.dragon-page #product-detail-modal .paper > h2 > span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.dragon-page #product-detail-modal #detail-content,
.dragon-page #product-detail-modal #detail-bonus {
    display: block;
    overflow: hidden;
    font-weight: 400;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.dragon-page #product-detail-modal #detail-content {
    margin-bottom: 6px;
}

.dragon-page #product-detail-modal .modal-price {
    width: min(400px, 100%);
    min-height: 80px;
    /* margin-top: 12px; */
}

.dragon-page #guide-modal {
    width: min(770px, calc(100vw - 128px));
    height: min(795px, calc(100dvh - 52px));
    max-height: calc(100dvh - 52px);
}

.dragon-page #guide-modal > .paper {
    width: 100%;
    height: 100%;
    padding: 10px;
    overflow: hidden;
}

.dragon-page #guide-modal .guide-scroll {
    width: 100%;
    height: 100%;
    padding: 25px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.dragon-page .guide-block {
    display: block;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    background: #17252d;
}

.dragon-page .guide-step-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
}

@media (max-width: 1179px) {
    html,
    body.dragon-page {
        min-width: 1180px;
    }
}
