@font-face {
  font-family: MuseoModerno;
  src:url("/src/fonts/MuseoModerno-Bold.ttf");
  font-weight: bold;
}

  html, body {
    margin: 0;
    height: 100%;
    overflow: hidden;
    background: #222;
  }

  /* Tooltop */
 .tooltip{
    position: fixed;
    top: 0;
    left: 0;
    transform: translate3d(0,0,0); /* необходим для gsap x/y */
    will-change: transform, opacity;
    pointer-events: none;          /* не мешает кликам */
    z-index: 11000;                /* выше, чем у модалки (9999) */
    background: rgba(0,0,0,0.85);
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-family: MuseoModerno;
    opacity: 0;
    transition: opacity .18s ease;
    white-space: nowrap;
  }

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

  #map {
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: 0 0;
    will-change: transform;
  }

  .tile {
    position: absolute;
    width: 513px;
    height: 513px;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
  }

  .monster img {
    width: 64px;
    height: 64px;
    border-radius: 50%; 
  }

  .monster {
    transition: transform 0.5s ease; 
    color: white;
  }

  .monster:hover {  
    transform: scale(1.2);
    color: #ffffffbb;
  }  

/* //////////////////////////////////////////////////////// MONSTERS //////////////////////////////////////////////////////// */

/* модалка */
.monster-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 1000;
}

.monster-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.monster-card {
  /* background: linear-gradient(0deg, #05000b, #a5824ade); */
  background: linear-gradient(0deg, #05000b, #dbb270c2);
  color: #fff;
  padding: 24px;
  border-radius: 20px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  transform: translateY(-30px);
  opacity: 0;
  transition: all 0.4s ease;
  position: relative;
  text-align: center;
  font-family: MuseoModerno;
}

.monster-card p {
display: grid;
grid-auto-flow: column;
justify-content: space-between;
margin: 5px 10px;
}

.monster-name {
text-align:center;
margin: 0px 0px 10px 0px;
}

.monster-modal.active .monster-card {
  transform: translateY(0);
  opacity: 1;
}

.monster-img {
  width: 195px;
  height: 195px;
  object-fit: contain;
  margin-bottom: 15px;
  box-shadow: 2px 2px 5px 0px rgba(0, 0, 0, 0.5);
  border-radius: 5px;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
  transition: color 0.3s;
}

.close-btn:hover {
  color: #ff5252;
}

.fight-btn {
  margin-top: 20px;
  padding: 12px 20px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  cursor: pointer;
  /* background: linear-gradient(45deg, #ff5252, #ff8c00); */
  /* background: linear-gradient(45deg, #661904, #ffb050); */
  background: linear-gradient(45deg, #e0cbc5, #d3a36a);
  /* color: white; */
  color: #2f1212;
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: MuseoModerno;
}

.fight-btn:hover {
  transform: translateY(-2px);
  /* box-shadow: 0 4px 15px rgba(255,140,0,0.5); */
  box-shadow: 0 4px 15px #d3a46a85;
}












/* make sure the map is under */
#viewer { position: relative; z-index: 0; }
#map { position: absolute; left: 0; top: 0; transform-origin: 0 0; z-index: 1; }

/* modal above of everything */
.attribute-modal {
  position: fixed;
  inset: 0;
  display: flex;              /* .active -> flex */
  align-items: center;
  justify-content: center;
  z-index: 9999;              /* above the map */
  pointer-events: none;       /* clickable inside of the panel/backdrop only */
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
  visibility: hidden;
}
.attribute-modal.active { 
  opacity: 1; 
  visibility: visible; 
  transition: opacity 0.3s ease, visibility 0s; 
}

.attribute-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  pointer-events: auto;
}

.attribute-panel {
  /* background: linear-gradient(180deg, #0a0a15, #1d1d2f); */
  /* background: linear-gradient(180deg, #110c0a, #5a514496); */
  background: linear-gradient(180deg, #110c0a, #444a5a96);
  color: #fff;
  padding: 20px;
  border-radius: 18px;
  width: 90%;
  max-width: 740px;
  max-height: 80%;
  box-shadow: 0 8px 30px rgba(0,0,0,.6);
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: MuseoModerno;
  position: relative;
  z-index: 1;
  pointer-events: auto;
}
.attribute-panel img { height: 22px; width: 22px; }
.attribute-panel h2 { margin: 10px }
.guidance { display: flex; color: #dcd6cc; flex-wrap: wrap; margin-right: 10px; }
.guide { margin-left: 10px; display: flex; align-items: center; }
.guide h6 { margin: 0px 0px 0px 3px; cursor: default; }

.attribute-category { display: flex; flex-wrap: wrap; gap: 10px; margin: 0px 10px 10px 10px; }
.attribute-category img { height: 32px; width: 32px; margin-left: 10px; }
.attribute-category h2 { margin: 4px 0 0 0; width: 100%; color: #dcd6cc; display: flex; }
.attribute-categories { overflow-y: scroll; margin-bottom: 20px; scrollbar-color: #dcd6cc99 #dcd6cc32; }
/* .attribute-categories::-webkit-scrollbar { width: 8px; } */
/* .attribute-categories::-webkit-scrollbar-track { background: #dcd6cc6c; border-radius: 10px; } */
.attribute-btn { padding: 8px 12px; border-radius: 12px; border: 0; cursor: pointer; font-family: 'MuseoModerno'; background: #eee8e2; display: flex; align-items: center; }
.attribute-btn img { 
  height: 22px; 
  width: 22px;
  margin-left: 6px;
  border-radius: 5px;
  background: #000000bd;
  box-shadow: 1px 2px 4px 1px #0000004f;
  padding: 2px;
}
.attribute-btn.selected { filter: opacity(0.25); }

.confirm-btn {
  align-self: flex-end;
  padding: 10px 14px; border: 0; border-radius: 12px;
  background: #dcd6cc;
  color: #1d1c1b;
  cursor: pointer;
  font-family: 'MuseoModerno';
  transition: transform 0.2s, box-shadow 0.2s;
  align-self: center;
}

.confirm-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px #d3a46a85;
}

