:root {
    --box-bg: #09090d;
    --box-panel: #15141b;
    --box-panel-2: #1c1a22;
    --box-border: #2a2731;
    --box-text: #f2eee7;
    --box-muted: #9a9288;
    --box-orange: #ff7a1a;
    --box-gold: #e8b968;
}

html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body.box-body {
    margin: 0;
    background:
        radial-gradient(900px 500px at 80% 0, rgba(255, 122, 26, .08), transparent 60%),
        var(--box-bg);
    color: var(--box-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body.box-body::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.box-ranking-list {
    scrollbar-width: none;
}

.box-ranking-list::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }

.box-container {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
}

.box-header {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    background: rgba(9, 9, 13, .9);
    backdrop-filter: blur(16px);
}

.box-header-inner {
    display: flex;
    align-items: center;
    gap: 30px;
    min-height: 76px;
}

.box-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.box-brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ff9a2e, #e35d0c);
    color: #1a1004;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 6px 20px rgba(255, 122, 26, .25);
}

.box-brand-block {
    display: block;
    width: auto;
    height: 56px;
    max-width: 240px;
    object-fit: contain;
}

.box-brand-logo {
    display: block;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .06);
    object-fit: contain;
}

.box-brand strong {
    display: block;
    font-size: 17px;
    letter-spacing: .04em;
}

.box-brand small {
    display: block;
    margin-top: 2px;
    color: var(--box-muted);
    font-size: 9px;
    letter-spacing: .24em;
}

.box-nav {
    display: flex;
    align-items: stretch;
    gap: 2px;
    align-self: stretch;
}

.box-nav a {
    display: flex;
    align-items: center;
    padding: 0 18px;
    color: #b9b2a8;
    font-size: 14px;
    border-bottom: 2px solid transparent;
}

.box-nav a:hover { color: #fff; }

.box-nav a.active {
    color: #fff;
    border-bottom-color: var(--box-orange);
    background: linear-gradient(180deg, transparent 55%, rgba(255, 122, 26, .08));
}

.box-account {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
    color: #b9b2a8;
    font-size: 13px;
}

.box-account > a:hover { color: #fff; }

.box-user {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.box-user span { color: #fff; font-size: 13px; }
.box-user small { color: var(--box-muted); font-size: 10px; }

.box-register {
    padding: 7px 13px;
    border: 1px solid rgba(255, 122, 26, .45);
    border-radius: 6px;
    color: var(--box-orange) !important;
}

.box-link-btn {
    padding: 0;
    border: 0;
    background: none;
    color: var(--box-muted);
    cursor: pointer;
}

.box-link-btn:hover { color: #fff; }

.box-download {
    padding: 9px 17px;
    border-radius: 6px;
    background: linear-gradient(135deg, #ff8a22, #e35d0c);
    color: #1b1004;
    font-weight: 800;
    box-shadow: 0 8px 22px rgba(255, 122, 26, .2);
}

.box-download.is-disabled {
    background: #24212a;
    color: #857d73;
    box-shadow: none;
    font-weight: 500;
}

.box-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 18px;
    margin-top: 22px;
}

.box-slider {
    position: relative;
    overflow: hidden;
    min-height: 470px;
    border: 1px solid var(--box-border);
    border-radius: 14px;
    background: #111018;
}

.box-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity .45s ease;
}

.box-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.box-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}

.box-slide-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 7, 10, .94) 0%, rgba(7, 7, 10, .7) 38%, rgba(7, 7, 10, .08) 78%),
        linear-gradient(0deg, rgba(7, 7, 10, .85), transparent 55%);
}

.box-slide-copy {
    position: absolute;
    bottom: 52px;
    left: 52px;
    max-width: 560px;
}

.box-kicker {
    color: var(--box-gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.box-slide-copy h1 {
    margin: 12px 0 10px;
    font-size: clamp(38px, 4.4vw, 62px);
    line-height: 1.05;
    letter-spacing: .02em;
    text-shadow: 0 4px 24px rgba(0, 0, 0, .65);
}

.box-slide-copy p {
    margin: 0;
    color: #d2c9bb;
    font-size: 16px;
    line-height: 1.7;
}

.box-slide-actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.box-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 26px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: linear-gradient(135deg, #ff8a22, #e35d0c);
    color: #1b1004;
    font-size: 14px;
    font-weight: 800;
}

.box-btn.ghost {
    border-color: rgba(255, 255, 255, .24);
    background: rgba(255, 255, 255, .06);
    color: #f2eee7;
    font-weight: 600;
}

.box-btn.small { padding: 8px 16px; font-size: 12px; }

.box-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    background: rgba(10, 10, 14, .45);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    backdrop-filter: blur(6px);
}

.box-arrow:hover { border-color: var(--box-orange); color: var(--box-orange); }
.box-arrow.prev { left: 16px; }
.box-arrow.next { right: 16px; }

.box-dots {
    position: absolute;
    bottom: 18px;
    left: 52px;
    z-index: 3;
    display: flex;
    gap: 6px;
}

.box-dots button {
    width: 22px;
    height: 3px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .28);
    cursor: pointer;
}

.box-dots button.is-active { background: var(--box-orange); }

.box-ranking {
    display: flex;
    flex-direction: column;
    padding: 18px;
    border: 1px solid var(--box-border);
    border-radius: 14px;
    background: linear-gradient(180deg, #1a1820, #121118);
}

.box-panel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.box-panel-head h2 {
    margin: 0;
    font-size: 18px;
}

.box-panel-head a {
    color: var(--box-muted);
    font-size: 11px;
}

.box-panel-head a:hover { color: var(--box-orange); }

.box-ranking-list {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 5px;
    margin-top: 10px;
    overflow: auto;
}

.box-side-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 12px;
    padding: 9px 12px;
    border: 1px solid rgba(255, 122, 26, .45);
    border-radius: 5px;
    background: rgba(255, 122, 26, .08);
    color: var(--box-orange);
    font-size: 12px;
    font-weight: 700;
}

.box-side-button:hover {
    background: var(--box-orange);
    color: #1b1004;
}

.box-rank-item {
    display: grid;
    grid-template-columns: 24px 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    padding: 8px 4px;
    border-radius: 8px;
}

.box-rank-item:hover { background: rgba(255, 255, 255, .04); }

.box-rank-no {
    color: #7d7469;
    font-size: 17px;
    font-style: italic;
    font-weight: 800;
    text-align: center;
}

.box-rank-item:nth-child(1) .box-rank-no { color: #ffb23e; }
.box-rank-item:nth-child(2) .box-rank-no { color: #d8d2ca; }
.box-rank-item:nth-child(3) .box-rank-no { color: #d88a55; }

.box-rank-thumb {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
}

.box-rank-info { min-width: 0; }

.box-rank-info strong {
    display: block;
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.box-rank-info small { color: var(--box-muted); font-size: 10px; }

.box-rank-open {
    padding: 5px 10px;
    border: 1px solid rgba(255, 122, 26, .4);
    border-radius: 999px;
    color: var(--box-orange);
    font-size: 10px;
}

.box-empty { padding: 20px 0; color: var(--box-muted); font-size: 12px; }

.box-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding: 11px 16px;
    border: 1px solid rgba(232, 185, 104, .16);
    border-radius: 8px;
    background: rgba(232, 185, 104, .04);
    color: #b8aea0;
    font-size: 12px;
}

.box-notice span {
    flex-shrink: 0;
    padding: 2px 7px;
    border-radius: 3px;
    background: rgba(255, 122, 26, .14);
    color: var(--box-orange);
    font-size: 10px;
    font-weight: 700;
}

.box-member-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 16px;
    padding: 16px 20px;
    border: 1px solid var(--box-border);
    border-radius: 10px;
    background: linear-gradient(90deg, #17151d, #121118);
}

.box-member-bar strong { display: block; font-size: 14px; }
.box-member-bar > div > span { color: var(--box-muted); font-size: 11px; }

.box-member-stats {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--box-muted);
    font-size: 12px;
}

.box-member-stats a { color: var(--box-orange); font-size: 12px; }

.box-member-stats .box-btn {
    color: #1b1004;
}

.box-section { margin-top: 34px; }

.box-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.box-section-kicker {
    color: var(--box-orange);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .22em;
}

.box-section-head h2 {
    margin: 4px 0 0;
    font-size: 22px;
}

.box-section-head > a {
    color: var(--box-muted);
    font-size: 12px;
}

.box-section-head > a:hover { color: var(--box-orange); }

.box-server-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.box-server-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 112px;
    padding: 10px;
    border: 1px solid var(--box-border);
    border-radius: 10px;
    background: var(--box-panel);
    transition: border-color .15s ease, transform .15s ease;
}

.box-server-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 122, 26, .5);
}

.box-server-cover {
    position: relative;
    display: block;
    flex: 0 0 120px;
    height: 88px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
}

.box-tag {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 2px 6px;
    border-radius: 3px;
    background: var(--box-orange);
    color: #1b1004;
    font-size: 9px;
    font-weight: 800;
}

.box-server-launch {
    position: absolute;
    right: 10px;
    bottom: 8px;
    z-index: 2;
    padding: 3px 9px;
    border-radius: 3px;
    background: var(--box-orange);
    color: #1b1004;
    font-size: 9px;
    font-weight: 700;
}

.box-server-launch:hover { background: #ff9a3d; }

.box-server-launch.is-disabled {
    background: rgba(12, 12, 16, .78);
    color: #8a8175;
    font-weight: 400;
}

.box-server-body { min-width: 0; }

.box-server-title {
    display: block;
    overflow: hidden;
    color: var(--box-text);
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.box-server-body span {
    display: block;
    margin-top: 5px;
    overflow: hidden;
    color: #b7ada0;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.box-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.box-game-card {
    overflow: hidden;
    border: 1px solid var(--box-border);
    border-radius: 10px;
    background: var(--box-panel);
    transition: transform .15s ease, border-color .15s ease;
}

.box-game-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 122, 26, .5);
}

.box-game-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
}

.box-game-body { padding: 12px 14px 14px; }

.box-game-title {
    display: block;
    color: var(--box-text);
    font-size: 14px;
    font-weight: 700;
}

.box-game-meta {
    display: block;
    margin-top: 5px;
    color: var(--box-muted);
    font-size: 11px;
}

.box-game-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
}

.box-launch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border: 1px solid rgba(255, 122, 26, .5);
    border-radius: 4px;
    background: rgba(255, 122, 26, .1);
    color: var(--box-orange);
    font-size: 11px;
    font-weight: 700;
}

.box-launch:hover {
    background: var(--box-orange);
    color: #1b1004;
}

.box-launch.is-disabled {
    border-color: var(--box-border);
    background: transparent;
    color: #6f675d;
    font-weight: 400;
}

.box-detail {
    color: var(--box-muted);
    font-size: 11px;
}

.box-detail:hover { color: var(--box-text); }

.box-empty-card {
    padding: 30px;
    border: 1px dashed var(--box-border);
    border-radius: 10px;
    color: var(--box-muted);
    font-size: 12px;
    text-align: center;
}

.box-footer {
    margin-top: 50px;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, .07);
    color: #746d64;
    font-size: 11px;
}

.box-footer .box-container {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

@media (max-width: 1100px) {
    .box-hero-grid { grid-template-columns: minmax(0, 1fr) 300px; }
    .box-slider { min-height: 430px; }
    .box-slide-copy { left: 36px; bottom: 40px; }
    .box-nav a { padding: 0 12px; }
}

@media (max-width: 900px) {
    .box-header-inner { flex-wrap: wrap; gap: 12px; padding: 10px 0; }
    .box-nav { order: 3; width: 100%; overflow-x: auto; border-top: 1px solid rgba(255, 255, 255, .06); }
    .box-nav a { min-height: 40px; padding: 0 14px; white-space: nowrap; }
    .box-account { margin-left: auto; }
    .box-hero-grid { grid-template-columns: 1fr; }
    .box-ranking { order: 2; }
    .box-ranking-list { display: grid; grid-template-columns: 1fr 1fr; }
    .box-server-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    .box-container { width: calc(100% - 28px); }
    .box-slider { min-height: 390px; }
    .box-slide-copy { right: 22px; left: 22px; bottom: 34px; }
    .box-slide-copy h1 { font-size: 36px; }
    .box-slide-copy p { font-size: 13px; }
    .box-dots { left: 22px; }
    .box-arrow { display: none; }
    .box-game-grid { grid-template-columns: 1fr 1fr; }
    .box-ranking-list { grid-template-columns: 1fr; }
    .box-member-bar { align-items: flex-start; flex-direction: column; }
    .box-member-stats { flex-wrap: wrap; gap: 10px; }
    .box-server-grid { grid-template-columns: 1fr; }
    .box-footer .box-container { flex-direction: column; }
}

@media (max-width: 520px) {
    .box-brand strong { font-size: 14px; }
    .box-account { gap: 8px; font-size: 12px; }
    .box-download { padding: 7px 10px; font-size: 12px; }
    .box-nav a { padding: 0 10px; font-size: 12px; }
    .box-game-grid { grid-template-columns: 1fr; }
    .box-section-head h2 { font-size: 19px; }
}
