html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    scrollbar-width: thin;
    scrollbar-color: rgba(151, 210, 255, 0.68) rgba(7, 22, 36, 0.45);
}

body {
    color: #f2f7ff;
    font-family: jaldi, "Noto Sans SC", "Microsoft YaHei", sans-serif;
    background: #07131f;
    overflow-x: hidden;
    line-height: 1.5;
}

body::-webkit-scrollbar,
.handsontable .wtHolder::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

body::-webkit-scrollbar-track,
.handsontable .wtHolder::-webkit-scrollbar-track {
    background: rgba(7, 22, 36, 0.38);
    border-radius: 999px;
}

body::-webkit-scrollbar-thumb,
.handsontable .wtHolder::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(151, 210, 255, 0.8), rgba(84, 165, 216, 0.78));
    border: 2px solid rgba(7, 22, 36, 0.5);
    border-radius: 999px;
}

body::-webkit-scrollbar-thumb:hover,
.handsontable .wtHolder::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(180, 225, 255, 0.92), rgba(104, 183, 235, 0.9));
}

.is-hidden {
    display: none !important;
}

a {
    color: #cfe8ff;
    text-decoration: none;
}

a:hover {
    color: #8fd0ff;
}

code,
.mono {
    font-family: Consolas, Monaco, monospace;
}

input,
select,
button {
    font-family: jaldi, "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

#star {
    position: fixed;
    inset: 0;
    z-index: -2;
}

.background-img {
    background: url("../images/bg.webp") no-repeat center center;
    background-size: cover;
    position: fixed;
    inset: 0;
    z-index: -4;
}

.background-overlay {
    position: fixed;
    inset: 0;
    z-index: -3;
    background:
        radial-gradient(circle at top right, rgba(141, 207, 255, 0.18), transparent 32%),
        radial-gradient(circle at bottom left, rgba(60, 112, 177, 0.22), transparent 28%),
        linear-gradient(180deg, rgba(3, 10, 18, 0.38), rgba(3, 10, 18, 0.92));
}

.site-inner {
    width: min(1520px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(6, 23, 38, 0.78);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(160, 214, 255, 0.14);
}

.site-header .site-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}

.brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.brand span {
    font-family: satisfy, cursive;
    font-size: 28px;
    letter-spacing: 0.4px;
}

.header-player-form {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
}

.header-player-form input[type="text"] {
    width: min(360px, 34vw);
    min-width: 220px;
    margin: 0;
}

.header-player-form .primary-button,
.header-player-form .secondary-button {
    margin-top: 0;
    min-height: 44px;
    padding-top: 0;
    padding-bottom: 0;
}

.header-player-form .primary-button {
    border-radius: 14px;
}

.page-body {
    padding: 18px 0 48px;
}

.hero-card,
.panel,
.notice,
.summary-card {
    background: rgba(7, 22, 36, 0.72);
    border: 1px solid rgba(160, 214, 255, 0.18);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(9px);
}

.hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 500px;
    gap: 28px;
    padding: 28px;
    border-radius: 24px;
}

.hero-copy {
    flex: 1 1 50%;
}

.eyebrow {
    color: #94d4ff;
    font-size: 16px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.hero-copy h1,
.panel-header h2 {
    margin: 0;
    font-family: Montserrat, "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-size: 36px;
    line-height: 1.15;
}

.hero-copy p {
    margin: 18px 0 0;
    color: #d0deec;
    font-size: 20px;
    line-height: 1.55;
}

.helper-copy {
    color: #a7bfd3 !important;
    font-size: 17px !important;
}

.panel-copy {
    margin: 10px 0 0;
    color: #a7bfd3;
    font-size: 17px;
    line-height: 1.55;
}

.map-board-status {
    margin-top: 6px;
    min-height: 20px;
    color: #9ec5e1;
    font-size: 14px;
    line-height: 1.35;
}

.player-board-status {
    margin-top: 6px;
    min-height: 20px;
    color: #9ec5e1;
    font-size: 14px;
    line-height: 1.35;
}

.hero-forms {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.query-card {
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 20px;
    box-sizing: border-box;
    min-height: 100%;
}

.query-title {
    font-size: 24px;
    font-family: Montserrat, sans-serif;
    margin-bottom: 10px;
}

.field-label {
    display: block;
    margin: 10px 0 6px;
    color: #d4e3f3;
    font-size: 16px;
}

.field-row {
    display: flex;
    gap: 12px;
}

.field-group {
    flex: 1 1 0;
}

input[type="text"],
select {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(147, 209, 255, 0.28);
    background: rgba(9, 28, 45, 0.84);
    color: #fff;
    border-radius: 14px;
    padding: 11px 13px;
    font-size: 17px;
    outline: none;
}

input[type="text"]:focus,
select:focus {
    border-color: #8fd0ff;
    box-shadow: 0 0 0 3px rgba(143, 208, 255, 0.12);
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 17px;
    cursor: pointer;
    border: none;
    transition: 0.2s ease;
}

.primary-button {
    margin-top: 16px;
    background: linear-gradient(135deg, #a4dcff, #5ab7ff);
    color: #0a1a28;
    font-weight: 700;
}

.query-card .primary-button,
.query-card .secondary-button {
    width: 100%;
    box-sizing: border-box;
}

.query-card .primary-button {
    margin-top: auto;
}

.query-card .secondary-button {
    margin-top: 10px;
}

.primary-button:hover {
    transform: translateY(-1px);
    color: #06131d;
}

.secondary-button {
    margin-top: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #e7f3ff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.summary-row {
    margin-top: 18px;
}

.summary-card {
    border-radius: 18px;
    padding: 18px 20px;
    min-width: 0;
    height: 100%;
    box-sizing: border-box;
}

.summary-card.compact {
    flex-basis: 180px;
}

.summary-label {
    color: #b8cde0;
    font-size: 15px;
}

.summary-value {
    margin-top: 10px;
    font-family: Montserrat, "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-size: 34px;
    font-weight: 700;
    min-height: 48px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#latest-record-at,
#player-latest-record {
    font-size: 28px;
}

.notice {
    margin-top: 18px;
    border-radius: 16px;
    padding: 14px 18px;
    color: #ffe2bd;
}

.notice-error {
    color: #ffd7d7;
}

.panel {
    margin-top: 20px;
    border-radius: 24px;
    padding: 24px;
    box-sizing: border-box;
}

.panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.panel-tag-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    align-self: flex-start;
}

.panel-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(116, 197, 255, 0.14);
    color: #d9efff;
    border: 1px solid rgba(143, 208, 255, 0.18);
}

.steamid-tag {
    text-decoration: none;
}

.steamid-tag.is-disabled {
    pointer-events: none;
    opacity: 0.7;
}

#player-steamid {
    border-radius: 0;
}

.player-tag-group {
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    min-width: 0;
}

.player-search-tier-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.player-map-query-input {
    width: 220px;
    flex: 0 0 220px;
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid rgba(143, 208, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    color: #eef6ff;
    font-size: 14px;
    box-sizing: border-box;
}

.player-map-query-input::placeholder {
    color: #9abdd7;
}

.player-map-query-input:focus {
    outline: none;
    border-color: rgba(111, 214, 93, 0.6);
    box-shadow: 0 0 0 1px rgba(111, 214, 93, 0.28);
}

.player-tier-filter-row {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.player-tier-filter-row::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.map-board-controls {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.inline-select-label {
    color: #b9d4e8;
    font-size: 15px;
}

.weapon-switch-group {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 8px;
    max-width: none;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.weapon-switch-group::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.weapon-switch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 0 0 auto;
    min-width: 72px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid rgba(143, 208, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
    color: #d7e9f8;
    font-size: 14px;
    letter-spacing: 0.2px;
    white-space: nowrap;
    cursor: pointer;
    transition: 0.2s ease;
}

.weapon-switch-btn:hover {
    border-color: rgba(111, 214, 93, 0.58);
    background: rgba(111, 214, 93, 0.16);
    color: #f3ffe9;
}

.weapon-switch-btn.active {
    border-color: rgba(111, 214, 93, 0.82);
    background: linear-gradient(180deg, rgba(111, 214, 93, 0.34), rgba(111, 214, 93, 0.14));
    color: #f6ffe7;
    box-shadow: inset 0 0 0 1px rgba(179, 238, 164, 0.36);
}

.weapon-switch-btn.is-disabled,
.weapon-switch-btn:disabled {
    opacity: 0.52;
    cursor: not-allowed;
}

.weapon-switch-btn.is-disabled:hover,
.weapon-switch-btn:disabled:hover {
    border-color: rgba(143, 208, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
    color: #d7e9f8;
}

.weapon-switch-btn .filter-chip-count {
    color: #91bad8;
    font-size: 14px;
}

.weapon-switch-btn.active .filter-chip-count {
    color: #d9f1ff;
}

.player-filter-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.player-type-switch {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
}

.player-type-btn {
    min-width: 102px;
}

.player-weapon-switch {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-end;
}

.inline-select-input {
    min-width: 148px;
    height: 42px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(143, 208, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    color: #eef6ff;
}

.inline-select-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.spotlight-grid {
    margin-top: 2px;
}

.spotlight-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.meta-item {
    width: auto;
    min-height: 76px;
    box-sizing: border-box;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.meta-item span {
    display: block;
    color: #a7bfd3;
    font-size: 14px;
    margin-bottom: 8px;
}

.meta-item strong {
    display: block;
    font-size: 18px;
    line-height: 1.35;
}

.meta-item-wide {
    grid-column: 1 / -1;
}

.spotlight-table {
    min-width: 0;
}

.map-board-grid {
    margin-top: 0;
    column-gap: 6px;
}

.board-section {
    min-width: 0;
}

.table-title {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
    font-family: Montserrat, "Noto Sans SC", "Microsoft YaHei", sans-serif;
    color: #f0f0f0;
    font-size: 22px;
}

.table-container {
    position: relative;
    min-height: 420px;
    padding: 0;
}

#map-pro-grid,
#map-nub-grid {
    display: flex;
    width: 100%;
    align-items: flex-start;
    min-height: 420px;
}

#map-pro-grid {
    justify-content: flex-start;
}

#map-nub-grid {
    justify-content: flex-end;
}

#map-pro-grid .empty-cell,
#map-nub-grid .empty-cell {
    width: 100%;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-records-container {
    min-height: 820px;
}

#player-records-grid {
    min-height: 820px;
}

#player-records-grid .empty-cell {
    padding: 32px 16px;
}

.content-row {
    margin-top: 20px;
}

.content-col-main,
.content-col-side {
    display: flex;
}

.content-col-main > .panel,
.content-col-side > .panel {
    width: 100%;
    margin-top: 0;
}

.panel-large {
    min-width: 0;
}

.panel-side {
    width: auto;
    min-width: 0;
    position: sticky;
    top: 88px;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.recent-record-list {
    display: grid;
    gap: 9px;
    overflow: visible;
    padding-right: 0;
}

.recent-empty {
    padding: 32px 16px;
}

.recent-record-item {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.recent-record-top,
.recent-record-main,
.recent-record-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.recent-record-main,
.recent-record-meta {
    margin-top: 8px;
}

.recent-map-link {
    color: #eef7ff;
    font-family: Montserrat, "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-size: 15px;
    line-height: 1.35;
}

.recent-map-link:hover {
    color: #92d2ff;
}

.recent-type-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 0;
    font-size: 13px;
    font-family: Montserrat, "Noto Sans SC", "Microsoft YaHei", sans-serif;
    white-space: nowrap;
}

.recent-type-badge.pro {
    background: rgba(241, 177, 70, 0.18);
    color: #ffdca0;
    border: 1px solid rgba(241, 177, 70, 0.24);
}

.recent-type-badge.nub {
    background: rgba(102, 210, 149, 0.16);
    color: #beffd1;
    border: 1px solid rgba(102, 210, 149, 0.24);
}

.recent-record-main .table-link {
    font-size: 15px;
    line-height: 1.3;
}

.recent-record-main strong {
    font-family: Montserrat, "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-size: 18px;
    white-space: nowrap;
}

.recent-record-meta {
    color: #a5c0d7;
    font-size: 12px;
}

.recent-record-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

.recent-mini-chip {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 0;
    background: rgba(143, 208, 255, 0.12);
    border: 1px solid rgba(143, 208, 255, 0.16);
    color: #dcefff;
    white-space: nowrap;
    font-size: 12px;
}

.recent-record-date {
    white-space: nowrap;
    font-size: 12px;
}

.toolbar-form {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

#map-browser .toolbar-form,
#map-browser .filter-toolbar,
#map-browser .map-browser-shell {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.toolbar-form input[type="text"] {
    flex: 1 1 auto;
    min-width: 0;
}

.toolbar-form .secondary-button {
    margin-top: 0;
    flex: 0 0 auto;
    white-space: nowrap;
    border-radius: 14px;
}

.records-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 18px;
}

.records-table thead th {
    text-align: left;
    font-size: 15px;
    color: #9dcdf1;
    padding: 14px 12px;
    background: rgba(124, 191, 240, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.records-table tbody td {
    padding: 13px 12px;
    font-size: 16px;
    color: #eff6ff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.records-table tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.03);
}

.records-table tbody tr:hover td {
    background: rgba(143, 208, 255, 0.08);
}

#player-board .records-table {
    table-layout: fixed;
}

#player-board .records-table th:nth-child(1),
#player-board .records-table td:nth-child(1) {
    width: 28%;
}

#player-board .records-table th:nth-child(2),
#player-board .records-table td:nth-child(2) {
    width: 14%;
    white-space: nowrap;
}

#player-board .records-table th:nth-child(3),
#player-board .records-table td:nth-child(3) {
    width: 10%;
    white-space: nowrap;
    text-align: center;
}

#player-board .records-table th:nth-child(4),
#player-board .records-table td:nth-child(4) {
    width: 22%;
    white-space: nowrap;
}

#player-board .records-table th:nth-child(5),
#player-board .records-table td:nth-child(5),
#player-board .records-table th:nth-child(6),
#player-board .records-table td:nth-child(6) {
    width: 7%;
    white-space: nowrap;
}

#player-board .records-table th:nth-child(7),
#player-board .records-table td:nth-child(7) {
    width: 12%;
    white-space: nowrap;
}

.player-rank-cell {
    text-align: center;
}

.player-time-cell {
    white-space: nowrap;
}

.player-time-gap {
    margin-left: 4px;
    font-size: 14px;
}

.player-time-gap.is-gap-small {
    color: #89e79d;
}

.player-time-gap.is-gap-medium {
    color: #f7d88d;
}

.player-time-gap.is-gap-large {
    color: #ff9ea7;
}

.player-time-gap.is-gap-none {
    color: #a7bfd3;
}

.compact-table thead th,
.compact-table tbody td {
    padding-left: 10px;
    padding-right: 10px;
}

.panel-side .records-table {
    table-layout: fixed;
}

.panel-side .records-table th,
.panel-side .records-table td {
    overflow-wrap: anywhere;
}

.panel-side .records-table th:nth-child(1),
.panel-side .records-table td:nth-child(1) {
    width: 40%;
}

.panel-side .records-table th:nth-child(2),
.panel-side .records-table td:nth-child(2) {
    width: 26%;
}

.panel-side .records-table th:nth-child(3),
.panel-side .records-table td:nth-child(3) {
    width: 20%;
    white-space: nowrap;
}

.panel-side .records-table th:nth-child(4),
.panel-side .records-table td:nth-child(4) {
    width: 14%;
    white-space: nowrap;
}

.empty-cell {
    text-align: center;
    color: #a7bfd3;
}

.table-link {
    color: #eef7ff;
}

.table-link:hover {
    color: #92d2ff;
}

.mono {
    word-break: break-all;
}

.nowrap-cell {
    white-space: nowrap !important;
    word-break: normal !important;
}

.filter-toolbar {
    display: grid;
    gap: 14px;
    margin: 18px 0 20px;
    padding: 18px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.filter-group {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.filter-group-label {
    padding-top: 6px;
    color: #96bedb;
    font-size: 15px;
    letter-spacing: 0.4px;
}

.filter-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.045);
    color: #d5e8f7;
    cursor: pointer;
    transition: 0.2s ease;
}

#tier-filters .filter-chip,
#type-filters .filter-chip,
#length-filters .filter-chip,
#player-tier-filters .filter-chip {
    border-radius: 8px;
}

#map-browser-total,
#map-browser-filtered {
    border-radius: 0;
}

.filter-chip:hover {
    border-color: rgba(143, 208, 255, 0.28);
    background: rgba(143, 208, 255, 0.1);
}

.filter-chip.active {
    border-color: rgba(143, 208, 255, 0.48);
    background: rgba(143, 208, 255, 0.18);
    color: #fff;
}

.filter-chip-count {
    color: #91bad8;
    font-size: 14px;
}

.filter-chip.active .filter-chip-count {
    color: #d9f1ff;
}

.hot-shell {
    position: relative;
    min-height: 0;
    padding: 14px 12px 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.map-browser-shell {
    margin-right: 0;
}

#map-browser-grid {
    min-height: 788px;
}

.handsontable .wtHolder {
    scrollbar-width: thin;
    scrollbar-color: rgba(151, 210, 255, 0.7) rgba(7, 22, 36, 0.3);
    scrollbar-gutter: stable;
}

.handsontable {
    margin: auto;
}

.handsontable .wtHider {
    margin: 0 auto;
}

#map-browser-grid .handsontable,
#map-browser-grid .handsontable .wtHider {
    margin-left: 0;
    margin-right: 0;
}

#player-records-grid .handsontable,
#player-records-grid .handsontable .wtHider {
    margin: 0;
}

#map-pro-grid .handsontable,
#map-pro-grid .handsontable .wtHider {
    margin: 0;
}

#map-nub-grid .handsontable,
#map-nub-grid .handsontable .wtHider {
    margin: 0;
}

.handsontable td,
.handsontable th {
    color: #f0f0f0;
    text-align: center;
    font-family: jaldi, "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    border-right: none;
}

.handsontable .htDimmed {
    color: #f0f0f0;
}

.handsontable td {
    background: transparent;
    vertical-align: middle;
}

.handsontable th {
    background: transparent;
    font-size: 18px;
    font-weight: 700;
}

.handsontable tr {
    background: transparent;
}

.handsontable .ht_clone_top {
    overflow: hidden;
}

.handsontable .blur {
    position: absolute;
    width: calc(100% - 5.5px);
    height: 100%;
    left: 2.5px;
    top: -4px;
    filter: blur(3px) brightness(0.65);
    background: url(/assets/images/bg.webp) no-repeat;
    background-attachment: fixed;
    background-size: contain;
    pointer-events: none;
}

.ht_master tr:nth-of-type(even) > td {
    background-color: rgba(0, 0, 0, 0.15);
}

.handsontable input {
    background: transparent;
    border: none;
    border-bottom: 1px #dddfd4 solid;
    border-radius: 3px;
    color: #fff;
    outline: none;
    text-align: center;
    font-family: jaldi, sans-serif;
    font-size: 16px;
    transition: 0.3s;
    height: 22px;
    margin-bottom: 5px;
    width: 80%;
}

.handsontable input:focus {
    background: rgba(255, 255, 255, 0.075);
    border-bottom: 1px #93d1ff solid;
    box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.5);
    transition: 0.3s;
}

.handsontable td:first-of-type {
    border-left: none;
}

.handsontable th:first-child {
    border-left: none;
}

.handsontable th:last-child {
    border-right: none;
}

.handsontable tbody th.ht__active_highlight,
.handsontable thead th.ht__active_highlight,
.handsontable tbody th.ht__highlight,
.handsontable thead th.ht__highlight {
    background-color: #93d0ff25;
}

.handsontable .wtBorder {
    background-color: #93d1ff !important;
}

.hot-map-link {
    cursor: pointer;
    transition: 0.3s;
    color: #f0f0f0;
}

.hot-map-link:hover {
    color: #93d1ff;
}

@media (max-width: 1100px) {
    .hero-card {
        grid-template-columns: 1fr;
    }

    .hero-forms {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .content-col-main,
    .content-col-side {
        display: block;
    }

    .panel-side {
        width: auto;
        position: static;
        height: auto !important;
    }

    .filter-group {
        grid-template-columns: 1fr;
    }

    .spotlight-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .toolbar-form {
        flex-wrap: wrap;
    }

    #map-browser .toolbar-form,
    #map-browser .filter-toolbar,
    #map-browser .map-browser-shell {
        width: auto;
    }

    .filter-group-label {
        display: block;
        margin-bottom: 8px;
        padding-top: 0;
    }

    .query-card + .query-card {
        margin-top: 14px;
    }
}

@media (max-width: 780px) {
    .site-header .site-inner,
    .header-player-form,
    .field-row,
    .panel-header {
        display: block;
    }

    .site-inner {
        width: calc(100vw - 20px);
        max-width: calc(100vw - 20px);
    }

    .header-player-form {
        margin-top: 12px;
    }

    .header-player-form input[type="text"] {
        width: 100%;
        max-width: none;
        min-width: 0;
        margin-bottom: 10px;
    }

    .header-player-form .primary-button,
    .header-player-form .secondary-button {
        display: inline-flex;
        margin-right: 10px;
        margin-bottom: 8px;
    }

    .field-group + .field-group {
        margin-top: 10px;
    }

    .hero-forms {
        grid-template-columns: 1fr;
    }

    .spotlight-meta {
        grid-template-columns: 1fr;
    }

    .panel-tag-group {
        justify-content: flex-start;
        margin-top: 12px;
    }

    .player-tag-group {
        align-items: flex-start;
        min-width: 0;
        width: 100%;
    }

    .player-search-tier-toolbar {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .player-map-query-input {
        width: 100%;
        flex: 1 1 100%;
        max-width: none;
    }

    .player-tier-filter-row {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        overflow: visible;
    }

    .player-filter-toolbar {
        width: 100%;
        justify-content: flex-start;
    }

    .map-board-controls {
        justify-content: flex-start;
        margin-top: 12px;
    }

    .player-weapon-switch {
        flex: 1 1 100%;
        justify-content: flex-start;
    }

    .summary-value {
        font-size: 28px;
    }

    .hero-copy h1,
    .panel-header h2 {
        font-size: 28px;
    }
}
