@import url("https://fonts.googleapis.com/css2?family=Silkscreen:wght@400;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Silkscreen", sans-serif;
  text-transform: uppercase;
}

body {
  background-color: #313131;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.1) 2px, transparent 2px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.1) 2px, transparent 2px);
  background-size: 40px 40px;
  color: #dddddd;
  overflow-x: hidden;
}

/* --- NAVBAR (Grass Block) --- */
.navbar-container {
  background-color: #55aa55;
  width: 100%;
  min-height: 80px;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 6px solid #5d3a1a;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
  box-shadow: 0 4px 0 #3d2611;
  flex-wrap: wrap;
  gap: 10px;
}

.ul-navbar {
  display: flex;
  list-style: none;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.li-navbar {
  padding: 10px 15px;
  background: #7a7a7a;
  border: 3px solid #000;
  box-shadow:
    inset -3px -3px 0 #4a4a4a,
    inset 3px 3px 0 #bababa;
  transition: 0.1s;
}

.li-navbar:hover {
  background-color: #3db1ff;
  box-shadow:
    inset -3px -3px 0 #1d5a8a,
    inset 3px 3px 0 #80d0ff;
  transform: translateY(-2px);
  cursor: pointer;
}

.a-navbar {
  color: white;
  text-decoration: none;
  font-weight: bold;
  text-shadow: 2px 2px 0 #000;
}

.mc-clock {
  position: absolute;
  right: 20px;
  color: #fff59d;
  background: rgba(0, 0, 0, 0.7);
  padding: 8px 12px;
  border: 3px solid #5d3a1a;
  font-size: 14px;
}

.content-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 60vh;
  padding: 20px;
  box-sizing: border-box;
}

.a-content {
  width: 100%;
  max-width: 500px;
  background: #8d6e63;
  border: 6px solid #5d3a1a;
  padding: 30px;
  box-shadow: 10px 10px 0px #1e1e1e;
  text-align: center;
}

.a-content {
  background-color: #8d6e63;
  width: 100%;
  max-width: 600px;
  padding: 40px;
  border: 6px solid #5d3a1a;
  box-shadow: 12px 12px 0px #1e1e1e;
  text-align: center;
}

.a-content p {
  margin-top: 12px;
  line-height: 1.6;
  font-size: 13px;
}

.img-content {
  width: 160px;
  height: 160px;
  border: 6px solid #000;
  margin-bottom: 25px;
}

/* --- BUTTONS --- */
.btn-social,
.btn-wa {
  display: inline-block;
  padding: 12px 20px;
  color: white;
  text-decoration: none;
  border: 3px solid #000;
  background: #7a7a7a;
  box-shadow:
    inset -3px -3px 0 #4a4a4a,
    inset 3px 3px 0 #bababa;
  margin: 5px;
  cursor: pointer;
}

.btn-social:hover,
.btn-wa:hover {
  filter: brightness(1.2);
  transform: translateY(-2px);
}

/* --- MUSIC & SETTINGS --- */
.music-controller,
.settings-btn {
  position: fixed;
  background: #8d6e63;
  border: 4px solid #5d3a1a;
  z-index: 1000;
  padding: 10px;
  cursor: pointer;
  box-shadow: 5px 5px 0px #000;
}

.music-controller {
  bottom: 20px;
  left: 20px;
  text-align: center;
  min-width: 80px;
}

.settings-btn {
  top: 100px;
  right: 20px;
  font-size: 20px;
}

/* --- MODAL --- */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #4e4e4e;
  border: 6px solid #000;
  box-shadow:
    inset -4px -4px 0 #2e2e2e,
    inset 4px 4px 0 #8e8e8e;
  padding: 30px;
  text-align: center;
  min-width: 280px;
}

.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 15px 0;
}

/* --- FOOTER --- */
.footer-container {
  background-color: #5d3a1a;
  width: 100%;
  padding: 15px 20px;
  border-top: 4px solid #3d2611;
  text-align: center;
}

.h1-footer {
  font-size: 12px;
  color: #fff59d;
  text-shadow: 2px 2px 0 #000;
  font-weight: 400;
  letter-spacing: 2px;
}

/* --- ANIMATIONS --- */
@keyframes shake {
  0% {
    transform: translate(2px, 2px);
  }

  50% {
    transform: translate(-2px, -2px);
  }

  100% {
    transform: translate(0, 0);
  }
}

.shake {
  animation: shake 0.2s;
}

/* --- ACHIEVEMENT STYLE --- */
.achievement-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
  text-align: left;
}

.achievement-item {
  background: #4e4e4e;
  border: 3px solid #000;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow:
    inset -4px -4px 0 #2e2e2e,
    inset 4px 4px 0 #8e8e8e;
  transition: 0.2s;
}

.achievement-item:hover {
  transform: scale(1.02);
  border-color: #fff59d;
}

.achievement-item .icon {
  font-size: 30px;
  background: #313131;
  padding: 10px;
  border: 2px solid #000;
  flex-shrink: 0;
}

.achievement-item h3 {
  font-size: 14px;
  color: #55aa55;
  margin-bottom: 5px;
}

.achievement-item p {
  font-size: 10px;
  color: #aaaaaa;
  margin-top: 0 !important;
}

/* --- ACHIEVEMENT DETAILS & BUTTON --- */
.achievement-details {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #55aa55;
  font-size: 11px;
  color: #dddddd;
  line-height: 1.5;
  animation: fadeIn 0.4s ease-in-out;
}

.read-more-ach-btn {
  background: #3db1ff;
  color: white;
  padding: 4px 8px;
  border: 2px solid #000;
  font-size: 9px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.2s;
}

.read-more-ach-btn:hover {
  background: #55aa55;
  transform: translateY(-2px);
}

/* --- SOCIAL MEDIA BUTTONS --- */
.social-media {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* --- RESPONSIVE --- */
@media (max-width: 480px) {
  .mc-clock {
    position: static;
    margin-top: 5px;
    font-size: 11px;
  }

  .navbar-container {
    flex-direction: column;
  }

  .a-content {
    padding: 20px 15px;
    font-size: 12px;
  }

  .ul-navbar {
    gap: 8px;
  }

  .li-navbar {
    padding: 8px 10px;
    font-size: 11px;
  }
}

/* --- DAY & NIGHT VARIABLES --- */
:root {
  --bg-color: #313131;
  --nav-color: #55aa55;
  --content-color: #8d6e63;
  --text-color: #dddddd;
  --border-color: #5d3a1a;
  --sun-moon-shadow: #fff59d;
}

/* Class khusus saat malam hari */
body.night-mode {
  --bg-color: #0f0f1b;
  /* Biru gelap langit malam */
  --nav-color: #2e4d2e;
  /* Rumput gelap */
  --content-color: #4a3728;
  /* Tanah gelap */
  --text-color: #a0a0a0;
  --border-color: #2b1a0d;
  --sun-moon-shadow: #5c5cff;
}

/* Terapkan variabel ke elemen yang sudah ada */
body {
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: 0.8s;
}

.navbar-container {
  background-color: var(--nav-color);
  border-bottom-color: var(--border-color);
  transition: 0.8s;
}

.a-content,
.music-controller,
.settings-btn {
  background-color: var(--content-color);
  border-color: var(--border-color);
  transition: 0.8s;
}

.modal-content {
  background: #4e4e4e;
  border: 6px solid #000;
  box-shadow:
    inset -4px -4px 0 #2e2e2e,
    inset 4px 4px 0 #8e8e8e;
  padding: 30px;
  width: 350px;
  /* Lebarkan sedikit agar tombol muat */
  text-align: center;
}

.modal-content p {
  margin-bottom: 10px;
  font-size: 12px;
}

.block-grid {
  display: grid;
  grid-template-columns: repeat(6, 60px);
  gap: 5px;
  justify-content: center;
  margin: 20px 0;
}

.block {
  width: 60px;
  height: 60px;
  border: 2px solid #000;
  cursor: pointer;
  transition: all 0.1s;
}

.block:hover {
  transform: scale(0.95);
}

.block.broken {
  opacity: 0.3;
  pointer-events: none;
}

.score-display {
  font-size: 20px;
  color: #fff59d;
  margin: 10px 0;
}

.timer {
  font-size: 18px;
  color: #ff6b6b;
}

/* --- BLOG PAGE STYLES --- */
.blog-container {
  max-width: 800px;
  margin: 0 auto;
}

.blog-post {
  background: #4e4e4e;
  border: 3px solid #000;
  margin-bottom: 25px;
  overflow: hidden;
  box-shadow: 5px 5px 0 #000;
  transition: all 0.3s;
}

.blog-post:hover {
  transform: translateY(-3px);
  border-color: #fff59d;
  box-shadow: 8px 8px 0 #000;
}

.blog-header {
  background: #55aa55;
  padding: 15px 20px;
  border-bottom: 3px solid #000;
  position: relative;
}

.blog-title {
  font-size: 18px;
  color: #fff59d;
  margin: 0;
  text-shadow: 2px 2px 0 #000;
}

.blog-meta {
  font-size: 10px;
  color: #dddddd;
  margin-top: 5px;
}

.blog-category {
  position: absolute;
  top: 10px;
  right: 15px;
  background: #3db1ff;
  color: white;
  padding: 3px 8px;
  border: 2px solid #000;
  font-size: 9px;
  font-weight: bold;
}

.blog-content {
  padding: 20px;
  color: #dddddd;
  line-height: 1.6;
  font-size: 13px;
}

.blog-content p {
  margin-bottom: 15px;
}

.blog-content h3 {
  color: #fff59d;
  margin: 15px 0 10px 0;
  font-size: 14px;
}

.blog-content ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

.blog-content li {
  margin-bottom: 5px;
}

.blog-footer {
  background: #2e2e2e;
  padding: 10px 20px;
  border-top: 2px solid #000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.blog-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.blog-tag {
  background: #7a7a7a;
  color: white;
  padding: 2px 6px;
  border: 1px solid #000;
  font-size: 9px;
  font-weight: bold;
}

.read-more {
  background: #3db1ff;
  color: white;
  padding: 5px 12px;
  border: 2px solid #000;
  text-decoration: none;
  font-size: 10px;
  font-weight: bold;
  transition: all 0.2s;
}

.read-more:hover {
  background: #55aa55;
  transform: translateY(-2px);
}

.blog-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.blog-search {
  background: #4e4e4e;
  border: 3px solid #000;
  padding: 15px;
  margin-bottom: 20px;
  text-align: center;
}

.search-input {
  width: 100%;
  max-width: 400px;
  padding: 10px;
  background: #2e2e2e;
  border: 2px solid #000;
  color: white;
  font-family: 'Silkscreen', sans-serif;
  font-size: 12px;
}

.search-input:focus {
  outline: none;
  border-color: #fff59d;
}

.blog-stats {
  background: #55aa55;
  border: 3px solid #000;
  padding: 15px;
  margin-bottom: 20px;
  text-align: center;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 24px;
  color: #fff59d;
  font-weight: bold;
}

.stat-label {
  font-size: 10px;
  color: white;
  margin-top: 5px;
}

.code-block {
  background: #1e1e1e;
  border: 2px solid #000;
  padding: 10px;
  margin: 10px 0;
  font-family: monospace;
  font-size: 11px;
  color: #00ff00;
  overflow-x: auto;
}

.minecraft-block {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 1px solid #000;
  margin: 0 2px;
  vertical-align: middle;
}

.diamond-block {
  background: #00CED1;
}

.gold-block {
  background: #FFD700;
}

.iron-block {
  background: #C0C0C0;
}

.emerald-block {
  background: #50C878;
}

/* --- ENHANCED MOB SYSTEM --- */
.mob {
  position: fixed;
  width: 80px;
  height: auto;
  z-index: 500;
  display: none;
  filter: drop-shadow(5px 5px 0px #000);
  transition: transform 0.3s;
  cursor: help;
}

/* Munculkan hanya saat Night Mode */
body.night-mode .mob {
  display: block;
}

/* Posisi mob yang berbeda */
.creeper {
  bottom: 80px;
  left: 120px;
  animation: creeperFloat 4s infinite ease-in-out;
}

.skeleton {
  bottom: 80px;
  right: 20px;
  animation: skeletonFloat 3.5s infinite ease-in-out;
}

.zombie {
  bottom: 200px;
  left: 50px;
  width: 70px;
  animation: zombieWalk 5s infinite linear;
}

.enderman {
  bottom: 150px;
  right: 100px;
  width: 90px;
  animation: endermanTeleport 6s infinite ease-in-out;
}

.spider {
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  animation: spiderCrawl 3s infinite linear;
}

/* Animasi unik untuk setiap mob */
@keyframes creeperFloat {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  25% {
    transform: translateY(-15px) rotate(-5deg);
  }

  50% {
    transform: translateY(-10px) rotate(3deg);
  }

  75% {
    transform: translateY(-20px) rotate(-3deg);
  }
}

@keyframes skeletonFloat {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-12px) rotate(5deg);
  }
}

@keyframes zombieWalk {

  0%,
  100% {
    transform: translateX(0) translateY(0) rotate(0deg);
  }

  25% {
    transform: translateX(10px) translateY(-5px) rotate(-10deg);
  }

  50% {
    transform: translateX(20px) translateY(0) rotate(0deg);
  }

  75% {
    transform: translateX(10px) translateY(-5px) rotate(10deg);
  }
}

@keyframes endermanTeleport {

  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }

  25% {
    transform: translateY(-30px) scale(0.8);
    opacity: 0.5;
  }

  50% {
    transform: translateY(-50px) scale(0.6);
    opacity: 0;
  }

  60% {
    transform: translateY(-20px) scale(1.2);
    opacity: 0.5;
  }

  75% {
    transform: translateY(-10px) scale(1.1);
    opacity: 0.8;
  }
}

@keyframes spiderCrawl {
  0% {
    transform: translateX(-50%) translateY(0) rotate(0deg);
  }

  25% {
    transform: translateX(-50%) translateY(-8px) rotate(15deg);
  }

  50% {
    transform: translateX(-50%) translateY(0) rotate(0deg);
  }

  75% {
    transform: translateX(-50%) translateY(-8px) rotate(-15deg);
  }
}

/* Hover effects */
.mob:hover {
  transform: scale(1.3) rotate(10deg);
  filter: drop-shadow(8px 8px 0px #000) brightness(1.2);
}

/* Mob health bars */
.mob::after {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background: #ff0000;
  border: 1px solid #000;
  display: none;
}

.mob:hover::after {
  display: block;
}

/* Special effects */
.mob.damaged {
  animation: mobDamage 0.5s;
  filter: drop-shadow(5px 5px 0px #ff0000) brightness(2);
}

@keyframes mobDamage {

  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }

  25% {
    transform: scale(1.2) rotate(-15deg);
  }

  50% {
    transform: scale(0.8) rotate(15deg);
  }

  75% {
    transform: scale(1.1) rotate(-5deg);
  }
}

/* --- PARTICLE EFFECTS SYSTEM --- */
.particle {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  animation: particleFall 3s linear forwards;
}

@keyframes particleFall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

/* Click particle effects */
.click-particle {
  width: 8px;
  height: 8px;
  background: #fff59d;
  border: 1px solid #000;
  animation: clickBurst 0.6s ease-out forwards;
}

@keyframes clickBurst {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -50%) scale(3);
    opacity: 0;
  }
}

/* Floating particles in background */
.floating-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.floating-particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: floatUp 8s infinite linear;
}

@keyframes floatUp {
  0% {
    transform: translateY(100vh) translateX(0);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translateY(-100vh) translateX(100px);
    opacity: 0;
  }
}

/* Weather effects */
.rain-particle {
  width: 2px;
  height: 15px;
  background: linear-gradient(transparent, #4a90e2);
  animation: rainFall 1s linear infinite;
}

@keyframes rainFall {
  0% {
    transform: translateY(-100vh);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translateY(100vh);
    opacity: 0;
  }
}

.snow-particle {
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  animation: snowFall 3s linear infinite;
}

@keyframes snowFall {
  0% {
    transform: translateY(-100vh) translateX(0);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translateY(100vh) translateX(50px);
    opacity: 0;
  }
}

/* Enhanced hover effects */
.enhanced-hover {
  position: relative;
  overflow: hidden;
}

.enhanced-hover::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255, 245, 157, 0.3), transparent);
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s;
  border-radius: 50%;
}

.enhanced-hover:hover::before {
  width: 200%;
  height: 200%;
}

/* Page transition effects */
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #313131;
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: pageTransition 0.8s ease-in-out;
}

.page-transition::after {
  content: '⛏️';
  font-size: 48px;
  animation: spin 0.8s linear infinite;
}

@keyframes pageTransition {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(1.2);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Loading animation */
.loading-block {
  display: inline-block;
  width: 20px;
  height: 20px;
  background: #7a7a7a;
  border: 2px solid #000;
  margin: 0 2px;
  animation: loadingBlock 1.5s infinite ease-in-out;
}

.loading-block:nth-child(2) {
  animation-delay: 0.2s;
}

.loading-block:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes loadingBlock {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

/* Achievement celebration effects */
.celebration-particle {
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  font-size: 24px;
  animation: celebrate 2s ease-out forwards;
}

@keyframes celebrate {
  0% {
    transform: translate(-50%, -50%) scale(0) rotate(0deg);
    opacity: 1;
  }

  50% {
    transform: translate(-50%, -150%) scale(1.5) rotate(180deg);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -200%) scale(0.5) rotate(360deg);
    opacity: 0;
  }
}

/* Portal effect for navigation */
.portal-effect {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, #9b59b6, #3498db, #2ecc71);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 9998;
  animation: portalOpen 1s ease-out forwards;
}

@keyframes portalOpen {
  0% {
    width: 0;
    height: 0;
    opacity: 0;
  }

  50% {
    width: 200px;
    height: 200px;
    opacity: 1;
  }

  100% {
    width: 300px;
    height: 300px;
    opacity: 0;
  }
}

/* Biar saat arahin ke tombol tetap muncul pedang tapi versi "Pointer" */
a,
button,
.li-navbar,
.settings-btn,
.music-controller,
.mob {
  cursor:
    url('https://cur.cursors-4u.net/games/gam-4/gam389.cur') 16 16,
    pointer !important;
}

.splash-container {
  margin-top: -10px;
  margin-bottom: 20px;
}

#splash-text {
  display: inline-block;
  color: #ffff00;
  /* Kuning Minecraft */
  font-size: 18px;
  font-weight: bold;
  text-shadow: 2px 2px 0 #3f3f00;
  transform: rotate(-15deg);
  animation: splashAnim 0.5s infinite alternate ease-in-out;
}

@keyframes splashAnim {
  from {
    transform: rotate(-15deg) scale(1);
  }

  to {
    transform: rotate(-15deg) scale(1.1);
  }
}

@keyframes shake-screen {

  0%,
  100% {
    transform: translateX(0);
  }

  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-5px);
  }

  20%,
  40%,
  60%,
  80% {
    transform: translateX(5px);
  }
}

.shake-screen {
  animation: shake-screen 0.5s;
}

.achievement-popup {
  position: fixed;
  top: -100px;
  /* Sembunyi di atas */
  right: 20px;
  background: #333;
  border: 4px solid #000;
  display: flex;
  align-items: center;
  padding: 10px;
  gap: 10px;
  z-index: 9999;
  transition: top 0.5s cubic-bezier(0.17, 0.67, 0.83, 0.67);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
}

.achievement-popup.show {
  top: 20px;
}

.ach-icon {
  font-size: 24px;
  background: #222;
  padding: 5px;
  border: 2px solid #555;
}

.ach-title {
  color: #ffff00;
  display: block;
  font-size: 10px;
}

.ach-desc {
  color: #fff;
  display: block;
  font-size: 12px;
}

.rain-particle {
  width: 2px;
  height: 15px;
  background: linear-gradient(transparent, #4a90e2);
  position: absolute;
  animation: rainFall 1s linear infinite;
}

.snow-particle {
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  position: absolute;
  animation: snowFall 3s linear infinite;
}

@keyframes rainFall {
  to {
    transform: translateY(100vh);
  }
}

@keyframes snowFall {
  to {
    transform: translateY(100vh) translateX(50px);
  }
}

.server-monitor {
  background: #2e2e2e;
  border: 4px solid #000;
  border-radius: 4px;
  padding: 15px;
  margin-top: 20px;
  box-shadow: inset 2px 2px 0px rgba(255, 255, 255, 0.1), 4px 4px 0px #000;
  font-family: 'Silkscreen', monospace;
}

/* --- 3D BLOCK SYSTEM --- */
.scene {
  width: 100px;
  height: 100px;
  perspective: 600px;
  margin: 40px auto;
}

.cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transform: translateZ(-50px) rotateX(-15deg) rotateY(45deg);
  transition: transform 0.1s ease-out;
  /* Agar gerakan mengikuti mouse halus */
}

.face {
  position: absolute;
  width: 100px;
  height: 100px;
  border: 2px solid #3e2723;
}

/* --- MULTI-MATERIAL 3D BLOCK --- */
/* Transisi halus saat warna berubah */
.face {
  transition: background 0.3s ease, border-color 0.3s ease;
}

/* Material 1: GOLD (Emas) */
.cube.gold .face {
  background: #fdd835;
  border: 2px solid #f57f17;
}

/* Material 2: REDSTONE */
.cube.redstone .face {
  background: #d32f2f;
  border: 2px solid #b71c1c;
  box-shadow: inset 0 0 10px #ff5252;
  /* Efek menyala dari dalam */
}

/* Material 3: DIAMOND (Berlian) */
.cube.diamond .face {
  background: #18ffff;
  border: 2px solid #00b8d4;
  box-shadow: inset 0 0 15px #ffffff;
}

/* Catatan: Material Grass (Rumput) sudah menjadi bawaan standar */
/* Tekstur Grass Block murni pakai CSS */
.top {
  background: #55aa55;
  transform: rotateX(90deg) translateZ(50px);
}

.bottom {
  background: #5d4037;
  transform: rotateX(-90deg) translateZ(50px);
}

.front {
  background: linear-gradient(180deg, #55aa55 25%, #795548 25%);
  transform: rotateY(0deg) translateZ(50px);
}

.back {
  background: linear-gradient(180deg, #55aa55 25%, #795548 25%);
  transform: rotateY(180deg) translateZ(50px);
}

.right {
  background: linear-gradient(180deg, #55aa55 25%, #795548 25%);
  transform: rotateY(90deg) translateZ(50px);
}

.left {
  background: linear-gradient(180deg, #55aa55 25%, #795548 25%);
  transform: rotateY(-90deg) translateZ(50px);
}

/* --- CUSTOM MINECRAFT CURSOR --- */
body {
  /* Ganti 'pickaxe.png' dengan nama file gambar item kamu */
  cursor: url('mc_sword.png'), auto;
}

/* Efek saat mengklik (Ayunkan Pickaxe) */
body:active {
  animation: mineAnimation 0.2s ease-in-out;
}

/* Pastikan tombol juga pakai kursor custom */
a,
button,
.li-navbar,
.settings-btn,
.mob {
  cursor: url('mc_sword.png'), pointer !important;
}

/* --- RESPONSIVE MOBILE (Layar di bawah 768px) --- */
@media (max-width: 768px) {
  .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: 100vh;
  }

  .ul-navbar {
    flex-direction: column;
    gap: 10px;
  }

  .li-navbar {
    width: 100%;
    text-align: center;
  }

  .a-content {
    font-size: 14px;
    padding: 15px;
  }

  .mob {
    display: none;
  }

  .scene {
    transform: scale(0.7);
  }
}

/* --- ENCHANTMENT EFFECT --- */
.li-navbar:hover,
.btn-social:hover {
  color: #d1a3ff !important;
  text-shadow: 0 0 8px #b042ff, 0 0 12px #b042ff;
  border-color: #b042ff !important;
  box-shadow: 0 0 15px rgba(176, 66, 255, 0.6), inset 0 0 10px rgba(176, 66, 255, 0.4);
  animation: enchantmentGlow 1.5s infinite alternate;
  transform: translateY(-2px);
}

@keyframes enchantmentGlow {
  from {
    filter: brightness(1) contrast(1);
  }

  to {
    filter: brightness(1.3) contrast(1.2) hue-rotate(10deg);
  }
}

.li-navbar,
.btn-social {
  transition: all 0.3s ease;
}

.sign-board {
  background: #a1887f;
  /* Warna kayu */
  border: 3px solid #5d4037;
  padding: 8px;
  width: 120px;
  min-height: 60px;
  color: #3e2723;
  font-size: 9px;
  text-align: center;
  position: relative;
  box-shadow: 3px 3px 0px #000;
  animation: fadeIn 0.5s ease;
}

/* Kaki papan kayu */
.sign-board::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 15px;
  background: #5d4037;
}

/* --- EFEK GUA GELAP (NIGHT MODE) --- */
.dark-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.5s ease-in-out;
  opacity: 0;
}

/* Tombol Tuas Utama */
.main-lever-box {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10000;
  padding: 10px;
  text-align: center;
  cursor: pointer;

  background: #333;
  border: 3px solid #ff5555;
  box-shadow: 0 0 15px #ff0000;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.main-lever-box:hover {
  box-shadow: 0 0 25px #ff0000;
  transform: scale(1.05);
  transition: 0.2s;
}