html, body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    width: 100%;
    height: 100%;
    background: #202025;
    font-family: Arial, sans-serif;
}


#app {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

canvas {
  display: block;
}


#hotbarWrapper {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 0px;
}

#hotbar {
  position: relative;
  display: grid;
  grid-template-columns: repeat(10, 64px);
  gap: 8px;

  padding: 10px 12px;
  background: rgba(18, 18, 18, 0.58);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
}

.hotbar-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  image-rendering: auto;
  pointer-events: none;
}

.slot-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 8px;
  box-sizing: border-box;
  text-align: center;
  font: bold 10px Arial, sans-serif;
  color: rgba(255,255,255,0.92);
  pointer-events: none;
}
.hotbar-nav {
  width: 46px;
  height: 64px;

  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;

  /* fully kill native button / box styling */
  appearance: none;
  -webkit-appearance: none;
  border: none;
  outline: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
  margin: 0;

  color: transparent;
  font-size: 0;
  line-height: 0;
}

.hotbar-left::before,
.hotbar-right::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  transition: transform 0.12s ease, filter 0.12s ease, opacity 0.12s ease;
  opacity: 0.92;
}

.hotbar-left::before {
  border-top: 22px solid transparent;
  border-bottom: 22px solid transparent;
  border-right: 36px solid rgba(255,255,255,0.95);
}

.hotbar-right::before {
  border-top: 22px solid transparent;
  border-bottom: 22px solid transparent;
  border-left: 36px solid rgba(255,255,255,0.95);
}

.hotbar-nav:hover::before {
  transform: scale(1.12);
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.55));
}

.hotbar-nav:active::before {
  transform: scale(0.96);
}
.hotbar-slot {
  position: relative;
  width: 64px;
  height: 64px;
  padding: 0;
  margin: 0;
  border: 2px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03)),
    rgba(55, 55, 55, 0.82);
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.12s ease,
    border-color 0.12s ease,
    box-shadow 0.12s ease,
    background 0.12s ease;
}

.hotbar-slot:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.32);
  box-shadow: 0 4px 14px rgba(0,0,0,0.28);
}

.hotbar-slot.selected {
  border-color: #ffe082;
  background:
    linear-gradient(180deg, rgba(255,230,140,0.24), rgba(255,180,70,0.10)),
    rgba(70, 70, 70, 0.92);
  box-shadow:
    0 0 0 1px rgba(255,230,140,0.35) inset,
    0 0 18px rgba(255,210,90,0.26);
}

.hotbar-slot img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  image-rendering: auto;
  pointer-events: none;
}

.hotbar-slot .slot-key {
  position: absolute;
  right: 5px;
  bottom: 3px;
  font: bold 11px Arial, sans-serif;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 2px rgba(0,0,0,0.85);
  pointer-events: none;
}

.hotbar-slot[data-type^="slot"] {
  opacity: 0.78;
}

#hotbarPrev::before {
  transform: translateX(0px);
}

#hotbarNext::before {
  transform: translateX(0px);
}

#topLeftPanel {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 0;
  user-select: none;
}

#hud {
  position: static;
  margin: 0;
  padding: 10px 14px;
  color: #f5f5f5;
  background: rgba(60, 70, 75, 0.88);
  border: 1px solid rgba(255,255,255,0.12);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  font-family: Arial, sans-serif;
  font-size: 14px;
  backdrop-filter: blur(4px);
  width: fit-content;
}

.view-options {
  position: static;
  margin: 0;
  padding: 10px 14px;
  background: rgba(30, 30, 30, 0.88);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 0 0 12px 12px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: fit-content;
  backdrop-filter: blur(4px);
}

.view-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

@media (max-width: 900px) {
  #hotbar {
    grid-template-columns: repeat(10, 54px);
    gap: 6px;
    padding: 8px 10px;
  }

  .hotbar-slot {
    width: 54px;
    height: 54px;
  }

  .hotbar-slot img,
  .hotbar-icon {
    width: 40px;
    height: 40px;
  }

  .hotbar-nav {
    width: 44px;
    height: 44px;
    font-size: 28px;
  }
}
