#level-dialog {
  display: none;
  position: fixed; inset: 0; z-index: 500;
  align-items: center; justify-content: center;
  background: rgba(9,12,16,.55);
  backdrop-filter: blur(3px);
}
#level-dialog.visible {
  display: flex;
  animation: dialogFadeIn .25s ease-out;
}
@keyframes dialogFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

#level-dialog-box {
  width: 256px;
  background: linear-gradient(170deg, #dfc99e 0%, #c8a87a 40%, #b89564 100%);
  border-radius: 6px;
  display: flex; flex-direction: column; align-items: center;
  padding: 24px 20px 20px; gap: 12px; box-sizing: border-box;
  position: relative;
  filter: drop-shadow(0 6px 30px rgba(0,0,0,.55));
  animation: dialogBoxIn .3s ease-out;
}
#level-dialog-box::before {
  content: '';
  position: absolute;
  inset: 3px;
  border: 2px solid rgba(90,58,26,.18);
  border-radius: 4px;
  pointer-events: none;
}
@keyframes dialogBoxIn {
  from { opacity: 0; transform: translateY(12px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

#level-dialog-portrait {
  width: 64px; height: 64px;
  background-image: url('../assets/SproutLands-UI/Sprite sheets/Dialouge UI/Emotes/Teemo Basic emote animations sprite sheet.png');
  background-size: 320px 960px;
  background-position: 0 0;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  border: 2px solid rgba(90,58,26,.3);
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
}

#level-dialog-text {
  font-family: 'SproutPixel', monospace;
  font-size: 13px; color: #3d2008; text-align: center; line-height: 1.6;
  white-space: pre-line;
}

#level-dialog-btn {
  margin-top: 8px;
  background: none !important; border: none !important;
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; font-family: 'SproutPixel', monospace;
  font-size: 13px; color: #3d2008;
  transition: opacity .1s ease, filter .15s ease;
}
#level-dialog-btn:hover {
  opacity: .75;
  filter: brightness(1.05);
}
#level-dialog-btn:active {
  transform: scale(.97);
}

#level-dialog-btn-icon {
  width: 32px; height: 32px;
  background-image: url('../assets/SproutLands-UI/Sprite sheets/buttons/Small Square Buttons.png');
  background-size: 64px 256px; background-position: 0 -96px;
  background-repeat: no-repeat; image-rendering: pixelated;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: #2a8a2a; font-weight: bold;
}
