
:root {
    --bg: #0a0f1f;
    --panel: rgba(10, 18, 36, 0.9);
    --text: #e7f1ff;
    --muted: #9fb5dd;
    --accent: #39d2ff;
    --accent-2: #7c5cff;
    --border: rgba(255,255,255,0.1);
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: radial-gradient(circle at top, #121a33 0%, #050911 70%);
}
header {
    padding: 24px 28px 16px;
    border-bottom: 1px solid var(--border);
}
header h1 {
    margin: 0 0 6px 0;
    font-size: 26px;
    color: var(--accent);
}
header p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}
.layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 18px;
    padding: 18px;
}
nav {
    position: sticky;
    top: 12px;
    align-self: start;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    max-height: calc(100vh - 40px);
    overflow: auto;
}
nav h2 {
    margin: 0 0 10px 0;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}
nav .nav-group {
    margin-bottom: 12px;
}
nav .nav-group-title {
    font-size: 12px;
    color: #c6d4f5;
    margin: 8px 0 6px 0;
}
nav a {
    display: block;
    color: var(--text);
    text-decoration: none;
    padding: 6px 6px;
    border-radius: 8px;
    font-size: 12px;
    border-left: 3px solid transparent;
}
nav a:hover { background: rgba(255,255,255,0.06); }
nav a.nav-active {
    background: rgba(57,210,255,0.12);
    border-left-color: var(--accent);
    color: #cfe6ff;
}
.doc-search {
    margin-bottom: 12px;
}
.doc-search-input {
    width: 100%;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.06);
    color: var(--text);
    font-size: 12px;
}
.doc-search-input::placeholder {
    color: rgba(159,181,221,0.7);
}
.doc-search-results {
    margin-top: 8px;
    display: none;
    flex-direction: column;
    gap: 6px;
}
.doc-search-results:empty {
    display: none;
}
.doc-search-result {
    display: block;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: var(--text);
    text-decoration: none;
    font-size: 12px;
}
.doc-search-result:hover {
    border-color: rgba(57,210,255,0.6);
    background: rgba(57,210,255,0.08);
}
main {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
section {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 18px;
}
 #changelogList > section {
    margin-bottom: 16px;
 }
 #changelogList > section:last-child {
    margin-bottom: 0;
 }
section h2 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #cfe6ff;
}
section h3 {
    margin: 12px 0 6px 0;
    font-size: 14px;
    color: #b9ccf0;
}
ul {
    margin: 6px 0 10px 18px;
    padding: 0;
}
li { margin-bottom: 6px; }
.note {
    font-size: 12px;
    color: var(--muted);
}
code {
    background: rgba(255,255,255,0.06);
    border-radius: 6px;
    padding: 2px 6px;
    font-size: 12px;
}
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    table-layout: fixed;
    margin: 6px 0 12px 0;
}
.table th, .table td {
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 6px 8px;
    vertical-align: top;
    word-break: break-word;
    overflow-wrap: anywhere;
}
.table-auto {
    table-layout: auto;
}
.table-auto th,
.table-auto td {
    word-break: normal;
    overflow-wrap: break-word;
}
.table-2col th:nth-child(1),
.table-2col td:nth-child(1) {
    width: 36%;
}
.table-2col th:nth-child(2),
.table-2col td:nth-child(2) {
    width: 64%;
}
.table-3col th:nth-child(1),
.table-3col td:nth-child(1) {
    width: 28%;
}
.table-3col th:nth-child(2),
.table-3col td:nth-child(2) {
    width: 52%;
}
.table-3col th:nth-child(3),
.table-3col td:nth-child(3) {
    width: 20%;
}
.table-4col th:nth-child(1),
.table-4col td:nth-child(1) {
    width: 18%;
}
.table-4col th:nth-child(2),
.table-4col td:nth-child(2) {
    width: 20%;
}
.table-4col th:nth-child(3),
.table-4col td:nth-child(3) {
    width: 24%;
}
.table-4col th:nth-child(4),
.table-4col td:nth-child(4) {
    width: 38%;
}
.table-5col th:nth-child(1),
.table-5col td:nth-child(1) {
    width: 14%;
}
.table-5col th:nth-child(2),
.table-5col td:nth-child(2) {
    width: 18%;
}
.table-5col th:nth-child(3),
.table-5col td:nth-child(3) {
    width: 16%;
}
.table-5col th:nth-child(4),
.table-5col td:nth-child(4) {
    width: 12%;
}
.table-5col th:nth-child(5),
.table-5col td:nth-child(5) {
    width: 40%;
}
.type-matrix-grid {
    display: grid;
    grid-template-columns: 14% 20% 12% 10% 44%;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 12px;
    width: 100%;
}
.type-matrix-grid > div {
    padding: 6px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    vertical-align: top;
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: normal;
    min-width: 0;
}
.type-matrix-head {
    color: #cfe6ff;
    font-weight: 600;
    background: rgba(255,255,255,0.03);
}
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 11px;
    margin-right: 6px;
}
.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}
.preview-card {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.04);
    text-decoration: none;
    color: var(--text);
    min-height: 88px;
}
.preview-card:hover {
    border-color: rgba(57,210,255,0.6);
    box-shadow: 0 0 16px rgba(57,210,255,0.12);
}
.action-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(57,210,255,0.6);
    color: var(--accent);
    text-decoration: none;
    font-size: 12px;
    background: rgba(57,210,255,0.08);
}
.action-link:hover {
    background: rgba(57,210,255,0.16);
}
.preview-card h3 {
    margin: 0 0 6px 0;
    font-size: 14px;
    color: #cfe6ff;
}
.preview-card p {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
}
.planet-visual {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.15);
}
.preview-card .planet-visual {
    margin-top: 10px;
}
.planet-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.25), transparent 50%);
}

.enemy-preview {
    width: 160px;
    height: 160px;
    display: block;
    margin: 6px 0 14px;
}

.enemy-icon {
    display: block;
    margin: 0 auto 6px;
}
.planet-visual::before {
    content: '';
    position: absolute;
    inset: 6% 8%;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    opacity: 0.4;
}
.planet-visual .planet-band,
.planet-visual .planet-band.thin,
.planet-visual .planet-band.alt {
    position: absolute;
    inset: 40% -5% auto -5%;
    height: 20%;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    filter: blur(1px);
}
.planet-visual .planet-band.thin {
    inset: 28% -8% auto -8%;
    height: 10%;
    opacity: 0.55;
}
.planet-visual .planet-band.alt {
    inset: 54% -8% auto -8%;
    height: 12%;
    opacity: 0.45;
}
.planet-visual .planet-rings {
    position: absolute;
    inset: 10% -18% 10% -18%;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.2);
    transform: rotate(-18deg);
    opacity: 0.8;
}
.planet-visual .planet-ring-tilt {
    position: absolute;
    inset: 8% -22% 12% -22%;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    transform: rotate(12deg);
    opacity: 0.6;
}
.planet-visual .planet-aurora {
    position: absolute;
    inset: 20% 8% 45% 8%;
    border-radius: 50%;
    background: linear-gradient(120deg, rgba(124,242,255,0.35), rgba(61,219,217,0));
    filter: blur(6px);
}
.planet-visual .planet-crystals {
    position: absolute;
    inset: 58% 18% 10% 18%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.5), transparent 60%);
    opacity: 0.8;
}
.planet-visual .planet-clouds {
    position: absolute;
    inset: 25% 0 20% 0;
    border-radius: 50%;
    background: linear-gradient(160deg, rgba(255,255,255,0.12), rgba(255,255,255,0));
    filter: blur(4px);
    opacity: 0.6;
}
.planet-visual .planet-icecap {
    position: absolute;
    inset: 0 10% 65% 10%;
    border-radius: 50%;
    background: rgba(255,255,255,0.55);
    opacity: 0.65;
}
.planet-visual .planet-crater {
    position: absolute;
    inset: 55% 20% 20% 45%;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.2);
}
.planet-visual .planet-lava {
    position: absolute;
    inset: 50% 15% 20% 15%;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, rgba(255,179,71,0.6), rgba(255,100,60,0.2));
}
.planet-visual .planet-spots {
    position: absolute;
    inset: 30% 20% 30% 20%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,0,0,0.2), transparent 60%);
    opacity: 0.5;
}
.planet-visual .planet-scar {
    position: absolute;
    inset: 40% 5% 40% 5%;
    border-radius: 50%;
    border-top: 3px solid rgba(255,255,255,0.2);
    transform: rotate(-8deg);
}
.planet-visual .planet-glow {
    position: absolute;
    inset: -10%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.22), transparent 70%);
}
.planet-visual .planet-particles {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.2), transparent 30%),
                radial-gradient(circle at 70% 60%, rgba(255,255,255,0.18), transparent 35%);
    opacity: 0.5;
}
.search-status {
    font-size: 12px;
    color: var(--muted);
    margin-top: 8px;
}
.event-status-note {
    margin-top: 6px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.event-status-active {
    color: #43d17a;
}
.event-status-soon {
    color: #f6bd60;
}
.event-status-expired {
    color: #ff5252;
}
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}
.status-active { color: #43d17a; border-color: rgba(67,209,122,0.6); }
.status-upcoming { color: #f6bd60; border-color: rgba(246,189,96,0.6); }
.status-expired { color: #ff5252; border-color: rgba(255,82,82,0.6); }
.title-glow-gold {
    color: #ffd166;
    text-shadow: 0 0 8px rgba(255, 209, 102, 0.8), 0 0 18px rgba(255, 209, 102, 0.55);
}
.title-glow-void {
    color: #8bd3ff;
    text-shadow: 0 0 8px rgba(91, 192, 255, 0.75), 0 0 20px rgba(74, 120, 255, 0.55);
}
.title-glow-aurora {
    color: #7cf2ff;
    text-shadow: 0 0 10px rgba(124, 242, 255, 0.7), 0 0 18px rgba(54, 220, 170, 0.6);
}
.title-glow-imperial {
    color: #ffd36b;
    text-shadow: 0 0 10px rgba(255, 211, 107, 0.8), 0 0 20px rgba(255, 120, 60, 0.65);
}
.title-glow-vip {
    color: #7fffd4;
    text-shadow: 0 0 10px rgba(127, 255, 212, 0.75), 0 0 20px rgba(64, 224, 208, 0.65);
}
@media (max-width: 900px) {
    .layout { grid-template-columns: 1fr; }
    nav { position: static; max-height: none; }
}
