/* FULL CSS FILE — ui.css */

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

body {
  font-family: "Cinzel", serif;
  background: #050509;
  color: #f5e6c5;
  overflow: hidden;
}

.game-container {
  position: relative;
  width: 100vw;
  height: 100vh;
}

.game-view {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 1;
}

/* Panels */
.panel {
  position: absolute;
  background: rgba(10, 10, 15, 0.8);
  border: 1px solid #7b5b2a;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  color: #f5e6c5;
  z-index: 5;
}

/* Minimap */
.minimap-container {
  top: 20px;
  right: 20px;
  width: 220px;
  height: 220px;
  border-radius: 16px;
  overflow: hidden;
  opacity: 0.6;
  transition: opacity 0.2s ease, transform 0.2s ease, width 0.25s ease, height 0.25s ease;
  cursor: pointer;
}

.minimap-container:hover {
  opacity: 1;
}

.minimap-container.expanded {
  width: 360px;
  height: 360px;
  transform: translate(-40px, 40px);
}

#minimap {
  width: 100%;
  height: 100%;
}

/* Orbs */
.orb-wrapper {
  position: absolute;
  bottom: 40px;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.orb-health { left: 20px; }
.orb-mana { right: 20px; }

.orb {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.9);
}

.orb-inner {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  animation: liquid 6s ease-in-out infinite;
  opacity: 0.9;
}

.orb-inner.health {
  background-image: radial-gradient(circle at 30% 10%, #ffb3b3, #b30000 40%, #4a0000 80%);
}

.orb-inner.mana {
  background-image: radial-gradient(circle at 30% 10%, #b3d9ff, #0044aa 40%, #001133 80%);
}

@keyframes liquid {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6%); }
  100% { transform: translateY(0); }
}

.orb-value {
  position: absolute;
  bottom: -10px;
  width: 100%;
  text-align: center;
  font-size: 20px;
  text-shadow: 0 0 6px #000;
}

/* Bottom bar */
.bottom-bar {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  max-width: 900px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bar-frame {
  width: 100%;
  padding: 8px 12px;
  background: rgba(10, 10, 15, 0.95);
  border-radius: 14px;
  border: 1px solid #7b5b2a;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: space-between;
}

/* Belt */
.belt-bar {
  display: flex;
  gap: 6px;
}

.belt-slot {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: #111;
  border: 1px solid #7b5b2a;
  position: relative;
  cursor: pointer;
}

.belt-icon {
  position: absolute;
  inset: 0;
  background-size: cover;
}

.stack-count, .belt-key {
  position: absolute;
  font-size: 11px;
  color: #f5e6c5;
  text-shadow: 0 0 4px #000;
}

.stack-count { bottom: 1px; right: 3px; }
.belt-key { top: 1px; left: 3px; }

/* Skill bar */
.skill-bar {
  display: flex;
  gap: 8px;
}

.skill-slot {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: #111;
  border: 1px solid #a88a4a;
  position: relative;
  cursor: pointer;
}

.skill-icon {
  position: absolute;
  inset: 0;
  background-size: cover;
}

.keybind {
  position: absolute;
  bottom: 2px;
  right: 4px;
  font-size: 11px;
}

/* Inventory Overlay */
#inventoryOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#inventoryWindow {
  position: relative;
  width: 80%;
  height: 80%;
  background: rgba(15,15,20,0.95);
  border: 2px solid #7b5b2a;
  border-radius: 12px;
  overflow: hidden;
}

#inventoryFrame {
  width: 100%;
  height: 100%;
  border: none;
}

#closeInventory {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 6px 10px;
  background: #3a2a20;
  border: 1px solid #7b5b2a;
  color: #f5e6c5;
  border-radius: 6px;
  cursor: pointer;
}