@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700&family=IM+Fell+English:ital@0;1&family=MedievalSharp&display=swap');

:root {
    --bg-parchment: #e5be69;
    --panel-krem: #fff3c3;
    --panel-border: #8b5a2b;
    --text-dark: #120e0a;
    --text-crimson: #a81010;
    --text-code: #2e4f32;
    --font-heading: 'Cinzel', serif;
    --font-stats: 'MedievalSharp', cursive;
    --font-body: 'IM Fell English', serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* 1. KUNCI HALAMAN PADA LEBAR TETAP 1000px (SAMA DI HP & PC) */
html, body {
    width: 1000px;
    min-width: 1000px;
    background-color: var(--bg-parchment);
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(255, 235, 175, 0.5) 0%, transparent 80%),
        radial-gradient(circle at 10% 10%, rgba(100, 60, 20, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 90% 90%, rgba(80, 40, 10, 0.4) 0%, transparent 50%);
    color: var(--text-dark);
    font-family: var(--font-body);
    margin: 0 auto; /* Tengah halaman jika dibuka di layar sangat lebar */
}

/* 2. SIDEBAR TETAP DI KIRI (FLOAT LAYOUT KLASIK) */
.sidebar {
    width: 140px;
    float: left;
    padding: 10px 5px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-header {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: bold;
    color: var(--text-dark);
    padding-bottom: 6px;
    border-bottom: 2px solid var(--panel-border);
    margin-bottom: 4px;
    text-align: center;
}

/* BUTTONS / NAV LINKS */
.game-btn, .sidebar a {
    display: block;
    width: 100%;
    padding: 5px 8px;
    background: linear-gradient(180deg, #cbb58b 0%, #a2895f 40%, #7d643d 100%);
    font-family: var(--font-stats);
    font-size: 12px;
    font-weight: bold;
    color: #1a0f00;
    text-align: left;
    text-decoration: none;
    border: 1px solid #3d2b15;
    border-radius: 2px;
    cursor: pointer;
    user-select: none;
}

.game-btn:hover, .sidebar a:hover { filter: brightness(1.08); }
.sidebar a.active { background: #7d643d; color: #fff; }

/* 3. WRAPPER UTAMA KONTEN (TERKUNCI DI LEBAR 820px) */
.main-wrapper {
    float: left;
    width: 820px;
    margin-left: 20px;
    padding-top: 10px;
    padding-bottom: 40px;
}

.content-panel {
    background-color: var(--panel-krem);
    border: 1px solid var(--panel-border);
    padding: 20px;
    margin-bottom: 20px;
}

/* MANIFESTO & STRUCTURES */
.manifesto-section { margin-bottom: 20px; }
.manifesto-title { font-family: var(--font-heading); font-size: 22px; color: var(--text-dark); margin-bottom: 12px; }
.manifesto-body { font-size: 16px; line-height: 1.5; margin-bottom: 12px; }

.data-structures-title {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--text-crimson);
    margin-top: 20px;
    margin-bottom: 10px;
}

.structure-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 15px;
    margin-bottom: 20px;
}

.structure-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.structure-key {
    font-family: var(--font-stats);
    font-weight: bold;
    color: var(--text-code);
    width: 110px;
    flex-shrink: 0;
}

.reader-levels-container {
    background-color: rgba(139, 90, 43, 0.06);
    border-left: 3px solid var(--panel-border);
    padding: 14px 16px;
}

.level-item { margin-bottom: 10px; }
.level-item:last-child { margin-bottom: 0; }
.level-name { font-family: var(--font-heading); color: var(--text-crimson); font-weight: bold; }
.level-desc { font-size: 15px; margin-top: 2px; }

/* MAP & REGION DIRECTORY */
.map-viewport {
    width: 100%;
    height: 500px;
    border: 2px solid var(--panel-border);
    overflow: auto;
    background-color: #2a1c0d;
}

.map-image {
    width: 1200px; /* 
    height: auto;
    display: block;
}

.region-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.region-card {
    width: 250px; 
    border: 1px solid var(--panel-border);
    padding: 12px;
    background: rgba(255, 255, 255, 0.3);
}

.region-card h3 {
    font-family: var(--font-heading);
    font-size: 15px;
    color: var(--text-crimson);
    margin-bottom: 6px;
}