:root {
    --x-bg: #090a0c;
    --x-panel: #121418;
    --x-panel-2: #191c21;
    --x-line: rgba(255, 255, 255, .11);
    --x-line-strong: rgba(255, 255, 255, .2);
    --x-text: #f3f2ed;
    --x-muted: #90959f;
    --x-acid: #dfff38;
    --x-cyan: #49d7ff;
    --x-orange: #ff784f;
    --x-violet: #a98cff;
    --x-gold: #f6c85f;
    --x-green: #5ee49a;
    --x-red: #ff5361;
}

html {
    background: #050607;
    color-scheme: dark;
}

body {
    margin: 0;
    color: var(--x-text);
    background: #050607;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
    letter-spacing: 0;
}

body::before {
    display: none !important;
}

* {
    box-sizing: border-box;
}

a {
    color: inherit;
}

.app-shell {
    width: min(100%, 430px);
    max-width: 430px;
    min-height: 100vh;
    margin: 0 auto;
    overflow: clip;
    color: var(--x-text);
    background: var(--x-bg);
    border-inline: 1px solid rgba(255, 255, 255, .06);
    box-shadow: 0 0 70px rgba(0, 0, 0, .5);
}

.app-shell::before {
    display: none !important;
}

.app-main {
    min-height: calc(100vh - 64px);
    padding: 10px 10px 112px;
    color: var(--x-text);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 60;
    height: 62px;
    min-height: 62px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--x-text);
    background: #090a0c;
    border-bottom: 1px solid var(--x-line);
    backdrop-filter: none;
    box-shadow: none;
}

.brand {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
}

.brand-mark {
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(223, 255, 56, .74);
    border-radius: 3px;
    background: var(--x-acid);
    box-shadow: none;
}

.brand-mark::before {
    content: "C";
    position: relative;
    z-index: 2;
    color: #090a0c;
    font-size: 18px;
    line-height: 1;
    font-weight: 1000;
}

.brand-mark::after {
    content: "";
    width: 15px;
    height: 40px;
    position: absolute;
    right: -7px;
    top: -4px;
    border-left: 1px solid #090a0c;
    background: transparent;
    transform: rotate(25deg);
}

.brand-mark span {
    display: none;
}

.brand-copy {
    min-width: 0;
    display: grid;
    gap: 1px;
}

.brand-kicker {
    color: var(--x-acid);
    font-size: 8px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 1.3px;
}

.brand-title {
    max-width: 170px;
    overflow: hidden;
    color: var(--x-text) !important;
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
    filter: none !important;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 16px;
    line-height: 1.15;
    font-weight: 900;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.pill,
.top-actions .pill {
    min-height: 32px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--x-text);
    background: var(--x-panel-2);
    border: 1px solid var(--x-line);
    border-radius: 4px;
    box-shadow: none;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.balance-pill {
    gap: 4px;
}

.balance-pill em {
    color: #a6abb4;
    font-style: normal;
}

.top-icon-btn {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: var(--x-text);
    background: var(--x-panel-2);
    border: 1px solid var(--x-line);
    border-radius: 4px;
}

.top-icon-btn svg,
.app-section-head svg,
.notice-ticker svg,
.play-pool-action svg,
.mode-console-head svg,
.draw-primary svg,
.rule-disclosure svg,
.result-hero svg,
.result-section-head svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bottom-nav {
    width: min(100%, 430px);
    height: 66px;
    min-height: 66px;
    left: 50%;
    bottom: 0;
    z-index: 70;
    transform: translateX(-50%);
    padding: 7px 8px max(7px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    color: #6f747e;
    background: rgba(10, 11, 13, .96);
    border-top: 1px solid var(--x-line);
    box-shadow: 0 -12px 30px rgba(0, 0, 0, .35);
    backdrop-filter: blur(18px);
}

.bottom-nav a {
    min-width: 0;
    min-height: 48px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    color: inherit;
    font-size: 10px;
    font-weight: 800;
}

.bottom-nav .icon {
    width: 27px;
    height: 25px;
    display: grid;
    place-items: center;
    color: inherit;
    background: none;
    border-radius: 3px;
}

.bottom-nav .icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.bottom-nav a.active {
    color: var(--x-acid);
}

.bottom-nav a.active .icon {
    color: #090a0c;
    background: var(--x-acid);
    box-shadow: none;
}

.flash {
    margin: 2px 0 10px;
    padding: 11px 12px;
    color: #0b0c0f;
    background: var(--x-green);
    border: 0;
    border-radius: 4px;
    font-weight: 850;
}

.flash.error {
    color: #fff;
    background: var(--x-red);
}

.card {
    color: var(--x-text);
    background: var(--x-panel);
    border: 1px solid var(--x-line);
    border-radius: 6px;
    box-shadow: none;
}

.muted {
    color: var(--x-muted) !important;
}

.btn {
    min-height: 44px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #08090b;
    background: var(--x-acid);
    border: 1px solid var(--x-acid);
    border-radius: 4px;
    box-shadow: none;
    font-size: 14px;
    font-weight: 950;
}

.btn.secondary {
    color: var(--x-text);
    background: transparent;
    border-color: var(--x-line-strong);
}

.input,
select,
textarea {
    color: var(--x-text);
    background: #0d0f12;
    border: 1px solid var(--x-line-strong);
    border-radius: 4px;
}

.field label {
    color: #c8cbd1;
}

.empty {
    min-height: 126px;
    display: grid;
    place-items: center;
    padding: 24px;
    color: var(--x-muted);
    background: var(--x-panel);
    border: 1px dashed var(--x-line-strong);
    border-radius: 6px;
}

/* Home */
.home-intro {
    min-height: 148px;
    margin: 0 0 10px;
    padding: 17px 15px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px;
    gap: 12px;
    align-items: end;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px),
        #111318;
    background-size: 22px 22px;
    border: 1px solid var(--x-line);
    border-radius: 5px;
}

.home-intro::after {
    content: "07";
    position: absolute;
    right: 102px;
    top: 2px;
    color: rgba(255, 255, 255, .035);
    font-size: 94px;
    line-height: 1;
    font-weight: 1000;
    pointer-events: none;
}

.home-intro > div,
.home-member-wallet {
    position: relative;
    z-index: 1;
}

.home-intro > div > span,
.home-block-head > span,
.app-section-head > div > span {
    display: block;
    color: var(--x-acid);
    font-size: 9px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: 1.2px;
}

.home-intro h1 {
    margin: 9px 0 7px;
    color: var(--x-text);
    font-size: 27px;
    line-height: 1.03;
    font-weight: 950;
    letter-spacing: 0;
}

.home-intro h1 b {
    color: var(--x-acid);
    font-weight: inherit;
}

.home-intro p {
    margin: 0;
    color: var(--x-muted);
    font-size: 11px;
    line-height: 1.45;
    font-weight: 750;
}

.home-member-wallet {
    min-height: 104px;
    padding: 12px 9px;
    display: grid;
    align-content: space-between;
    color: #090a0c;
    background: var(--x-acid);
    border-radius: 4px;
}

.home-member-wallet svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.home-member-wallet span {
    align-self: end;
    font-size: 12px;
    font-weight: 950;
}

.home-member-wallet b {
    font-size: 9px;
    font-weight: 800;
}

.home-banners {
    margin: 0 -10px;
    padding: 0 10px 4px;
    display: flex;
    gap: 9px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.home-banners::-webkit-scrollbar {
    display: none;
}

.home-banner {
    width: calc(100% - 32px);
    min-width: calc(100% - 32px);
    aspect-ratio: 16 / 9;
    flex: 0 0 calc(100% - 32px);
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
    color: var(--x-text);
    background: #ecece8;
    border: 1px solid var(--x-line);
    border-radius: 5px;
    display: block;
    grid-template-columns: none;
    align-items: initial;
    gap: 0;
    padding: 0;
    box-shadow: none;
}

.home-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(9, 10, 12, .98) 0 43%, rgba(9, 10, 12, .8) 58%, rgba(9, 10, 12, .05) 100%);
}

.home-banner img {
    width: 64%;
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;
    object-fit: contain;
    object-position: center;
    background: #ecece8;
}

.home-banner-index {
    position: absolute;
    right: 10px;
    top: 8px;
    z-index: 2;
    color: rgba(9, 10, 12, .65);
    font-size: 12px;
    font-weight: 950;
}

.home-banner-copy {
    width: 62%;
    height: 100%;
    padding: 17px 13px;
    position: absolute !important;
    left: 0;
    top: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.home-banner-copy > span {
    color: var(--x-acid);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1px;
}

.home-banner-copy h2 {
    margin: 8px 0 5px;
    display: -webkit-box;
    overflow: hidden;
    color: #fff;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 22px;
    line-height: 1.04;
    font-weight: 950;
    letter-spacing: 0;
}

.home-banner-copy p {
    margin: 0;
    display: -webkit-box;
    overflow: hidden;
    color: #aeb2ba;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 10px;
    line-height: 1.4;
    font-weight: 750;
}

.home-banner-copy b {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
}

.home-banner-copy svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.notice-ticker {
    min-height: 38px;
    margin: 7px 0 18px;
    padding: 0 10px;
    display: grid;
    grid-template-columns: 22px auto minmax(0, 1fr) 16px;
    gap: 7px;
    align-items: center;
    color: var(--x-text);
    background: #111318;
    border: 1px solid var(--x-line);
    border-radius: 4px;
}

.notice-ticker > span {
    color: var(--x-acid);
}

.notice-ticker b {
    font-size: 11px;
    font-weight: 900;
}

.notice-ticker em {
    min-width: 0;
    overflow: hidden;
    color: var(--x-muted);
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
}

.home-block-head {
    margin: 0 0 9px;
}

.home-block-head h2,
.app-section-head h2 {
    margin: 3px 0 0;
    color: var(--x-text);
    font-size: 21px;
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: 0;
}

.play-grid {
    margin: 0 0 12px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    background: var(--x-line);
    border: 1px solid var(--x-line);
    border-radius: 5px;
}

.play-link {
    min-width: 0;
    min-height: 93px;
    padding: 10px 5px 8px;
    position: relative;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 7px;
    color: var(--x-text);
    background: #121418;
}

.play-link > em {
    position: absolute;
    right: 5px;
    top: 4px;
    color: #555a64;
    font-size: 8px;
    font-style: normal;
    font-weight: 850;
}

.quick-icon {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    color: #08090b;
    background: var(--x-acid) !important;
    border-radius: 4px;
    box-shadow: none;
}

.quick-icon.orange { background: var(--x-orange) !important; }
.quick-icon.cyan { background: var(--x-cyan) !important; }
.quick-icon.blue { background: #6aa2ff !important; }
.quick-icon.red { background: var(--x-red) !important; }
.quick-icon.violet { background: var(--x-violet) !important; }
.quick-icon.gold { background: var(--x-gold) !important; }
.quick-icon.green { background: var(--x-green) !important; }

.quick-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.play-link strong {
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 11px;
    font-weight: 850;
}

.home-feature-row {
    margin: 0 0 20px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.home-feature-row a {
    min-width: 0;
    min-height: 62px;
    padding: 10px;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 14px;
    gap: 8px;
    align-items: center;
    color: var(--x-text);
    background: #121418;
    border: 1px solid var(--x-line);
    border-radius: 4px;
}

.home-feature-row a > span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    color: var(--x-acid);
    border: 1px solid rgba(223, 255, 56, .35);
    border-radius: 3px;
}

.home-feature-row svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.home-feature-row div {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.home-feature-row b {
    font-size: 12px;
    font-weight: 900;
}

.home-feature-row em {
    overflow: hidden;
    color: var(--x-muted);
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 9px;
    font-style: normal;
    font-weight: 700;
}

.home-feature-row a > svg {
    color: #666b75;
}

.app-section-head {
    min-height: 48px;
    margin: 21px 0 9px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}

.app-section-head > a {
    padding-bottom: 2px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #c9ccd2;
    font-size: 10px;
    font-weight: 850;
}

.app-section-head > em {
    color: var(--x-muted);
    font-size: 10px;
    font-style: normal;
    font-weight: 750;
}

.app-box-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.app-box-card {
    min-width: 0;
    overflow: hidden;
    color: var(--x-text);
    background: #121418;
    border: 1px solid var(--x-line);
    border-radius: 5px;
    box-shadow: none;
}

.app-box-cover {
    width: 100%;
    aspect-ratio: 4 / 3;
    position: relative;
    overflow: hidden;
    background: #e8e8e4;
}

.app-box-cover::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 38%;
    background: linear-gradient(transparent, rgba(0, 0, 0, .45));
}

.app-box-cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.app-box-cover > span,
.app-box-cover > em {
    position: absolute;
    z-index: 2;
    font-style: normal;
    font-weight: 900;
}

.app-box-cover > span {
    left: 7px;
    top: 7px;
    padding: 4px 6px;
    color: #090a0c;
    background: var(--x-acid);
    border-radius: 2px;
    font-size: 8px;
}

.app-box-cover > em {
    right: 7px;
    bottom: 6px;
    color: #fff;
    font-size: 7px;
    letter-spacing: .7px;
}

.app-box-info {
    padding: 10px;
}

.app-box-tags {
    min-height: 15px;
    display: flex;
    gap: 4px;
    overflow: hidden;
}

.app-box-tags em {
    color: var(--x-cyan);
    white-space: nowrap;
    font-size: 8px;
    font-style: normal;
    font-weight: 850;
}

.app-box-tags em::before {
    content: "#";
}

.app-box-info h3 {
    min-height: 35px;
    margin: 5px 0 4px;
    display: -webkit-box;
    overflow: hidden;
    color: var(--x-text);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 14px;
    line-height: 1.25;
    font-weight: 900;
}

.app-box-info > p {
    height: 28px;
    margin: 0 0 8px;
    display: -webkit-box;
    overflow: hidden;
    color: var(--x-muted);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 9px;
    line-height: 1.45;
}

.stock-meter {
    width: 100%;
    height: 3px;
    overflow: hidden;
    background: #2b2e34;
    border-radius: 0;
}

.stock-meter i {
    height: 100%;
    display: block;
    background: var(--x-acid);
}

.app-box-meta {
    margin: 5px 0 9px;
    display: flex;
    justify-content: space-between;
    color: #777d87;
    font-size: 8px;
    font-weight: 750;
}

.app-box-buy {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 7px;
}

.app-box-buy strong {
    min-width: 0;
    color: #fff;
    font-size: 16px;
    line-height: 1;
    font-weight: 950;
}

.app-box-buy strong small {
    margin-left: 2px;
    color: #747983;
    font-size: 8px;
}

.app-box-buy > i {
    min-height: 24px;
    padding: 0 7px;
    display: inline-flex;
    align-items: center;
    color: #090a0c;
    background: var(--x-acid);
    border-radius: 2px;
    white-space: nowrap;
    font-size: 8px;
    font-style: normal;
    font-weight: 950;
}

.activity-strip {
    margin: 0 -10px;
    padding: 0 10px 3px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.activity-strip::-webkit-scrollbar {
    display: none;
}

.activity-strip a {
    width: 154px;
    min-width: 154px;
    padding-bottom: 10px;
    overflow: hidden;
    color: var(--x-text);
    background: #121418;
    border: 1px solid var(--x-line);
    border-radius: 5px;
}

.activity-strip img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: contain;
    background: #e8e8e4;
}

.activity-strip span,
.activity-strip h3,
.activity-strip b {
    margin-inline: 9px;
}

.activity-strip span {
    margin-top: 8px;
    display: block;
    color: var(--x-orange);
    font-size: 8px;
    font-weight: 900;
}

.activity-strip h3 {
    height: 31px;
    margin-top: 4px;
    margin-bottom: 7px;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.3;
}

.activity-strip b {
    color: var(--x-acid);
    font-size: 13px;
}

/* Box list and shop */
.box-list-hero,
.hero {
    min-height: 132px;
    margin: 0 0 10px;
    padding: 18px 15px;
    position: relative;
    overflow: hidden;
    color: var(--x-text);
    background:
        linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
        #121418;
    background-size: 100% 22px;
    border: 1px solid var(--x-line);
    border-radius: 5px;
    box-shadow: none;
}

.hero::before,
.hero::after,
.box-list-hero::before,
.box-list-hero::after {
    display: none !important;
}

.box-list-hero span,
.hero::before {
    color: var(--x-acid);
}

.box-list-hero h1,
.hero h1 {
    margin: 8px 0 5px;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    font-weight: 950;
}

.box-list-hero p,
.hero p {
    max-width: 235px;
    margin: 0;
    color: var(--x-muted);
    font-size: 11px;
}

.box-list-hero > .pill {
    color: #090a0c;
    background: var(--x-acid);
    border: 0;
}

.tabs {
    gap: 6px;
    margin: 0 -10px 10px;
    padding: 0 10px 3px;
}

.tabs .tab {
    min-height: 34px;
    color: #9a9fa8;
    background: #121418;
    border: 1px solid var(--x-line);
    border-radius: 4px;
}

.tabs .tab.active {
    color: #090a0c;
    background: var(--x-acid);
    border-color: var(--x-acid);
}

.grid2 {
    gap: 8px;
}

.box-card {
    overflow: hidden;
    color: var(--x-text);
    background: #121418;
    border: 1px solid var(--x-line);
    border-radius: 5px;
}

.box-card .box-cover {
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #e8e8e4;
}

.box-body {
    padding: 10px;
}

.box-title {
    height: 36px;
    color: var(--x-text);
    font-size: 13px;
}

.box-subtitle,
.product-stock {
    color: var(--x-muted);
}

.price {
    color: var(--x-acid);
}

/* Play hubs */
.play-hero {
    --play-accent: var(--x-acid);
    min-height: 224px;
    padding: 18px 16px;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px),
        #111318;
    background-size: 24px 24px;
    border: 1px solid var(--x-line);
    border-top: 3px solid var(--play-accent);
    border-radius: 5px;
}

.play-hero.tone-orange { --play-accent: var(--x-orange); }
.play-hero.tone-cyan { --play-accent: var(--x-cyan); }
.play-hero.tone-blue { --play-accent: #6aa2ff; }
.play-hero.tone-red { --play-accent: var(--x-red); }
.play-hero.tone-violet { --play-accent: var(--x-violet); }
.play-hero.tone-gold { --play-accent: var(--x-gold); }
.play-hero.tone-green { --play-accent: var(--x-green); }

.play-hero-code {
    position: absolute;
    right: -7px;
    top: 8px;
    color: rgba(255, 255, 255, .035);
    font-size: 50px;
    line-height: .9;
    font-weight: 1000;
    white-space: nowrap;
}

.play-hero-icon {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    color: #090a0c;
    background: var(--play-accent);
    border-radius: 4px;
}

.play-hero-icon svg,
.play-mode-nav svg,
.play-empty svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.play-hero > p {
    margin: 20px 0 7px;
    color: var(--play-accent);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.1px;
}

.play-hero h1 {
    max-width: 310px;
    margin: 0;
    color: #fff;
    font-size: 25px;
    line-height: 1.08;
    font-weight: 950;
}

.play-rule-line {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
}

.play-rule-line i {
    height: 2px;
    margin-top: 6px;
    display: block;
    background: var(--play-accent);
}

.play-rule-line span {
    color: var(--x-muted);
    font-size: 10px;
    line-height: 1.5;
    font-weight: 700;
}

.play-mode-nav {
    margin: 8px -10px 2px;
    padding: 0 10px 4px;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}

.play-mode-nav::-webkit-scrollbar {
    display: none;
}

.play-mode-nav a {
    min-width: 72px;
    height: 51px;
    padding: 6px;
    display: grid;
    grid-template-columns: 20px auto;
    gap: 5px;
    align-items: center;
    color: #8c919a;
    background: #121418;
    border: 1px solid var(--x-line);
    border-radius: 4px;
}

.play-mode-nav a span {
    display: grid;
    place-items: center;
}

.play-mode-nav a svg {
    width: 17px;
    height: 17px;
}

.play-mode-nav a b {
    font-size: 10px;
    white-space: nowrap;
}

.play-mode-nav a.active {
    color: #090a0c;
    background: var(--x-acid);
    border-color: var(--x-acid);
}

.play-section-head {
    margin-top: 18px;
}

.play-pool-list {
    display: grid;
    gap: 13px;
}

.play-pool-card {
    overflow: hidden;
    color: var(--x-text);
    background: #121418;
    border: 1px solid var(--x-line);
    border-radius: 5px;
}

.play-pool-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
    background: #e8e8e4;
}

.play-pool-cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.play-pool-cover > span,
.play-pool-cover > em {
    position: absolute;
    font-style: normal;
    font-weight: 950;
}

.play-pool-cover > span {
    left: 10px;
    top: 9px;
    color: #090a0c;
    font-size: 13px;
}

.play-pool-cover > em {
    right: 9px;
    bottom: 8px;
    padding: 4px 6px;
    color: #090a0c;
    background: var(--x-acid);
    border-radius: 2px;
    font-size: 8px;
}

.play-pool-copy {
    padding: 13px;
}

.live-dot {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--x-green);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .8px;
}

.live-dot::before {
    content: "";
    width: 5px;
    height: 5px;
    display: inline-block;
    background: currentColor;
    border-radius: 50%;
    box-shadow: 0 0 8px currentColor;
}

.play-pool-copy h2 {
    margin: 7px 0 4px;
    color: #fff;
    font-size: 20px;
    line-height: 1.15;
    font-weight: 950;
}

.play-pool-copy > p {
    margin: 0;
    color: var(--x-muted);
    font-size: 10px;
    line-height: 1.5;
}

.play-pool-copy dl {
    margin: 13px 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-block: 1px solid var(--x-line);
}

.play-pool-copy dl > div {
    min-width: 0;
    padding: 9px 7px;
    border-right: 1px solid var(--x-line);
}

.play-pool-copy dl > div:last-child {
    border-right: 0;
}

.play-pool-copy dt {
    color: #6f747e;
    font-size: 8px;
    font-weight: 750;
}

.play-pool-copy dd {
    margin: 4px 0 0;
    overflow: hidden;
    color: #fff;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 10px;
    font-weight: 850;
}

.play-pool-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.play-pool-action strong {
    color: var(--x-acid);
    font-size: 19px;
    font-weight: 950;
}

.play-pool-action strong small {
    margin-left: 3px;
    color: var(--x-muted);
    font-size: 9px;
}

.play-pool-action > span {
    min-height: 31px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #090a0c;
    background: var(--x-acid);
    border-radius: 3px;
    font-size: 9px;
    font-weight: 900;
}

.play-empty {
    min-height: 220px;
    padding: 28px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    text-align: center;
    color: var(--x-muted);
    border: 1px dashed var(--x-line-strong);
}

.play-empty > span {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: var(--x-acid);
    border: 1px solid var(--x-line-strong);
}

.play-empty h2 {
    margin: 6px 0 0;
    color: #fff;
    font-size: 18px;
}

.play-empty p {
    margin: 0;
    font-size: 11px;
    line-height: 1.5;
}

/* Box detail */
.box-detail-page {
    padding-bottom: 150px;
}

.box-product-stage {
    overflow: hidden;
    background: #121418;
    border: 1px solid var(--x-line);
    border-radius: 5px;
}

.box-product-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
    background: #ecece8;
}

.box-product-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.box-product-media > span {
    position: absolute;
    left: 9px;
    bottom: 8px;
    padding: 5px 7px;
    color: #090a0c;
    background: var(--x-acid);
    border-radius: 2px;
    font-size: 8px;
    font-weight: 950;
    letter-spacing: .8px;
}

.box-product-copy {
    padding: 13px 13px 14px;
}

.box-kicker {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #b9bdc5;
    font-size: 9px;
    font-weight: 850;
}

.box-kicker > span,
.box-kicker > em {
    padding-left: 8px;
    border-left: 1px solid var(--x-line-strong);
    font-style: normal;
}

.box-product-copy h1 {
    margin: 8px 0 5px;
    color: #fff;
    font-size: 23px;
    line-height: 1.1;
    font-weight: 950;
}

.box-product-copy > p {
    margin: 0;
    color: var(--x-muted);
    font-size: 10px;
    line-height: 1.45;
}

.box-price-line {
    margin-top: 12px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.box-price-line strong {
    color: var(--x-acid);
    font-size: 24px;
    line-height: 1;
    font-weight: 950;
}

.box-price-line span,
.box-price-line i {
    color: var(--x-muted);
    font-size: 9px;
    font-style: normal;
    font-weight: 750;
}

.box-price-line i {
    margin-left: auto;
}

.box-summary {
    margin: 8px 0 16px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    background: var(--x-line);
    border: 1px solid var(--x-line);
    border-radius: 4px;
}

.box-summary > div {
    min-width: 0;
    min-height: 76px;
    padding: 10px 8px;
    display: grid;
    align-content: center;
    gap: 2px;
    text-align: left;
    background: #121418;
    border: 0;
    border-radius: 0;
}

.box-summary span {
    color: #686d76;
    font-size: 7px;
    font-weight: 850;
    letter-spacing: .6px;
}

.box-summary b {
    color: #fff;
    font-size: 20px;
    line-height: 1;
    font-weight: 950;
}

.box-summary em {
    color: var(--x-muted);
    font-size: 8px;
    font-style: normal;
    font-weight: 750;
}

.mode-console {
    padding: 13px;
    position: relative;
    overflow: hidden;
    background: #121418;
    border: 1px solid var(--x-line);
    border-top: 3px solid var(--x-cyan);
    border-radius: 5px;
}

.mode-console-yifanshang { border-top-color: var(--x-acid); }
.mode-console-fudai { border-top-color: var(--x-orange); }
.mode-console-infinite { border-top-color: var(--x-cyan); }
.mode-console-tower { border-top-color: #6aa2ff; }
.mode-console-arena { border-top-color: var(--x-red); }
.mode-console-match { border-top-color: var(--x-violet); }
.mode-console-lord { border-top-color: var(--x-gold); }
.mode-console-room { border-top-color: var(--x-green); }

.mode-console-head {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
}

.mode-console-head > div > span {
    color: #676c75;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .8px;
}

.mode-console-head h2 {
    margin: 3px 0 0;
    color: #fff;
    font-size: 18px;
    line-height: 1;
}

.mode-console-head a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #a9adb5;
    font-size: 9px;
    font-weight: 850;
}

.pool-progress > div:first-child,
.number-instruction,
.match-instruction {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.pool-progress b,
.number-instruction b,
.match-instruction b {
    color: #fff;
    font-size: 12px;
}

.pool-progress span,
.number-instruction span,
.match-instruction span {
    color: var(--x-muted);
    font-size: 9px;
}

.pool-progress .stock-meter {
    height: 5px;
    margin: 10px 0;
}

.pool-progress p,
.mode-note {
    margin: 8px 0 0;
    color: var(--x-muted);
    font-size: 9px;
    line-height: 1.5;
}

.number-instruction em,
.match-instruction em {
    color: var(--x-orange);
    white-space: nowrap;
    font-size: 9px;
    font-style: normal;
    font-weight: 900;
}

.number-wall {
    margin-top: 11px;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 5px;
}

.number-cell {
    min-width: 0;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    color: #dfe1e5;
    background: #1a1d22;
    border: 1px solid var(--x-line-strong);
    border-radius: 3px;
    font-size: 10px;
    font-weight: 850;
}

.number-cell.selected {
    color: #090a0c;
    background: var(--x-orange);
    border-color: var(--x-orange);
}

.number-cell.picked {
    color: #4e525a;
    background: #0c0e10;
    border-color: rgba(255, 255, 255, .06);
    text-decoration: line-through;
}

.guarantee-panel {
    padding: 12px;
    background: #0c0e11;
    border: 1px solid var(--x-line);
}

.guarantee-panel > div:first-child {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.guarantee-panel span {
    color: var(--x-muted);
    font-size: 10px;
    font-weight: 750;
}

.guarantee-panel strong {
    color: var(--x-cyan);
    font-size: 26px;
    line-height: 1;
}

.guarantee-panel strong small {
    color: #6b7079;
    font-size: 12px;
}

.guarantee-track {
    height: 6px;
    margin: 12px 0 8px;
    overflow: hidden;
    background: #25282e;
}

.guarantee-track i {
    height: 100%;
    display: block;
    background: var(--x-cyan);
}

.guarantee-panel p {
    margin: 0;
    color: var(--x-muted);
    font-size: 9px;
}

.tower-status {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 12px;
}

.tower-readout {
    padding: 11px;
    display: grid;
    align-content: center;
    background: #0c0e11;
    border: 1px solid var(--x-line);
}

.tower-readout span {
    color: #6aa2ff;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .7px;
}

.tower-readout strong {
    margin: 7px 0;
    color: #fff;
    font-size: 36px;
    line-height: .9;
}

.tower-readout strong small {
    font-size: 13px;
}

.tower-readout em {
    color: var(--x-muted);
    font-size: 8px;
    font-style: normal;
}

.tower-rail {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
    align-content: center;
}

.tower-rail i {
    min-width: 0;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    color: #595e67;
    background: #191c21;
    border: 1px solid var(--x-line);
    font-size: 8px;
    font-style: normal;
    font-weight: 850;
}

.tower-rail i.passed {
    color: #aeb2b9;
    border-color: rgba(106, 162, 255, .35);
}

.tower-rail i.current {
    color: #090a0c;
    background: #6aa2ff;
    border-color: #6aa2ff;
}

.arena-preview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
    align-items: stretch;
}

.arena-preview > div {
    min-width: 0;
    min-height: 94px;
    padding: 11px;
    display: grid;
    align-content: center;
    background: #0c0e11;
    border: 1px solid var(--x-line);
}

.arena-preview > strong {
    display: grid;
    place-items: center;
    color: var(--x-red);
    font-size: 15px;
    font-style: italic;
}

.arena-preview span {
    color: var(--x-red);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .7px;
}

.arena-preview b {
    margin: 6px 0 3px;
    color: #fff;
    font-size: 12px;
}

.arena-preview em {
    color: var(--x-muted);
    font-size: 8px;
    font-style: normal;
}

.match-board {
    margin-top: 11px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.match-board button {
    min-width: 0;
    aspect-ratio: 1.3;
    padding: 7px;
    position: relative;
    display: grid;
    place-items: center;
    color: #797e87;
    background:
        linear-gradient(135deg, transparent 47%, rgba(255, 255, 255, .05) 48% 52%, transparent 53%),
        #1a1d22;
    border: 1px solid var(--x-line-strong);
    border-radius: 3px;
}

.match-board button span {
    font-size: 21px;
    font-weight: 950;
}

.match-board button em {
    position: absolute;
    right: 5px;
    bottom: 4px;
    font-size: 7px;
    font-style: normal;
    font-weight: 850;
}

.match-board button.selected {
    color: #090a0c;
    background: var(--x-violet);
    border-color: var(--x-violet);
}

.lord-status,
.room-status {
    min-height: 94px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 11px;
    background: #0c0e11;
    border: 1px solid var(--x-line);
}

.lord-status > span {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    color: #090a0c;
    background: var(--x-gold);
}

.lord-status svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.lord-status > div {
    min-width: 0;
    flex: 1;
}

.lord-status b,
.room-status b {
    color: #fff;
    font-size: 13px;
}

.lord-status p,
.room-status p {
    margin: 4px 0 0;
    color: var(--x-muted);
    font-size: 8px;
}

.lord-status > strong {
    color: var(--x-gold);
    font-size: 21px;
}

.lord-status > strong small {
    display: block;
    color: var(--x-muted);
    text-align: right;
    font-size: 8px;
}

.room-seats,
.room-result-seats {
    display: flex;
    gap: 5px;
}

.room-seats i,
.room-result-seats i {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #747983;
    background: #191c21;
    border: 1px solid var(--x-line-strong);
    border-radius: 3px;
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
}

.room-seats i.occupied,
.room-result-seats i.occupied {
    color: #090a0c;
    background: var(--x-green);
    border-color: var(--x-green);
}

.room-seats svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.detail-section-head {
    margin-top: 22px;
}

.prize-showcase {
    margin: 0 -10px;
    padding: 0 10px 4px;
    display: flex;
    gap: 7px;
    overflow-x: auto;
    scrollbar-width: none;
}

.prize-showcase::-webkit-scrollbar {
    display: none;
}

.prize-tile {
    width: 142px;
    min-width: 142px;
    overflow: hidden;
    color: var(--x-text);
    background: #121418;
    border: 1px solid var(--x-line);
    border-radius: 4px;
}

.prize-tile > div {
    aspect-ratio: 1;
    position: relative;
    background: #ecece8;
}

.prize-tile img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.quality {
    min-width: 23px;
    min-height: 20px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #090a0c;
    background: #c8ccd2;
    border-radius: 2px;
    font-size: 8px;
    font-weight: 950;
}

.prize-tile .quality {
    position: absolute;
    left: 6px;
    top: 6px;
}

.quality-s,
.quality-last { color: #090a0c; background: var(--x-gold); }
.quality-a,
.quality-hidden,
.quality-lord { color: #090a0c; background: var(--x-violet); }
.quality-b { color: #090a0c; background: var(--x-cyan); }
.quality-c { color: #090a0c; background: var(--x-green); }
.quality-d { color: #090a0c; background: #c6cad0; }

.prize-tile h3 {
    height: 34px;
    margin: 9px 9px 3px;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.35;
}

.prize-tile p {
    margin: 0 9px 8px;
    color: var(--x-muted);
    font-size: 8px;
}

.prize-tile dl {
    margin: 0;
    padding: 7px 9px;
    display: flex;
    justify-content: space-between;
    color: #858a93;
    border-top: 1px solid var(--x-line);
    font-size: 8px;
}

.prize-tile dl b {
    color: var(--x-acid);
}

.rule-disclosure {
    margin-top: 17px;
    color: var(--x-text);
    background: #121418;
    border: 1px solid var(--x-line);
    border-radius: 4px;
}

.rule-disclosure summary {
    min-height: 60px;
    padding: 10px 12px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 16px;
    gap: 9px;
    align-items: center;
    list-style: none;
}

.rule-disclosure summary::-webkit-details-marker {
    display: none;
}

.rule-disclosure summary > span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: var(--x-acid);
    border: 1px solid rgba(223, 255, 56, .35);
}

.rule-disclosure summary div {
    display: grid;
    gap: 3px;
}

.rule-disclosure summary b {
    font-size: 12px;
}

.rule-disclosure summary em {
    color: var(--x-muted);
    font-size: 8px;
    font-style: normal;
}

.rule-disclosure[open] summary > svg {
    transform: rotate(90deg);
}

.rule-disclosure > div {
    padding: 0 12px 12px;
    color: var(--x-muted);
    border-top: 1px solid var(--x-line);
    font-size: 10px;
    line-height: 1.65;
}

.draw-dock {
    width: min(100%, 430px);
    max-width: 430px;
    min-height: 132px;
    padding: 10px 11px 8px;
    left: 50%;
    right: auto;
    bottom: 66px;
    z-index: 65;
    transform: translateX(-50%);
    display: block;
    color: var(--x-text);
    background: rgba(12, 14, 17, .97);
    border: 0;
    border-top: 1px solid var(--x-line-strong);
    border-radius: 0;
    box-shadow: 0 -18px 38px rgba(0, 0, 0, .46);
    backdrop-filter: blur(18px);
}

.draw-dock-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.draw-dock-top > div {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.draw-dock-top > div > span {
    color: var(--x-muted);
    font-size: 9px;
    font-weight: 750;
}

.draw-dock-top strong {
    color: var(--x-acid);
    font-size: 19px;
    line-height: 1;
}

.age-check {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #9ca1aa;
    font-size: 8px;
    font-weight: 750;
}

.age-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.age-check > span {
    width: 16px;
    height: 16px;
    display: grid;
    place-items: center;
    color: transparent;
    background: #191c21;
    border: 1px solid var(--x-line-strong);
    border-radius: 2px;
}

.age-check input:checked + span {
    color: #090a0c;
    background: var(--x-acid);
    border-color: var(--x-acid);
}

.age-check svg {
    width: 11px;
    height: 11px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
}

.draw-dock-bottom {
    margin-top: 8px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 148px;
    gap: 8px;
}

.draw-count-segments {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3px;
}

.draw-count-segments button {
    min-width: 0;
    height: 44px;
    padding: 0;
    color: #8d929b;
    background: #191c21;
    border: 1px solid var(--x-line);
    border-radius: 3px;
    font-size: 9px;
    font-weight: 850;
}

.draw-count-segments button.active {
    color: #090a0c;
    background: #fff;
    border-color: #fff;
}

.single-play-label {
    min-width: 0;
    height: 44px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    color: #a8adb5;
    background: #191c21;
    border: 1px solid var(--x-line);
    border-radius: 3px;
    font-size: 9px;
    font-weight: 850;
}

.draw-primary {
    height: 44px;
    padding: 0 12px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: #090a0c;
    background: var(--x-acid);
    border-color: var(--x-acid);
    border-radius: 3px;
    font-size: 13px;
}

.draw-dock > p {
    margin: 6px 0 0;
    overflow: hidden;
    color: #5f646d;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 7px;
}

.draw-submit-overlay {
    width: min(100%, 430px);
    position: fixed;
    inset: 0 auto 0 50%;
    z-index: 190;
    transform: translateX(-50%);
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(6, 7, 9, .94);
    backdrop-filter: blur(12px);
}

.draw-submit-panel {
    width: 210px;
    min-height: 154px;
    padding: 20px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 9px;
    background: #111318;
    border: 1px solid var(--x-line-strong);
    border-top: 3px solid var(--x-acid);
    border-radius: 4px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .55);
}

.draw-submit-panel > i {
    width: 42px;
    height: 42px;
    display: block;
    border: 2px solid rgba(223, 255, 56, .18);
    border-top-color: var(--x-acid);
    border-radius: 50%;
    animation: coreSpin .75s linear infinite;
}

.draw-submit-panel strong {
    margin-top: 5px;
    color: #fff;
    font-size: 15px;
}

.draw-submit-panel span {
    color: var(--x-muted);
    font-size: 9px;
}

/* Opening and results */
.draw-cinematic {
    width: min(100%, 430px);
    max-width: 430px;
    min-height: 100vh;
    position: fixed;
    left: 50%;
    top: 0;
    z-index: 200;
    overflow: hidden;
    transform: translateX(-50%);
    color: #fff;
    background: #060709;
    transition: opacity .45s ease, visibility .45s ease;
}

.app-shell:has(.draw-cinematic:not(.is-complete)) .app-main {
    z-index: 220;
}

.draw-cinematic.is-complete {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.draw-cinematic canvas {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.draw-cinematic > button {
    position: absolute;
    right: 14px;
    top: 15px;
    z-index: 8;
    min-height: 30px;
    padding: 0 10px;
    color: #b9bdc5;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 3px;
    font-size: 9px;
    font-weight: 850;
}

.cinematic-grid {
    position: absolute;
    inset: 0;
    opacity: .32;
    background:
        linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 32px 32px;
    transform: perspective(360px) rotateX(58deg) scale(1.7) translateY(18%);
    transform-origin: center bottom;
    animation: gridTravel 1.2s linear infinite;
}

.cinematic-copy {
    position: absolute;
    left: 18px;
    top: 72px;
    z-index: 2;
}

.cinematic-copy span {
    color: var(--x-acid);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.2px;
}

.cinematic-copy h1 {
    margin: 8px 0 4px;
    color: #fff;
    font-size: 30px;
    line-height: 1;
    font-weight: 950;
}

.cinematic-copy p {
    margin: 0;
    color: #737881;
    font-size: 8px;
}

.drop-core {
    width: 212px;
    height: 212px;
    position: absolute;
    left: 50%;
    top: 48%;
    z-index: 2;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    border: 1px solid rgba(223, 255, 56, .32);
    border-radius: 50%;
    animation: corePulse .72s ease-in-out infinite alternate;
}

.drop-core::before,
.drop-core::after,
.drop-core > i {
    content: "";
    position: absolute;
    border: 1px solid rgba(73, 215, 255, .2);
    border-radius: 50%;
}

.drop-core::before {
    width: 170px;
    height: 170px;
    animation: coreSpin 2s linear infinite;
    border-top-color: var(--x-cyan);
}

.drop-core::after {
    width: 134px;
    height: 134px;
    animation: coreSpin 1.4s linear infinite reverse;
    border-right-color: var(--x-acid);
}

.drop-core > i:first-child {
    width: 244px;
    height: 1px;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.drop-core > i:last-child {
    width: 1px;
    height: 244px;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, .12);
}

.drop-core > div {
    width: 96px;
    height: 114px;
    z-index: 2;
    position: relative;
    display: grid;
    place-items: center;
    align-content: center;
    color: #090a0c;
    background: var(--x-acid);
    border: 2px solid #fff;
    box-shadow: 0 0 40px rgba(223, 255, 56, .28);
    animation: crateShake .2s linear infinite;
}

.drop-core > div::before,
.drop-core > div::after {
    content: "";
    position: absolute;
    background: #090a0c;
}

.drop-core > div::before {
    width: 100%;
    height: 2px;
    top: 25px;
}

.drop-core > div::after {
    width: 2px;
    height: 100%;
    left: 17px;
}

.drop-core span {
    font-size: 38px;
    line-height: 1;
    font-weight: 1000;
}

.drop-core b {
    margin-top: 7px;
    font-size: 9px;
    letter-spacing: 1.2px;
}

.cinematic-status {
    width: calc(100% - 36px);
    position: absolute;
    left: 18px;
    bottom: 44px;
    z-index: 4;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 9px;
    align-items: center;
}

.cinematic-status > div {
    height: 4px;
    overflow: hidden;
    background: #22252a;
}

.cinematic-status i {
    height: 100%;
    display: block;
    background: var(--x-acid);
    animation: loadProgress 2.6s cubic-bezier(.2, .8, .2, 1) forwards;
}

.cinematic-status span,
.cinematic-status b {
    font-size: 8px;
    font-weight: 850;
}

.cinematic-status span {
    color: #8f949d;
}

.cinematic-status b {
    color: var(--x-acid);
}

.result-page {
    padding-bottom: 12px;
}

.result-hero {
    min-height: 190px;
    padding: 17px 14px;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
        #121418;
    background-size: 100% 23px;
    border: 1px solid var(--x-line);
    border-top: 3px solid var(--x-acid);
    border-radius: 5px;
}

.result-hero::after {
    content: "RESULT";
    position: absolute;
    right: -8px;
    top: 25px;
    color: rgba(255, 255, 255, .035);
    font-size: 58px;
    font-weight: 1000;
    transform: rotate(90deg) translateX(40%);
}

.result-hero > span {
    color: var(--x-acid);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1px;
}

.result-hero h1 {
    margin: 11px 0 5px;
    color: #fff;
    font-size: 31px;
    line-height: 1;
    font-weight: 950;
}

.result-hero > p {
    margin: 0;
    color: var(--x-muted);
    font-size: 10px;
}

.result-hero > div {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 68px 68px minmax(0, 1fr);
    gap: 7px;
}

.result-hero > div > b,
.result-hero > div > strong {
    min-height: 56px;
    padding: 8px;
    display: grid;
    align-content: center;
    color: #fff;
    background: #0c0e11;
    border: 1px solid var(--x-line);
    font-size: 19px;
}

.result-hero small {
    margin-top: 3px;
    display: block;
    color: var(--x-muted);
    font-size: 7px;
}

.result-hero a {
    min-width: 0;
    padding: 0 9px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    color: #090a0c;
    background: var(--x-acid);
    border-radius: 3px;
    font-size: 9px;
    font-weight: 900;
}

.battle-result,
.match-result,
.room-result,
.tower-result {
    margin-top: 9px;
    padding: 13px;
    color: var(--x-text);
    background: #121418;
    border: 1px solid var(--x-line);
    border-radius: 5px;
}

.battle-result {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr);
    align-items: center;
    text-align: center;
    border-top: 3px solid var(--x-red);
}

.battle-result.outcome-win {
    border-top-color: var(--x-green);
}

.battle-result > div {
    padding: 10px 5px;
    background: #0c0e11;
}

.battle-result span,
.tower-result span,
.match-result > div:first-child > span,
.room-result > span {
    color: var(--x-red);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .7px;
}

.battle-result strong {
    margin: 5px 0;
    display: block;
    color: #fff;
    font-size: 29px;
}

.battle-result em {
    color: var(--x-muted);
    font-size: 7px;
    font-style: normal;
}

.battle-result > b {
    color: var(--x-red);
    font-size: 15px;
    font-style: italic;
}

.battle-result.outcome-win > b {
    color: var(--x-green);
}

.battle-result > p {
    grid-column: 1 / -1;
    margin: 11px 0 0;
    color: var(--x-muted);
    font-size: 9px;
}

.match-result {
    border-top: 3px solid var(--x-violet);
}

.match-result.is-win {
    border-top-color: var(--x-green);
}

.match-result > div:first-child h2,
.room-result h2 {
    margin: 5px 0 3px;
    color: #fff;
    font-size: 20px;
}

.match-result > div:first-child p,
.room-result > p {
    margin: 0;
    color: var(--x-muted);
    font-size: 9px;
}

.match-reveal-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
}

.match-reveal-grid i {
    min-width: 0;
    min-height: 48px;
    padding: 6px;
    display: grid;
    place-items: center;
    position: relative;
    color: #7e838c;
    background: #0c0e11;
    border: 1px solid var(--x-line);
    font-style: normal;
}

.match-reveal-grid i.picked {
    color: #090a0c;
    background: var(--x-violet);
    border-color: var(--x-violet);
}

.match-reveal-grid b {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 8px;
}

.match-reveal-grid span {
    position: absolute;
    right: 4px;
    bottom: 3px;
    font-size: 6px;
}

.room-result {
    border-top: 3px solid var(--x-green);
}

.room-result-seats {
    margin: 12px 0 8px;
}

.room-result-seats i.mine {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.tower-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-top: 3px solid #6aa2ff;
}

.tower-result > div:first-child h2 {
    margin: 5px 0 0;
    color: #fff;
    font-size: 22px;
}

.tower-result > div:last-child {
    display: flex;
    gap: 4px;
}

.tower-result i {
    min-width: 34px;
    min-height: 43px;
    padding: 4px;
    display: grid;
    place-items: center;
    color: #fff;
    background: #0c0e11;
    border: 1px solid var(--x-line);
    font-style: normal;
}

.tower-result i span {
    color: #6aa2ff;
    font-size: 14px;
}

.tower-result i b {
    font-size: 8px;
}

.result-stage {
    display: grid;
    gap: 8px;
}

.result-card {
    min-height: 128px;
    display: grid;
    grid-template-columns: 124px minmax(0, 1fr);
    overflow: hidden;
    color: var(--x-text);
    background: #121418;
    border: 1px solid var(--x-line);
    border-radius: 5px;
    opacity: 0;
    transform: translateY(14px);
}

.opening-complete .result-card {
    animation: resultEnter .5s ease calc(var(--result-delay) + .05s) forwards;
}

.result-card-media {
    min-width: 0;
    position: relative;
    background: #ecece8;
}

.result-card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.result-card-media span {
    position: absolute;
    left: 6px;
    top: 5px;
    color: #090a0c;
    font-size: 8px;
    font-weight: 950;
}

.result-card-copy {
    min-width: 0;
    padding: 11px;
    display: grid;
    align-content: center;
}

.result-card-copy > .quality {
    justify-self: start;
}

.result-card-copy h3 {
    margin: 7px 0 4px;
    color: #fff;
    font-size: 15px;
    line-height: 1.2;
}

.result-card-copy > p {
    margin: 0;
    color: var(--x-muted);
    font-size: 9px;
}

.result-card-copy > div {
    margin-top: 9px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.result-card-copy em {
    color: #7f848d;
    font-size: 8px;
    font-style: normal;
}

.result-card-copy button {
    min-height: 26px;
    padding: 0 7px;
    color: var(--x-text);
    background: transparent;
    border: 1px solid var(--x-line-strong);
    border-radius: 2px;
    font-size: 8px;
    font-weight: 850;
}

.result-actions {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

/* Existing account, bag, leaderboard and utility pages */
.wallet-hero,
.bag-hero,
.leader-hero {
    color: var(--x-text);
    background:
        linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
        #121418;
    background-size: 100% 23px;
    border: 1px solid var(--x-line);
    border-top: 3px solid var(--x-acid);
    border-radius: 5px;
    box-shadow: none;
}

.wallet-hero::before,
.wallet-hero::after,
.bag-hero::before,
.leader-hero::after {
    display: none;
}

.wallet-hero h2,
.bag-hero h1,
.leader-hero h1 {
    color: #fff;
}

.avatar,
.rank-avatar {
    color: #090a0c;
    background: var(--x-acid);
    border-radius: 4px;
    box-shadow: none;
}

.asset-row,
.bag-stats {
    gap: 1px;
    overflow: hidden;
    background: var(--x-line);
    border: 1px solid var(--x-line);
    border-radius: 4px;
}

.asset-box,
.bag-stats > div {
    color: var(--x-text);
    background: #121418;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.asset-box b,
.bag-stats b {
    color: #fff;
}

.section-title h2 {
    color: var(--x-text);
}

.app-grid {
    overflow: hidden;
    gap: 1px;
    padding: 0;
    background: var(--x-line);
}

.app-grid a {
    min-height: 78px;
    color: var(--x-text);
    background: #121418;
}

.small-icon,
.app-grid a > span:not(.small-icon) {
    color: #090a0c;
    background: var(--x-acid);
    border-radius: 3px;
    box-shadow: none;
}

.app-grid a > span:last-child {
    color: var(--x-text);
    background: none;
}

.recharge-card,
.wallet-panel,
.list-item,
.support-card {
    background: #121418;
    border-color: var(--x-line);
    box-shadow: none;
}

.bag-toolbar,
.bag-actions {
    color: var(--x-text);
    background: #121418;
    border-color: var(--x-line);
    border-radius: 4px;
    box-shadow: none;
}

.bag-card {
    overflow: hidden;
    color: var(--x-text);
    background: #121418;
    border: 1px solid var(--x-line);
    border-radius: 5px;
    box-shadow: none;
}

.bag-card::before {
    display: none;
}

.bag-cover {
    background: #ecece8;
    border-radius: 3px;
}

.bag-title,
.bag-value {
    color: var(--x-text);
}

.leader-hero {
    background:
        linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
        #121418;
}

.leader-champion,
.leader-tabs a,
.leader-rank-row,
.leader-empty {
    color: var(--x-text);
    background: #121418 !important;
    border-color: var(--x-line) !important;
    border-radius: 4px;
    box-shadow: none;
}

.leader-tabs a {
    color: var(--x-muted);
}

.leader-tabs a:first-child {
    color: #090a0c;
    background: var(--x-acid) !important;
}

.leader-board h2,
.rank-user b,
.leader-rank-row > strong {
    color: #fff;
}

.rank-no {
    color: #090a0c;
    background: var(--x-acid);
    border-radius: 3px;
}

.leader-board-icon {
    color: #090a0c;
    background: var(--x-acid) !important;
    border-radius: 3px;
}

.status-chip {
    border-radius: 2px;
}

.welfare-hero {
    min-height: 218px;
    padding: 18px 15px;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px),
        #121418;
    background-size: 24px 24px;
    border: 1px solid var(--x-line);
    border-top: 3px solid var(--x-green);
    border-radius: 5px;
}

.welfare-hero::after {
    content: "LAB";
    position: absolute;
    right: -7px;
    top: 21px;
    color: rgba(255, 255, 255, .035);
    font-size: 76px;
    line-height: 1;
    font-weight: 1000;
}

.welfare-hero > span {
    position: relative;
    z-index: 1;
    color: var(--x-green);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1px;
}

.welfare-hero h1 {
    margin: 20px 0 7px;
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 31px;
    line-height: 1;
    font-weight: 950;
}

.welfare-hero > p {
    max-width: 235px;
    margin: 0;
    position: relative;
    z-index: 1;
    color: var(--x-muted);
    font-size: 10px;
    line-height: 1.5;
}

.welfare-hero > a {
    min-height: 42px;
    margin-top: 27px;
    padding: 0 11px;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #090a0c;
    background: var(--x-green);
    border-radius: 3px;
}

.welfare-hero > a b {
    font-size: 11px;
}

.welfare-hero svg,
.welfare-grid svg,
.welfare-events svg,
.welfare-now svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.welfare-grid {
    margin-top: 8px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.welfare-grid > a {
    min-width: 0;
    min-height: 82px;
    padding: 10px;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 14px;
    gap: 8px;
    align-items: center;
    color: var(--x-text);
    background: #121418;
    border: 1px solid var(--x-line);
    border-radius: 4px;
}

.welfare-grid > a > span {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    color: #090a0c;
    background: var(--x-green);
    border-radius: 3px;
}

.welfare-grid > a > div {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.welfare-grid b {
    font-size: 11px;
}

.welfare-grid em {
    overflow: hidden;
    color: var(--x-muted);
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 8px;
    font-style: normal;
}

.welfare-grid > a > svg {
    color: #656a73;
}

.welfare-events {
    display: grid;
    gap: 8px;
}

.welfare-events article,
.welfare-now {
    padding: 13px;
    color: var(--x-text);
    background: #121418;
    border: 1px solid var(--x-line);
    border-radius: 4px;
}

.welfare-events article > span {
    color: var(--x-orange);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .8px;
}

.welfare-events h3 {
    margin: 7px 0 4px;
    color: #fff;
    font-size: 16px;
}

.welfare-events p {
    margin: 0 0 10px;
    color: var(--x-muted);
    font-size: 8px;
}

.welfare-events a,
.welfare-now > a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--x-acid);
    font-size: 9px;
    font-weight: 900;
}

.welfare-now {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.welfare-now > div {
    min-width: 0;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 3px 9px;
    align-items: center;
}

.welfare-now > div > span {
    width: 34px;
    height: 34px;
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    color: #090a0c;
    background: var(--x-orange);
}

.welfare-now b {
    font-size: 12px;
}

.welfare-now em {
    color: var(--x-muted);
    font-size: 8px;
    font-style: normal;
}

@keyframes gridTravel {
    to { background-position: 0 32px, 32px 0; }
}

@keyframes corePulse {
    from { transform: translate(-50%, -50%) scale(.96); box-shadow: 0 0 0 rgba(223, 255, 56, 0); }
    to { transform: translate(-50%, -50%) scale(1.03); box-shadow: 0 0 60px rgba(223, 255, 56, .1); }
}

@keyframes coreSpin {
    to { transform: rotate(360deg); }
}

@keyframes crateShake {
    0%, 100% { transform: translateX(0) rotate(0); }
    25% { transform: translateX(-2px) rotate(-1deg); }
    75% { transform: translateX(2px) rotate(1deg); }
}

@keyframes loadProgress {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes resultEnter {
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 360px) {
    .brand-title { max-width: 128px; font-size: 14px; }
    .brand-kicker { display: none; }
    .balance-pill em { display: none; }
    .home-intro { grid-template-columns: minmax(0, 1fr) 84px; }
    .home-intro h1 { font-size: 24px; }
    .home-banner-copy h2 { font-size: 19px; }
    .play-link { min-height: 86px; }
    .number-wall { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .draw-dock-bottom { grid-template-columns: minmax(0, 1fr) 130px; }
    .draw-count-segments button { font-size: 8px; }
    .result-card { grid-template-columns: 106px minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    .cinematic-grid,
    .drop-core,
    .drop-core::before,
    .drop-core::after,
    .drop-core > div,
    .cinematic-status i {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

.address-hero {
    border-top-color: var(--x-green);
}

.address-hero .function-kicker {
    color: var(--x-green);
}

.address-hero .function-hero-icon {
    background: var(--x-green);
}

.address-form {
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
}

.address-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.address-form .field {
    margin-bottom: 9px;
}

.check-line {
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #c8cbd1;
    font-size: 11px;
}

.check-line input {
    width: 17px;
    height: 17px;
    accent-color: var(--x-acid);
}

.address-list {
    display: grid;
    gap: 8px;
}

.address-card {
    padding: 13px;
    background: var(--x-panel);
    border: 1px solid var(--x-line);
    border-radius: 5px;
}

.address-card > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.address-card > header div {
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 9px;
}

.address-card > header strong {
    font-size: 14px;
}

.address-card > header span {
    color: var(--x-muted);
    font-size: 11px;
}

.address-card > header em {
    padding: 4px 6px;
    color: #08090b;
    background: var(--x-green);
    border-radius: 2px;
    font-size: 8px;
    font-style: normal;
    font-weight: 950;
}

.address-card > p {
    margin: 10px 0 12px;
    color: #c8cbd1;
    font-size: 11px;
    line-height: 1.65;
}

.address-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid var(--x-line);
    padding-top: 10px;
}

.address-actions form {
    margin: 0;
}

.address-actions button,
.address-actions summary {
    padding: 2px 0;
    color: var(--x-muted);
    background: none;
    border: 0;
    list-style: none;
    font-size: 10px;
    font-weight: 850;
    cursor: pointer;
}

.address-actions summary::-webkit-details-marker {
    display: none;
}

.address-actions .danger-action {
    color: var(--x-red);
}

.address-actions details[open] {
    width: 100%;
    margin-top: 5px;
    padding-top: 10px;
    border-top: 1px solid var(--x-line);
    order: 5;
}

.address-actions:has(details[open]) {
    flex-wrap: wrap;
}

.address-edit-form {
    margin: 9px 0 0;
    padding: 0;
    display: grid;
    gap: 8px;
    background: none;
    border: 0;
}

.address-edit-form .btn {
    margin-top: 2px;
}

/* After-sales and logistics */
.after-sale-hero {
    border-top-color: var(--x-orange);
}

.after-sale-hero .function-kicker {
    color: var(--x-orange);
}

.after-sale-hero .function-hero-icon {
    background: var(--x-orange);
}

.after-sale-list {
    display: grid;
    gap: 8px;
}

.after-sale-card {
    padding: 12px;
    display: block;
    color: var(--x-text);
    background: var(--x-panel);
    border: 1px solid var(--x-line);
    border-radius: 5px;
    text-decoration: none;
}

.after-sale-card > header {
    padding-bottom: 9px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--x-muted);
    border-bottom: 1px solid var(--x-line);
    font-size: 9px;
    font-weight: 800;
}

.after-status {
    color: var(--x-orange);
    font-size: 10px;
}

.after-status.status-completed {
    color: var(--x-green);
}

.after-status.status-rejected,
.after-status.status-cancelled {
    color: var(--x-red);
}

.after-product {
    margin-top: 11px;
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr) 16px;
    gap: 10px;
    align-items: center;
}

.after-product > img,
.after-order-summary > img,
.logistics-summary > img {
    width: 66px;
    height: 58px;
    object-fit: contain;
    background: #fff;
    border-radius: 3px;
}

.after-product > div,
.after-order-summary > div,
.logistics-summary > div {
    min-width: 0;
}

.after-product h3,
.after-order-summary h2,
.logistics-summary h2 {
    margin: 0 0 5px;
    overflow: hidden;
    color: var(--x-text);
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 13px;
}

.after-product p,
.after-product em,
.after-order-summary p,
.after-order-summary span,
.logistics-summary p,
.logistics-summary span {
    margin: 0;
    color: var(--x-muted);
    font-size: 9px;
    font-style: normal;
    line-height: 1.55;
}

.after-product > svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--x-muted);
    stroke-width: 1.8;
}

.after-sale-card > footer {
    margin-top: 10px;
    padding-top: 9px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--x-muted);
    border-top: 1px solid var(--x-line);
    font-size: 10px;
}

.after-sale-card > footer b {
    color: var(--x-orange);
    font-size: 14px;
}

.after-order-summary,
.logistics-summary {
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
}

.after-order-summary h2,
.logistics-summary h2 {
    margin-top: 4px;
    font-size: 14px;
}

.after-sale-form {
    display: grid;
    gap: 9px;
}

.after-sale-form .functional-panel {
    margin-top: 0;
}

.after-type-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.after-type-grid label {
    min-width: 0;
    cursor: pointer;
}

.after-type-grid input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.after-type-grid span {
    min-height: 66px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--x-muted);
    background: #0d0f12;
    border: 1px solid var(--x-line);
    border-radius: 4px;
}

.after-type-grid svg {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.after-type-grid strong {
    overflow-wrap: anywhere;
    font-size: 12px;
}

.after-type-grid input:checked + span {
    color: #08090b;
    background: var(--x-orange);
    border-color: var(--x-orange);
}

.after-sale-form .field {
    margin-bottom: 11px;
}

.file-input {
    padding: 8px;
    font-size: 10px;
}

.file-input::file-selector-button {
    min-height: 30px;
    margin-right: 8px;
    padding: 0 10px;
    color: var(--x-text);
    background: var(--x-panel-2);
    border: 1px solid var(--x-line);
    border-radius: 3px;
    font-weight: 800;
}

.after-detail-hero {
    min-height: 144px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: var(--x-panel);
    border: 1px solid var(--x-line);
    border-top: 3px solid var(--x-orange);
    border-radius: 5px;
}

.after-detail-hero.status-completed {
    border-top-color: var(--x-green);
}

.after-detail-hero.status-rejected,
.after-detail-hero.status-cancelled {
    border-top-color: var(--x-red);
}

.after-detail-hero > span {
    color: var(--x-orange);
    font-size: 9px;
    font-weight: 950;
    letter-spacing: 1.4px;
}

.after-detail-hero h1 {
    margin: 8px 0 5px;
    font-size: 27px;
}

.after-detail-hero p {
    margin: 0;
    color: var(--x-muted);
    font-size: 10px;
}

.after-progress {
    margin: 8px 0 0;
    padding: 12px 7px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: var(--x-panel);
    border: 1px solid var(--x-line);
    border-radius: 5px;
}

.after-progress > div {
    min-width: 0;
    display: grid;
    place-items: center;
    gap: 6px;
    position: relative;
    color: var(--x-muted);
    text-align: center;
    font-size: 8px;
    font-weight: 800;
}

.after-progress > div:not(:last-child)::after {
    content: "";
    width: calc(100% - 28px);
    height: 1px;
    position: absolute;
    left: calc(50% + 14px);
    top: 13px;
    background: var(--x-line-strong);
}

.after-progress i {
    width: 26px;
    height: 26px;
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    color: var(--x-muted);
    background: #0d0f12;
    border: 1px solid var(--x-line);
    border-radius: 50%;
    font-style: normal;
}

.after-progress svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.after-progress .active {
    color: var(--x-text);
}

.after-progress .active i {
    color: #08090b;
    background: var(--x-orange);
    border-color: var(--x-orange);
}

.after-info-panel dl,
.after-info-panel dl div {
    margin: 0;
}

.after-info-panel dl {
    display: grid;
    gap: 10px;
}

.after-info-panel dl div {
    padding: 10px;
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 10px;
    background: #0d0f12;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 3px;
}

.after-info-panel dt {
    color: var(--x-muted);
    font-size: 10px;
}

.after-info-panel dd {
    margin: 0;
    color: #d7d9de;
    font-size: 11px;
    line-height: 1.6;
}

.after-info-panel .refund-value {
    color: var(--x-orange);
    font-size: 16px;
    font-weight: 950;
}

.after-evidence {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    color: var(--x-text);
    text-decoration: none;
}

.after-evidence img {
    width: 64px;
    height: 52px;
    object-fit: cover;
    border-radius: 3px;
}

.after-evidence span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10px;
}

.after-evidence svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
}

.after-return-form .field {
    margin-bottom: 10px;
}

.after-logistics-block p {
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--x-muted);
    font-size: 10px;
}

.after-logistics-block strong {
    color: var(--x-cyan);
    font-size: 12px;
}

.after-detail-actions {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.after-detail-actions form,
.after-detail-actions .btn {
    width: 100%;
    margin: 0;
}

.danger-button {
    color: var(--x-red) !important;
    border-color: rgba(255, 83, 97, .45) !important;
}

.order-meta[href] {
    grid-template-columns: 18px minmax(0, 1fr) 16px;
    text-decoration: none;
}

.order-meta[href] > svg:last-child {
    align-self: center;
    color: var(--x-muted);
}

.after-sale-strip {
    min-height: 38px;
    margin-top: 9px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--x-orange);
    background: rgba(255, 120, 79, .06);
    border: 1px solid rgba(255, 120, 79, .23);
    border-radius: 3px;
    text-decoration: none;
    font-size: 10px;
    font-weight: 850;
}

.after-sale-strip span {
    display: flex;
    align-items: center;
    gap: 7px;
}

.after-sale-strip svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.order-text-button {
    min-height: 34px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    color: var(--x-muted);
    border: 1px solid var(--x-line);
    border-radius: 3px;
    font-size: 10px;
    font-weight: 850;
    text-decoration: none;
}

.order-actions form {
    margin: 0;
}

.logistics-hero {
    border-top-color: var(--x-cyan);
}

.logistics-hero .function-kicker {
    color: var(--x-cyan);
}

.logistics-hero .function-hero-icon {
    background: var(--x-cyan);
}

.logistics-timeline {
    padding: 14px 12px;
    background: var(--x-panel);
    border: 1px solid var(--x-line);
    border-radius: 5px;
}

.logistics-timeline article {
    min-height: 82px;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 11px;
    position: relative;
}

.logistics-timeline article:not(:last-child)::before {
    content: "";
    width: 1px;
    position: absolute;
    left: 14px;
    top: 31px;
    bottom: 3px;
    background: var(--x-line-strong);
}

.logistics-timeline article > i {
    width: 29px;
    height: 29px;
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    color: var(--x-muted);
    background: #0d0f12;
    border: 1px solid var(--x-line);
    border-radius: 50%;
}

.logistics-timeline article.current > i {
    color: #08090b;
    background: var(--x-cyan);
    border-color: var(--x-cyan);
}

.logistics-timeline article > i svg,
.logistics-timeline article span svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.logistics-timeline article > div {
    min-width: 0;
    padding: 4px 0 17px;
}

.logistics-timeline header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.logistics-timeline strong {
    font-size: 12px;
}

.logistics-timeline time {
    color: var(--x-muted);
    font-size: 9px;
}

.logistics-timeline p {
    margin: 6px 0 0;
    color: #c7cad0;
    font-size: 10px;
    line-height: 1.55;
}

.logistics-timeline article span {
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--x-muted);
    font-size: 9px;
}

@media (max-width: 360px) {
    .after-progress {
        padding-inline: 3px;
    }
    .after-progress > div {
        font-size: 7px;
    }
    .after-type-grid span {
        padding: 8px;
    }
}

/* Function center: messages, orders, checkout and lucky coins */
.top-icon-btn {
    position: relative;
}

.top-notice-badge {
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    position: absolute;
    top: -5px;
    right: -5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #08090b;
    background: var(--x-acid);
    border: 2px solid var(--x-bg);
    border-radius: 8px;
    font-size: 8px;
    line-height: 1;
    font-weight: 1000;
}

.function-hero {
    min-height: 126px;
    padding: 18px 17px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    background:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px),
        #121418;
    background-size: 20px 20px;
    border: 1px solid var(--x-line);
    border-top: 3px solid var(--x-acid);
    border-radius: 5px;
}

.function-hero > div {
    min-width: 0;
}

.function-kicker {
    display: block;
    margin-bottom: 7px;
    color: var(--x-acid);
    font-size: 9px;
    font-weight: 950;
    letter-spacing: 1.5px;
}

.function-hero h1 {
    margin: 0 0 5px;
    font-size: 27px;
    line-height: 1.08;
}

.function-hero p {
    max-width: 265px;
    margin: 0;
    color: var(--x-muted);
    font-size: 12px;
    line-height: 1.55;
}

.function-hero-icon {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    display: grid;
    place-items: center;
    color: #08090b;
    background: var(--x-acid);
    border-radius: 4px;
}

.function-hero-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.order-hero {
    border-top-color: var(--x-cyan);
}

.order-hero .function-kicker {
    color: var(--x-cyan);
}

.order-hero .function-hero-icon {
    background: var(--x-cyan);
}

.function-title {
    min-height: 43px;
    margin: 7px 0 0;
}

.function-title form {
    margin: 0;
}

.text-action,
button.text-action {
    padding: 6px 0;
    color: var(--x-acid);
    background: none;
    border: 0;
    font: inherit;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
}

.section-caption {
    color: var(--x-muted);
    font-size: 10px;
    font-weight: 800;
}

.notification-list,
.order-list,
.coin-log-list {
    display: grid;
    gap: 8px;
}

.notification-list form {
    margin: 0;
}

.notification-item {
    width: 100%;
    min-height: 82px;
    padding: 12px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 16px;
    gap: 11px;
    align-items: center;
    color: var(--x-text);
    text-align: left;
    background: var(--x-panel);
    border: 1px solid var(--x-line);
    border-radius: 5px;
    cursor: pointer;
}

.notification-item.is-unread {
    background: #171a1f;
    border-left: 3px solid var(--x-acid);
}

.notification-icon,
.coin-log-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--x-acid);
    background: #0c0e11;
    border: 1px solid var(--x-line);
    border-radius: 4px;
}

.notification-icon svg,
.coin-log-icon svg,
.notification-item > svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.notification-copy {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.notification-copy > span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.notification-copy strong {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 14px;
}

.notification-copy time,
.notification-copy em {
    color: var(--x-muted);
    font-size: 10px;
    font-style: normal;
}

.notification-copy em {
    display: -webkit-box;
    overflow: hidden;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.unread-dot {
    width: 7px;
    height: 7px;
    justify-self: center;
    background: var(--x-acid);
    border-radius: 50%;
}

.functional-empty {
    min-height: 200px;
    padding: 28px 22px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    text-align: center;
    color: var(--x-muted);
    background: var(--x-panel);
    border: 1px dashed var(--x-line-strong);
    border-radius: 5px;
}

.functional-empty > span {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: var(--x-acid);
    background: #0c0e11;
    border: 1px solid var(--x-line);
    border-radius: 4px;
}

.functional-empty svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.functional-empty h3,
.functional-empty p {
    margin: 0;
}

.functional-empty h3 {
    color: var(--x-text);
    font-size: 15px;
}

.functional-empty p {
    max-width: 270px;
    font-size: 11px;
    line-height: 1.6;
}

.functional-empty .btn {
    margin-top: 8px;
}

.compact-empty {
    min-height: 120px;
}

.order-tabs {
    margin: 8px 0 4px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: var(--x-panel);
    border: 1px solid var(--x-line);
    border-radius: 5px;
}

.order-tabs a {
    min-width: 0;
    min-height: 62px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    position: relative;
    color: var(--x-muted);
    border-right: 1px solid var(--x-line);
    text-decoration: none;
}

.order-tabs a:last-child {
    border-right: 0;
}

.order-tabs strong {
    color: var(--x-text);
    font-size: 16px;
}

.order-tabs span {
    font-size: 10px;
    font-weight: 850;
}

.order-tabs a.active {
    color: #08090b;
    background: var(--x-cyan);
}

.order-tabs a.active strong {
    color: #08090b;
}

.order-card {
    padding: 12px;
    display: block;
    color: var(--x-text);
    background: var(--x-panel);
    border: 1px solid var(--x-line);
    border-radius: 5px;
    text-decoration: none;
}

.order-card > header {
    margin-bottom: 11px;
    padding-bottom: 9px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    color: var(--x-muted);
    border-bottom: 1px solid var(--x-line);
    font-size: 9px;
    font-weight: 800;
}

.status-text {
    color: var(--x-acid);
    font-size: 11px;
}

.status-shipped,
.status-paid,
.status-pending {
    color: var(--x-cyan);
}

.status-completed,
.status-drawn {
    color: var(--x-green);
}

.status-cancelled,
.status-failed,
.status-refunded {
    color: var(--x-red);
}

.order-product {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.order-product img {
    width: 72px;
    height: 58px;
    object-fit: contain;
    background: #fff;
    border-radius: 3px;
}

.order-product > div {
    min-width: 0;
}

.order-product h3 {
    margin: 0 0 4px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 13px;
}

.order-product p,
.order-product em {
    margin: 0;
    color: var(--x-muted);
    font-size: 10px;
    font-style: normal;
    line-height: 1.55;
}

.order-product > b {
    color: var(--x-text);
    font-size: 13px;
}

.order-meta {
    margin-top: 10px;
    padding: 9px 10px;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    color: #d6d8dd;
    background: #0d0f12;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 3px;
    font-size: 10px;
}

.order-meta svg,
.order-link-hint svg,
.checkout-note svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.order-meta span {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.order-meta em {
    overflow-wrap: anywhere;
    color: var(--x-muted);
    font-style: normal;
    line-height: 1.5;
}

.logistics-meta {
    color: var(--x-cyan);
}

.order-actions {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}

.order-actions .btn {
    min-height: 34px;
    font-size: 11px;
}

.order-link-hint {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 5px;
    color: var(--x-acid);
    font-size: 10px;
    font-weight: 850;
}

.order-empty {
    margin-top: 9px;
}

.product-stage {
    height: 248px;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #f4f4f2;
    border: 1px solid var(--x-line);
    border-radius: 5px;
}

.product-stage .detail-cover {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: 0;
    border-radius: 0;
}

.product-stage-label {
    padding: 6px 8px;
    position: absolute;
    left: 9px;
    bottom: 9px;
    color: #08090b;
    background: var(--x-acid);
    border-radius: 2px;
    font-size: 8px;
    font-weight: 1000;
    letter-spacing: 1px;
}

.product-detail-head {
    margin: -24px 10px 12px;
    padding: 15px 14px 13px;
    color: var(--x-text);
    background: rgba(18, 20, 24, .97);
    border: 1px solid var(--x-line-strong);
    border-radius: 5px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .34);
    backdrop-filter: blur(12px);
}

.product-detail-head h1 {
    margin: 7px 0 5px;
    color: var(--x-text);
    font-size: 23px;
    line-height: 1.25;
}

.product-detail-head .tag {
    color: var(--x-acid);
    background: rgba(223, 255, 56, .08);
    border-color: rgba(223, 255, 56, .24);
}

.product-price-line {
    margin-top: 11px;
    display: flex;
    align-items: baseline;
    gap: 9px;
}

.product-price-line .balance {
    color: var(--x-acid);
    font-size: 24px;
    font-weight: 1000;
}

.product-price-line del,
.product-price-line > span {
    color: var(--x-muted);
    font-size: 10px;
}

.product-price-line > span {
    margin-left: auto;
}

.functional-panel {
    margin-top: 9px;
    padding: 13px;
    background: var(--x-panel);
    border: 1px solid var(--x-line);
    border-radius: 5px;
}

.functional-panel-head {
    margin-bottom: 11px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.functional-panel-head h2 {
    margin: 0;
    font-size: 15px;
}

.functional-panel-head > span {
    color: var(--x-muted);
    font-size: 9px;
    font-weight: 850;
}

.product-description > p {
    margin: 0;
    color: #c5c8ce;
    font-size: 12px;
    line-height: 1.75;
}

.checkout-form {
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
}

.checkout-form .field {
    margin-bottom: 12px;
}

.checkout-form select {
    min-height: 46px;
}

.checkout-note {
    margin: 2px 0 12px;
    padding: 10px;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    color: #bbc0c8;
    background: #0d0f12;
    border: 1px solid var(--x-line);
    border-radius: 3px;
    font-size: 10px;
    line-height: 1.55;
}

.checkout-note svg {
    color: var(--x-green);
}

.checkout-empty {
    margin-bottom: 12px;
    padding: 12px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    background: #0d0f12;
    border: 1px solid var(--x-line);
    border-radius: 4px;
}

.checkout-empty > span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: var(--x-acid);
    border: 1px solid var(--x-line);
    border-radius: 3px;
}

.checkout-empty svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.checkout-empty strong,
.checkout-empty p {
    margin: 0;
}

.checkout-empty strong {
    font-size: 13px;
}

.checkout-empty p {
    margin-top: 3px;
    color: var(--x-muted);
    font-size: 10px;
}

.coin-hero {
    min-height: 202px;
    padding: 17px;
    color: #17150b;
    background: #f6c85f;
    border: 1px solid #f6c85f;
    border-radius: 5px;
}

.coin-hero-top,
.coin-hero > div:last-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.coin-hero-top > span {
    font-size: 9px;
    font-weight: 1000;
    letter-spacing: 1.5px;
}

.coin-hero-top a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    font-weight: 900;
}

.coin-hero-top svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.coin-hero > strong {
    display: block;
    margin: 20px 0 5px;
    font-size: 48px;
    line-height: 1;
}

.coin-hero > p {
    margin: 0 0 18px;
    max-width: 330px;
    color: rgba(23, 21, 11, .72);
    font-size: 11px;
    line-height: 1.6;
}

.coin-hero > div:last-child {
    padding-top: 12px;
    border-top: 1px solid rgba(23, 21, 11, .2);
    font-size: 10px;
    font-weight: 800;
}

.coin-hero > div:last-child b {
    margin-left: 3px;
    font-size: 13px;
}

.coin-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.coin-actions a {
    min-width: 0;
    min-height: 82px;
    padding: 11px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    position: relative;
    background: var(--x-panel);
    border: 1px solid var(--x-line);
    border-radius: 4px;
    text-decoration: none;
}

.coin-actions a > span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #17150b;
    background: var(--x-gold);
    border-radius: 3px;
}

.coin-actions svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.coin-actions a > svg {
    width: 13px;
    height: 13px;
    position: absolute;
    top: 8px;
    right: 8px;
    color: var(--x-muted);
}

.coin-actions div {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.coin-actions strong {
    font-size: 12px;
}

.coin-actions em {
    overflow: hidden;
    color: var(--x-muted);
    font-size: 9px;
    font-style: normal;
    line-height: 1.45;
}

.coin-box-rail {
    margin: 0 -10px;
    padding: 0 10px 5px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.coin-box-rail::-webkit-scrollbar {
    display: none;
}

.coin-box-rail a {
    width: 218px;
    min-width: 218px;
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    overflow: hidden;
    background: var(--x-panel);
    border: 1px solid var(--x-line);
    border-radius: 4px;
    text-decoration: none;
}

.coin-box-rail img {
    width: 90px;
    height: 108px;
    object-fit: contain;
    background: #fff;
}

.coin-box-rail div {
    min-width: 0;
    padding: 10px;
}

.coin-box-rail span {
    color: var(--x-gold);
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
}

.coin-box-rail h3 {
    height: 34px;
    margin: 7px 0 8px;
    display: -webkit-box;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.coin-box-rail b {
    color: var(--x-gold);
    font-size: 11px;
}

.coin-log-item {
    min-height: 66px;
    padding: 10px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    background: var(--x-panel);
    border: 1px solid var(--x-line);
    border-radius: 4px;
}

.coin-log-icon {
    width: 38px;
    height: 38px;
    color: var(--x-gold);
}

.coin-log-item > div {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.coin-log-item strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 12px;
}

.coin-log-item em {
    color: var(--x-muted);
    font-size: 9px;
    font-style: normal;
}

.coin-log-item > b {
    font-size: 15px;
}

.coin-log-item .is-plus {
    color: var(--x-green);
}

.coin-log-item .is-minus {
    color: var(--x-red);
}

@media (max-width: 360px) {
    .function-hero h1 {
        font-size: 24px;
    }
    .order-product {
        grid-template-columns: 62px minmax(0, 1fr) auto;
    }
    .order-product img {
        width: 62px;
        height: 54px;
    }
    .coin-actions a {
        grid-template-columns: 30px minmax(0, 1fr);
        padding: 9px;
    }
    .coin-actions a > span {
        width: 30px;
        height: 30px;
    }
}

/* Experience polish: varied editorial rhythm and calmer interaction states. */
.app-section-head > a {
    min-height: auto;
    padding: 0 0 3px;
    color: #d6d9df;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(223, 255, 56, .45);
    border-radius: 0;
    box-shadow: none;
}

.app-section-head > a:hover {
    color: var(--x-acid);
    border-bottom-color: var(--x-acid);
}

.home-banner-controls {
    min-height: 27px;
    padding: 2px 2px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.home-banner-dots {
    display: flex;
    align-items: center;
    gap: 5px;
}

.home-banner-dots button {
    width: 15px;
    height: 3px;
    padding: 0;
    overflow: hidden;
    background: #343840;
    border: 0;
    border-radius: 0;
    transition: width .22s ease, background-color .22s ease;
}

.home-banner-dots button.active {
    width: 31px;
    background: var(--x-acid);
}

.home-banner-controls > span {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    color: #5e636c;
    font-size: 8px;
    font-weight: 850;
}

.home-banner-controls b {
    color: #f2f2ed;
    font-size: 11px;
}

.home-banner-controls i,
.home-banner-controls em {
    font-style: normal;
}

.notice-ticker {
    margin-top: 4px;
}

.home-intro,
.home-banner,
.app-box-card,
.activity-strip a,
.home-feature-row a,
.play-link {
    transition: border-color .2s ease, transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.home-intro {
    border-top-color: rgba(223, 255, 56, .55);
    box-shadow: inset 0 1px 0 rgba(223, 255, 56, .08);
}

.home-hot-grid > .app-box-card:first-child {
    min-height: 190px;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
}

.home-hot-grid > .app-box-card:first-child .app-box-cover {
    height: 100%;
    min-height: 190px;
    aspect-ratio: auto;
}

.home-hot-grid > .app-box-card:first-child .app-box-info {
    padding: 14px 13px;
    display: flex;
    flex-direction: column;
}

.home-hot-grid > .app-box-card:first-child .app-box-tags {
    min-height: 16px;
}

.home-hot-grid > .app-box-card:first-child .app-box-info h3 {
    min-height: 0;
    margin-top: 8px;
    font-size: 18px;
    line-height: 1.16;
}

.home-hot-grid > .app-box-card:first-child .app-box-info > p {
    height: auto;
    min-height: 42px;
    margin-bottom: 10px;
    -webkit-line-clamp: 3;
}

.home-hot-grid > .app-box-card:first-child .stock-meter {
    margin-top: auto;
}

.home-hot-grid > .app-box-card:first-child .app-box-buy strong {
    font-size: 19px;
}

.home-hot-grid > .app-box-card:first-child .app-box-buy > i {
    min-height: 29px;
    padding-inline: 9px;
}

.home-new-grid {
    margin: 0 -10px;
    padding: 0 10px 5px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.home-new-grid::-webkit-scrollbar {
    display: none;
}

.home-new-grid > .app-box-card {
    width: 183px;
    min-width: 183px;
    flex: 0 0 183px;
    scroll-snap-align: start;
}

.home-new-grid .app-box-cover {
    aspect-ratio: 16 / 11;
}

.home-fudai-grid {
    grid-template-columns: 1fr;
    gap: 8px;
}

.home-fudai-grid > .app-box-card {
    min-height: 146px;
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
}

.home-fudai-grid .app-box-cover {
    height: 100%;
    min-height: 146px;
    aspect-ratio: auto;
}

.home-fudai-grid .app-box-info {
    min-width: 0;
    padding: 11px 12px;
}

.home-fudai-grid .app-box-info h3 {
    min-height: 0;
}

.home-fudai-grid .app-box-info > p {
    height: 27px;
}

.home-feature-row a:nth-child(2) > span { color: var(--x-violet); border-color: rgba(169, 140, 255, .4); }
.home-feature-row a:nth-child(3) > span { color: var(--x-orange); border-color: rgba(255, 120, 79, .4); }
.home-feature-row a:nth-child(4) > span { color: var(--x-cyan); border-color: rgba(73, 215, 255, .4); }

.app-grid a:nth-child(4n + 2) .small-icon { background: var(--x-cyan); }
.app-grid a:nth-child(4n + 3) .small-icon { background: var(--x-orange); }
.app-grid a:nth-child(4n + 4) .small-icon { background: var(--x-violet); }

.bottom-nav a {
    position: relative;
}

.bottom-nav a.active::before {
    content: "";
    width: 22px;
    height: 2px;
    position: absolute;
    left: 50%;
    top: -7px;
    transform: translateX(-50%);
    background: var(--x-acid);
}

.bottom-nav a.active .icon {
    border-radius: 4px;
    box-shadow: 0 0 18px rgba(223, 255, 56, .12);
}

.input:focus,
select:focus,
textarea:focus {
    border-color: rgba(223, 255, 56, .72);
    outline: 2px solid rgba(223, 255, 56, .08);
    outline-offset: 1px;
}

@media (hover: hover) and (pointer: fine) {
    .home-banner:hover,
    .app-box-card:hover,
    .activity-strip a:hover,
    .home-feature-row a:hover,
    .play-link:hover {
        border-color: rgba(223, 255, 56, .38);
        transform: translateY(-2px);
        box-shadow: 0 13px 26px rgba(0, 0, 0, .22);
    }
}

@media (max-width: 360px) {
    .home-banner-copy h2 {
        font-size: 17px;
        line-height: 1.1;
    }
    .home-hot-grid > .app-box-card:first-child {
        grid-template-columns: 43% 57%;
    }
    .home-hot-grid > .app-box-card:first-child .app-box-info {
        padding: 11px 10px;
    }
    .home-hot-grid > .app-box-card:first-child .app-box-info h3 {
        font-size: 15px;
    }
    .home-hot-grid > .app-box-card:first-child .app-box-info > p {
        min-height: 36px;
        -webkit-line-clamp: 2;
    }
    .home-hot-grid > .app-box-card:first-child .app-box-buy > i {
        padding-inline: 6px;
    }
    .home-fudai-grid > .app-box-card {
        grid-template-columns: 112px minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-intro,
    .home-banner,
    .app-box-card,
    .activity-strip a,
    .home-feature-row a,
    .play-link,
    .home-banner-dots button {
        transition: none !important;
    }
}
