html, body {
  background-color: #020305;
  color: #e2e8f0;
  font-family: 'Space Grotesk', sans-serif;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  min-height: 100vh;
  position: relative;
}

.font-epic {
  font-family: 'Cinzel Decorative', serif;
}

.font-mono-code {
  font-family: 'Fira Code', monospace;
}

.supreme-card {
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: linear-gradient(135deg, rgba(18, 12, 24, 0.95), rgba(5, 6, 10, 0.98));
  border: 1px solid rgba(244, 63, 94, 0.3);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.6s ease, box-shadow 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  overflow: hidden;
}

/* Card Holo Light Sweep - Disabled as per request */
.supreme-card::before {
  display: none !important;
  content: none !important;
}

@media (hover: hover) {
  .supreme-card:hover {
    border-color: rgba(244, 63, 94, 0.7);
    box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.7);
    transform: translateY(-4px);
  }

  .supreme-card:hover::before {
    display: none !important;
    content: none !important;
  }
}

/* Tactile Button Feedback */
button {
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s ease;
}

button:active {
  transform: scale(0.96) !important;
}

.custom-scrollbar::-webkit-scrollbar {
  height: 4px;
  width: 4px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: #090d16;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #f43f5e;
  border-radius: 4px;
}

/* =========================================================================
   MINECRAFT INVENTORY (PLAYER HUD) STYLES
   ========================================================================= */

.mc-slot {
  position: relative;
  width: 36px;
  height: 36px;
  background-color: #0c0f17;
  border: 2px solid #1e293b;
  box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.8), inset -1px -1px 2px rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  user-select: none;
}

@media (min-width: 640px) {
  .mc-slot {
    width: 44px;
    height: 44px;
  }
}

.mc-slot:hover {
  border-color: #f43f5e;
  background-color: #121827;
}

.mc-slot-empty {
  opacity: 0.6;
}

.mc-slot-empty:hover {
  opacity: 0.9;
}

.mc-slot-item-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: -webkit-optimize-contrast;
  filter: drop-shadow(0px 2px 3px rgba(0, 0, 0, 0.7));
}

@media (min-width: 640px) {
  .mc-slot-item-img {
    width: 30px;
    height: 30px;
  }
}

.mc-slot-count {
  position: absolute;
  bottom: 1px;
  right: 2px;
  font-family: 'Fira Code', monospace;
  font-size: 10px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 1px 1px 0 #000000, -1px -1px 0 #000000, 1px -1px 0 #000000, -1px 1px 0 #000000, 0 2px 4px rgba(0, 0, 0, 0.9);
  pointer-events: none;
}

@media (min-width: 640px) {
  .mc-slot-count {
    font-size: 11px;
    bottom: 2px;
    right: 3px;
  }
}

/* Mobile Phones (max-width: 639px) */
@media (max-width: 639px) {
  .mc-slot {
    width: 29px !important;
    height: 29px !important;
    border-width: 1.5px !important;
    border-radius: 4px !important;
  }

  .mc-slot-item-img {
    width: 18px !important;
    height: 18px !important;
  }

  .mc-slot-count {
    font-size: 8px !important;
    bottom: 0px !important;
    right: 1px !important;
  }

  #hudMainGrid, #hudHotbarGrid {
    min-width: 270px !important;
    gap: 2px !important;
  }
}
