*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
    overflow-x: hidden;
}

body {
    min-width: 0 !important;
    margin: 0;
    overflow-x: hidden;
    font-family: var(--pc-hud-font-sans);
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body .deal-box,
body .lever-box,
body .seconds-box {
    min-width: 0 !important;
}

body *,
body *::before,
body *::after {
    letter-spacing: 0 !important;
}

body a {
    color: var(--pc-hud-brand);
    text-decoration: none;
    transition: color var(--pc-hud-transition), opacity var(--pc-hud-transition), background-color var(--pc-hud-transition), border-color var(--pc-hud-transition), transform var(--pc-hud-transition);
}

body a:hover {
    color: var(--pc-hud-text);
}

body button,
body [role="button"],
body input[type="button"],
body input[type="submit"],
body .layui-btn {
    cursor: pointer;
    touch-action: manipulation;
}

body button:focus-visible,
body a:focus-visible,
body input:focus-visible,
body select:focus-visible,
body textarea:focus-visible,
body [tabindex]:focus-visible {
    outline: 2px solid var(--pc-hud-brand) !important;
    outline-offset: 2px;
}

body ::selection {
    color: var(--pc-hud-page);
    background: var(--pc-hud-brand);
}

body img {
    max-width: 100%;
}

body hr {
    border: 0;
    border-top: 1px solid var(--pc-hud-line);
}

body code,
body pre,
body kbd,
body samp,
body table,
body [class*="price"],
body [class*="amount"],
body [class*="balance"],
body [class*="volume"],
body [class*="money"],
body [class*="timer"],
body [class*="number"] {
    font-variant-numeric: tabular-nums;
}

body table,
body .font-25,
body .finance-account-primary,
body .finance-wallet-usdt,
body .finance-wallet-usd,
body .depth-box,
body .pc-trade-symbol-stat strong,
body .seconds-account-balance {
    font-family: var(--pc-hud-font-data);
}

body .layui-container {
    width: 100% !important;
    max-width: none !important;
    padding-right: var(--pc-hud-space-6);
    padding-left: var(--pc-hud-space-6);
}

body .main {
    width: 100%;
    min-height: calc(100vh - var(--pc-hud-header-height));
    margin: 0 !important;
    padding: var(--pc-hud-space-6) 0;
}

body input::-webkit-outer-spin-button,
body input::-webkit-inner-spin-button {
    margin: 0;
}

body ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

body ::-webkit-scrollbar-track {
    background: var(--pc-hud-page);
}

body ::-webkit-scrollbar-thumb {
    border: 2px solid var(--pc-hud-page);
    border-radius: 4px;
    background: var(--pc-hud-line-strong);
}

body ::-webkit-scrollbar-thumb:hover {
    background: var(--pc-hud-brand);
}

@media (max-width: 1365px) {
    body .layui-container {
        padding-right: var(--pc-hud-space-4);
        padding-left: var(--pc-hud-space-4);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
