/* ------ Game map (gamemap.php) ------- */

#gm { position: relative; text-align: left; }

#gm .gm-bar { margin: 6px 0 8px 0; height: 28px; }

#gm .gm-tab, #gm .gm-tab:link, #gm .gm-tab:visited {
  float: left;
  margin-right: 4px;
  padding: 0 16px;
  line-height: 26px;
  border: 1px solid #3a2411;
  background: #5b3d21;
  color: #f0e4d2;
  font-weight: bold;
  text-decoration: none;
}
#gm .gm-tab:hover { background: #74502c; color: #fff; }
#gm .gm-tab.on { background: #2f1d0c; color: #ffd98a; }
#gm .gm-dblink, #gm .gm-dblink:link, #gm .gm-dblink:visited {
  float: left;
  margin-left: 10px;
  padding: 0 16px;
  line-height: 26px;
  border: 1px solid #3a2411;
  background: #2f5a2b;
  color: #f0e4d2;
  font-weight: bold;
  text-decoration: none;
}
#gm .gm-dblink:hover { background: #3f7a39; color: #fff; }
#gm .gm-dblink + .gm-dblink { margin-left: 4px; }

#gm .gm-search {
  float: right;
  width: 190px;
  padding: 4px 6px;
  border: 1px solid #8d7458;
  background: #f5ecdd;
  color: #2f2115;
  font-family: Sylfaen, Trebuchet MS, Verdana;
  font-size: 12px;
}

#gm .gm-wrap { overflow: hidden; }

#gm .gm-view {
  position: relative;
  float: left;
  width: 430px;
  height: 500px;
  overflow: hidden;
  border: 1px solid #3a2411;
  background: #d8cdb8;
  cursor: grab;
  -webkit-user-select: none; user-select: none;
}
#gm .gm-view.drag { cursor: grabbing; }

#gm .gm-inner { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
#gm .gm-img { display: block; max-width: none; }
#gm .gm-svg { position: absolute; left: 0; top: 0; overflow: visible; }

#gm .gm-svg rect {
  stroke: rgba(40, 20, 5, .45);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
}
#gm .gm-svg rect.lv1 { fill: rgba(90, 170, 60, .16); }
#gm .gm-svg rect.lv2 { fill: rgba(220, 190, 40, .18); }
#gm .gm-svg rect.lv3 { fill: rgba(225, 120, 30, .20); }
#gm .gm-svg rect.lv4 { fill: rgba(200, 30, 30, .22); }
#gm .gm-svg rect:hover { fill: rgba(255, 240, 180, .45); stroke: #2f1d0c; }
#gm .gm-svg rect.sel   { fill: rgba(255, 220, 90, .50); stroke: #000; stroke-width: 2; }
#gm .gm-svg rect.hit   { fill: rgba(60, 140, 255, .45); stroke: #0b2d66; stroke-width: 2; }
#gm .gm-svg rect.dim   { fill: rgba(0, 0, 0, .04); stroke: rgba(40, 20, 5, .15); }
#gm .gm-svg rect.boss  { stroke: #8c1010; stroke-width: 1.6; }
#gm .gm-svg rect.zone  { stroke: #1d0f04; stroke-width: 2; stroke-dasharray: 4 3; fill: rgba(70, 40, 110, .45); }
#gm .gm-svg rect.zone:hover { fill: rgba(150, 110, 200, .6); }
#gm .gm-svg rect.zone.sel { fill: rgba(255, 220, 90, .65); stroke: #000; }
#gm .gm-svg rect.zone.hit { fill: rgba(60, 140, 255, .6); stroke: #0b2d66; }
#gm .gm-svg rect.zone.dim { fill: rgba(70, 40, 110, .15); }

#gm .gm-zoom { position: absolute; right: 6px; top: 6px; }
#gm .gm-zoom a, #gm .gm-zoom a:link, #gm .gm-zoom a:visited {
  display: block;
  width: 24px;
  margin-bottom: 3px;
  line-height: 22px;
  border: 1px solid #3a2411;
  background: rgba(47, 29, 12, .85);
  color: #f0e4d2;
  font-weight: bold;
  font-size: 15px;
  text-align: center;
  text-decoration: none;
}
#gm .gm-zoom a:hover { background: #74502c; color: #fff; }

#gm .gm-loading {
  position: absolute; left: 0; right: 0; top: 230px;
  text-align: center; color: #442b17; font-weight: bold;
}

#gm .gm-side {
  float: right;
  width: 222px;
  height: 500px;
  border: 1px solid #3a2411;
  background: rgba(255, 255, 255, .35);
}
#gm .gm-side-head {
  padding: 0 8px;
  line-height: 26px;
  background: #2f1d0c;
  color: #ffd98a;
  font-weight: bold;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#gm .gm-list { height: 474px; overflow-y: auto; }
#gm .gm-empty { margin: 10px; color: #6d5a44; font-style: italic; }

#gm .gm-list a, #gm .gm-list a:link, #gm .gm-list a:visited {
  display: block;
  padding: 4px 8px;
  border-bottom: 1px solid #dacdb6;
  color: #2f2115;
  text-decoration: none;
  line-height: 15px;
}
#gm .gm-list a:hover { background: #efe3cf; color: #000; }
#gm .gm-list a .lv { float: right; color: #6d5a44; font-size: 11px; }
#gm .gm-list a .cnt { color: #8d7458; font-size: 11px; }
#gm .gm-list a.boss { background: rgba(140, 16, 16, .08); color: #7a0d0d; font-weight: bold; }

#gm .gm-boss-tag {
  display: inline-block;
  padding: 0 3px;
  margin-right: 3px;
  background: #8c1010;
  color: #fff;
  font-size: 9px;
  line-height: 13px;
  font-weight: bold;
  vertical-align: 1px;
}
#gm .gm-agr { color: #b01818; font-weight: bold; }

#gm .gm-legend { clear: both; padding-top: 6px; color: #6d5a44; font-size: 11px; }
#gm .gm-legend span { margin-right: 12px; white-space: nowrap; }
#gm .gm-legend i {
  display: inline-block; width: 11px; height: 11px; margin-right: 3px;
  border: 1px solid rgba(40, 20, 5, .45); vertical-align: -2px;
}
#gm .gm-legend i.lv1 { background: rgba(90, 170, 60, .5); }
#gm .gm-legend i.lv2 { background: rgba(220, 190, 40, .55); }
#gm .gm-legend i.lv3 { background: rgba(225, 120, 30, .6); }
#gm .gm-legend i.lv4 { background: rgba(200, 30, 30, .6); }

/* hover tooltip */
#gm .gm-tip {
  display: none;
  position: fixed;
  z-index: 50;
  max-width: 260px;
  padding: 6px 8px;
  border: 1px solid #c9a86a;
  background: rgba(20, 12, 5, .93);
  color: #e8dccb;
  font-size: 11px;
  line-height: 15px;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}
#gm .gm-tip b { color: #ffd98a; }
#gm .gm-tip .lv { color: #a8977f; }
#gm .gm-tip .boss { color: #ff7b6b; font-weight: bold; }
#gm .gm-tip .zt { display: inline-block; margin-bottom: 3px; color: #c8a8ff; font-weight: bold; }
#gm .gm-tip .more { color: #a8977f; font-style: italic; }

/* monster popup */
#gm .gm-modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, .55);
}
#gm .gm-modal.open { display: block; }
#gm .gm-dialog {
  position: relative;
  width: 600px;
  max-width: 94%;
  max-height: 86%;
  margin: 5vh auto 0 auto;
  overflow-y: auto;
  padding: 14px 18px 16px 18px;
  border: 2px solid #3a2411;
  background: #efe3cf;
  color: #2f2115;
  text-align: left;
  box-shadow: 0 6px 30px rgba(0, 0, 0, .6);
}
#gm .gm-close, #gm .gm-close:link, #gm .gm-close:visited {
  position: absolute; right: 10px; top: 4px;
  color: #5b3d21; font-size: 26px; font-weight: bold; text-decoration: none;
}
#gm .gm-close:hover { color: #000; }

#gm .gm-body h3 { margin: 0 30px 2px 0; font-size: 19px; color: #2f1d0c; }
#gm .gm-body .sub { margin-bottom: 10px; color: #6d5a44; }
#gm .gm-body h4 {
  margin: 14px 0 4px 0;
  padding-bottom: 3px;
  border-bottom: 1px solid #c0a98c;
  color: #442b17;
  font-size: 13px;
}

#gm table.gm-stats { width: 100%; border-collapse: collapse; }
#gm table.gm-stats td { padding: 3px 6px; border-bottom: 1px solid #dacdb6; }
#gm table.gm-stats td.k { color: #6d5a44; width: 22%; }
#gm table.gm-stats td.v { font-weight: bold; width: 28%; }

#gm table.gm-drops { width: 100%; border-collapse: collapse; }
#gm table.gm-drops th {
  padding: 3px 6px; color: #6d5a44; font-weight: normal; text-align: left;
  border-bottom: 1px solid #c0a98c;
}
#gm table.gm-drops td { padding: 2px 6px; border-bottom: 1px solid #dacdb6; vertical-align: middle; }
#gm table.gm-drops td.num, #gm table.gm-drops th.num { text-align: right; white-space: nowrap; }
#gm table.gm-drops tr.grp td {
  padding-top: 6px;
  background: rgba(91, 61, 33, .12);
  color: #442b17;
  font-weight: bold;
  font-size: 11px;
}
#gm table.gm-drops img { width: 24px; height: 24px; vertical-align: middle; margin-right: 6px; border: 1px solid #3a2411; }
#gm table.gm-drops .noicon { display: inline-block; width: 24px; height: 24px; margin-right: 6px; vertical-align: middle; background: #3a2411; }
#gm .gm-note { margin-top: 10px; color: #6d5a44; font-size: 11px; font-style: italic; }

/* location pin (gamemap.php?at=x,y&label=) */
#gm .gm-pin { pointer-events: none; }
#gm .gm-pin .dot  { fill: #ffe14a; stroke: #3a1d00; stroke-width: 2; vector-effect: non-scaling-stroke; }
#gm .gm-pin .ring { fill: none; stroke: #ffe14a; stroke-width: 3; vector-effect: non-scaling-stroke;
                    transform-box: fill-box; transform-origin: center; animation: gmPin 1.4s ease-out infinite; }
#gm .gm-pin text  { fill: #fff6d0; stroke: #1d0f04; stroke-width: 3px; paint-order: stroke; font: bold 13px Verdana, sans-serif;
                    text-anchor: middle; }
@keyframes gmPin { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
