* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    width: 100%;
    min-height: 100%;
    background: #120c08;
    color: #f5d58a;
    font-family: "Tahoma", "Arial", sans-serif;
}

body {
    overflow-x: hidden;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

.gradient-text {
    color: rgba(255, 239, 0, 1);
    background: linear-gradient(
        180deg,
        rgba(255, 239, 0, 1) 0%,
        rgba(255, 131, 45, 1) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auction-page {
    position: relative;
    width: 7.2rem;
    max-width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    padding: 0.14rem 0.24rem 0.4rem;
    background: #221611 url(https://update.egyludo.com/images/auction/bg.png) no-repeat top center;
    background-size: 100% auto;
    overflow-x: hidden;
}

.auction-header {
    display: flex;
    align-items: center;
    gap: 0.12rem;
    min-height: 0.72rem;
}

.settings-menu {
    position: relative;
    flex-shrink: 0;
}

.settings-btn {
    width: 0.55rem;
    height: 0.55rem;
    display: block;
    position: relative;
    left: -.12rem;
}

.settings-btn img {
    width: 100%;
    height: 100%;
    display: block;
}

.settings-options {
    position: absolute;
    top: 0.68rem;
    left: 0;
    z-index: 20;
    width: 1.4rem;
    padding: 0.08rem .24rem;
    border-radius: 0.16rem;
    background: #f7f1e8;
    box-shadow: 0 0.08rem 0.2rem rgba(0, 0, 0, 0.35);
    direction: rtl;
}

.settings-options::before {
    content: "";
    position: absolute;
    top: -0.12rem;
    left: 0.05rem;
    width: 0;
    height: 0;
    border-left: 0.24rem solid transparent;
    border-right: 0.24rem solid transparent;
    border-bottom: 0.24rem solid #f7f1e8;
}

.settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.16rem;
    min-height: 0.7rem;
    padding: 0.1rem 0;
    color: #2a2a2a;
    font-size: 0.2rem;
    font-weight: 400;
    cursor: pointer;
}

.settings-item + .settings-item {
    border-top: 1px solid #e5d9c8;
}

.settings-item img {
    width: 0.27rem;
    height: 0.27rem;
    flex-shrink: 0;
    object-fit: contain;
}

.settings-item:active {
    background: rgba(0, 0, 0, 0.04);
}

.prop-group {
    display: flex;
    align-items: center;
    gap: 0.36rem;
    flex: 1;
}

.prop-chip {
    position: relative;
    min-width: 1.2rem;
    height: 0.5rem;
    padding: 0 0.36rem 0 0.16rem;
    border-radius: 0.4rem;
    border: 1px solid rgba(212, 175, 55, 0.55);
    background: rgba(28, 18, 10, 0.72);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-size: 0.25rem;
    color: #ffe7a8;
    line-height: 1;
}

.prop-chip img {
    position: absolute;
    right: -0.2rem;
    top: 50%;
    transform: translateY(-50%);
    height: 0.5rem;
    width: auto;
}

.user-box {
    display: flex;
    align-items: center;
    gap: 0.08rem;
    margin-left: auto;
}

.user-meta {
    text-align: right;
    line-height: 1.2;
}

.user-name {
    font-size: 0.25rem;
    color: #ffe7a8;
    font-weight: normal;
}

.user-id {
    font-size: 0.18rem;
    color: #c9a35d;
}

.vip-btn {
    position: absolute;
    right:  -.2rem;
    top: 1.26rem;
    width: 1.39rem;
    height: .485rem;
    flex-shrink: 0;
}
.vip-btn img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.auction-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 0.5rem;
}

.exchange-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.08rem;
    font-size: 0.34rem;
    font-weight: 700;
    color: #f3d48a;
    text-shadow: 0 0.02rem 0.08rem rgba(0, 0, 0, 0.55);
}

.exchange-title img {
    width: 0.36rem;
    height: 0.36rem;
}
#exchange-gold-amount{
    color: #000;
    font-weight: normal;
    font-size: .52rem;
    font-family: DOMINO-A;
    position: relative;
    top: -.04rem;
}


.exchange-hero {
    position: relative;
    width: 100%;
    height: 4.4rem;
}

.exchange-amount {
    position: absolute;
    left: 50%;
    top: 0.08rem;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.06rem;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 1;
    font-family: RobotoRegular;
}

.exchange-amount img {
    width: 0.7rem;
    height: 0.75rem;
}

.count-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 2.6rem;
    height: 0.63rem;
    padding: 0 0.04rem;
    border-radius: 0.7rem;
    border: 1px solid rgba(212, 175, 55, 0.65);
    background: rgba(28, 18, 10, 0.78);
    box-shadow: inset 0 0 0.12rem rgba(0, 0, 0, 0.45);
    background-color: rgba(92, 65, 41, 1);
    box-sizing: border-box;
}

.count-btn {
    width: 0.53rem;
    height: 0.53rem;
    border-radius: 50%;
    border: 1px solid #d4af37;
    background: rgba(234, 186, 95, 1);
    color: rgba(71, 45, 27, 1);
    font-size: 0.6rem;
    line-height: .6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    font-weight: 700;
}

.count-btn:active {
    transform: scale(0.94);
}

.count-value {
    min-width: 0.6rem;
    text-align: center;
    font-size: 0.49rem;
    font-weight: normal;
    color: #ffe7a8;
}


.exchange-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    padding: 0 .7rem;
    height: 0.86rem;
    margin-top: 0.28rem;
    border-radius: 0.86rem;
    background: rgba(18, 216, 157, 1);
    color: #fff7d2;
    font-size: 0.42rem;
    font-weight: 700;
}

.exchange-btn:active {
    transform: scale(0.98);
}

.exchange-btn img {
    width: 0.53rem;
    height: 0.53rem;
}

.history-section {
    width: 100%;
    margin-top: 0.42rem;
    padding: .12rem;
    border: 0.02rem solid rgba(143, 109, 75, 1);
    border-radius: .12rem;
    box-sizing: border-box;
}

.history-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.16rem;
    margin-bottom: 0.18rem;
    font-size: 0.28rem;
    color: #f3d48a;
}

.history-title .line {
    display: block;
    width: 1.4rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    padding-bottom: 0.1rem;
}

.history-row {
    display: flex;
    align-items: center;
    gap: 0.12rem;
    min-height: 0.7rem;
    padding: 0.12rem 0.18rem;
    border-radius: 0.18rem;
    background: rgba(32, 24, 16, 0.88);
    border: 1px solid rgba(184, 146, 64, 0.28);
}

.history-date {
    flex: 0 0 1.4rem;
    font-size: 0.2rem;
    color: #c9a35d;
}

.history-status {
    flex: 0 0 1.2rem;
    font-size: 0.2rem;
    color: #3ed48a;
    text-align: center;
}

.history-detail {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.08rem;
    font-size: 0.22rem;
    color: #ffe7a8;
}

.history-list .ticket-num,
.history-list .gold-num {
    font-size: 0.29rem;
}

.history-detail .arrow {
    width: 0.35rem;
    height: 0.2rem;
    object-fit: contain;
}

.history-detail img,
.icon-ticket,
.icon-gold {
    width: 0.28rem;
    height: 0.28rem;
    vertical-align: middle;
}

.ticket-part,
.gold-part {
    display: inline-flex;
    align-items: center;
    gap: 0.04rem;
}

.dialog-mask {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem;
    background: rgba(0, 0, 0, 0.78);
}

.exchange-dialog {
    position: relative;
    height: 4.58rem;
    width: 6.8rem;
    background: url(https://update.egyludo.com/images/auction/bg_pop.png) no-repeat center;
    background-size: 100% 100%;
    color: #f7d990;
}

.exchange-dialog.rules-dialog {
    min-height: 6.7rem;
    height: 6.53rem;
    width: 6.8rem;
    background-image: url(https://update.egyludo.com/images/auction/bg_pop2.png);
}

.dialog-header {
    position: relative;
    height: .6rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dialog-header h2 {
    font-size: 0.25rem;
    font-weight: normal;
    color: #b6925e;
}

.rules-dialog .dialog-header h2 {
    font-size: 0.32rem;
}

.dialog-close {
    position: absolute;
    top: 0.2rem;
    right: 0.2rem;
    width: 0.28rem;
    height: 0.28rem;
}

.dialog-close img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.dialog-panel {
    display: none;
}

.dialog-panel.active {
    display: flex;
}

.alert-panel,
.limit-panel,
.confirm-panel {
    min-height: 3.45rem;
    padding: 0.45rem 0.65rem 0.3rem;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.dialog-message {
    min-height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.3rem;
    line-height: 1.5;
    color: #ffe7a8;
}

.icon-message {
    gap: 0.08rem;
}

.icon-message img,
.limit-message img {
    width: 0.38rem;
    height: 0.38rem;
    object-fit: contain;
}

.dialog-confirm {
    width: 3.35rem;
    height: 0.72rem;
    border-radius: 0.72rem;
    background: rgba(18, 216, 157, 1);
    color: #174b45;
    font-size: 0.3rem;
    font-weight: 400;
}

.dialog-confirm:active {
    transform: scale(0.98);
}

.limit-panel {
    padding-top: 0.28rem;
}

.limit-message {
    min-height: auto;
    gap: 0.05rem;
    flex-wrap: wrap;
}

.limit-progress {
    margin-top: 0.08rem;
    font-size: 0.25rem;
    color: #ffdf4c;
    text-align: center;
}

.limit-progress #limit-used {
    color: #ff3838;
}

.limit-tip {
    margin-top: 0.22rem;
    font-size: 0.25rem;
    color: #f7d990;
    text-align: center;
}

.confirm-panel {
    justify-content: space-between;
    gap: 0.28rem;
    padding: 0.28rem 0.55rem 0.3rem;
}

.confirm-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    margin-top: 0.1rem;
}

.confirm-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.2rem;
    background: transparent;
    padding: 0;
    height: auto;
}

.confirm-label {
    flex-shrink: 0;
    color: #f8dda0;
    font-size: 0.26rem;
}

.confirm-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.08rem;
    width: 3.77rem;
    height: 0.56rem;
    padding: 0 0.22rem;
    border-radius: 0.12rem;
    background: rgba(72, 62, 50, 0.92);
    color: #ffdc43;
    font-size: 0.28rem;
}

.confirm-value img {
    width: 0.32rem;
    height: 0.32rem;
    object-fit: contain;
}

.confirm-panel .dialog-confirm {
    margin-top: 0.18rem;
}

.rules-panel.active {
    display: block;
}

.rules-panel {
    padding: 0.28rem 0.85rem 0.35rem;
    text-align: center;
}

.rules-panel::-webkit-scrollbar {
    display: none;
}

.rules-intro {
    margin-bottom: 0.25rem;
    font-size: 0.22rem;
    line-height: 1.45;
    color: #ffe7a8;
}

.rules-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 0.14rem;
    font-size: 0.2rem;
    color: #fbe5ad;
}

.rules-table thead,
.rules-table tbody tr {
    display: table;
    width: 100%;
    table-layout: fixed;
}

#rules-vip-list {
    display: block;
    max-height: 3.6rem;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#rules-vip-list::-webkit-scrollbar {
    display: none;
}

.rules-table th,
.rules-table td {
    width: 50%;
    height: 0.5rem;
    border-left: 1px solid rgba(42, 34, 27, 0.7);
    border-bottom: 1px solid rgba(42, 34, 27, 0.7);
    background: rgba(91, 81, 69, 0.78);
    font-weight: 400;
}

.rules-table th {
    background: #dbb96a;
    color: #2d271f;
    font-size: 0.25rem;
}

.rules-table th:last-child,
.rules-table td:last-child {
    border-left: none;
}

.rules-table tr:last-child td {
    border-bottom: none;
}

.rules-table td:last-child {
    color: #ffd52f;
}

.rules-table td img,
.rules-footer img {
    width: 0.27rem;
    height: 0.27rem;
    margin-right: 0.02rem;
    vertical-align: middle;
    object-fit: contain;
}

.rules-footer {
    width: 100%;
    margin-top: 0.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.04rem;
    font-size: 0.24rem;
    line-height: 1.4;
    color: #ffe7a8;
    white-space: nowrap;
    text-align: center;
}

.rules-footer span,
.rules-footer b {
    color: #19d49b;
    font-weight: 400;
}

.system-alert {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 120;
}

#thickdiv103,
#thickdivLoginInvalid {
    z-index: 110;
}
