/* styles/style.css */
html,
body {
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  margin: 0;
  padding: 20px;
  overflow: hidden;
  height: 100%;
  background-color: #dff1eb;
  font-family: sans-serif;
}

#game-container {
  position: absolute;
  width: 100%;
  height: 100%;
  /* top: 20px; */
  /* bottom: 20px; */
  padding: 0;
}

#click-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: red;
  pointer-events: none;
  z-index: 100;
  transform: translate(-50%, -50%);
}

/* transparent overlay */
#level-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.22);
  /* must be semi-transparent for blur to show */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  /* Safari */
  z-index: 50;
}

#level-overlay.hidden {
  display: none;
}

/* ===== Inner layout only (no blur, no z-index here) ===== */
.ls-wrap {
  width: min(1100px, 92vw);
  pointer-events: none;
  /* block pointer by default... */
}

.ls-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 3vw, 28px);
  justify-items: center;
  pointer-events: auto;
  /* ...but allow clicks on buttons */
}

/* Image buttons */
.ls-btn {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
}

.ls-btn img {
  display: block;
  width: min(280px, 26vw);
  height: auto;
}

/* Dialog area shown together with buttons */
.ls-dialog {
  margin: clamp(10px, 2vw, 18px) auto 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
  /* decorative only */
}

.ls-dialog-img {
  width: min(960px, 92vw);
  height: auto;
  display: block;
}

/* Utility */
.hidden {
  display: none;
}

/* HUD overlays the canvas inside #game-container */
#hud {
  position: absolute;
  inset: 0;
  /* fill the container */
  z-index: 20;
  pointer-events: none;
  /* let clicks pass through by default */
}

/* Top groups */
#hud .hud-left,
#hud .hud-right {
  position: absolute;
  top: clamp(8px, 1.2vw, 16px);
  display: flex;
  align-items: center;
  gap: clamp(8px, 1vw, 14px);
  pointer-events: auto;
  /* these children can receive clicks later */
}

#hud .hud-left {
  left: clamp(10px, 1.2vw, 18px);
}

#hud .hud-right {
  right: clamp(10px, 1.2vw, 18px);
}

/* Title image scales responsively; keeps aspect ratio */
.hud-title {
  height: clamp(18px, 2.6vw, 28px);
  width: auto;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

/* Circular icon buttons (PNG) */

.hud-home {
  height: clamp(36px, 3.4vw, 48px);
  width: clamp(36px, 3.4vw, 48px);
}

/* Optional rounded white frame */
/* .hud-frame {
  position: absolute;
  inset: clamp(6px, 0.8vw, 10px);
  border-radius: 16px;
  border: 6px solid rgba(255,255,255,0.95);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  pointer-events: none;
} */