.language {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 1);
  z-index: 2000;
  color: white;
  text-align: center;
}
.titleWrapper {
  width: auto;
  min-width: 50%;
  max-width: 90%;
  height: 60%;
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
}

.titleWrapper h1 {
  white-space: nowrap;
}

.titleWrapper .languageButtonRow {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

#blocker {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

#instructions {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  text-align: center;
  font-family: Arial, sans-serif;
  font-size: 21px;
  font-weight: bold;
  line-height: 36px;
  cursor: pointer;
}

.popup {
  /* Compact notification popup — bottom-center, not full height */
  position: fixed;
  bottom: 18%;
  left: 50%;
  transform: translateX(-50%);
  width: min(540px, 80vw);
  min-height: 56px;
  z-index: 1109;
  pointer-events: none;
}
.popupImg {
  background-image: url("../img/popupbg.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  opacity: 0.55;
  z-index: 1108;
  position: absolute;
  inset: 0;
  border-radius: 10px;
}
.popupText {
  position: relative;
  z-index: 1109;
  padding: 14px 20px;
  font-size: 1.65vw;
  font-weight: bold;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.popupVR1 {
  width: 25%;
  height: 60%;
  position: absolute;
  bottom: 20%;
  left: 12.5%;
  z-index: 1109;
}
.popupImgVR1 {
  background-image: url("../img/popupbg.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  opacity: 0.7;
  z-index: 1108;
  width: 100%;
  height: 100%;
}
.popupTextVR1 {
  position: relative;
  float: left;
  top: 50%;
  left: 50%;
  font-size: 1.2vw;
  font-weight: bold;
  transform: translate(-50%, -50%);
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  line-height: 300%;
  z-index: 1109;
  margin: 5px 20px 5px 20px;
}
.popupVR2 {
  width: 25%;
  height: 60%;
  position: absolute;
  bottom: 20%;
  left: 62.5%;
  z-index: 1109;
}
.popupImgVR2 {
  background-image: url("../img/popupbg.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  opacity: 0.7;
  z-index: 1108;
  width: 100%;
  height: 100%;
}
.popupTextVR2 {
  position: relative;
  float: left;
  top: 50%;
  left: 50%;
  font-size: 1.2vw;
  font-weight: bold;
  transform: translate(-50%, -50%);
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  line-height: 300%;
  z-index: 1109;
  margin: 5px 20px 5px 20px;
}

.highlight {
  color: rgba(255, 0, 0, 0.7);
  font-size: 1.8em;
  font-weight: bold;
}

.tip {
  color: rgba(100, 100, 100, 0.7);
  font-size: 1.2em;
  font-weight: bold;
}

.crosshairWrapper {
  position: absolute;
  bottom: 49.55%;
  left: 49.75%;
  height: 0.9%;
  width: 0.5%;
}

.crosshairWrapperVR1 {
  position: absolute;
  bottom: 49.55%;
  left: 24.75%;
  height: 0.9%;
  width: 0.5%;
}

.crosshairWrapperVR2 {
  position: absolute;
  bottom: 49.55%;
  left: 74.75%;
  height: 0.9%;
  width: 0.5%;
}

.crosshairOne {
  position: absolute;
  margin: auto;
  bottom: 35%;
  width: 100%;
  height: 30%;
  background-color: rgba(255, 255, 255, 0.55);
}

.crosshairTwo {
  position: absolute;
  margin: auto;
  left: 35%;
  width: 30%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.55);
}

#loading {
  position: absolute;
  bottom: 6.5%;
  left: 79%;
  height: 3%;
  width: 16%;
  background-color: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.7);
  z-index: 1109;
}

.loadingBar {
  position: absolute;
  left: 0%;
  width: 0%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.5);
}
.loadingText {
  position: absolute;
  text-align: center;
  height: 80%;
  bottom: 10%;
  width: 100%;
  color: white;
  font-weight: 800;
  font-size: 1.2vw;
}

.languageButton {
  border: none;
  color: white;
  padding: 0 32px;
  width: 120px;
  height: 55px;
  line-height: 55px;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 400;
  margin: 4px 2px;
  transition-duration: 0.4s;
  cursor: pointer;
}

.chnButton {
  background-color: white;
  color: black;
  border: 2px solid #4caf50;
}

.chnButton:hover {
  background-color: #4caf50;
  color: white;
}

.engButton {
  background-color: white;
  color: black;
  border: 2px solid #008cba;
}

.engButton:hover {
  background-color: #008cba;
  color: white;
}

.story {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1108;
}

.storyText {
  position: relative;
  float: left;
  top: 50%;
  left: 50%;
  font-size: clamp(18px, 1.575vw, 27px);
  font-weight: bold;
  transform: translate(-50%, -50%);
  text-align: center;
  color: rgba(255, 255, 255, 0.82);
  line-height: 210%;
  z-index: 1109;
  margin: 5px 20px 5px 20px;
  cursor: pointer;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}


.interactionHint {
  position: fixed;
  bottom: 38%;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 220, 100, 0.85);
  font-size: 20px;
  font-weight: bold;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  pointer-events: none;
  z-index: 200;
  white-space: nowrap;
  text-shadow: 0 1px 6px rgba(0,0,0,0.8);
  letter-spacing: 0.03em;
}

/* Inventory is built entirely in JS (game.js) — these selectors are kept for
   any HTML-side fallback only and are not used in the new game. */
.inventory { display: none; }
.inventorySlot { display: none; }
