/* Prevent paragraphs inside dark boxes from feeling cramped */
p {
    line-height: 1.6;
    color: #fce49f; /* Slightly softens the yellow for easier long-form reading */
}

/* Uniformly style list items inside your 'Did you know' panel */
.container p br + • {
    margin-top: 8px;
    display: inline-block;
}

/* Add an explicit hover state to table rows for dense data scanning */
tbody tr:hover {
    background-color: rgba(180, 83, 9, 0.08);
}

/* Smoothly transitions colors, shadows, and transforms across the site */
* {
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

/* Professional focus states for input boxes (accessibility & polish) */
.guestbook-input:focus {
    outline: none;
    border-color: var(--highlight);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
    background: rgba(0, 0, 0, 0.7);
}

/* Soft blur behind the top container to blend the background wallpaper */
.container {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Subtle accent line on buttons to give a 3D metallic feel */
.btn {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    letter-spacing: 1px;
}
.btn:hover {
    background: linear-gradient(to bottom, #3d2514, #261b10);
    border-color: #ffd8a8;
}



/* Paste at the top of your <style> block */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700&family=Inter:wght@400;500;600&display=swap');

/* Apply modern typography and rendering improvements to the body */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif; /* Cleaner body copy */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Give headings that premium, crisp gaming look */
.title, h2, h3 {
    font-family: 'Cinzel', Georgia, serif;
    letter-spacing: 0.05em;
}

/* Pulsing animations for live data indicators */
@keyframes pulseGreen {
    0% { text-shadow: 0 0 5px rgba(74, 222, 128, 0.5); }
    50% { text-shadow: 0 0 15px rgba(74, 222, 128, 1), 0 0 20px rgba(74, 222, 128, 0.6); }
    100% { text-shadow: 0 0 5px rgba(74, 222, 128, 0.5); }
}

@keyframes pulseBot {
    0% { text-shadow: 0 0 5px rgba(35, 250, 35, 0.4); opacity: 0.9; }
    50% { text-shadow: 0 0 18px rgba(35, 250, 35, 1); opacity: 1; }
    100% { text-shadow: 0 0 5px rgba(35, 250, 35, 0.4); opacity: 0.9; }
}

#server-status {
    animation: pulseGreen 2s infinite alternate;
}

#Wiki-Bot {
    animation: pulseBot 2.5s infinite alternate;
}

/* Card inner light illumination */
.nav-card {
    position: relative;
    overflow: hidden;
}
.nav-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(245, 158, 11, 0.12) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.nav-card:hover::before {
    opacity: 1;
}

/* Fantasy styled scrollbars for containers */
.update-table-container::-webkit-scrollbar,
.guestbook-list::-webkit-scrollbar {
    width: 6px;
}
.update-table-container::-webkit-scrollbar-track,
.guestbook-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}
.update-table-container::-webkit-scrollbar-thumb,
.guestbook-list::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 3px;
}
.update-table-container::-webkit-scrollbar-thumb:hover,
.guestbook-list::-webkit-scrollbar-thumb:hover {
    background-color: var(--gold);
}

:root {
    --accent: #b45309; 
    --highlight: #fbbf24; 
    --bg-dark: #0f172a; 
    --panel-bg: rgba(25, 18, 12, 0.96); 
    --gold: #f59e0b;
    --border-color: #78350f;
    --text-main: #fef3c7;
}
* { box-sizing: border-box; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url('https://img.itch.zone/aW1hZ2UvMzk1ODQ1Ny8yNDI3MDEzMS5qcGc=/original/qQvDhM.jpg') no-repeat center center fixed;
    background-size: cover;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding-bottom: 50px; 
}
.header-section { position: relative; width: 100%; background: rgba(0, 0, 0, 0.85); border-bottom: 4px solid var(--accent); padding: 25px 0; text-align: center; box-shadow: 0 4px 20px rgba(0,0,0,0.6); }
.title { font-size: clamp(24px, 6vw, 42px); font-weight: bold; letter-spacing: 4px; text-shadow: 0 0 15px var(--gold); text-transform: uppercase; margin: 0; }
.status-bar { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; font-size: 13px; color: var(--highlight); margin-top: 12px; text-transform: uppercase; font-weight: bold; }
.ticker-wrap { width: 100%; background: rgba(180, 83, 9, 0.2); overflow: hidden; padding: 7px 0; border-bottom: 1px solid var(--border-color); backdrop-filter: blur(5px); }
.ticker-content { display: inline-block; white-space: nowrap; padding-left: 100%; animation: ticker 45s linear infinite; font-size: 13px; font-style: italic; color: #ffd8a8; }
@keyframes ticker { 0% { transform: translate(0, 0); } 100% { transform: translate(-100%, 0); } }

/* Language Selector Styles */
.lang-selector { position: absolute; top: 15px; right: 20px; display: flex; gap: 8px; z-index: 10; }
.lang-btn { background: rgba(0, 0, 0, 0.6); border: 1px solid var(--border-color); color: #ffd8a8; padding: 4px 8px; font-size: 11px; font-weight: bold; border-radius: 4px; cursor: pointer; text-transform: uppercase; letter-spacing: 0.5px; }
.lang-btn:hover { border-color: var(--highlight); color: var(--highlight); background: rgba(180, 83, 9, 0.2); }
.lang-btn.active { border-color: var(--highlight); color: #000; background: var(--highlight); box-shadow: 0 0 8px rgba(251, 191, 36, 0.4); }

.layout-grid { display: flex; flex-direction: column; gap: 20px; width: 95%; max-width: 1200px; margin-top: 30px; }
.top-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.container { width: 100%; background: var(--panel-bg); border: 2px solid var(--border-color); border-radius: 12px; padding: clamp(20px, 5vw, 40px); box-shadow: 0 15px 50px rgba(0,0,0,0.9); }

.hero-stat-card { background: rgba(0,0,0,0.4); border: 1px solid var(--accent); padding: 20px; border-radius: 10px; text-align: center; margin-bottom: 30px; display: flex; flex-direction: column; align-items: center; }
.stat-label { font-size: 12px; color: var(--gold); text-transform: uppercase; letter-spacing: 2px; }
.stat-value { font-size: 32px; font-weight: bold; color: white; text-shadow: 0 0 10px rgba(255,255,255,0.3); }
.stat-description { font-size: 11px; color: #a1a1aa; margin-top: 10px; max-width: 400px; line-height: 1.4; font-style: italic; }

/* Custom Community Grid Component Layout */
.community-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 30px; width: 100%; }
.community-card { background: rgba(0, 0, 0, 0.5); border: 1px solid var(--border-color); border-radius: 8px; padding: 20px; display: flex; align-items: center; gap: 25px; text-decoration: none; color: inherit; transition: 0.3s ease; }
.community-card:hover { border-color: var(--highlight); background: rgba(180, 83, 9, 0.15); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.5); }
.community-icon { width: 55px; height: 55px; object-fit: contain; pointer-events: none; filter: drop-shadow(0 0 4px rgba(0,0,0,0.5)); }
.community-info { display: flex; flex-direction: column; gap: 5px; flex-grow: 1; }
.community-info h4 { font-family: 'Cinzel', Georgia, serif; margin: 0; color: var(--highlight); font-size: 18px; letter-spacing: 1px; }
.community-info p { margin: 0; font-size: 13px; color: #ffd8a8; line-height: 1.4; }
.community-action { font-size: 11px; text-transform: uppercase; font-weight: bold; color: var(--gold); letter-spacing: 1px; margin-top: 4px; text-decoration: underline; }

h2 { color: var(--highlight); text-transform: uppercase; letter-spacing: 2px; border-bottom: 1px solid var(--accent); padding-bottom: 10px; margin-top: 0; }
.nav-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.nav-card { background: rgba(0, 0, 0, 0.4); border: 1px solid var(--accent); padding: 25px; border-radius: 8px; transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.nav-card:hover { transform: translateY(-5px); border-color: var(--highlight); background: rgba(180, 83, 9, 0.1); box-shadow: 0 0 20px rgba(180, 83, 9, 0.2); }
.btn { background: linear-gradient(to bottom, #2d1b0e, #1a120b); border: 1px solid var(--highlight); color: var(--highlight); padding: 12px 15px; border-radius: 4px; text-align: center; font-weight: bold; text-transform: uppercase; margin-top: auto; cursor: pointer; }
.guestbook-input { width: 100%; background: rgba(0,0,0,0.5); border: 1px solid var(--accent); color: white; padding: 15px; margin-bottom: 12px; border-radius: 6px; font-family: inherit; }
.guestbook-list { max-height: 350px; overflow-y: auto; background: rgba(0,0,0,0.3); padding: 15px; border-radius: 8px; border: 1px solid rgba(120, 53, 15, 0.4); }
.entry { border-bottom: 1px solid rgba(120, 53, 15, 0.3); padding: 12px 0; font-size: 15px; }
.entry b { color: var(--highlight); }

/* Table Styles */
.update-table-container { max-height: 200px; overflow-y: auto; border: 1px solid var(--border-color); }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { background: rgba(120, 53, 15, 0.3); text-align: left; padding: 8px; color: var(--highlight); }
td { padding: 8px; border-bottom: 1px solid rgba(120, 53, 15, 0.2); }

@media (max-width: 768px) { .top-row, .community-row { grid-template-columns: 1fr; } .status-bar { flex-direction: column; align-items: center; gap: 10px; } .lang-selector { position: relative; top: auto; right: auto; justify-content: center; margin-top: 10px; } }
