:root {
    --orange: #ff6600;
    --orange-light: #ff9900;
    --orange-bright: #ffcc00;
    --bg-dark: #0a0a0a;
    --text: #ffaa33;
    --text-bright: #ffcc00;
    --table-bg: rgba(10, 10, 10, 0.8);
    --cell-bg: rgba(20, 15, 5, 0.6);
}
body {
    min-height: 100vh;
    margin: 0;
    font-family: 'Courier New', 'Lucida Console', monospace;
    color: var(--text);
    text-shadow: 0 0 5px var(--orange), 0 0 10px #ff3300;
    overflow-x: hidden;
}
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background:
            radial-gradient(circle at 20% 80%, rgba(255,102,0,0.15) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(255,153,0,0.1) 0%, transparent 50%);
    z-index: -1;
    animation: pulse-bg 8s ease-in-out infinite alternate;
}
@keyframes pulse-bg {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}
.header {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(10,10,10,0.95) 0%, rgba(30,20,0,0.9) 50%, rgba(10,10,10,0.95) 100%);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--orange);
    box-shadow: 0 0 20px rgba(255,102,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}
.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--orange-light), transparent);
    animation: scanline 3s linear infinite;
}
.header::before,
body::before {
    will-change: transform, opacity;
}
.header h1 {
    color: var(--orange-bright);
    text-shadow: 0 0 5px var(--orange), 0 0 10px #ff3300;
    font-size: 1.8em;
    margin: 0;
    letter-spacing: 1px;
}
.server-info {
    text-align: center;
    color: #90bfce;
    font-size: 0.95em;
    margin: 8px auto 20px;
    max-width: 800px;
    font-family: 'Courier New', 'Lucida Console', monospace;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.85;
}
.header a {
    color: var(--orange-bright);
    text-decoration: none;
    padding: 12px 25px;
    background: linear-gradient(135deg, rgba(255,102,0,0.2) 0%, rgba(255,153,0,0.1) 50%, rgba(255,102,0,0.2) 100%);
    border: 1px solid var(--orange);
    border-radius: 2px;
    transition: all 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    flex: 0 1 auto;
    min-width: 180px;
    text-align: center;
}
.header a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
    pointer-events: none;
}
.header a:hover {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(255,102,0,0.4) 0%, rgba(255,153,0,0.3) 50%, rgba(255,102,0,0.4) 100%);
    border-color: var(--orange-bright);
    box-shadow: 0 0 15px rgba(255,204,0,0.5), inset 0 0 10px rgba(255,255,255,0.1);
    transform: translateY(-2px);
}
.header a:hover::before {
    left: 100%;
    transition: left 0.3s ease-out;
}
table {
    width: 98%;
    border-collapse: collapse;
    font-size: 13px;
    margin: 0 auto 20px;
    background: transparent;
    backdrop-filter: blur(5px);
    border: 2px solid var(--orange);
    position: relative;
    padding: 10px;
}
th {
    background: linear-gradient(135deg, rgba(255,102,0,0.3) 0%, rgba(255,51,0,0.2) 50%, rgba(255,102,0,0.3) 100%);
    padding: 12px 6px;
    text-align: center;
    font-weight: bold;
    color: var(--orange-bright);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 5px var(--orange);
    position: relative;
}
th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--orange-light), transparent);
}
td {
    background: var(--cell-bg);
    padding: 10px 6px;
    text-align: center;
    color: #ffaa00;
    transition: all 0.2s ease;
    position: relative;
}
tr:hover td {
    background: rgba(255,102,0,0.1);
    color: #ffffff;
    text-shadow: 0 0 8px var(--orange);
}
tr:hover {
    outline: 2px solid var(--orange);
    outline-offset: -2px;
}
td a,
td a:link,
td a:visited {
    color: var(--orange-bright);
    text-decoration: none;
    text-shadow: 0 0 5px var(--orange), 0 0 10px #ff3300;
    transition: all 0.2s ease;
}
td a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px #ffcc00, 0 0 20px var(--orange);
}
td.rank, th.rank {
    white-space: nowrap;
    overflow: hidden;
}
td.money, th.money {
    white-space: nowrap;
    overflow: hidden;
}
td.nick, td.nick a {
    white-space: nowrap;
}
td.clan-name, td.clan-name a {
    white-space: nowrap;
}
.datetime {
}
.jump-type-name {
}
.table-container {
    background: transparent;
    backdrop-filter: blur(10px);
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 auto 20px;
}
.table-container table {
    min-width: 600px;
}
.table-container.no-scroll {
    overflow-x: visible;
}
.table-container.no-scroll table {
    min-width: auto;
    width: 98%;
}
.map-with-chart {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.map-with-chart a {
    color: var(--orange-bright);
    text-decoration: none;
    text-shadow: 0 0 5px var(--orange), 0 0 10px #ff3300;
    transition: all 0.2s ease;
}
.map-with-chart a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px #ffcc00, 0 0 20px var(--orange);
}
.map-with-chart .chart-icon {
    font-size: 1em;
    line-height: 1;
}
.maps-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px;
    line-height: 1.4;
}
.map-item {
    white-space: normal;
    word-break: break-word;
}
.map-item-separator {
    white-space: nowrap;
}
.map-item a {
    color: var(--orange-bright);
    text-decoration: none;
    text-shadow: 0 0 5px var(--orange), 0 0 10px #ff3300;
}
[data-tooltip] {
    position: relative;
    cursor: help;
}
[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: rgba(0, 0, 0, 0.85);
    color: var(--orange-bright);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    text-shadow: 0 0 5px var(--orange);
    border: 1px solid var(--orange);
    box-shadow: 0 0 8px rgba(255,102,0,0.4);
}
[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
}
.pagination-controls {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    margin: 25px 0;
    flex-wrap: wrap;
    padding-left: 20px;
}
.pagination-link,
.pagination-current {
    display: inline-block;
    min-width: 44px;
    text-align: center;
    padding: 10px 8px;
    font-weight: bold;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.pagination-current {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(255,102,0,0.6) 0%, rgba(255,51,0,0.5) 100%);
    border: 1px solid var(--orange-bright);
    box-shadow: 0 0 10px rgba(255,204,0,0.5);
    transform: translateY(-2px);
    cursor: default;
    pointer-events: none;
}
.pagination-link.disabled {
    color: #777;
    background: linear-gradient(135deg, rgba(100,100,100,0.3) 0%, rgba(80,80,80,0.2) 100%);
    border-color: #555;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}
.pagination-link:hover {
    color: white;
    background: linear-gradient(135deg, rgba(255,102,0,0.4) 0%, rgba(255,153,0,0.3) 100%);
    box-shadow: 0 0 15px rgba(255,204,0,0.4);
    transform: translateY(-2px);
}
.pagination-link,
.pagination-link:link,
.pagination-link:visited {
    color: var(--orange-bright);
    text-decoration: none;
}
.pagination-link:hover {
    animation: pulse 0.5s ease-in-out;
}
.pagination-ellipsis {
    color: #777;
    padding: 0 6px;
    user-select: none;
}
@keyframes pulse {
    0% { transform: translateY(-2px); }
    50% { transform: translateY(0px); }
    100% { transform: translateY(-2px); }
}
.page-info {
    color: #aaa;
    margin: 0 15px;
}
.empty-row td {
    color: #777 !important;
    font-style: italic;
}
.best {
    color: #ffff00;
    text-shadow: 0 0 10px #ff6600, 0 0 20px #ff3300;
    font-weight: bold;
    animation: glow 2s ease-in-out infinite alternate;
}
@keyframes glow {
    from { text-shadow: 0 0 5px #ff6600, 0 0 10px #ff3300; }
    to { text-shadow: 0 0 10px #ffff00, 0 0 20px #ff6600, 0 0 30px #ff3300; }
}
.record-time {
    color: #00ff00;
    text-shadow: 0 0 8px #00ff00;
    font-weight: bold;
}
.index-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 8px;
}
.section {
    background: transparent;
    border: 1px solid var(--orange);
    border-radius: 8px;
    padding: 0 25px 25px 25px;
    text-align: center;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}
.section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 102, 0, 0.3);
}
.section h2,
.section p {
    color: #90bfce;
    margin-bottom: 10px;
    font-size: 1em;
}
.section h2 {
    color: var(--orange-bright);
    margin-bottom: 20px;
    font-size: 1.4em;
}
.section:last-child {
    margin-bottom: 0;
}
.index-btn {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(135deg, rgba(255,102,0,0.3) 0%, rgba(255,153,0,0.2) 100%);
    border: 1px solid var(--orange);
    border-radius: 4px;
    color: var(--orange-bright);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}
.index-btn:hover {
    background: linear-gradient(135deg, rgba(255,102,0,0.5) 0%, rgba(255,153,0,0.4) 100%);
    color: #ffffff;
}
.index-btn.disabled {
    background: linear-gradient(135deg, rgba(100,100,100,0.3) 0%, rgba(80,80,80,0.2) 100%);
    color: #666666;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.6;
}
.meta-info {
    text-align: center;
    margin: 20px auto;
    padding: 15px;
    background: rgba(255, 102, 0, 0.1);
    border: 1px solid var(--orange);
    border-radius: 4px;
    max-width: 600px;
    color: var(--orange-bright);
    font-weight: bold;
    font-size: 1.2em;
    line-height: 1.4;
}
@media (max-width: 768px) {
    table {
        font-size: 12px;
    }
    .header {
        flex-direction: column;
        align-items: center;
    }
    .header a {
        width: 100%;
        max-width: 300px;
        min-width: auto;
        padding: 10px 16px;
        white-space: normal;
        overflow-wrap: break-word;
    }
    th, td {
        padding: 4px 2px;
    }
    .pagination-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding-left: 10px;
    }
    .pagination-link,
    .pagination-current {
        width: auto;
        min-width: 40px;
        padding: 6px 10px;
        font-size: 0.9em;
        text-align: center;
    }
    .pagination-ellipsis {
        padding: 0 4px;
        font-size: 0.9em;
    }
    .page-info {
        font-size: 0.85em;
        margin-left: 0;
    }
    .table-container.no-scroll {
        overflow-x: visible;
    }
    .table-container.no-scroll table {
        width: 100%;
    }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}
.steam-icon-link {
    text-decoration: none;
    color: inherit;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}
.steam-icon-link:hover {
    color: #1b97e9;
    text-shadow: 0 0 5px #1b97e9, 0 0 10px rgba(27, 151, 233, 0.5);
}
.steam-icon-link:visited {
    color: inherit;
}
@font-face {
    font-family: 'SteamIcon';
    src: url('/fonts/fa-brands-400.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
.steam {
    font-family: 'SteamIcon', sans-serif;
    font-weight: normal;
    font-style: normal;
    display: inline-block;
    line-height: 1;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 1em;
    height: 1em;
    margin-left: 6px;
    color: inherit;
}
.steam::before {
    content: "\f1b6";
}