/* ===================== GLOBAL ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  touch-action: none;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: 'Arial', sans-serif;
  color: white;
  background-color: #0b0b0b;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* ===================== TOPBAR ===================== */
#topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(7, 54, 7, 0.8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  z-index: 1000;
  box-shadow: 0 4px 10px #073607;
}

#logo img {
  height: 60px;
}

#tabs {
  display: flex;
  gap: 10px;
}

.tab {
  padding: 6px 14px;
  border-radius: 6px;
  background: #222;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  color: white;
  transition: 0.2s;
  text-transform: uppercase;
}

.tab:hover {
  background: #00aeff;
  color: black;
}

.tab.active {
  background: #00aeff;
  color: black;
  box-shadow: 0 4px 10px rgba(0,0,0,0.6);
}

/* ===================== HUD ===================== */
#hud {
  position: fixed;
  top: 75px;
  left: 10px;
  background: rgba(0,0,0,0.7);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 900;
}

/* ===================== MAP ===================== */
#map-container {
  position: fixed;
  inset: 0;
  top: 64px;
  overflow: hidden;
}

#map {
  position: absolute;
  transform-origin: 0 0;
}

.tile {
  position: absolute;
  width: 1024px;
  height: 1024px;
  image-rendering: pixelated;
  pointer-events: none;
}

#overlay,
#marker-layer {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
}

.marker {
  position: absolute;
  transform: translate(-50%, -100%);
  font-size: 20px;
  white-space: nowrap;
}

.marker span {
  background: rgba(0,0,0,0.6);
  padding: 2px 6px;
  border-radius: 6px;
  margin-left: 4px;
  font-size: 12px;
}

/* ===================== INFO / GALERIA ===================== */
#info-container,
#gallery-container {
  max-width: 1200px;
  margin: 100px auto;
  padding: 20px;
  background: rgba(17,17,17,0.6);
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,255,170,0.2);
  backdrop-filter: blur(4px);
}

#info-container h1,
#gallery-container h2 {
  text-align: center;
  color: #00ffaa;
}

#info-container ul {
  list-style: none;
  padding-left: 0;
}

#info-container ul li::before {
  content: "•";
  color: #00ffaa;
  margin-right: 8px;
}

/* ===================== BMC BUTTON ===================== */
#bmc-button {
  display: block;
  width: fit-content;
  margin: 20px auto;
}

#bmc-button img {
  height: 45px;
  display: block;
}

/* ===================== BOSSBAR ===================== */
#bossbar-container {
  position: relative;
  margin-top: 30px;
  background-color: #222;
  border-radius: 10px;
  overflow: hidden;
  height: 30px;
}

#bossbar-fill {
  height: 100%;
  background-color: #00ffaa;
  width: 0%;
  transition: width 0.5s ease;
}

#bossbar-text {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
  line-height: 30px;
  color: #990;
  font-weight: bold;
  pointer-events: none;
}

/* ===================== GALERIA ===================== */
#gallery-menu {
  width: 200px;
  background: rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
}

.gallery-tab {
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid #222;
  text-align: center;
  transition: 0.2s;
}

.gallery-tab:hover {
  background: #222;
}

.gallery-tab.active {
  background: #00ffaa;
  color: #000;
  font-weight: bold;
}

#gallery-content {
  flex: 1;
  padding: 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(200px,1fr));
  gap: 15px;
}

.gallery-grid img {
  width: 100%;
  border-radius: 10px;
  transition: 0.2s;
  cursor: pointer;
}

.gallery-grid img:hover {
  transform: scale(1.05);
}

.project-item {
  background: rgba(0,0,0,0.4);
  border-radius: 10px;
  overflow: hidden;
}

.project-item img {
  width: 100%;
  display: block;
}

.project-caption {
  padding: 10px;
  text-align: center;
  color: #00ffaa;
}