@import url('https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&family=Noto+Serif+SC:wght@400;700&display=swap');

:root {
    --ink-black: #2b2b2b;
    --ink-gray: #5c5c5c;
    --paper-white: #f5f5f0;
    --blood-red: #8b0000;
    --gold: #d4af37;
    --glass-bg: rgba(245, 245, 240, 0.85);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Noto Serif SC', serif;
    background-color: var(--paper-white);
    color: var(--ink-black);
    background: linear-gradient(to bottom, #dcdcdc, #f5f5f0);
    min-height: 100vh;
}

.background-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg opacity="0.05" xmlns="http://www.w3.org/2000/svg" width="100" height="100"><circle cx="50" cy="50" r="40" fill="black"/></svg>');
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.title-calligraphy {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 4rem;
    text-align: center;
    color: var(--ink-black);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    margin-bottom: 0;
}

.subtitle {
    text-align: center;
    color: var(--blood-red);
    font-style: italic;
}

.section {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(92, 92, 92, 0.2);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.section h2 {
    font-family: 'Ma Shan Zheng', cursive;
    color: var(--ink-black);
    border-bottom: 2px solid var(--ink-gray);
    padding-bottom: 10px;
    text-align: center;
}

.tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; }
.topn-tabs { margin-top: -10px; }
.topn-tabs .tab-btn { padding: 6px 14px; font-size: 0.9rem; }
.tab-btn {
    background: transparent;
    border: 1px solid var(--ink-gray);
    padding: 8px 20px;
    font-family: 'Noto Serif SC', serif;
    cursor: pointer;
    transition: all 0.3s;
}
.tab-btn.active {
    background: var(--ink-gray);
    color: var(--paper-white);
}
.list-container { display: none; }
.list-container.active { display: block; }

.rank-item {
    display: grid;
    grid-template-columns: 1fr 90px 190px;
    align-items: center;
    column-gap: 10px;
    padding: 10px;
    border-bottom: 1px dashed rgba(0,0,0,0.1);
}
.rank-left { min-width: 0; }
.rank-value { text-align: center; font-weight: bold; }
.rank-delta { text-align: right; color: var(--blood-red); }
.rank-item:nth-child(even) { background: rgba(0,0,0,0.02); }

.champion-card { text-align: center; margin: 10px; padding: 15px; border: 1px solid var(--gold); }
.champion-title { color: var(--blood-red); font-weight: bold; }

.search-box input {
    width: 100%; padding: 10px; font-family: 'Noto Serif SC', serif;
    border: 1px solid var(--ink-gray); background: transparent;
}
