
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #0F0D0D;
    color: #fff;
    font-weight: 500;
    padding-top: 60px;
}

.hero {
    width: 100%;
    background: radial-gradient(95% 180% at 0 100%, #111111, #701b1b);
    padding: 52px 0 90px;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero-updated {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.6;
    color: #fff;
    font-weight: 500;
    font-style: italic;
}

.hero-title {
    font-size: 46px;
    font-weight: 800;
    letter-spacing: .13em;
    background: linear-gradient(90deg, #fff, #0F0D0D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-pill {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    font-size: 11px;
    border-radius: 40px;
    border: 1px solid rgba(248, 150, 150, .7);
    background: rgba(15, 15, 15, .6);
    font-weight: 600;
}

.hero-pill .arrow {
    margin: 0 6px;
    font-weight: 700;
    color: #fff;
}
.content {
    padding: 20px 0 70px;
}
.board-wrapper {
    max-width: 1200px;
    margin: 24px auto 70px;
    position: relative;
}
.board-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 55px;
    padding: 0 40px;
    margin-bottom: 40px;
    background: transparent;
}

.board-tabs-left,
.board-tabs-right {
    display: flex;
    align-items: flex-end;
    gap: 36px;
}

.board-tabs-left div,
.board-tabs-right div {
    position: relative;
    font-size: 13px;
    letter-spacing: .15em;
    color: #9ca3af;
    padding-bottom: 14px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 600;
}

.board-tabs-left div.active,
.board-tabs-right div.active {
    color: #fff;
    font-weight: 800;
}

.board-tabs-left div.active::after,
.board-tabs-right div.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: #e2262c;
    border-radius: 999px 999px 0 0;
}

.board-card {
    border-radius: 24px;
    border: 1px solid #131722;
    background: radial-gradient(circle at left top, rgba(248, 113, 113, .13), transparent 55%) #050709;
    box-shadow: 0 26px 60px rgba(0, 0, 0, .7);
    overflow: hidden;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.col-no    { width: 70px; }
.col-badge { width: 110px; }
.col-char  { width: 230px; }
.col-mile  { width: 190px; }
.col-combo { width: 130px; }
.col-rank  { width: 110px; }
.col-cars  { width: 130px; }

thead th {
    background: #080b10;
    color: #9ca3af;
    font-size: 12px;
    letter-spacing: .18em;
    text-transform: uppercase;
    padding: 18px 16px;
    font-weight: 700;
    position: sticky;
    top: 0;
    z-index: 10;
}

thead th:nth-child(1),
thead th:nth-child(2),
thead th:nth-child(6),
thead th:nth-child(7) {
    text-align: center;
}

thead th:nth-child(3),
thead th:nth-child(4),
thead th:nth-child(5) {
    text-align: left;
}

.th-rank {
    padding: 18px 16px;
    text-align: center;
    display: table-cell;
}

tbody tr {
    background: #050709;
    transition: .2s;
}

tbody tr:nth-child(odd) {
    background: radial-gradient(circle at left, rgba(248, 113, 113, .12), transparent 60%), #050709;
}

tbody tr:hover {
    background: radial-gradient(circle at left, rgba(248, 113, 113, .26), transparent 60%), #050709;
}

td {
    padding: 16px;
    border-top: 1px solid #111827;
    font-weight: 600;
}

tbody td:nth-child(1),
tbody td:nth-child(2),
tbody td:nth-child(7) {
    text-align: center;
}

tbody td:nth-child(3),
tbody td:nth-child(4),
tbody td:nth-child(5) {
    text-align: left;
}

.td-rank {
    padding: 32px;
    text-align: center;
    display: table-cell;
}

tbody td:nth-child(1) {
    font-weight: 800;
    font-size: 18px;
}

td .char-name {
    font-size: 15px;
    font-weight: 800;
    display: flex;
    justify-content: center;
    align-items: center;
}

td small {
    color: #9ca3af;
    font-weight: 500;
}

.badge-icon {
    width: 64px;
    height: 64px;
    position: relative;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.badge-icon .badge-frame {
    position: absolute;
    width: 95px;
    height: auto;
    z-index: 1;
    pointer-events: none;
}

.badge-icon .badge-level {
    position: absolute;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    z-index: 2;
    pointer-events: none;
}

.chip-rank {
    padding: 2px 10px;
    border-radius: 7992px;
    font-weight: 800;
    font-size: 14px;
    color: #fff;
    border: 1px solid #fff;
}

tfoot td {
    padding: 14px 16px;
    border-top: 1px solid #111827;
    color: #9ca3af;
    font-size: 11px;
    font-weight: 500;
}

.board-footer {
    padding: 8px 24px 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    color: #e5e7eb;
    font-size: 13px;
}

.board-footer .rows {
    display: flex;
    align-items: center;
    gap: 8px;
}

.board-footer .rows-label {
    opacity: .7;
}

.board-footer .rows-value {
    position: relative;
    padding-right: 14px;
    cursor: default;
}

.board-footer .rows-value::after {
    content: "▾";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    opacity: .7;
}

.page-info {
    min-width: 110px;
    text-align: center;
    opacity: .8;
}

.page-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-btn {
    background: none;
    border: none;
    color: #e5e7eb;
    font-size: 16px;
    padding: 2px 4px;
    cursor: pointer;
    opacity: .7;
    line-height: 1;
}

.page-btn:disabled {
    opacity: .25;
    cursor: default;
}

.page-btn:not(:disabled):hover {
    opacity: 1;
}

.hidden {
    display: none;
}

#guild-table.hidden {
    display: none;
}

.guild-icon {
    width: 64px;
    height: 64px;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.guild-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
}

.col-logo    { width: 110px; }
.col-level   { width: 100px; text-align: center; }
.col-rating  { width: 140px; text-align: center; }
.col-members { width: 120px; text-align: center; }

#guild-table thead th {
    text-align: center;
}

#guild-table thead th:nth-child(3) {
    text-align: left;
    padding-left: 32px;
}

#guild-table tbody td {
    vertical-align: middle;
}

#guild-table tbody td:nth-child(1),
#guild-table tbody td:nth-child(2) {
    text-align: center;
}

#guild-table tbody td:nth-child(3) {
    text-align: left;
    padding-left: 32px;
}

#guild-table tbody td:nth-child(4),
#guild-table tbody td:nth-child(5),
#guild-table tbody td:nth-child(6) {
    text-align: right;
    padding-right: 32px;
}

#guild-table td.guild-name .char-name {
    display: flex;
    align-items: center;
}

