/* Pan/Zoom controls hint */
.controls-hint {
  position: fixed;
  top: 3%;
  right: 20px;
  background: #231a0f;
  color: #2ecc71;
  padding: 12px 18px;
  border-radius: 8px;
  font-family: monospace;
  font-size: 14px;
  z-index: 9998;
  opacity: 0.9;
  transition: opacity 0.3s;
}

.controls-hint:hover {
  opacity: 1;
}

.controls-hint .key {
  background: rgba(255, 255, 255, 0.3);
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: bold;
}

.controls-hint #onlineCount {
  color: #ff9700;
}

/* Cursor link button styling */
.cursor-link {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 77px;
  padding: 0;
  margin: 0;
  transition: transform 0.2s;
}

.cursor-link:hover {
  transform: scale(1.1);
}

/* Info Modal */
.info-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
}

.info-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.info-modal-content {
  position: relative;
  z-index: 10001;
  background: #f3f4f7;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  max-width: 90%;
  max-height: 90%;
  overflow: auto;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.info-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 32px;
  color: #231a0f;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  z-index: 10002;
}

.info-modal-close:hover {
  color: #ff9700;
}

.info-modal-body {
  padding: 40px;
  text-align: center;
  color: #231a0f;
  font-family: monospace;
}

.info-modal-body p {
  font-size: 24px;
  margin: 0 0 24px 0;
  font-weight: bold;
}

.info-modal-description {
  font-size: 16px !important;
  font-weight: normal !important;
  margin: 0 0 24px 0 !important;
  line-height: 1.5;
  color: #555;
}

.info-modal-link-button {
  display: inline-block;
  background: #ff9700;
  color: #231a0f;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-family: monospace;
  font-weight: bold;
  font-size: 16px;
  transition: background 0.2s, transform 0.2s;
  border: 2px solid #ff9700;
}

.info-modal-link-button:hover {
  background: #231a0f;
  color: #ff9700;
  transform: scale(1.05);
}

.info-modal-sulge {
  display: block;
  margin: 20px auto 0;
  background: #231a0f;
  color: #ff9700;
  padding: 12px 24px;
  border-radius: 6px;
  border: 2px solid #231a0f;
  font-family: monospace;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.info-modal-sulge:hover {
  background: #ff9700;
  color: #231a0f;
  transform: scale(1.05);
}

/* Desktop view - 25% padding */
@media (min-width: 769px) {
  .info-modal-content {
    width: calc(100% - 50vw);
    height: calc(100% - 50vh);
    padding: 25vw;
  }
}

/* Mobile view - 8% padding */
@media (max-width: 768px) {
  .info-modal-content {
    width: calc(100% - 16vw);
    height: calc(100% - 16vh);
    padding: 8vw;
  }

  .info-modal-body {
    padding: 24px;
  }

  .info-modal-body p {
    font-size: 18px;
  }

  .info-modal-link-button {
    padding: 10px 20px;
    font-size: 12px;
  }

  .info-modal-sulge {
    font-size: 14px;
  }
}
