:root {
    --bg-main: #06140e; /* โทนพื้นหลังสีเขียวเข้มสบายตา */
    --bg-card: #151A23; /* สีกล่องและการ์ด (คงเดิม) */
    --accent-blue: #10B981; /* เปลี่ยนสีไฮไลท์หลักเป็นสีเขียวมินต์ (ใช้ชื่อตัวแปรเดิมโค้ดจะได้ไม่รวน) */
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --border-color: rgba(255, 255, 255, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Kanit', sans-serif; }
html { scroll-behavior: smooth; background: #06140e; }

body { 
    /* ไล่สีพื้นหลังให้มีออร่าสีเขียวสดใสด้านบน และกลืนไปกับสีเข้มด้านล่าง */
    background: radial-gradient(circle at top, #0e3524 0%, #06140e 100%); 
    background-attachment: fixed;
    color: var(--text-main); 
    line-height: 1.6; 
    overflow-x: hidden; 
    animation: pageEnter 0.28s ease both;
}

@keyframes pageEnter { from { opacity: 0.35; } to { opacity: 1; } }

.development-notice-overlay {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    background: rgba(2, 8, 5, 0.78);
    backdrop-filter: blur(7px);
    animation: noticeFadeIn 0.2s ease both;
}

.development-notice {
    position: relative;
    width: min(100%, 460px);
    padding: 2.25rem 2rem 1.75rem;
    border: 1px solid rgba(52, 211, 153, 0.35);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(18, 56, 39, 0.98), rgba(8, 25, 18, 0.98));
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), 0 0 28px rgba(16, 185, 129, 0.14);
    text-align: center;
}

.development-notice-close {
    position: absolute;
    top: 0.65rem;
    right: 0.8rem;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.development-notice-close:hover { color: var(--text-main); }
.development-notice-icon { color: #6ee7b7; font-size: 2rem; margin-bottom: 0.45rem; }
.development-notice-eyebrow { color: #a7f3d0; font: 0.7rem 'Silkscreen', monospace; letter-spacing: 1.5px; }
.development-notice h2 { margin: 0.6rem 0 0.5rem; color: var(--text-main); font-size: 1.55rem; }
.development-notice p { color: #cbd5e1; font-size: 0.98rem; }
.development-notice-actions { display: flex; justify-content: center; gap: 0.75rem; margin-top: 1.5rem; }
.development-notice-actions button { border-radius: 8px; padding: 0.62rem 1rem; font: inherit; cursor: pointer; }
.development-notice-today { border: 1px solid var(--border-color); background: transparent; color: var(--text-muted); }
.development-notice-confirm { border: 1px solid #34d399; background: #10b981; color: #032218; font-weight: 600; }
.development-notice-today:hover { color: var(--text-main); border-color: rgba(167, 243, 208, 0.55); }
.development-notice-confirm:hover { background: #34d399; }

@keyframes noticeFadeIn { from { opacity: 0; } to { opacity: 1; } }

.initial-loader { position: fixed; inset: 0; z-index: 3100; display: grid; place-items: center; background: rgba(6, 20, 14, 0.98); opacity: 1; pointer-events: all; transition: opacity 0.28s ease; }
.page-ready .initial-loader { opacity: 0; pointer-events: none; }
.initial-loader img { width: 58px; filter: drop-shadow(0 0 14px rgba(52, 211, 153, 0.6)); animation: initialFloat 0.7s ease-in-out infinite; }
.initial-loader span { position: absolute; margin-top: 112px; color: #a7f3d0; font: 0.48rem 'Silkscreen', monospace; letter-spacing: 1px; animation: initialBlink 0.35s steps(2, end) infinite; }
@keyframes initialFloat { 50% { transform: translateY(-8px) scale(1.04); } }
@keyframes initialBlink { 50% { opacity: 0.45; } }

/* ================= แถบเมนู (Navbar) (สีเดิมตามสั่ง) ================= */
.navbar {
    --nav-opacity: 0;
    background-color: transparent;
    backdrop-filter: none;
    transition: background-color 0.18s ease, box-shadow 0.18s ease;
    border-bottom: 1px solid transparent;
    padding: 0 2rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-left { display: flex; height: 100%; }

.nav-links { display: flex; list-style: none; gap: 1rem; height: 100%; }
.nav-links li { height: 100%; }
.nav-links a {
    color: var(--text-muted); text-decoration: none; display: flex; align-items: center;
    gap: 8px; height: 100%; padding: 0 1.5rem; font-weight: 500; font-size: 15px;
    transition: 0.3s; border-bottom: 3px solid transparent;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-main); border-bottom: 3px solid var(--accent-blue); }

/* ================= Widget มุมขวาบน ================= */
.nav-right-widget {
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulseGlow 3s infinite;
}

.nav-right-widget:hover {
    border-color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.6); /* เปลี่ยนแสงเป็นสีเขียว */
}

.widget-ip {
    padding: 8px 15px;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05)); /* เปลี่ยนเป็นเขียว */
    color: var(--text-main);
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-right: 1px solid var(--border-color);
}

.widget-ip i { color: var(--accent-blue); }

.widget-players {
    padding: 8px 15px;
    color: #10B981;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 80px;
    justify-content: center;
}

/* ================= Banner ด้านบนสุด ================= */
.global-banner {
    position: relative;
    width: 100%;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0;
    padding-top: 70px;
    box-sizing: border-box;
}

.global-banner-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('assets/bannerweb1.png') center/cover;
    z-index: 1;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
}

.global-logo {
    position: relative;
    z-index: 2;
    animation: floatLogo 3s ease-in-out infinite;
}

@keyframes floatLogo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.logo-img {
    max-width: 471px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.8));
}

/* ================= โครงสร้างหลัก ================= */
.container { max-width: 1200px; margin: 0 auto 4rem auto; padding: 0 1rem; position: relative; z-index: 5; }
.page-section { display: none; animation: fadeIn 0.4s ease; }
.page-section.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ================= Slider ================= */
.slider-container { width: 100%; height: 380px; border-radius: 16px; overflow: hidden; position: relative; margin-bottom: 2rem; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.slider-wrapper { display: flex; width: 100%; height: 100%; transition: transform 0.5s ease-in-out; }
.slide { min-width: 100%; height: 100%; background-size: cover; background-position: center; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; position: relative; }
.slide::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(rgba(11, 14, 20, 0.4), rgba(11, 14, 20, 0.8)); z-index: 1; }
.slide-content { position: relative; z-index: 2; padding: 0 20px; }
.slide-content h1 { font-size: 3rem; font-weight: 700; color: #fff; text-shadow: 2px 2px 10px rgba(0,0,0,0.8); margin-bottom: 10px;}
.slide-content p { font-size: 1.2rem; color: #ddd; margin-bottom: 1.5rem; text-shadow: 1px 1px 5px rgba(0,0,0,0.8); }

.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background-color: rgba(0, 0, 0, 0.6); color: white; border: none; width: 45px; height: 45px; border-radius: 50%; cursor: pointer; z-index: 10; display: flex; justify-content: center; align-items: center; font-size: 18px; transition: 0.3s; }
.slider-btn:hover { background-color: var(--accent-blue); }
.prev-btn { left: 20px; }
.next-btn { right: 20px; }
.slider-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.dot { width: 10px; height: 10px; background-color: rgba(255, 255, 255, 0.4); border-radius: 50%; cursor: pointer; transition: 0.3s; }
.dot.active, .dot:hover { background-color: var(--accent-blue); transform: scale(1.3); width: 20px; border-radius: 10px; }

/* ================= ส่วนอื่นๆ ในหน้าหลัก ================= */
.about-card { background-color: var(--bg-card); border-radius: 16px; display: flex; overflow: hidden; border: 1px solid var(--border-color); }
.about-img { width: 50%; background: url('assets/normal1.png') center/cover; }
.about-content { width: 50%; padding: 3rem; }
.about-content h2 { font-size: 2rem; margin-bottom: 1rem; }
.about-content p { color: var(--text-muted); margin-bottom: 2rem; }

/* ================= การ์ดแนะนำเซิร์ฟเวอร์หน้าแรก ================= */
.server-showcase {
    min-height: 430px;
    background: linear-gradient(120deg, rgba(21, 26, 35, 0.98) 0%, rgba(8, 34, 24, 0.98) 58%, rgba(12, 53, 36, 0.92) 100%);
    border-color: rgba(16, 185, 129, 0.22);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
}
.server-showcase-content { width: 58%; padding: 2.8rem 3.2rem; }
.server-kicker { display: flex; align-items: center; gap: 9px; color: #a7f3d0; font-size: 0.76rem; font-weight: 700; letter-spacing: 1.4px; margin-bottom: 16px; }
.server-kicker span { width: 9px; height: 9px; background: #34d399; border-radius: 50%; box-shadow: 0 0 10px #34d399; }
.server-showcase h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1.18; margin-bottom: 15px; }
.server-showcase h2 strong { color: #34d399; }
.server-showcase-content > p { max-width: 560px; color: #b6c8c0; font-size: 1rem; margin-bottom: 18px; }
.server-feature-row { display: flex; flex-wrap: nowrap; gap: 8px; margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.server-feature-row::-webkit-scrollbar { display: none; }
.server-feature-row span { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid rgba(52, 211, 153, 0.2); border-radius: 6px; color: #d1fae5; background: rgba(16, 185, 129, 0.08); font-size: 0.8rem; white-space: nowrap; }
.server-feature-row i { color: #34d399; }
.server-connect-card { max-width: 470px; padding: 13px 16px; border: 1px dashed rgba(167, 243, 208, 0.5); border-radius: 9px; background: rgba(3, 15, 10, 0.55); cursor: pointer; transition: border-color 0.25s, background 0.25s, transform 0.25s; }
.server-connect-card:hover { border-color: #34d399; background: rgba(16, 185, 129, 0.12); transform: translateY(-2px); }
.connect-label, .connect-hint { color: #94a3b8; font-size: 0.76rem; }
.connect-value { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #fff; font-size: 1.25rem; font-weight: 700; letter-spacing: 1px; }
.connect-value i { color: #34d399; font-size: 1rem; }
.server-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 17px; }
.server-action { border: 0; border-radius: 8px; padding: 10px 16px; color: #fff; font-family: inherit; font-size: 0.88rem; font-weight: 600; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s, background 0.2s; }
.server-action:hover { transform: translateY(-2px); }
.server-action.primary { background: #10b981; box-shadow: 0 4px 0 #047857; }
.server-action.primary:hover { background: #34d399; box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3); }
.server-action.secondary { background: rgba(255, 255, 255, 0.9); color: #10251b; box-shadow: 0 4px 0 rgba(148, 163, 184, 0.35); }
.server-showcase-preview { width: 42%; min-height: 430px; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 25px 30px 30px 5px; position: relative; }
.preview-glow { position: absolute; width: 260px; height: 180px; top: 42px; background: rgba(52, 211, 153, 0.14); filter: blur(42px); border-radius: 50%; }
.preview-logo { position: relative; z-index: 1; width: min(260px, 85%); max-height: 190px; object-fit: contain; filter: drop-shadow(0 15px 16px rgba(0, 0, 0, 0.55)); animation: floatLogo 4s ease-in-out infinite; }
.server-status-panel { width: 100%; max-width: 470px; margin-top: -2px; padding: 0 14px 14px; border: 1px solid rgba(52, 211, 153, 0.3); border-radius: 17px 6px 17px 6px; background: linear-gradient(145deg, rgba(7, 20, 16, 0.98), rgba(15, 24, 32, 0.98)); box-shadow: 0 18px 30px rgba(0,0,0,0.42), inset 0 1px rgba(255,255,255,0.05); position: relative; z-index: 2; overflow: hidden; }
.server-status-panel::before { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(52, 211, 153, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(52, 211, 153, 0.035) 1px, transparent 1px); background-size: 18px 18px; mask-image: linear-gradient(135deg, rgba(0,0,0,0.9), transparent 70%); pointer-events: none; }
.server-status-panel::after { content: 'NORMALCRAFT'; position: absolute; right: 14px; bottom: 7px; color: rgba(167, 243, 208, 0.23); font: 0.5rem 'Silkscreen', monospace; letter-spacing: 1px; pointer-events: none; }
.status-panel-heading { display: flex; align-items: center; justify-content: space-between; padding: 11px 2px 10px; color: #d1fae5; font-family: 'Silkscreen', 'Courier New', monospace !important; font-size: 0.62rem; font-weight: 700; border-bottom: 1px solid rgba(52, 211, 153, 0.25); position: relative; z-index: 1; }.status-panel-heading > span:first-child i { color: #34d399; margin-right: 5px; }
.status-player-count { display: flex; align-items: center; gap: 7px; color: #4ade80; font-size: 0.68rem; }.status-player-count strong { color: #f8fafc; font-size: 1rem; }.status-player-count > i { font-size: 1.1rem; }
.status-panel-body { display: grid; grid-template-columns: 60px 1fr; align-items: center; gap: 12px; min-height: 96px; padding: 13px 4px 10px; position: relative; z-index: 1; }.status-panel-body::before { content: ''; position: absolute; left: -14px; right: -14px; bottom: 0; border-bottom: 1px solid rgba(148, 163, 184, 0.16); }
.status-server-icon { width: 57px; height: 62px; object-fit: contain; image-rendering: auto; padding: 5px; border: 1px solid rgba(52, 211, 153, 0.28); border-radius: 10px 3px 10px 3px; background: rgba(16, 185, 129, 0.07); filter: drop-shadow(0 3px 4px rgba(0,0,0,0.65)); }
.status-motd { min-width: 0; font-family: 'Silkscreen', 'Courier New', monospace !important; font-size: 0.66rem; line-height: 1.9; white-space: nowrap; }.status-motd strong, .status-motd > span { display: block; }.status-motd strong { font-size: 0.76rem; }.status-motd b { font-weight: 600; }.motd-title-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; }.motd-title-line > strong { min-width: 0; }.motd-title-line .status-player-count { flex: 0 0 auto; }.motd-star, .motd-gold { color: #fbbf24; }.motd-cyan { color: #22d3ee; }.motd-green { color: #4ade80; }.motd-red { color: #f87171; }.motd-blue { color: #818cf8; }.motd-gray { color: #94a3b8; }
.status-platforms { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 11px; position: relative; z-index: 1; color: #94a3b8; font-size: 0.68rem; }.status-platforms span { padding: 5px 8px; border: 1px solid rgba(52, 211, 153, 0.12); border-radius: 5px 2px 5px 2px; background: rgba(31, 41, 55, 0.72); }.status-platforms i { color: #4ade80; margin-right: 3px; }

/* ปุ่ม Copy IP + ออร่าเรืองแสง (เปลี่ยนเป็นสีเขียว) */
.copy-ip-btn { 
    background-color: rgba(16, 185, 129, 0.1); 
    color: var(--text-main); 
    border: 1px solid rgba(16, 185, 129, 0.3); 
    padding: 12px 24px; 
    border-radius: 8px; 
    font-size: 16px; 
    cursor: pointer; 
    display: inline-flex; 
    align-items: center; 
    gap: 10px; 
    transition: 0.3s;
    animation: pulseGlow 3s infinite;
}
.copy-ip-btn:hover { 
    background-color: var(--accent-blue); 
    border-color: var(--accent-blue);
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.8);
}
.copy-ip-btn:active { transform: scale(0.95); }

/* Animation ออร่าเรืองแสงแบบวนลูป (สีเขียว) */
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 8px rgba(16, 185, 129, 0.2); }
    50% { box-shadow: 0 0 20px rgba(16, 185, 129, 0.6); }
}

/* ================= หน้า Timeline ================= */
.page-header { text-align: center; margin-bottom: 3rem; }
.page-header h2 { font-size: 2.5rem; color: #fff; display: inline-block; position: relative; }
.page-header p { color: var(--text-muted); font-size: 1.1rem; margin-top: 10px; }
.team-heading { display: block !important; font-size: 1.45rem !important; margin-top: 2px; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-blue); font-size: 0.78rem; font-weight: 700; letter-spacing: 2px; margin-bottom: 10px; }
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 1040px; margin: 0 auto; }
.team-card { background: linear-gradient(145deg, rgba(21, 26, 35, 0.96), rgba(8, 25, 18, 0.96)); border: 1px solid var(--border-color); border-radius: 16px; overflow: hidden; transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
.team-card:hover { transform: translateY(-8px); border-color: rgba(16, 185, 129, 0.75); box-shadow: 0 18px 35px rgba(0, 0, 0, 0.45), 0 0 22px rgba(16, 185, 129, 0.16); }
.skin-frame { position: relative; aspect-ratio: 1 / 1; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), transparent 45%), repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 10px), #0b2118; }
.skin-frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(3, 10, 7, 0.7)); pointer-events: none; }
.team-skin { width: 88%; height: 92%; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 14px 12px rgba(0, 0, 0, 0.45)); transition: transform 0.35s ease; z-index: 1; }
.team-card:hover .team-skin { transform: translateY(-6px) scale(1.04); }
.skin-fallback { width: 150px; height: 150px; display: grid; place-items: center; margin-bottom: 18%; border: 4px solid rgba(16, 185, 129, 0.55); background: #153b2a; color: #fff; font-size: 2.5rem; font-weight: 700; z-index: 1; }
.online-badge { position: absolute; left: 16px; bottom: 14px; display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border: 1px solid rgba(16, 185, 129, 0.35); border-radius: 999px; background: rgba(3, 10, 7, 0.72); color: #d1fae5; font-size: 0.75rem; z-index: 2; }
.online-badge span { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px #34d399; }
.team-info { padding: 20px 22px 24px; }.team-role { display: inline-flex; align-items: center; gap: 7px; font-size: 0.8rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }.owner-role { color: #fbbf24; }.admin-role { color: #60a5fa; }.team-info h3 { margin-top: 8px; color: #fff; font-size: 1.55rem; overflow-wrap: anywhere; }.team-info p { color: var(--text-muted); font-size: 0.92rem; margin-top: 4px; }

.timeline { position: relative; max-width: 900px; margin: 0 auto; padding: 20px 0; }
.timeline::after {
    content: ''; position: absolute; width: 4px; background-color: rgba(16, 185, 129, 0.3);
    top: 0; bottom: 0; left: 50%; margin-left: -2px; border-radius: 4px;
}

.timeline-item { padding: 10px 40px; position: relative; background-color: inherit; width: 50%; }
.timeline-item::after {
    content: ''; position: absolute; width: 20px; height: 20px; right: -10px;
    background-color: var(--bg-main); border: 4px solid var(--accent-blue);
    top: 25px; border-radius: 50%; z-index: 1; box-shadow: 0 0 15px rgba(16, 185, 129, 0.8);
}

.left { left: 0; }
.right { left: 50%; }
.right::after { left: -10px; }

.timeline-content {
    padding: 25px 30px; background-color: var(--bg-card); position: relative;
    border-radius: 12px; border: 1px solid var(--border-color); transition: all 0.4s ease;
}
.timeline-content:hover {
    transform: translateY(-8px); border-color: var(--accent-blue);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(16, 185, 129, 0.25);
}

.timeline-year { color: var(--accent-blue); font-weight: 700; font-size: 1.5rem; margin-bottom: 8px; letter-spacing: 1px; }
.timeline-title { font-size: 1.2rem; font-weight: 600; margin-bottom: 10px; color: #fff; }
.timeline-desc { color: var(--text-muted); font-size: 0.95rem; }

.timeline-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.timeline-content:hover .timeline-img {
    transform: scale(1.02);
}

/* ================= กฎกติกา & อัปเดต ================= */
.rules-container { 
    background-color: var(--bg-card); 
    border-radius: 16px; 
    padding: 3rem; 
    max-width: 900px; 
    margin: 0 auto; 
    border: 1px solid var(--border-color); 
}
.rules-header { text-align: center; margin-bottom: 3rem; font-size: 1.5rem; display: flex; align-items: center; justify-content: center; gap: 10px; }
.rule-item { background-color: rgba(6, 20, 14, 0.5); /* ปรับพื้นหลังข้อให้กลืนกับธีม */ border-radius: 12px; padding: 1.5rem 2rem; margin-bottom: 1.5rem; display: flex; gap: 1.5rem; border: 1px solid var(--border-color); }
.rule-number { font-size: 2rem; font-weight: 700; color: var(--text-muted); opacity: 0.5; }
.rule-text h3 { font-size: 1.2rem; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 10px; }
.rule-text p { color: var(--text-muted); font-size: 0.95rem; }

.rules-compact {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 18, 18, 0.7);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    padding: 1.5rem 1.25rem;
}

.rules-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.9rem;
}

.rules-list li {
    position: relative;
    padding-left: 1.1rem;
    color: #f8fafc;
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 500;
}

.rules-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #f59e0b;
    font-size: 1.2rem;
    line-height: 1.5;
}

.rules-footer {
    margin-top: 1.5rem;
    text-align: center;
    color: #facc15;
    font-size: 1.25rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(250, 204, 21, 0.45);
}

.rules-warning {
    margin-top: 1rem;
    text-align: center;
    color: #f8fafc;
    font-size: 1.05rem;
    font-weight: 600;
}

.updates-layout { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 24px; max-width: 1000px; margin: 0 auto; }
.roadmap-carousel { min-width: 0; overflow: hidden; border-radius: 16px; }
.roadmap-track { display: flex; width: 100%; transition: transform 0.45s ease; will-change: transform; }
.update-card, .roadmap-card { position: relative; overflow: hidden; padding: 30px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 16px; background: linear-gradient(145deg, rgba(21, 26, 35, 0.95), rgba(8, 30, 20, 0.9)); box-shadow: 0 18px 35px rgba(0, 0, 0, 0.3), inset 0 1px rgba(255, 255, 255, 0.05); }
.roadmap-track .roadmap-card { width: 100%; flex: 0 0 100%; }
.update-card::before, .roadmap-card::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(120deg, rgba(16, 185, 129, 0.1), transparent 38%); }
.update-card-header, .roadmap-header { position: relative; display: flex; align-items: center; gap: 14px; }.update-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; color: #60a5fa; background: rgba(59, 130, 246, 0.14); font-size: 1.15rem; }.update-kicker { color: var(--accent-blue); font-size: 0.7rem; font-weight: 700; letter-spacing: 1.7px; }.update-card h2, .roadmap-card h2 { margin-top: 3px; font-size: 1.5rem; }.rules-page-card { max-width: 900px; margin: 0 auto; }.rules-page-card .rules-header { justify-content: flex-start; margin-bottom: 2rem; }
.empty-update { position: relative; min-height: 230px; display: grid; place-content: center; justify-items: center; text-align: center; color: var(--text-muted); }.empty-update > i { margin-bottom: 14px; color: #64748b; font-size: 2rem; }.empty-update h3 { color: #e2e8f0; font-size: 1.2rem; }.empty-update p, .roadmap-subtitle { margin-top: 5px; font-size: 0.88rem; color: var(--text-muted); }
.roadmap-header { justify-content: space-between; align-items: flex-start; }.roadmap-card h2 { color: #f0fdf4; }.roadmap-card h2 i { color: #7dd3fc; margin-right: 7px; }.roadmap-percent { color: #fbbf24; font-size: 1.8rem; line-height: 1; }.roadmap-subtitle { position: relative; margin-bottom: 22px; }.minecraft-progress { height: 22px; padding: 4px; border: 2px solid #182b23; background: #07130d; box-shadow: inset 0 0 0 2px #0d1f16, 0 0 0 1px rgba(16, 185, 129, 0.25); image-rendering: pixelated; }.minecraft-progress-fill { height: 100%; background: repeating-linear-gradient(90deg, #10b981 0 12px, #34d399 12px 16px); box-shadow: 0 0 12px rgba(16, 185, 129, 0.7); transition: width 0.5s ease; }.progress-labels { display: flex; justify-content: space-between; color: #64748b; font-size: 0.7rem; margin-top: 7px; }.roadmap-list { position: relative; list-style: none; display: grid; gap: 10px; margin-top: 25px; }.roadmap-list li { display: grid; grid-template-columns: 32px 1fr; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 9px; background: rgba(3, 10, 7, 0.35); color: #e2e8f0; font-size: 0.92rem; }.roadmap-bullet { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 7px; color: #86efac; background: rgba(16, 185, 129, 0.14); font-size: 0.8rem; }

.roadmap-arrow { position: absolute; top: 50%; z-index: 3; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 50%; background: rgba(3, 10, 7, 0.8); color: #d1fae5; cursor: pointer; transform: translateY(-50%); transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease; }.roadmap-arrow:hover { background: var(--accent-blue); border-color: var(--accent-blue); color: #03251a; transform: translateY(-50%) scale(1.08); }.next-roadmap { right: 18px; }.prev-roadmap { left: 18px; }
.path-progress-list li { align-items: start; }
.path-task { min-width: 0; }
.path-task-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 700; }
.path-task-heading strong { color: #fbbf24; font-size: 0.8rem; }
.path-task small { display: block; margin-top: 4px; color: var(--text-muted); font-size: 0.72rem; }
.task-progress { height: 10px; margin-top: 8px; overflow: hidden; border-radius: 2px; background: #07130d; border: 2px solid #182b23; box-shadow: inset 0 0 0 1px #0d1f16; }
.task-progress span { display: block; height: 100%; background: repeating-linear-gradient(90deg, #10b981 0 8px, #34d399 8px 11px); box-shadow: 0 0 8px rgba(16, 185, 129, 0.6); }

/* ================= คู่มือแบบ Wiki ================= */
.guide-layout { display: grid; grid-template-columns: 235px minmax(0, 1fr); gap: 24px; max-width: 1100px; margin: 0 auto; align-items: start; }
.guide-sidebar { position: sticky; top: 92px; padding: 18px 12px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; background: rgba(8, 13, 18, 0.88); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25); }
.guide-sidebar-heading { display: flex; align-items: center; gap: 10px; padding: 4px 10px 16px; color: #f8fafc; font-size: 1.08rem; font-weight: 700; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }.guide-sidebar-heading i { color: #34d399; }
.guide-nav { display: grid; gap: 5px; margin-top: 12px; }.guide-nav-link { display: flex; align-items: center; gap: 10px; padding: 10px 11px; border-left: 3px solid transparent; border-radius: 6px; color: #a7b0ba; font-size: 0.9rem; text-decoration: none; transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease; }.guide-nav-link i { width: 18px; color: #718096; text-align: center; }.guide-nav-link:hover, .guide-nav-link.active { color: #f8fafc; background: rgba(16, 185, 129, 0.12); border-left-color: #34d399; }.guide-nav-link.active i, .guide-nav-link:hover i { color: #34d399; }
.guide-content { min-width: 0; }.guide-header { padding: 4px 4px 22px; }.guide-kicker { color: #34d399; font-size: 0.72rem; font-weight: 700; letter-spacing: 1.6px; }.guide-header h2 { margin-top: 6px; color: #f8fafc; font-size: 2rem; }.guide-header p { margin-top: 5px; color: var(--text-muted); font-size: 0.95rem; }
.guide-article { scroll-margin-top: 90px; margin-bottom: 20px; padding: 25px 28px; border: 1px solid rgba(255, 255, 255, 0.11); border-radius: 12px; background: linear-gradient(145deg, rgba(21, 26, 35, 0.96), rgba(8, 24, 19, 0.92)); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24); }.guide-article-title { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }.guide-article-title i { font-size: 1.18rem; }.guide-article-title h3 { color: #f8fafc; font-size: 1.35rem; }.green-title i { color: #39ff14; }.blue-title i { color: #60a5fa; }.gold-title i { color: #facc15; }.cyan-title i { color: #22d3ee; }.red-title i { color: #f87171; }.violet-title i { color: #c084fc; }.orange-title i { color: #fb923c; }
.guide-topic { margin-top: 15px; padding: 14px 17px; border-left: 3px solid; border-radius: 4px; background: rgba(0, 0, 0, 0.18); }.guide-topic h4 { display: flex; align-items: center; gap: 9px; color: #f1f5f9; font-size: 1.08rem; font-weight: 500; }.guide-topic h4 i { color: currentColor; }.guide-topic ul { margin: 6px 0 0 24px; color: #d1d5db; }.guide-topic li { padding: 2px 0; }.guide-topic li::marker { color: #9ca3af; }.topic-green { color: #39ff14; border-color: #39ff14; }.topic-yellow { color: #fff43b; border-color: #fff43b; }.topic-pink { color: #f15bea; border-color: #f15bea; }.topic-purple { color: #bf28d7; border-color: #bf28d7; }.topic-lime { color: #39ff14; border-color: #39ff14; }.guide-topic strong { color: currentColor; }.guide-warning { color: #ff4949; }.guide-success { color: #39ff14; }.guide-finish { margin-top: 22px; color: #e2e8f0; font-size: 1.05rem; }.guide-finish i { margin-right: 7px; color: #39ff14; }.guide-placeholder { padding-top: 21px; padding-bottom: 21px; }.guide-placeholder .guide-article-title { margin-bottom: 8px; }.guide-placeholder p { color: var(--text-muted); font-size: 0.9rem; }.guide-placeholder .guide-article-title i { color: #94a3b8; }
.guide-command-list { display: grid; gap: 3px; margin: 0; padding-left: 22px; color: #d1d5db; }.guide-command-list li { padding-left: 2px; font-size: 1rem; line-height: 1.45; }.guide-command-list li::marker { color: #fbbf24; }.guide-command-list code { color: #fff43b; font-family: inherit; font-size: inherit; font-weight: 500; }.guide-command-list code em { color: #39ff14; font-style: normal; }.guide-command-list span { color: #d1d5db; }.guide-command-list .command-gap { margin-top: 14px; }
.economy-note { margin-top: 25px; color: #e2e8f0; font-size: 1.05rem; }.economy-note i { margin-right: 8px; color: #fbbf24; }
.protection-note { margin-top: 25px; color: #e2e8f0; font-size: 1.05rem; }.protection-note i { margin-right: 8px; color: #39ff14; }
.pvp-info-block { display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; color: #f1f5f9; }.pvp-info-block:first-of-type { margin-top: 0; }.pvp-info-block > i { margin-top: 4px; color: #ef4444; font-size: 1.15rem; }.pvp-info-block p { font-size: 1.05rem; line-height: 1.45; }.pvp-info-block strong { color: #22d3ee; font-weight: 500; }
.guild-command-group { margin-top: 22px; }.guild-command-group:first-of-type { margin-top: 0; }.guild-command-group h4 { margin-bottom: 5px; color: #fff43b; font-size: 1.05rem; font-weight: 500; }.guild-command-group h4::before { content: '»'; margin-right: 8px; color: #9ca3af; }.guild-note { margin-top: 26px; color: #fff43b; font-size: 1.05rem; }.guild-note i { margin-right: 8px; color: #a3a3a3; }
.rank-intro { margin-bottom: 22px; color: #e2e8f0; font-size: 1.05rem; }.rank-intro::before { content: '•'; margin-right: 9px; color: #9ca3af; }.rank-list { display: grid; gap: 2px; margin-bottom: 25px; font-size: 1.25rem; line-height: 1.25; font-weight: 500; }.rank-player { color: #fff43b; }.rank-vip { color: #f59e0b; }.rank-svip { color: #ef4444; }.rank-premium { color: #39ff14; }.rank-elite { color: #6366f1; }.rank-master { color: #22d3ee; }.rank-legend { color: #dc2626; font-weight: 700; }.rank-note { color: #a1a1aa; font-size: 1.05rem; line-height: 1.5; }

/* ================= Leaderboard ================= */
.ranking-shell { max-width: 1000px; margin: 0 auto; }.ranking-header { margin-bottom: 22px; }.ranking-header h2 { margin-top: 5px; font-size: 2rem; }.ranking-header p { color: var(--text-muted); }.ranking-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }.ranking-tab, .ranking-load-more { border: 1px solid rgba(52, 211, 153, 0.22); border-radius: 7px; padding: 10px 14px; background: rgba(16, 185, 129, 0.08); color: #a7f3d0; font: 600 0.86rem 'Kanit', sans-serif; cursor: pointer; transition: 0.2s ease; }.ranking-tab:hover, .ranking-tab.active { background: #10b981; border-color: #34d399; color: #03251a; }.ranking-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; color: var(--text-muted); font-size: 0.85rem; }.ranking-search { display: flex; align-items: center; gap: 8px; width: min(100%, 330px); padding: 9px 12px; border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; background: rgba(8, 13, 18, 0.82); }.ranking-search i { color: #34d399; }.ranking-search input { width: 100%; border: 0; outline: 0; background: transparent; color: #f8fafc; font: inherit; }.ranking-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 14px; margin-bottom: 18px; }.ranking-podium-card { display: grid; justify-items: center; min-height: 205px; padding: 18px 10px 15px; border: 1px solid rgba(255,255,255,0.12); border-radius: 13px 5px 13px 5px; background: linear-gradient(160deg, rgba(21, 26, 35, 0.96), rgba(8, 35, 24, 0.95)); box-shadow: 0 14px 25px rgba(0,0,0,0.25); }.ranking-podium-card.rank-1 { min-height: 240px; border-color: rgba(250, 204, 21, 0.5); }.ranking-podium-card img { width: 72px; height: 72px; image-rendering: pixelated; border-radius: 9px; margin: 6px 0 8px; }.ranking-podium-card b { color: #fbbf24; font: 700 1.05rem 'Silkscreen', monospace; }.ranking-podium-card strong { margin-top: 6px; color: #f8fafc; overflow-wrap: anywhere; }.ranking-podium-card span { color: #a7f3d0; font-size: 0.85rem; }.ranking-crown { height: 19px; color: #facc15; }.ranking-row { display: grid; grid-template-columns: 48px 42px 1fr auto; align-items: center; gap: 12px; padding: 10px 14px; margin-bottom: 7px; border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; background: rgba(8, 13, 18, 0.72); }.ranking-row img { width: 42px; height: 42px; image-rendering: pixelated; border-radius: 6px; }.ranking-position { color: #94a3b8; font: 0.75rem 'Silkscreen', monospace; }.ranking-row strong { color: #e2e8f0; overflow-wrap: anywhere; }.ranking-row > span:last-child { color: #34d399; font-weight: 700; }.ranking-load-more { display: block; margin: 18px auto 0; }.ranking-load-more[hidden] { display: none; }

/* ================= Footer ================= */
.site-footer {
    background: linear-gradient(90deg, rgba(5, 7, 10, 0.94), rgba(5, 7, 10, 0.68)), url('assets/bannerweb1.png') center 62% / cover no-repeat;
    border-top: 1px solid var(--border-color);
    padding: 3rem 2rem;
    position: relative;
    z-index: 10;
}

.footer-content { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 1.5rem; }

.footer-logo-box {
    width: 55px; height: 55px; background-color: var(--bg-card); border-radius: 12px;
    border: 1px solid var(--border-color); display: flex; justify-content: center; align-items: center;
    font-weight: 800; font-size: 0.95rem; color: #fff; text-align: center; line-height: 1.1;
    box-shadow: inset 0 4px 10px rgba(0,0,0,0.5); transition: all 0.3s ease; cursor: pointer;
    overflow: hidden;
}
.footer-logo-box:hover {
    border-color: var(--accent-blue); color: var(--accent-blue); 
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.6), 0 0 30px rgba(16, 185, 129, 0.4); transform: scale(1.05);
}

.footer-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.footer-text .copyright { font-weight: 700; color: #fff; font-size: 1.1rem; margin-bottom: 5px; text-transform: uppercase; }
.footer-text .disclaimer { color: var(--text-muted); font-size: 0.95rem; }

/* ================= ปุ่มลอย Social ================= */
.floating-socials { 
    position: fixed; top: 50%; right: 20px; transform: translateY(-50%);
    display: flex; flex-direction: column; gap: 15px; z-index: 100;
}
.social-btn { 
    position: relative;
    width: 50px; height: 50px; border-radius: 12px; background-color: rgba(21, 26, 35, 0.8);
    border: 1px solid var(--border-color); backdrop-filter: blur(5px); display: flex; 
    justify-content: center; align-items: center; color: var(--text-muted); font-size: 22px; 
    text-decoration: none; transition: all 0.3s ease; 
}

/* Tooltip กล่องข้อความบอกรายละเอียด */
.social-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 65px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background-color: rgba(15, 20, 28, 0.95);
    color: var(--text-main);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 400;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.social-btn:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.btn-fb:hover { background-color: #1877F2; color: #fff; border-color: #1877F2; box-shadow: 0 0 15px rgba(24, 119, 242, 0.6), 0 0 30px rgba(24, 119, 242, 0.4); transform: scale(1.1) translateX(-5px); }
.btn-dc:hover { background-color: #5865F2; color: #fff; border-color: #5865F2; box-shadow: 0 0 15px rgba(88, 101, 242, 0.6), 0 0 30px rgba(88, 101, 242, 0.4); transform: scale(1.1) translateX(-5px); }
.btn-tt:hover { background-color: #ff0050; color: #fff; border-color: #ff0050; box-shadow: -5px 0 15px rgba(0, 242, 254, 0.6), 5px 0 15px rgba(255, 0, 80, 0.6); transform: scale(1.1) translateX(-5px); }

/* =========================================================
   UI Update: ดีไซน์ใหม่ พรีเมียม ไม่ซ้ำใคร
========================================================= */

.main-content-spaced { margin-top: 40px !important; }

.premium-nav-ip {
    display: flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 6px 16px;
    border-radius: 30px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.premium-nav-ip:hover {
    background: rgba(16, 185, 129, 0.15); /* เขียว */
    border-color: #10B981;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.status-indicator { display: flex; align-items: center; margin-right: 12px; }

.ping-dot {
    width: 8px; height: 8px; background-color: #10B981; border-radius: 50%;
    box-shadow: 0 0 8px #10B981; animation: pulsePing 2s infinite;
}

@keyframes pulsePing {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.ip-text-slider {
    position: relative; height: 20px; width: 100px; overflow: hidden;
    margin-right: 15px; border-right: 1px solid rgba(255,255,255,0.2); padding-right: 15px;
}

.ip-real, .ip-hover { position: absolute; top: 0; left: 0; width: 100%; transition: transform 0.3s ease; font-weight: 500; color: #fff; font-size: 14px; }
.ip-hover { transform: translateY(100%); color: #10B981; }

.premium-nav-ip:hover .ip-real { transform: translateY(-100%); }
.premium-nav-ip:hover .ip-hover { transform: translateY(0); }

.premium-copy-box {
    margin-top: 25px; display: flex; align-items: center;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 15px 20px;
    cursor: pointer; transition: all 0.3s ease; position: relative; overflow: hidden;
}

.premium-copy-box::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent); transition: left 0.5s ease;
}

.premium-copy-box:hover {
    transform: translateY(-3px); border-color: #10B981;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4), 0 0 15px rgba(16, 185, 129, 0.2);
}

.premium-copy-box:hover::before { left: 100%; }

.ping-bars { display: flex; align-items: flex-end; gap: 3px; height: 24px; margin-right: 15px; }
.ping-bars .bar { width: 6px; background-color: #10B981; border-radius: 2px; opacity: 0.8; }

.ping-bars .bar-1 { height: 8px; animation: bounceBar 1.2s infinite ease-in-out; }
.ping-bars .bar-2 { height: 14px; animation: bounceBar 1.2s infinite ease-in-out 0.1s; }
.ping-bars .bar-3 { height: 18px; animation: bounceBar 1.2s infinite ease-in-out 0.2s; }
.ping-bars .bar-4 { height: 24px; animation: bounceBar 1.2s infinite ease-in-out 0.3s; }

@keyframes bounceBar { 0%, 100% { transform: scaleY(1); opacity: 0.8; } 50% { transform: scaleY(0.7); opacity: 0.4; } }

.copy-details { display: flex; flex-direction: column; flex-grow: 1; }
.ip-title { font-size: 1.1rem; font-weight: 700; color: #fff; letter-spacing: 1px; }
.ip-subtitle { font-size: 0.8rem; color: #94A3B8; }

.copy-icon {
    width: 40px; height: 40px; background: rgba(255,255,255,0.05); border-radius: 8px;
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
    color: #94A3B8; transition: all 0.3s ease;
}

.premium-copy-box:hover .copy-icon { background: #10B981; color: #fff; transform: scale(1.1); }

/* =========================================================
   Minecraft Background Effect (Fast & Multi-Particles)
========================================================= */
.mc-bg-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; 
    overflow: hidden;
    pointer-events: none; 
}

/* ตั้งค่าพื้นฐานให้ Particle ทุกตัวลอยขึ้น */
.mc-particle {
    position: absolute;
    bottom: -150px;
    animation: mcFloatUp linear infinite;
}

/* 1. รูปแบบ: บล็อกกลวงใส (Hollow Blocks) */
.p-block {
    background: rgba(16, 185, 129, 0.05);
    border: 2px solid rgba(16, 185, 129, 0.3);
    box-shadow: inset 0 0 10px rgba(16, 185, 129, 0.1);
}

/* 2. รูปแบบ: บล็อกทึบเรืองแสง (Glow Blocks) */
.p-glow {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.5);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

/* 3. รูปแบบ: ละออง XP เม็ดเล็ก (Tiny Spores) */
.p-spore {
    background: #10B981;
    box-shadow: 0 0 8px #10B981, 0 0 15px #10B981;
    border-radius: 1px; /* เหลี่ยมนิดๆ สไตล์พิกเซล */
}

/* แอนิเมชันให้ลอยขึ้นและหมุน */
@keyframes mcFloatUp {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 1; } /* ค่อยๆ สว่างขึ้นตอนโผล่มา */
    90% { opacity: 1; }
    100% {
        transform: translateY(-110vh) rotate(360deg);
        opacity: 0; /* ค่อยๆ จางหายตอนใกล้ทะลุจอ */
    }
}

/* ================= ตำแหน่ง ขนาด และความเร็ว (เร็วขึ้นมาก!) ================= */
/* บล็อกกลวง */
.p-1 { left: 10%; width: 45px; height: 45px; animation-duration: 6s; animation-delay: 0s; }
.p-2 { left: 35%; width: 30px; height: 30px; animation-duration: 8s; animation-delay: 2s; }
.p-3 { left: 60%; width: 60px; height: 60px; animation-duration: 10s; animation-delay: 4s; }
.p-4 { left: 80%; width: 35px; height: 35px; animation-duration: 7s; animation-delay: 1s; }
.p-5 { left: 15%; width: 50px; height: 50px; animation-duration: 12s; animation-delay: 5s; }

/* บล็อกเรืองแสง */
.p-6 { left: 25%; width: 25px; height: 25px; animation-duration: 5s; animation-delay: 1.5s; }
.p-7 { left: 50%; width: 40px; height: 40px; animation-duration: 9s; animation-delay: 3s; }
.p-8 { left: 70%; width: 20px; height: 20px; animation-duration: 4.5s; animation-delay: 0.5s; }
.p-9 { left: 90%; width: 30px; height: 30px; animation-duration: 7.5s; animation-delay: 2.5s; }

/* ละออง XP เม็ดเล็ก (พุ่งเร็วที่สุด!) */
.p-10 { left: 5%;  width: 8px; height: 8px; animation-duration: 4s; animation-delay: 0s; }
.p-11 { left: 20%; width: 6px; height: 6px; animation-duration: 3.5s; animation-delay: 1s; }
.p-12 { left: 45%; width: 10px; height: 10px; animation-duration: 5s; animation-delay: 2s; }
.p-13 { left: 65%; width: 5px; height: 5px; animation-duration: 3s; animation-delay: 0.8s; }
.p-14 { left: 85%; width: 7px; height: 7px; animation-duration: 4.2s; animation-delay: 3s; }
.p-15 { left: 95%; width: 9px; height: 9px; animation-duration: 4.8s; animation-delay: 1.2s; }
.p-16 { left: 55%; width: 6px; height: 6px; animation-duration: 3.8s; animation-delay: 4s; }

@media (max-width: 900px) {
    .navbar { padding: 0 1rem; }
    .nav-links { gap: 0.25rem; }
    .nav-links a { padding: 0 0.7rem; font-size: 13px; }
    .premium-nav-ip { padding: 6px 10px; }
    .ip-text-slider { width: 76px; margin-right: 8px; padding-right: 8px; }
    .widget-players { padding: 8px 6px; min-width: 64px; }
    .server-showcase-content { padding: 2.3rem 2rem; }
    .server-showcase-preview { padding-right: 18px; }
}

@media (max-width: 640px) {
    .navbar { position: sticky; height: auto; min-height: 62px; flex-wrap: wrap; gap: 4px; padding: 8px 10px; }
    .nav-left { width: 100%; overflow-x: auto; order: 2; scrollbar-width: none; }
    .nav-left::-webkit-scrollbar { display: none; }
    .nav-links { min-width: max-content; height: 38px; }
    .nav-links a { padding: 0 10px; font-size: 12px; }
    .nav-right-widget { position: absolute; top: 8px; right: 10px; }
    .nav-right-widget .widget-players { display: none; }
    .global-banner { margin-top: 0; padding-top: 0; height: 300px; }
    .logo-img { max-width: 290px; }
    .main-content-spaced { margin-top: 24px !important; }
    .server-showcase { display: block; }
    .server-showcase-content, .server-showcase-preview { width: 100%; }
    .server-showcase-content { padding: 2rem 1.25rem 1.6rem; }
    .server-showcase h2 { font-size: 1.8rem; }
    .server-showcase-content > p { font-size: 0.9rem; }
    .server-showcase-preview { min-height: 360px; padding: 5px 1.25rem 28px; }
    .preview-logo { width: 220px; max-height: 150px; }
    .server-status-panel { max-width: 100%; }
    .status-motd { font-size: 0.67rem; line-height: 1.6; white-space: normal; }
    .status-motd strong { font-size: 0.74rem; }
    .connect-value { font-size: 1.08rem; }
    .page-header { margin-bottom: 2rem; }
    .page-header h2 { font-size: 1.8rem; line-height: 1.25; }
    .page-header p { font-size: 0.95rem; padding: 0 12px; }
    .team-grid { grid-template-columns: 1fr; gap: 18px; max-width: 420px; }
    .team-info h3 { font-size: 1.35rem; }
    .updates-layout { grid-template-columns: 1fr; gap: 18px; }
    .update-card, .roadmap-card { padding: 24px 20px; }
    .guide-layout { grid-template-columns: 1fr; gap: 16px; }
    .guide-sidebar { position: static; padding: 14px 10px; }
    .guide-sidebar-heading { padding-bottom: 11px; }
    .guide-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
    .guide-nav-link { padding: 9px 7px; font-size: 0.8rem; }
    .guide-article { padding: 21px 17px; }
    .guide-header h2 { font-size: 1.7rem; }
    .guide-topic { padding: 13px 12px; }
    .floating-socials { right: 10px; gap: 8px; }
    .social-btn { width: 42px; height: 42px; font-size: 18px; }
    .ranking-podium { gap: 7px; }.ranking-podium-card { min-height: 180px; padding-inline: 5px; }.ranking-podium-card.rank-1 { min-height: 205px; }.ranking-podium-card img { width: 56px; height: 56px; }.ranking-toolbar { align-items: stretch; flex-direction: column; }.ranking-search { width: 100%; }.ranking-row { grid-template-columns: 38px 38px 1fr auto; gap: 8px; padding-inline: 9px; }
}

.navbar.nav-scrolled {
    background-color: rgba(21, 26, 35, var(--nav-opacity));
    backdrop-filter: blur(10px);
    border-bottom-color: var(--border-color);
}

/* Ranking podium: second, first, third, with full skins on the podium. */
.ranking-toolbar-actions { display: flex; align-items: center; gap: 10px; }.ranking-refresh { border: 1px solid rgba(52, 211, 153, 0.24); border-radius: 7px; padding: 8px 11px; background: rgba(16, 185, 129, 0.1); color: #a7f3d0; font: 600 0.78rem 'Kanit', sans-serif; cursor: pointer; }.ranking-refresh:hover { background: #10b981; color: #03251a; }.ranking-refresh:disabled { opacity: 0.55; cursor: wait; }
.ranking-podium-card img.ranking-full-skin { width: 104px; height: 132px; object-fit: contain; image-rendering: pixelated; border-radius: 0; margin: 0 0 4px; filter: drop-shadow(0 8px 5px rgba(0, 0, 0, 0.42)); }
.ranking-empty { display: grid; justify-items: center; gap: 5px; padding: 38px 16px; border: 1px dashed rgba(148, 163, 184, 0.22); border-radius: 10px; color: #94a3b8; background: rgba(8, 13, 18, 0.58); }.ranking-empty i { color: #34d399; font-size: 1.5rem; margin-bottom: 4px; }.ranking-empty strong { color: #e2e8f0; }.ranking-empty span { font-size: 0.82rem; }
.ranking-podium-card.rank-1 img.ranking-full-skin { width: 122px; height: 158px; }